vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   determing if page is an error or redirect (https://vborg.vbsupport.ru/showthread.php?t=74264)

AN-net 01-12-2005 05:22 PM

determing if page is an error or redirect
 
is there a way or variable that allows me to know if the page is an error or redirect? i am asking because i dont want certain content such as ads and stuff being displayed on an error or redirect page. thanks in advance:)

rake 01-12-2005 07:05 PM

You mean within a phrase, or what?

AN-net 01-12-2005 08:44 PM

i mean say it gives you the error login message or the error page, i dont want certain things to show on those pages

rake 01-13-2005 06:35 AM

then edit the STANDARDERROR template.

AN-net 01-13-2005 04:54 PM

well this add shows on every page in the footer but i just dont want it to be shown when an error or redirect is present

AN-net 01-17-2005 04:06 PM

bump

Marco van Herwaarden 01-17-2005 07:59 PM

You could try editing the includes/functions.php. Find there the function 'standard_error'. In here set a var indicitating no banner wanted. Then test in the header or wherever the banner is shown on this var, and if set don't put out the banner.

Not tested this, but i would give it a go.

AN-net 01-17-2005 08:12 PM

oo good idea, ill bring back my results;)

AN-net 01-17-2005 08:45 PM

ok well i can get it echo a variable i defined to the error page but not to the footer template itself, how would i got about doing that?

miz 01-17-2005 11:18 PM

maybe think about create footer2 template
footer2 will be same as footer only with out the banners
then on the error and redirect function its will call footer2 template instead of footer...
can work...


All times are GMT. The time now is 07:43 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.01078 seconds
  • Memory Usage 1,712KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete