The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Message (Posting) Icons for admins and mods only
I have a small flame icon that I would like to use to indicate that a thread has gotten a bit heated. I don't want normal members to be able to use it, just admins or mods.
Therefore, I need a hack that will allow me to set up one or more message icons for staff use only. Amy |
#2
|
||||
|
||||
Never mind, I got it. Easy stuff.
1. I added a new field to the icon table called modonly. If it is a restricted icon, I set that to 1. 2. I copied the chooseicons function in functions.php and used it to create a new function called chooseicons2 3. I changed the query in the chooseicons2 function so that it does not show icons marked modonly. 4. I changed the call to the chooseicons function in newthread, newreply, and editpost to call chooseicons2 instead of the original. I did it this way because nobody is allowed to intentionally create a post they know is a flame. 5. The postings.php call (the one that handles the thread edit) remains the same. Therefore, ALL icons show up there, even the modonly ones. Because only mods and admins can edit the thread on my board, this effectively restricts that icon to my mods and admins. Amy |
#3
|
||||
|
||||
good idea mate, think i'll do so too
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|