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)
 Only Admin posting pictures to forum...
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

ukcw
Junior Member

121 Posts

Posted - 14 July 2004 :  11:08:13  Show Profile
Hi all

I'd like to be able to post images to my forum, but only me as admin to be allowed to do it...not everyone!

Is this possible, and if so, how can it be done?

Cheers

Jezmeister
Senior Member

United Kingdom
1141 Posts

Posted - 15 July 2004 :  13:59:56  Show Profile  Visit Jezmeister's Homepage
possible yes but itd take a lot of editing.
you could try finding the part of the code in (i assume) post.asp that makes the table display the image icon and where it says "if strIMGInPosts = "1" change that line to
if strIMGInPosts = "1" AND (mlev = 4) then

thatd only remove the option to use that - they could still use the img tags - tho you could change it from [img] in inc_func_common.
Go to Top of Page

ukcw
Junior Member

121 Posts

Posted - 15 July 2004 :  15:59:44  Show Profile
Hi

Thanks for that - unfortunately I don't really understand! I understand what I need to do, but I don't understand wht you said afterward about they could still use the image tags??

I just found this in another post:

A bit of a kludge, but should work.

Look for this line in inc_top.asp


mLev = cint(chkUser(strDBNTUserName, Request.Cookies(strUniqueID & "User")("Pword")))


Immediately after that line, add the following


if (mLev = 3 or mLev = 4) then strAllowHTML = 1end if


This would give moderators and Admins HTML On in posts. To restrict to Admins only just remove the mLev = 3 part.

Is it really that simple to change the setting for me ONLY as Admin to be allowed to post to html?? Is it completely secure - in other words will anyone else be able to post html? Also, will they be able to view the HTML if it's still turned off in the forum options. I'm figuring that this will solve my original problem of wanting to post pictures if I can post the HTML link to them?

Cheers!
Go to Top of Page

Jezmeister
Senior Member

United Kingdom
1141 Posts

Posted - 15 July 2004 :  16:56:46  Show Profile  Visit Jezmeister's Homepage
yes if you used just mlev = 4. (btw inc_top.asp is now inc_header.asp)
Go to Top of Page

ukcw
Junior Member

121 Posts

Posted - 15 July 2004 :  17:38:22  Show Profile
OK. Went to have a look...but it appears it must have been an older verion...I can't find either of the bits of code in my inc_header.asp! What and where would be the equivalent now? What would I need to add to the latest version of snitz to make it do what I'm trying to get it to do??

Cheers
Go to Top of Page

Jezmeister
Senior Member

United Kingdom
1141 Posts

Posted - 15 July 2004 :  18:09:11  Show Profile  Visit Jezmeister's Homepage
well im not entirely sure. u could try (dont try this on an active forum tho) adding the code towards the top of inc_header.asp I would suggest probably somewhere before "
call sForumNavigation()
" would be the best - and probably beneath "
'## START - REMOVAL, MODIFICATION OR CIRCUMVENTING THIS CODE WILL VIOLATE THE SNITZ FORUMS 2000 LICENSE AGREEMENT
Response.Write	"<meta name=""copyright"" content=""This Forum code is Copyright (C) 2000-04 Michael Anderson, Pierre Gorissen, Huw Reddick and Richard Kinser, Non-Forum Related code is Copyright (C) " & strCopyright & """>" & vbNewline 
'## END   - REMOVAL, MODIFICATION OR CIRCUMVENTING THIS CODE WILL VIOLATE THE SNITZ FORUMS 2000 LICENSE AGREEMENT

just make sure you don't interupt any other functions etc where u put it in and im guessing it should work.
Go to Top of Page

ukcw
Junior Member

121 Posts

Posted - 16 July 2004 :  08:15:23  Show Profile
Hi

Sorry! I don't fully understand your instructions...any more help or details would be greatly appreciated :-)

Edited by - ukcw on 16 July 2004 15:08:24
Go to Top of Page

Jezmeister
Senior Member

United Kingdom
1141 Posts

Posted - 16 July 2004 :  15:20:00  Show Profile  Visit Jezmeister's Homepage
ignore what i said before try this in inc_header.asp:
insert
if (mLev = 4) then strAllowHTML = 1 end if
after
if Application(strCookieURL & "down") then 
	if not Instr(strScriptName,"admin_") > 0 then
		Response.redirect("down.asp")
	end if
end if
to make it look like this:
if Application(strCookieURL & "down") then 
	if not Instr(strScriptName,"admin_") > 0 then
		Response.redirect("down.asp")
	end if
end if
if (mLev = 4) then strAllowHTML = 1 end if
Go to Top of Page

ukcw
Junior Member

121 Posts

Posted - 17 July 2004 :  04:37:16  Show Profile
Hi

Thanks for the suggestion...unfortunately it doen't appear to work...HTML code still shows as off and I tried to type in some HTML anyway, and that didn't work unfortunately...

Back to the drawing board unfortunately!
Go to Top of Page

Jezmeister
Senior Member

United Kingdom
1141 Posts

Posted - 17 July 2004 :  17:30:23  Show Profile  Visit Jezmeister's Homepage
ok well you could try my original suggestion. if you do what i already said then replace all instances of "" with a new image code in "inc_func_common.asp" that will stop other people posting images - unless you tell them the new code.
Go to Top of Page

ukcw
Junior Member

121 Posts

Posted - 19 July 2004 :  03:58:52  Show Profile
Hi

Jezmeister, thanks for your help!

In the end, I decided to have one more go at installing the Super Admin HTML MOD and it worked (so far!)! It does exactly what I wanted and a little more!
Go to Top of Page

Jezmeister
Senior Member

United Kingdom
1141 Posts

Posted - 19 July 2004 :  04:43:42  Show Profile  Visit Jezmeister's Homepage
glad you got it working
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 1.81 seconds. Powered By: Snitz Forums 2000 Version 3.4.07