Hey all, so far I've have snitz running with about 10 mods but I really want to be able to change the allow html bit so that either only the admin(and moderators perhaps) can enter html in the message posts, or just as useful would be the chance to have the html code/forum code settings for each forum and not the whole board.
I have seached for help but the only post I found regarding this mainly discussed how it hasn't been done or even really requested.
If someone could help point me to the right spot in the code I can try and edit the code myself, but I am hoping to be able to do it neatly and perhaps release it as a mod.
I use snitz as just forums on one site but I use it as the entire base for another site, with a hidden forum called Interface Pages where I create the posts that I use as pages. It is this foum that I would like to be able to use HTML in.
Thanks in advance Brendan
PS. thanks to all the mod makers for the extras, great job people :)
i think i remember reading that mLev=2 is for like the authors of posts and stuff, but searching the files of the forum, it is never used by itself, it always used when checking to see if they are a member and it calls out every mlev
To Parenthesise or not to Parenthesise that is the question
I have a bad tendancy to use parenthesises even when not strictly required, i find it helpfull to be in the habit of using them particularly when you get into longer more complex conditional clasues using many compares along with OR 's and AND's etc
I've posted this before a long time ago and just as a side note, HTML and Forum Code do not mix well, especially with images... inc_functions gets confused on which way you want to post at times, especially if you are EDITING a post with images, etc... just an FYI...
quote: if (mLev = 3 or mLev = 4) then strAllowHTML = 1 end if
This works when Admin posts a message, it will show in HTML, but it will not show the pop_preview in HTML, how can you do it so when you click on Preview, the preview will show
quote: BTW What user level is mLev = 2 ?? - Gremlin
quote: i think i remember reading that mLev=2 is for like the authors of posts and stuff, but searching the files of the forum, it is never used by itself, it always used when checking to see if they are a member and it calls out every mlev - redbrad0
mlev = 1 = Author mLev = 2 = Normal Member mlev = 3 = Moderator mLev = 4 = Admin
These values are returned when function
ChkUser (returns values 2,3 and 4 (returns values 0,2,3,4)
0 = Not Member or Not Logged in) 2 = Normal Member---- When M_LEVEL = 1 3 = Moderator ---- When M_LEVEL = 2 4 = Adminstrator ---- When M_LEVEL = 3
ChkUser2 (returns values 0,1,2,3,4)
0 = Not Member or Not Logged in) 1 = Author ---- When M_LEVEL <> 3 and Member is Author 2 = Normal Member---- When M_LEVEL = 1 3 = Moderator ---- When M_LEVEL = 2 4 = Adminstrator ---- When M_LEVEL = 3
www.forumSquare.com - GauravBhabu - It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying.
Actually, referencing Gremlin's first post above, I just have to change "strAllowHTML" to "strIMGInPosts". I did it and it works. If anyone can tell me why not to do this (why it's not good for the code), please do. Thanx, and for anyone else, enjoy.
Theres only one real downfall doing it the way I've shown above that I can find.
The problem happens when you go into your admin settings to change any other features,you'll not be able to turn Images or HTML off again :(.
what I did was remove the check in the relevant admin page also so that the radio button wasn't pre selected based on the current strAllowHTML setting. More of a kludge really but it works fine for me.
Good to know, I might not have noticed. I doubt I'll change anything, but I'll change a couple of things around so I don't activate something by accident. Thanx.