vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How do I get custom page to show on Whos Online? Define(THIS_SCRIPT', 'My SCRIPT') (https://vborg.vbsupport.ru/showthread.php?t=117141)

Quarterbore 05-30-2006 06:13 PM

How do I get custom page to show on Whos Online? Define(THIS_SCRIPT', 'My SCRIPT')
 
I have a custom script that I have programed for my site and following is the key vBulleting code that I have included....

PHP Code:

<?php
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// #################### DEFINE IMPORTANT CONSTANTS #######################
define('THIS_SCRIPT''Resorts_Database');

// ############# REQUIRE BACK-END #######################

require_once('./global.php');
// require_once(DIR . '/includes/functions_bigthree.php');
// require_once(DIR . '/includes/class_postbit.php');

// ############# Get Some templates #######################

eval('$headinclude = "' fetch_template('headinclude') . '";');
eval(
'$header = "' fetch_template('header') . '";');
eval(
'$navbar = "' fetch_template('navbar') . '";');

// ############# Output templates #######################

echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';
echo 
'<html dir="' $stylevar[textdirection] . '" lang="' $stylevar[languagecode] . '">';
echo 
$headinclude;
echo 
'<body>';
echo 
$header;
echo 
$navbar;

MY CODE HERE

echo $footer;

It does not look like my code "define('THIS_SCRIPT', 'Resorts_Database');" is allowing the whosonline to know where the member is at....

Can someone please help me understand how this works and what I need to do to allow the system to see a person that is in my custom page?

I have not managed to build my breadcrumbs for my navbits yet so if that is the problem let me know and I will put a priority to getting them up.

Do I need to add this to the "functions_online.php" file?

Spinball 07-05-2010 07:17 AM

I need the answer to this as well. Can anyone help, please?

BirdOPrey5 07-05-2010 01:32 PM

You need to ad a plugin for the location to be shown...
https://vborg.vbsupport.ru/showthread.php?t=230416


All times are GMT. The time now is 08:39 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.01153 seconds
  • Memory Usage 1,721KB
  • 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)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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