Author |
Topic  |
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 03 January 2009 : 13:37:44
|
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  < |
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 03 January 2009 : 13:39:29
|
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.< |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
Posted - 03 January 2009 : 13:59:33
|
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 |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
Posted - 03 January 2009 : 14:04:12
|
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 |
 |
|
Carefree
Advanced Member
    
Philippines
4217 Posts |
Posted - 03 January 2009 : 15:48:34
|
It's done and it works. Update at SnitzBitz.< |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
Posted - 03 January 2009 : 17:33:04
|
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 |
 |
|
Carefree
Advanced Member
    
Philippines
4217 Posts |
Posted - 03 January 2009 : 18:34:01
|
No, the routine for retrieving the member level already existed for topics, so I didn't have to redo it.< |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
|
PackYakcouk
New Member

United Kingdom
59 Posts |
Posted - 04 January 2009 : 05:19:12
|
ok What action would you guys advise now?< |
Edited by - PackYakcouk on 05 January 2009 17:39:02 |
 |
|
ruirib
Snitz Forums Admin
    
Portugal
26364 Posts |
|
PackYakcouk
New Member

United Kingdom
59 Posts |
Posted - 04 January 2009 : 08:15:30
|
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 |
 |
|
Carefree
Advanced Member
    
Philippines
4217 Posts |
Posted - 04 January 2009 : 12:37:36
|
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 |
 |
|
PackYakcouk
New Member

United Kingdom
59 Posts |
Posted - 04 January 2009 : 18:40:20
|
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 |
 |
|
Carefree
Advanced Member
    
Philippines
4217 Posts |
Posted - 04 January 2009 : 19:20:49
|
Post a link to your "config.asp", "inc_func_common.asp", and "topic.asp" in text format. The readme was edited, yes.< |
 |
|
PackYakcouk
New Member

United Kingdom
59 Posts |
|
Topic  |
|