vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Mini Mods - Hide BB Code Content From Unregistered Users (https://vborg.vbsupport.ru/showthread.php?t=265063)

gendhenk 05-29-2012 04:39 AM

http://s11.postimage.org/5jsth781u/n...529_123620.jpg
why error?
I admin,no guest
please help my

faisaly.com 02-01-2013 04:23 PM

hope someone can help with this, I tried using vb4.2 and failed! will this hide custom bbcodes?

neya 02-18-2013 12:53 PM

Been looking for this, thanks a bunch, tagged for now, will install later. :)

Quote:

Originally Posted by faisaly.com (Post 2401088)
hope someone can help with this, I tried using vb4.2 and failed! will this hide custom bbcodes?

Yep, I just tried it and it failed to work. Using 4.2

fxdigi-cash 03-11-2013 08:18 PM

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:

<div class="bbcode_description">{vb:rawphrase code}:</div

and insert below it:
PHP Code:

<vb:if condition="is_member_of($bbuserinfo, 1,2,3)"

and will do the same to the rest of the codes....

meaning instead of adding this code:
PHP Code:

<vb:if condition="$show['guest']">
<
pre class="bbcode_code">{vb:rawphrase hide_code}</pre>
<
vb:else /> 

we will add this code for the allowed user groups:
PHP Code:

<vb:if condition="is_member_of($bbuserinfo, 1,2,3)"

save the changes in each template and see whether it works or not...logically, it should work, but didn't test it...

MissKalunji 03-25-2013 03:40 AM

^this worked :) thanks!

MissKalunji 04-04-2013 02:25 PM

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?

semaster 07-04-2014 06:23 PM

can anyone make this work properly ? i really need this.


All times are GMT. The time now is 10:02 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
  • Page Generation 0.01092 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete