![]() |
Hide bb_codes for unregistered users vb 5.2 and 5.3.3
1 Attachment(s)
IMPORTANT NOTE IS NOT COMPATIBLE WITH THE NEW VERSIONS 5.6.X
First of all, I apologize for my english because I use google translate.I found a solution for BBcodes to be invisible to the unregistered.It is tested both in VB 5.2 and 5.3.3. Admincp ? Languages & Phrases ? Phrase Manager ? Add New Phrase Phrase Type : GLOBAL Product : vBulletin Varname : hide_code Text : Please Login or <a href="register.php">Register</a> to see codes Go to your Admincp ? Styles & Templates ? Style Manager ? Your Style ? BB Code Layout Templates Open bbcode_code will see this code: Code:
<vb:if condition="$vboptions['codemaxlines']"> Code:
<vb:if condition="$vboptions['codemaxlines']"> The same code can be used for html_code and php_code. Changing of course {vb: rawphrase code} for the corresponding one in each case for html {vb: rawphrase html_code} and for php {vb: rawphrase php_code} Any doubts or clarifications in comments, as well as if they were useful, I did several hours to find this solution and I hope it will be useful |
Hello I have it adjusted exactly the same but with me does not work unfortunately there is still another solution?
|
Quote:
In my work I 5.2 and 5.3.3 Code:
<vb:if condition="$vboptions['codemaxlines']"> |
Quote:
|
It also unfortunately wont work for me :(
I am using 5.3.3 |
Try this code:
Code:
<vb:if condition="$vboptions['codemaxlines']"> |
is it work for 5.3.4 ?
|
Quote:
|
Quote:
For me it works perfect for 5.3.3 to 5.3.4 I have no news |
Works perfect for me. Is it possible to extend this to all Links in a Forum?
|
Quote:
|
I did a Update to 5.6.0 RC2, suddenly it always hides the code (also to registered users). Any idea what I could do?
If I edit the specific post, the content is still ok like [code ] REAL CONTENT [ /code] EDIT: Fixed it, just opened and saved the template and it worked again. No changes made. Thanks again to Chicoynano! |
OK here is the strange thing, it works in some posts and in some other it is not working.
Any idea what to do? |
Any help? :(
|
Trying my luck here, for people who are maybe running in similar problems and in case I can find a soltuion :)
https://vborg.vbsupport.ru/showthrea...97#post2602297 |
It only works if I add usergroup "1" to the code (guests). Then its shown to all.
Otherwise its hidden for all. Strange... |
All times are GMT. The time now is 05:52 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|