The Arcive of vBulletin Modifications Site. |
|
BBCode for Registered Members Only Hack Details »»
|
|||||||||||||||||||||||||
This has been requested a couple of times, so here it is!
With this hack, you can deny certain usergroups to see the following BB Codes:
It's a very easy mod, it requires 1 new template, and a couple of new lines in 1 file. (Optionally an edit in a 2nd file, depending on your settings) Find instructions in the install.html file. If the results are displayed wrong, try making the changes in fixerror.txt Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Doest this hack also hide code etc in the preview balloons?
|
|
#3
|
|||
|
|||
|
If you make the last(optional) edit, I believe it does hide it.
|
|
#4
|
|||
|
|||
|
its like what you have here at vb.org right?
|
|
#5
|
|||
|
|||
|
Yes, it is.
|
|
#6
|
||||
|
||||
|
hi, I was actually trying to modify this hack a bit using conditionals. I want to make the tag visible only for people with +10 posts and more. So added the following code(In place of the code actually given
Code:
if ($bbuserinfo[posts] > 10)
{
eval('$html = "' . fetch_template('bbcode_code') . '";');
}
else{
eval('$html = "' . fetch_template('bbcode_guest') . '";');
} return $html;
Now the prob is that while the code is working normally, If a user quotes the text or sees archive, He can see the code. I reckon that while replying i will have to strip code based on <if> conditional. Any help with making that strip function? |
|
#7
|
|||
|
|||
|
Thank you for pointing that out.
Updated the first post with the fix. |
|
#8
|
|||
|
|||
|
Nice hack, will instal.
|
|
#9
|
|||
|
|||
|
Glad I could be of help
.
|
|
#10
|
|||
|
|||
|
any update on this for vb3.5?
|
![]() |
|
|