Log in

View Full Version : who';s online wierdness in 3.8.4


sailnet
11-25-2009, 05:50 PM
I created a new php module according to the instructions on vb.com so that I could have a custom page for my advertisers - see php code below

and now when I check the who's online - just about everyone online shows up as being on that page even though I know thy are not on that page.

any ideas why?

<?php
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'advertisers'); // change this depending on your filename
// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array(
);
// get special data templates from the datastore
$specialtemplates = array(
);
// pre-cache templates used by all actions
$globaltemplates = array(
'advertisers',
);
// pre-cache templates used by specific actions
$actiontemplates = array(
);
// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
// ################################################## #####################
// ######################## START MAIN SCRIPT ############################
// ################################################## #####################
$navbits = array();
$navbits[$parent] = 'Our Advertisers Page';
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('advertisers') . '");');
?>

Lynne
11-25-2009, 06:00 PM
That's all that is in your php page? What about in your template?

sailnet
11-25-2009, 06:25 PM
yes - that's all there is on my php page - the template is included below

thank you


$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle]</title>
$headinclude
</head>
<body>
$header

$navbar

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat">Advertise on Speedwake</td>
</tr>
<tr>
<td align="center" class="alt1"><span class=largefont><b><br>Advertising on this site is value priced and simple. Our standard monthly fee to display your left column ad (185 wide by up to 300 tall) and your industry standard 468 x 60 is only $100/month billed to a credit card.<br>We also offer a 15% discount if you pay for a year in advance. <br><br>WE GUARANTEE that your ads are displayed at least 30,000 times every month (total between the two ads). You'll also receive a custom Advertising Campaign Performance Report every 14 days showing number of ad impressions and number of clicks through to your website. <br><br>Contact jeff @ thissite.com or 610 xxx xxxx to get started today.</b></span><BR><BR>
<img src="http://www.thissite.com/forums/images/advertise.gif" border="0" align="top" alt=""></td>
</tr>
</table>

$footer
</body>
</html>

Lynne
11-25-2009, 08:08 PM
Odd. Try disabling your plugins and see if you still have the problem.
Note: To temporarily disable the plugin system, edit config.php and add this line right under <?php

define('DISABLE_HOOKS', true);

sailnet
11-26-2009, 10:47 AM
thanks - that's not really an option at this point in time since that would cripple my forum, but I'll setuo a test forum and try it there in a few days.

thanks