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

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 reply with Quote
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

hans jeucken
Starting Member

6 Posts

Posted - 11 February 2005 :  11:45:33  Show Profile
Yesterday i got the answer to the problem of hiding text for mormal users. This was exactly what i needed, buttttttttt

When a user klicks on the "Reply with Quote" icon he can see all the hidden text.
How can i prevent a user to see this?
I do not mind if they can't repley with a quote.

Greetings Hans

Jorrit787
Average Member

Netherlands
681 Posts

Posted - 11 February 2005 :  11:51:54  Show Profile  Visit Jorrit787's Homepage  Send Jorrit787 an AOL message  Send Jorrit787 a Yahoo! Message
Go into topic.asp and delete all the blocks of code that deal with getCurrentIcon(strIconReplyTopic,"Reply with Quote" - This will remove the icon for replying with quote.
Go to Top of Page

hans jeucken
Starting Member

6 Posts

Posted - 11 February 2005 :  13:47:15  Show Profile
Thank.
It seems a bit drastic but works fine.

Greetings Hans
Go to Top of Page

Jorrit787
Average Member

Netherlands
681 Posts

Posted - 11 February 2005 :  14:08:07  Show Profile  Visit Jorrit787's Homepage  Send Jorrit787 an AOL message  Send Jorrit787 a Yahoo! Message
quote:
Originally posted by hans jeucken

It seems a bit drastic but works fine.
It's one of the easiest ways to do it
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 14 February 2005 :  06:37:00  Show Profile
You could also add a bit of code to the CleanCode function of inc_func_posting.asp to remove all text between [hidden] and [/hidden] is reply with quote is being used; would save you losing that feature altogether.


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

dqtln
Starting Member

5 Posts

Posted - 10 March 2005 :  05:37:18  Show Profile  Visit dqtln's Homepage  Send dqtln a Yahoo! Message
quote:
Originally posted by Shaggy

You could also add a bit of code to the CleanCode function of inc_func_posting.asp to remove all text between [hidden] and [/hidden] is reply with quote is being used; would save you losing that feature altogether.




hi Shaggy ... can you share your code ... i don't know VBScript
thanks

www.phudu.com
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 10 March 2005 :  05:53:29  Show Profile
Find the following at the very end of inc_func_posting.asp:
	end if
	fString = Replace(fString, "'", "'")
	CleanCode = fString
end function
%>
and, immediately above it, add the following:
if instr(1,fstring,"[hidden]",1)>0 and instr(1,fstring,"[/hidden]",1)>0 then
	arrHidden=split(fstring,"[hidden]",-1,1)
	fstring=""
	for h=0 to ubound(arrHidden)
		if instr(1,arrHidden(h),"[/hidden]",1)>0 then
			arrHidden2=split(arrHidden(h),"[/hidden]",-1,1)
			if mlev>2 then fstring=fstring&"[hidden]"&arrHidden2(0)&"[/hidden]"
			fstring=fstring&arrHidden2(1)
		else
			fstring=fstring&arrHidden(0)
		end if
	next
end if

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

dqtln
Starting Member

5 Posts

Posted - 16 March 2005 :  05:23:16  Show Profile  Visit dqtln's Homepage  Send dqtln a Yahoo! Message
hi Shaggy
i want members (have >99 posts) can view
i tried with M_POSTS>99 but it is incorrect
can you help me ?

have a good day
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.28 seconds. Powered By: Snitz Forums 2000 Version 3.4.07