Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Allow sticky topics for normal members
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

StephenD
Senior Member

Australia
1044 Posts

Posted - 03 July 2005 :  23:59:07  Show Profile  Send StephenD a Yahoo! Message
I'd like to allow Sticky Topics for normal members on one of my intranets. I'm going to change the tag and icon to represent 'urgent request'. I've found the spot in post.asp for allowing the tickbox to be viewed by normal members but when ticked it isn't getting passed through post_info.asp as a sticky topic.

Can anyone show me where I canset this please. Is it in a function somewhere?

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 04 July 2005 :  07:38:31  Show Profile
You'll need to change the code in post_info.asp in 2 places to remove the check to see if the member is a forum moderator or admin. On line 553 (for editing topics), add the code in green:
if ForumChkSkipAllowed = 1 or mlev=1 then
	if Request.Form("sticky") = 1 then
		strSql = strSql & ", T_STICKY = " & 1
		strSql = strSql & ", T_ARCHIVE_FLAG = " & 0
	else
		strSql = strSql & ", T_STICKY = " & 0
		strSql = strSql & ", T_ARCHIVE_FLAG = " & 1
	end if
end if
And, on line 876, remove the code in green:
if ForumChkSkipAllowed = 1 then
	if Request.Form("sticky") = 1 then
		strSql = strSql & ", 1 "
	else
		strSql = strSql & ", 0 "
	end if
else
	strSql = strSql & ", 0 "
end if
You'll also need to edit forum.asp, pop_lock.asp and pop_open.asp if you want members to be able to change the sticky status of their topics using the icons on forum.asp.

Note that if you do not want members to be able to change the sticky status of their topics when editing them, you can ignore the first change I posted.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”

Edited by - Shaggy on 04 July 2005 07:38:44
Go to Top of Page

StephenD
Senior Member

Australia
1044 Posts

Posted - 04 July 2005 :  18:35:31  Show Profile  Send StephenD a Yahoo! Message
Thanks Shaggy, tried that but it didn't seem to work. Topic remains unsticky when posted by normal user.
Go to Top of Page

StephenD
Senior Member

Australia
1044 Posts

Posted - 04 July 2005 :  19:54:19  Show Profile  Send StephenD a Yahoo! Message
Nevermind... helps if you edit the files on the right domain, thanks once again Shaggy.
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 05 July 2005 :  05:15:21  Show Profile
You're welcome, Stephen Always glad to help.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.34 seconds. Powered By: Snitz Forums 2000 Version 3.4.07