Log in

View Full Version : determing if page is an error or redirect


AN-net
01-12-2005, 05:22 PM
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...