vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - Block PHP, CODE, HTML and QUOTES from Guests for vB3.7 (https://vborg.vbsupport.ru/showthread.php?t=178176)

Boofo 05-16-2008 08:27 PM

The code files use the <if condition="$show['member']"> to stop unregistered users from seeing code in posts. Try testing that line with something in a post and see if it works. I can't see how that is not working. Something somewhere is messing with it.

veenuisthebest 05-16-2008 09:59 PM

I noticed few things sir,

1. The mod. is working fine for me in archive pages as well as for printable view threads :up:

2. Now, for the main view, even this simple text line (Double-click CODE box to copy code to clipboard) is not showing up over the Code box. Then when I tried to edit the post and save it, that line appeared. But still, code box is visible for guests. Is it something to do with caching of posts ??

thank you

Boofo 05-16-2008 10:06 PM

Have you changed the post cache time? And I meant to use this in a template to see if it got past it, like this

<if condition="$show['member']">
testing
</if>

veenuisthebest 05-16-2008 10:30 PM

my Cached Posts Lifespan is set to 7 days

Quote:

<if condition="$show['member']">
testing
</if>
yes.. this works just fine. I tried adding this code in footer and it showed testing at the footer only for members and not for guests !!

veenuisthebest 05-16-2008 10:33 PM

I see it in boofobbcode_code template, the code box is wrapped in the same conditional, then how can guests are able to view it ??

Boofo 05-16-2008 10:40 PM

Because somewhere along the line that template is not replacing the original one. There must be a bbcode hack you installed that is messing with this.

veenuisthebest 05-16-2008 10:42 PM

there is no bbcode hack i have installed other than this

Boofo 05-16-2008 11:34 PM

Then I don't know what to tell you. Something has changed somewhere as there is no way this hack can partially stop working on it's own. My advice is to uninstall it if it isn't going to work for you with whatever you have changed.

DiverTree 05-17-2008 12:18 AM

still working fine for me ... and i hacked that template all up. :o

Boofo 05-17-2008 03:50 AM

See? There you go. Another satisfied customer. ;)


All times are GMT. The time now is 08:40 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
  • Page Generation 0.01434 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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