iGuest 3 Report post Posted January 5, 2005 hi all admins and mods i also hace a phpnuke site but when i try to add a google adsense to my block i get a error like code not accepted .... Share this post Link to post Share on other sites
iGuest 3 Report post Posted January 5, 2005 This problem was also on another site.... I don't knwow hat they did to fix it. Share this post Link to post Share on other sites
iGuest 3 Report post Posted January 5, 2005 /************************************************************//* Function themeheader() *//************************************************************/ function themeheader() { global $banners, $user, $cookie, $prefix, $user_prefix, $db, $dbi, $sitekey, $sitename, $slogan, $username; cookiedecode($user); mt_srand ((double)microtime()*1000000); $maxran = 1000000; $random_num = mt_rand(0, $maxran); $datekey = date("F j"); $rcode = hexdec(md5($_SERVER[HTTP_USER_AGENT] . $sitekey . $random_num . $datekey)); $code = substr($rcode, 2, 6); $username = $cookie[1]; if ($username == "") { $username = "Anonymous"; } $public_msg = public_message(); echo "$public_msg"; $uresult = $db->sql_query("select user_id from ".$user_prefix."_users where username='$username'"); list($uid) = $db->sql_fetchrow($uresult); $presult = $db->sql_query("select * from ".$prefix."_bbprivmsgs where privmsgs_to_userid='$uid' AND (privmsgs_type='0' OR privmsgs_type='1' OR privmsgs_type='3' OR privmsgs_type='5')"); $pnumrow = $db->sql_numrows($presult); /*if ($username == "<font class="content">Anonymous</font>n") { $priv_msgs = "<font class="content">| <a href="modules.php?name=Your_Account&op=new_user"><font class="content">Register</font></a></font>n"; } else { $priv_msgs = "<a href="modules.php?name=Private_Messages"><b> $pnumrow</b></a>n"; }*/ $priv_msgs = "<img src="themes/DRZone/images/have.gif" border=0><a href="modules.php?name=Private_Messages"><b> $pnumrow</b></a> <img src="themes/DRZone/images/msg.gif" border=0>"; if ($username == "Anonymous") { $theuser = "<form action="modules.php?name=Your_Account" method="post"> <input type="text" name="username" value="username" onFocus="if(this.value=='username')this.value='';" value style="width:80;height:16;FONT-SIZE: 10px;"> <input type="password" name="user_password" value="password" onFocus="if(this.value=='password')this.value='';" value style="width:80;height:16;FONT-SIZE: 10px;"><input type="hidden" name="random_num" value="$random_num"><input type="hidden" name="gfx_check" value="$code"><input type="hidden" name="op" value="login"> <input type="image" class="liteoption1" value="login" src="themes/DRZone/images/login.gif"></TD></form>n"; } else { $theuser = " <font class=content><img src="themes/DRZone/images/welcome.gif" border=0><b> $username</b> $priv_msgs</font></TD>n"; } $searchbox1 = " <div align="right"><form action="modules.php?op=modload&name=Search&file=index" method="post">" . "<input name="search" type="image" id="search" value="search" src="themes/DRZone/images/search1.gif" alt="Submit Search">" . " <input name="query" type="text" id="query" value="type search here" onFocus="if(this.value=='type search here')this.value='';">" . " </form></div>"; echo "<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">n"; include("themes/DRZone/header.php");echo"<table width="100%" border="0" cellspacing="0" cellpadding="0">" . " <tr>" . " <td width="39" valign="top" background="themes/DRZone/images/leftside.gif"><img src="themes/DRZone/images/leftside.gif" width="39" height="1"></td>" . " <td width="167" valign="top">" .""; global $swapleftright; $swapleftright = "1"; if (($name=='Forums') OR ($name=='Private_Messages') OR ($name=='Members_List')) { } else { blocks(left); }; $swapleftright = "1";echo"</td>" . " <td width="100%" valign="top">" ."";}?><div align="center"><script type="text/javascript"><!--google_ad_client = "pub-8111357276986614";google_ad_width = 728;google_ad_height = 90;google_ad_format = "728x90_as";google_ad_channel ="";google_color_border = "6699CC";google_color_bg = "003366";google_color_link = "FFFFFF";google_color_url = "AECCEB";google_color_text = "AECCEB";//--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div><?php....?> NOTE::this is not the standard theme, you must adapt your own, so do please not copy this code Share this post Link to post Share on other sites
iGuest 3 Report post Posted January 6, 2005 ok...will try Share this post Link to post Share on other sites
iGuest 3 Report post Posted January 6, 2005 it works thx Share this post Link to post Share on other sites
iGuest 3 Report post Posted January 6, 2005 I thought google ads were not allowed.Banners are not allowed are they? hmm... weird... I dont know. Share this post Link to post Share on other sites