| | 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 .... |
|
|
This problem was also on another site.... I don't knwow hat they did to fix it.
CODE /************************************************************/ /* 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
ok...will try
it works thx
I thought google ads were not allowed.
Banners are not allowed are they? hmm... weird... I dont know.
Similar Topics
Keywords : google, adsense
(3) Google has launched an official portal for non-profit organizations. Various services offered 1. swim across atlantic ocean (14) http://maps.google.com/maps?f=q&hl=en&...265625&om=1 Check out step 24... HA!.... (17) Go to google.com. Search for Failure and Hit I'm Feeling Lucky. You'll have a weird result. (2) It's a new service from google! You can post your Videos and let's wait for the people on the keywords search result (6) and bad luck. it's have been 2 days. when i entered my site title,i just can not found my site Google Bomb! The largest one! (9) QUOTE Yooter InterActive Marketing Discovers the Largest Google Bomb Ever Yooter InterActive (1) Hello please remove the spam corner forums google will shut the down the ads because of the spam (11) Are google ads allowed on free hosting accounts such as those hosted on vaio-hosting?.... (0) Adding Google Ads in PhpNuke Platinum - what file do I edit to add them, and where in the file? (12) djbungle, It has been reported to me, that previously members were being requested to click (2) hey - i just made myself a stats logger, but googlebot has visited pages on my site about 250 times (2) hi guys, i've got some free token to invite people to gmail, so if anyone interested... sorry (15) Okay, I would like to inform every member thinking of getting their sites linked. Google. This is (17) hi...i have a site at http://exge.freefronthost.com and i added the google adsense code in blocks (1) hi guys i have a phpbb forum and i want to put a google adsense banner how can i do it? (21) I put the google ads on my website two days ago and I already love it! I got paid a lot for one (24) Okay, everybody knows what Google is. A search engine.... But, did you know what other cool stuff (3) Tell me what i need! :wink:.... (12) first post here /tongue.gif' border='0' style='vertical-align:middle' alt='tongue.gif' /> I (8) I am very curious how the adds by google works. Where do you go to sign up to post adds on a (4) Now you can search gmail with google deskbar!!!! It needs the latest version of google deskbar (17) I noticed you have some google ads on this website. Can't we just place them on our websites too, Spyware / virus infects Google. (5) QUOTE Google Error We're sorry... ... but we can't process your request (20) WOW! Google just got a new feature! A suggest feature! When you search, it will The google email host, every1 talks abot (-1) ...according to google, sortof (4) Ok, there have been a few heated discussions about Internet Service providers on trap17 lately, Looking for google, adsense
|
|
![]() google adsense |
| ADD REPLY / Got an Opinion! | Remove these ADs! | RAPID SEARCH! | Free Web Hosting | [X] |
|
Express your Opinions, Thoughts or Contribute more info. to help others. Ask your Doubts & Queries to get answers, So that "Together We can help others!" |
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP. | 500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE |
|