vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Hack so Guests can't view [code] tags... (https://vborg.vbsupport.ru/showthread.php?t=140357)

Kirk Y 02-25-2007 06:28 PM

Yeah, I was just giving the basic concept - an else statement is assumed.

ShatterStudios 02-25-2007 10:04 PM

So can one of you show me the exact code I need to use and which code to replace? And where it's at.

harmor19 02-25-2007 10:29 PM

Quote:

Originally Posted by ShatterStudios (Post 1190646)
So can one of you show me the exact code I need to use and which code to replace? And where it's at.

I'm not going to show you because you need to put in an effort first.

Kirk Y 02-25-2007 10:31 PM

In bbcode_code and bbcode_code_printable find:
Code:

$code
Replace with:
Code:

<if condition="$bbuserinfo[userid] == '0'">Only Registered Users may view Code.
<else />$code</if>

Edit: Whoops... sorry Harmor, your post wasn't there when I posted. :p

ShatterStudios 02-25-2007 10:37 PM

Quote:

Originally Posted by harmor19 (Post 1190661)
I'm not going to show you because you need to put in an effort first.

I'm sorry. I honestly know nothing about coding. My coder hasn't been online in about a week and I need this pretty bad.

Quote:

Originally Posted by acidburn0520 (Post 1190663)
In bbcode_code and bbcode_code_printable find:
Code:

$code
Replace with:
Code:

<if condition="$bbuserinfo[userid] == '0'">Only Registered Users may view Code.
<else />$code</if>

Edit: Whoops... sorry Harmor, your post wasn't there when I posted. :p

I tried that and it didn't work...

Even AcidBurner couldn't help and I gave him admin access. Anyone else care to help?

ShatterStudios 02-26-2007 10:40 PM

Anyone else know what might be wrong? It's still not working.

Zia 02-28-2007 04:18 PM

Quote:

Originally Posted by acidburn0520 (Post 1190663)
In bbcode_code and bbcode_code_printable find:
Code:

$code
Replace with:
Code:

<if condition="$bbuserinfo[userid] == '0'">Only Registered Users may view Code.
<else />$code</if>

Edit: Whoops... sorry Harmor, your post wasn't there when I posted. :p


ahha..using the same idea

[img] tag also can be hide from guest?
so guest cant see image?

Right?

AMG021 02-28-2007 10:04 PM

<a href="https://vborg.vbsupport.ru/showthread.php?t=105160&highlight=hide+bbcode" target="_blank">https://vborg.vbsupport.ru/showt...ht=hide+bbcode</a>


All times are GMT. The time now is 01:18 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.01144 seconds
  • Memory Usage 1,729KB
  • 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
  • (6)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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