vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   making variables work outside of the forum directory? (https://vborg.vbsupport.ru/showthread.php?t=250767)

BigJohnny 09-18-2010 06:01 PM

making variables work outside of the forum directory?
 
Ive got a custom index.php file created using an article to make a custom vB page. This index file resides outside of the forums directory, but will be the main index for my site.

I have it working to the point that it loads the style and everything else, but I added the whats going on box, and birthdays and stuff to this custom index, but none of the variables work.

so it simply says Most users ever online was , at .

$recordusers, $recordtime, and $recorddate aren't being parsed, or the information isn't there.

one last thing, with the custom index file, since it isn't showing forums or anything, do I need template hooks from FORUMHOME or can they be removed?

--------------- Added [DATE]1284851679[/DATE] at [TIME]1284851679[/TIME] ---------------

I've looked everywhere I can think of, I don't know what I need to change to get those variables to show up on a page that is outside of the forums directory. everything else seems to be working.

--------------- Added [DATE]1284918581[/DATE] at [TIME]1284918581[/TIME] ---------------

Cleared this one up.

Looking in the index.php file for vBulletin I just copied the code to my custom page and now it works great.

Actually thanks to this method I've gotten quite a few things tied into a main site index page.


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