Announcement

Collapse
No announcement yet.

phpadsnew cookie problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • phpadsnew cookie problem

    I have a file called maxforum.php (max was an old name for phpAdsNew)
    Code:
    <?php
    function getMaxZone($zone, $center=true)
    {
    	$active = true;
    	$output = '';
    	if ($active)
    	{
    		$sectionName = 'forum';
    		if ($center == 1) $output .= "<center>";
    		require_once('/var/users/sitename/htdocs/administrator/max/phpadsnew.inc.php');
    		if (!isset($phpAds_context)) $phpAds_context = array();
    		$phpAds_raw = view_raw ('zone:'.$zone, 0, '_blank', $sectionName, '0', $phpAds_context);
    	   
    		$output .= $phpAds_raw['html'];
    		if ($center == 1) $output .= "</center>";
    		
    	}//active check, to make it easier to disable.
    	return $output;
    }
    ?>
    Then in phpinclude_start
    Code:
    ob_start();
    include '/var/users/sitename/htdocs/includes/maxforum.php';
    
    $billboard = getMaxZone(1);
    $footer_left = getMaxZone(12, false);
    $footer_right = getMaxZone(13, false);
    $max_left_1 = getMaxZone(8);
    $max_left_2 = getMaxZone(9);
    $max_left_3 = getMaxZone(10);
    $max_left_4 = getMaxZone(11);
    $max_left_5 = getMaxZone(14);
    ob_end_clean();
    and I can just place those ads where they are needed.

    Now this seems to be the easiest thing in the world - until a user tries to log out and then it can't clear the cookies! I need to resolve that one.

    Sarah
    Simple SEO

  • #2
    Try removing your code to see if the problem goes away.

    Comment


    • #3
      Oh! my post got removed into it's own thread. It was meant to build on the other but just give the proviso about the cookies. I posted that problem here: http://www.vbulletin.com/forum/showthread.php?t=148878

      I know that the code is causing the problem because if I remove the code it does go away. But if I remove the code I don't have my ads either...

      So I need to find the solution where users can log off and the forum can have it's ads.

      Sarah
      Simple SEO

      Comment


      • #4
        You should contact the author of your banner code. We cannot support custom code when it causes problems like this.

        Comment


        • #5
          Thanks Jake

          I wasn't asking for support of the custom code, just the integration.

          If anyone else finds this thread the solution is at http://forum.phpadsnew.com/index.php?showtopic=8281

          Sarah
          Simple SEO

          Comment

          Loading...
          Working...
          X