The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Admin/Mod BBcodes Details »» | |||||||||||||||||||||||||
this is an easy hack for admins and mods who edit their users' posts and always wanna leave a msg at the bottom of it!
check the screenshots! download the zip file for installation instructions! For those who are looking to restrict the use of these bbcodes for normal users, please use this hack: Advanced BBcode Permissions http://www.oneforum.org Show Your Support
|
Comments |
#17
|
|||
|
|||
i figured it out
|
#18
|
|||
|
|||
Wild-Wing - thanks.... I think!
I understand the file edits but after editing the files how do you create a tag that can only be used by an admin or mod? |
#19
|
|||
|
|||
Wild-Wing - I realise what you meant - create templates called bbcode_admin and bbcode_mod for the code to display a "moderator box".
However I see that you add this: define('ALLOW_BBCODE_MODWARN', 1024); define('ALLOW_BBCODE_ADMINWARN', 2048); So I presume somehow once I've made the modifications I would need to give permission to the admin and mod groups so they could use the tags? |
#20
|
|||
|
|||
oh i forgot to add that part damn.
you have to be in developer mode to to the next step go to the bbcode settings where the Enabled Built-in BB Codes area is you should see a edit and delete links (note: you will only see this if you are in developer mode.) add this to the bottom of the option code box above the span tag Code:
<label for=\"bb1024\"><input type=\"checkbox\" name=\"setting[$setting[varname]][]\" id=\"bb1024\" value=\"1024\" tabindex=\"1\" " . iif(bitwise($setting['value'],1024), 'checked="checked"') . " />[MOD]</label><br /> <label for=\"bb2048\"><input type=\"checkbox\" name=\"setting[$setting[varname]][]\" id=\"bb2048\" value=\"2048\" tabindex=\"1\" " . iif(bitwise($setting['value'],2048), 'checked="checked"') . " />[ADMIN]</label><br /> |
#21
|
|||
|
|||
Thanks.
I've now done that however now if I try to display a post that uses one the tags the page just doesn't display (I just get a completely blank page and the browser indicates it is busy). If I switch off the mod and admin bbcodes in the vBulletin options page then the page displays but of course the tag is just shown as text. (For testing purposes all my template is a single <div> with the words TEST ADMIN TAG in it.) Any ideas? |
#22
|
|||
|
|||
did u turn on debug mode in the config.php file? that turns on developer mode. when i get home ill post the templates i used.
i used this for the admin template and the admin_printthread make sure you name them bbcode_admin and bbcode_admin_printthread Code:
<style> .code{font-family: Courier, Courier New, Verdana, Arial; color: #465584; background-color: #FAFCFE; border: 1px dotted #000; padding: 2px; width:98%; margin: 0px auto 0px auto; /*overflow: auto; height: 200px;*/} </style> <table width="90%" cellspacing="1" cellpadding="3" border="0" align="center"> <tr> <td><span class="smallfont"><strong>Administrator's Warning:</strong></span></td> </tr> <tr> <td class="code"><img align="left" src="images/mod.gif">$code</td> <tr> </table> |
#23
|
|||
|
|||
Just tried with your templates and the same problem, switch the tags on and a blank page, switch them off and the page displays fine.
I've double checked the edits of the files you've listed and my edits are correct - could it be you've missed an edit instruction? |
#24
|
|||
|
|||
damn thats something i dont know whats wrong. i am not at home right now so i cant double check all my steps i might have forgoten something i dont know maybe i posted all the steps.
|
#25
|
||||
|
||||
Wow quiet simple really!
|
#26
|
|||
|
|||
Quote:
|
#27
|
||||
|
||||
Installed and working! Very nice!
|
#28
|
|||
|
|||
worked like a dream, thanks =)
|
#29
|
|||
|
|||
Damn! Why isn't it working for me? I've even disabled every other plugin and product just to be on the safe side! Frustrating to say the least!
|
#30
|
||||
|
||||
uhm.. anyone can just go check these out and use them. In the BB code FAQ.
Solution please?? (pretty worthless if not) without doing what some other members wrote above, I have no clue in that area of modding. |
#31
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|