Auto Loans - Loans - Mortgage Calculator - Montana Music - Mortgages

PDA

View Full Version : HEEEEEEEELPPPPPPP!! Site weight dropped to zero!!


msaad
Dec 14th 2004, 9:03 am
Hi,
My site has been having a weight of over 15000 for the past month. Yesterday, I have updated the php file (as requested in an email sent to me), and now suddenly... my weight dropped to zero!

The site says that "Ads appear to be live", and they do actually appear on my site
(http://www.themagicseal.com/forum)

However, my weight is zero! What happened to me?

Thanks a lot...
msaad

T0PS3O
Dec 14th 2004, 9:05 am
Tried validating again?

a389951l
Dec 14th 2004, 9:08 am
Did you flush out your ad_network_ads.txt?

msaad
Dec 14th 2004, 9:28 am
Just did. Thank for the tip. It is scary how many people never read instruction to the end. :D (was it really in the instructions?)
Hope this corrects the problem

Just a quick question... This is the code i use to display 5 versions of the ads..
Is this correct? I am not very much of a php guy!




//
include ($phpbb_root_path . 'ad_network.php');
$template->assign_vars(array('AD_NETWORK' => $ad_network[0]));
unset ($ad_network);

include ($phpbb_root_path . 'ad_network.php');
$template->assign_vars(array('AD_NETWORK2' => $ad_network[0]));
unset ($ad_network);

include ($phpbb_root_path . 'ad_network.php');
$template->assign_vars(array('AD_NETWORK3' => $ad_network[0]));
unset ($ad_network);

include ($phpbb_root_path . 'ad_network.php');
$template->assign_vars(array('AD_NETWORK4' => $ad_network[0]));
unset ($ad_network);

include ($phpbb_root_path . 'ad_network.php');
$template->assign_vars(array('AD_NETWORK5' => $ad_network[0]));
unset ($ad_network);

Thanks a lot in advance.

Foxy
Dec 14th 2004, 10:35 am
Just did. Thank for the tip. It is scary how many people never read instruction to the end. :D (was it really in the instructions?)
Hope this corrects the problem

Just a quick question... This is the code i use to display 5 versions of the ads..
Is this correct? I am not very much of a php guy!




//
include ($phpbb_root_path . 'ad_network.php');
$template->assign_vars(array('AD_NETWORK' => $ad_network[0]));
unset ($ad_network);

include ($phpbb_root_path . 'ad_network.php');
$template->assign_vars(array('AD_NETWORK2' => $ad_network[0]));
unset ($ad_network);

include ($phpbb_root_path . 'ad_network.php');
$template->assign_vars(array('AD_NETWORK3' => $ad_network[0]));
unset ($ad_network);

include ($phpbb_root_path . 'ad_network.php');
$template->assign_vars(array('AD_NETWORK4' => $ad_network[0]));
unset ($ad_network);

include ($phpbb_root_path . 'ad_network.php');
$template->assign_vars(array('AD_NETWORK5' => $ad_network[0]));
unset ($ad_network);

Thanks a lot in advance.

It should be like this [or similar as this puts a pipe between the ads:

<?php
ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
include ('ad_network.php');
echo $ad_network[0];
?> |
<?php
ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
include ('ad_network.php');
echo $ad_network[1];
?> |
<?php
ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
include ('ad_network.php');
echo $ad_network[2];
?> |
<?php
ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
include ('ad_network.php');
echo $ad_network[3];
?> |
<?php
ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
include ('ad_network.php');
echo $ad_network[4];
?>

eeve
Dec 15th 2004, 8:51 am
Actually...

Do this:



<?php
ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
include ('ad_network.php');
echo $ad_network[0];
echo " | ";
echo $ad_network[1];
echo " | ";
echo $ad_network[2];
echo " | ";
echo $ad_network[3];
echo " | ";
echo $ad_network[4];
?>




Including the php file multiple times is very bad programming style...

Or.. to keep your html clean, put those echo statements IN the ad_network.php file at the end. This way if you decide to change the # of ads shown or the format, you only have to change it in one place.