![]() |
Hide BB Code Content From Unregistered Users
1 Attachment(s)
I couldn't find any addon for vb 4 to hide the bbcode content from unregistered users and showing a register message instead as here on vbulletin.org,so i have just fixed manualy on my forum.
add a new phrase first from Admincp ? Languages & Phrases ? Phrase Manager ? Add New Phrase
Open the bbcode_code template and find: HTML Code:
<div class="bbcode_description">{vb:rawphrase code}:</div> HTML Code:
<vb:if condition="$show['guest']"> HTML Code:
</vb:if> HTML Code:
<div class="bbcode_description">{vb:rawphrase html_code}:</div> HTML Code:
<vb:if condition="$show['guest']"> HTML Code:
</vb:if> HTML Code:
<div class="bbcode_description">{vb:rawphrase php_code}:</div> HTML Code:
<vb:if condition="$show['guest']"> HTML Code:
</vb:if> |
Thanks for this nice addon. I was looking for that. :)
|
Thanks Bro great job.....
|
How do you decide which content to hide? Which bbcode do you use?
|
I used a hack for 3.8 or 3.5 (I don't remember XD) but this, is the same :D awesome men :D thanks :D
installed + MOTM + 5 stars :D |
Thanks a lot for This
|
can I change the word ? "Please Login or <a href="register.php">Register</a> to see codes" i try but it didnot change any suggestion ?
|
I've a little problem... sometimes when I put my codes in the bbc tags , or even the registers users it appear the message "Please Login or Register to see the code"
How I can fix it? |
|
ok :)...... I'm using other style, I'm going to try if continue this problem or not ;)
thanks anyway :D |
All I did as you wrote. However, when I wanted to edit bbcode_php, I got the following message:
"1||1313150055||80.65.85.121||s=&do=add&dostyleid= 41&title=bbcode_php&group=bbcode&searchstring=&exp andset=41|| http://xxx.com/admincp/template.php?...e||Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0Access Denied, you have been logged." What is the problem Can you help me? Thank you! |
i have done everything .. now tell me how to tell which content to hide ....
|
At your live demo I can see the code for the embedded clocks just fine. Even nabbed one.
|
i can see too.
|
Quote:
Necessary must uncouple him, install the product then once again to include. |
Quote:
|
Quote:
|
as far as I know it is because bbcode template is cached
|
Not Success. It hides with all groups!
|
not working, show for admin and all groups ! -.- not for Guest's
|
|
hope someone can help with this, I tried using vb4.2 and failed! will this hide custom bbcodes?
|
Been looking for this, thanks a bunch, tagged for now, will install later. :)
Quote:
|
I don't know why this code doesn't function well, but maybe we can reverse the method.... instead of assigning a condition against the "guest", we can assign a condition for members only....
we will use the same steps the coder did, as the following: Open the bbcode_code template and find: PHP Code:
PHP Code:
meaning instead of adding this code: PHP Code:
PHP Code:
|
^this worked :) thanks!
|
I take that back, it does work but when a post was JUST posted....the link shows until I edit the post and save, only then the please register appears.
Has anyone experienced this issue? |
can anyone make this work properly ? i really need this.
|
All times are GMT. The time now is 04:41 PM. |
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:
|