vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Remvoing external.php on external pages (https://vborg.vbsupport.ru/showthread.php?t=203779)

mooreaa 02-01-2009 12:36 AM

Remvoing external.php on external pages
 
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)


All times are GMT. The time now is 03:22 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.00985 seconds
  • Memory Usage 1,711KB
  • 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
  • (4)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