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 allow Admin's to post images?
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 4

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 03 January 2009 :  13:37:44  Show Profile  Visit HuwR's Homepage
quote:
tags are not interpreted when the author of the post being shown is not an admin

yes, but isn't the point that you want them to be displayed, but only if they were posted by an admin, not just if the viewer is an admin, which is why it won't work
<
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 03 January 2009 :  13:39:29  Show Profile  Visit HuwR's Homepage
like i said above, you need to do the conversion from img tags on posting so that the image is stored in the db as html rather than as an img tag, then the normal processing on view will work as normal as there are no img tags to convert.<
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 03 January 2009 :  13:59:33  Show Profile  Send ruirib a Yahoo! Message
quote:
Originally posted by HuwR

like i said above, you need to do the conversion from img tags on posting so that the image is stored in the db as html rather than as an img tag, then the normal processing on view will work as normal as there are no img tags to convert.


I guess this would be an alternate approach, but you'd need to revert the process, so that an admin could edit a post with the image tags.<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 03 January 2009 :  14:04:12  Show Profile  Send ruirib a Yahoo! Message
quote:
Originally posted by HuwR

quote:
tags are not interpreted when the author of the post being shown is not an admin

yes, but isn't the point that you want them to be displayed, but only if they were posted by an admin, not just if the viewer is an admin, which is why it won't work



It will work if you check if the post author is an admin. You need to retrieve the M_LEVEL for the post author post and decide whether you convert the tags or not.

Each approach has its upsides and downsides. This one forces you to check M_LEVEL for each post author, the other one will require conversion from HTML image tags to forum image tags...<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Carefree
Advanced Member

Philippines
4217 Posts

Posted - 03 January 2009 :  15:48:34  Show Profile
It's done and it works. Update at SnitzBitz.<
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 03 January 2009 :  17:33:04  Show Profile  Send ruirib a Yahoo! Message
Carefree,

A quick look seems to indicate that you only get the member level for each of the replies. That would leave the option to post images in the first post of a topic, so you probably need to do something similar inside GetFirst...<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Carefree
Advanced Member

Philippines
4217 Posts

Posted - 03 January 2009 :  18:34:01  Show Profile
No, the routine for retrieving the member level already existed for topics, so I didn't have to redo it.<
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 03 January 2009 :  18:58:52  Show Profile  Send ruirib a Yahoo! Message
Ok, then . Well done.

<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

PackYakcouk
New Member

United Kingdom
59 Posts

Posted - 04 January 2009 :  05:19:12  Show Profile  Visit PackYakcouk's Homepage
ok What action would you guys advise now?<

Edited by - PackYakcouk on 05 January 2009 17:39:02
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 04 January 2009 :  07:22:58  Show Profile  Send ruirib a Yahoo! Message
Probably undo the first changes and add the second set of changes to your forum...<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

PackYakcouk
New Member

United Kingdom
59 Posts

Posted - 04 January 2009 :  08:15:30  Show Profile  Visit PackYakcouk's Homepage
Ok after installing Carefree's mod off of snitz bitz, it seems if a normal member starts a topic no one can post images in it (Not even an admin), if an admin or mod starts the thread any one can post images on it (If they know the [ img ][ /img] tags). I have double and triple checked me code alterations and all is how it is explained in the ReadMe.chm.

Also there is an error in "ReadMe.chm" when on the topic.asp page if you click "select all" it says

"
A runtime error has occurred

Do you wish to debug?

line: 38
Error: 'this.form.S1A' Is null or not an object.
"

<

Edited by - PackYakcouk on 04 January 2009 08:23:54
Go to Top of Page

Carefree
Advanced Member

Philippines
4217 Posts

Posted - 04 January 2009 :  12:37:36  Show Profile
I didn't try that (non-admin first), but that's a quick fix. I'll edit the file today.

OK - all done. Tested non-admin poster, admin reply, etc. Enjoy.<

Edited by - Carefree on 04 January 2009 13:10:16
Go to Top of Page

PackYakcouk
New Member

United Kingdom
59 Posts

Posted - 04 January 2009 :  18:40:20  Show Profile  Visit PackYakcouk's Homepage
Carefree, i have just downloaded and installed the new code off of snitz bitz, im having the same problem as before.

quote:
it seems if a normal member starts a topic no one can post images in it (Not even an admin), if an admin or mod starts the thread any one can post images on it (If they know the [ img ][ /img] tags). I have double and triple checked me code alterations and all is how it is explained in the ReadMe.chm.


Also i dident see any new code in the ReadMe.chm? maby you forgot to include the changes?<

Edited by - PackYakcouk on 04 January 2009 18:41:24
Go to Top of Page

Carefree
Advanced Member

Philippines
4217 Posts

Posted - 04 January 2009 :  19:20:49  Show Profile
Post a link to your "config.asp", "inc_func_common.asp", and "topic.asp" in text format. The readme was edited, yes.<
Go to Top of Page

PackYakcouk
New Member

United Kingdom
59 Posts

Posted - 04 January 2009 :  19:41:27  Show Profile  Visit PackYakcouk's Homepage
Ok here they are, sorry for being a pain!

http://www.packyak.co.uk/test/config.txt

http://www.packyak.co.uk/test/inc_func_common.txt

http://www.packyak.co.uk/test/topic.txt

<
Go to Top of Page
Page: of 4 Previous Topic Topic Next Topic  
Previous Page | Next Page
 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.3 seconds. Powered By: Snitz Forums 2000 Version 3.4.07