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
Just did. Thank for the tip. It is scary how many people never read instruction to the end. (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); PHP: 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]; ?>
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]; ?> PHP: 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.