PDA

View Full Version : Remvoing external.php on external pages


mooreaa
02-01-2009, 12:36 AM
Hello,

I have my site setup as such:

mysite.com/forums/ vbinstall
mysite.com/tos.php

tos.php is an external page that uses the template system and everything is working just fine except I want to disable the RSS feed on my tos page

I see the condition its looking for in headerinclude: $vboptions['externalrss']
But when I set this variable from my tos.php script : $vboptions['externalrss'] = false;

it doesn't do anything.

How can I turn this off from some of my pages?

Lynne
02-01-2009, 02:16 AM
You are doing that in the php, right? You would use $vbulletin->options instead of $vboptions in php ($vboptions is for use in the templates).

mooreaa
02-01-2009, 02:43 AM
Lynne, I tried that, but didn't have any luck.

I'm using the code form this article: https://vborg.vbsupport.ru/showthread.php?t=62164

I guess I'm not quite sure where to place that command in the php file. If I do it before the global.php include it doesn't do anything, and if I do it after, $headerinclude is already defined and evaluated.

Lynne
02-01-2009, 03:51 AM
Did you try creating a plugin at global_start and adding that in? But put a condition around it so it only happens on your page (whatever you call your page as defined by THIS_SCRIPT)