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)
 Only Moderators & Admins to Post Images?
 New Topic  Reply to Topic
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

AnonJr
Moderator

United States
5768 Posts

Posted - 03 November 2005 :  08:38:58  Show Profile  Visit AnonJr's Homepage  Reply with Quote
Great minds and all that let me get some coffee and see what can be put together...<
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 03 November 2005 :  09:30:30  Show Profile  Visit AnonJr's Homepage  Reply with Quote
I've not had a chance to test this, but I think this will give you what you want:

Change in inc_func_common.asp:

On (or about) Line 114 change:
function FormatStr(fString)

to:
function FormatStr(fString, bAllowImages)


On (or about) Line 126 change:
if strIMGInPosts = "1" then

to:
if strIMGInPosts = "1" And bAllowImages then



You will need to find all instances where FormatStr is called and add either True or False depending on if you want images or not.

For instance, in topic.asp around line 663 you will need to change
if qsSearchTerms <> "" then
	Response.Write	SearchHiLite(formatStr(Reply_Content))
else
	Response.Write	formatStr(Reply_Content)
end if

to
if qsSearchTerms <> "" then
	If mLev >= 3 Then
	Response.Write	SearchHiLite(formatStr(Reply_Content,True))
	Else
	Response.Write	SearchHiLite(formatStr(Reply_Content,False))
	End If
else
	If mLev >= 3 Then
	Response.Write	formatStr(Reply_Content,True)
	Else
	Response.Write	formatStr(Reply_Content,False)
	End If
end if


Let me know how it goes. (or if I goofed )<

Edited by - AnonJr on 03 November 2005 10:21:53
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 03 November 2005 :  10:05:47  Show Profile  Reply with Quote
And don't forget the other files I mentioned above, as well. If you don't amend all occurences of FormatStr in your files, you're going to get some errors.

<

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

AnonJr
Moderator

United States
5768 Posts

Posted - 03 November 2005 :  10:22:15  Show Profile  Visit AnonJr's Homepage  Reply with Quote
Now that I think about it, I believe that there is a second place in topic.asp too....<
Go to Top of Page

rkp
New Member

59 Posts

Posted - 06 August 2007 :  11:09:26  Show Profile  Reply with Quote
does anyone have this working?<
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000 Version 3.4.07