View Full Version : Placing adsense into my script
TheWebJunkie
Mar 15th 2005, 5:03 pm
Hey guys i would like to place the new google adlinks from adsense into my script, i would like to place it where i have pointed out in the pic :)
http://www.sigstorage.com/upload/1921-Untitled-1.jpg
Here is the code for my view.php file
http://www.sigtraders.com/view.txt
And here is my adsense code i wish to use
<script type="text/javascript"><!--
google_ad_client = "pub-XXXXXXXXXXXXXXX";
google_ad_width = 200;
google_ad_height = 90;
google_ad_format = "200x90_0ads_al";
google_ad_channel ="";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_url = "008000";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
Thanks in advance :)
NewComputer
Mar 15th 2005, 5:06 pm
I don't think you can because it looks like you would have to login or register to get to that page and that would be against their TOS...
TheWebJunkie
Mar 15th 2005, 5:09 pm
I don't think you can because it looks like you would have to login or register to get to that page and that would be against their TOS...
You dont have to login or reg to view a members profile where i want the ads.
wendydettmer
Mar 15th 2005, 7:28 pm
Are you asking if we think it's a good placement? I think the new adlinks would work quite well in that spot. Let us know how they work out!
TheWebJunkie
Mar 16th 2005, 1:45 am
im asking how to place the new adlinks in that spot :) that why i have included my adsense code and the code for my view.php file :)
wendydettmer
Mar 16th 2005, 7:24 am
Ah. You will probably have better luck if you ask under the php or web development section.
yfs1
Mar 16th 2005, 7:28 am
You might want to put a priority on fixing:
Find A Seller.
Use the form below to search for sellers via keywords.
It has never worked (for me anyway)
TheWebJunkie
Mar 16th 2005, 12:43 pm
You might want to put a priority on fixing:
Find A Seller.
Use the form below to search for sellers via keywords.
It has never worked (for me anyway)
The find a seller option works try a keywork like design.
Also if you dont want to search by keywords you can just press list all sellers :D
Josh
Mar 16th 2005, 12:48 pm
Find:
<table width='160' border='0' align='center' cellpadding='2' cellspacing='1' bgcolor='#FFFFFF'>
<tr bgcolor='#103463'>
<td height='20' width='160' colspan='2' class='td2'>
<font color='#FFFFFF'>
Make Seller An Offer
</font></td>
</tr>
<tr>
<td valign='center' align='center' height='100%' bgcolor='#FFFFFF'>
<br>
<center><input type=submit name=offer value='Send An Offer'><br><font size='1'>(By PM)</font></center><br>
</td>
</tr>
</table>
After, add:
<table width='160' border='0' align='center' cellpadding='2' cellspacing='1' bgcolor='#FFFFFF'>
<tr bgcolor='#103463'>
<td height='20' width='160' colspan='2' class='td2'>
<font color='#FFFFFF'>
Advertisments
</font></td>
</tr>
<tr>
<td valign='center' align='center' height='100%' bgcolor='#FFFFFF'>
<br>
<center><script type="text/javascript"><!--
google_ad_client = "pub-XXXXXXXXXXXXXXX";
google_ad_width = 200;
google_ad_height = 90;
google_ad_format = "200x90_0ads_al";
google_ad_channel ="";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_url = "008000";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></center><br>
</td>
</tr>
</table>
I think that should work :P
Josh
TheWebJunkie
Mar 16th 2005, 12:59 pm
Nice one Josh im at a friends house atm playing metal gear on ps2, ill test this when im home and let you know if it works :)
Josh
Mar 16th 2005, 1:52 pm
Alright :) Hope it works.. basically its just adding another box (if I read your code right)
Josh
TheWebJunkie
Mar 16th 2005, 2:12 pm
Alright :) Hope it works.. basically its just adding another box (if I read your code right)
Josh
Im surprised you can read the code its very messy indeed, im hiring a new coder to make my site much cleaner and add a user feedback system :)
Josh
Mar 16th 2005, 2:37 pm
*sigh* My domain lifelessgeek.com really fits me, doesn't it? :P
Josh
TheWebJunkie
Mar 16th 2005, 2:40 pm
*sigh* My domain lifelessgeek.com really fits me, doesn't it? :P
Josh
What do you mean by that josh?
TheWebJunkie
Mar 16th 2005, 2:44 pm
hey Josh your code didnt work :(
i got this error
Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home2/webjunki/public_html/view.php on line 235
Josh
Mar 16th 2005, 2:53 pm
Yeah.. thats because the "'s in the adense code need to be escaped, i.e. instead of " it should be /" -- email me your modified file, and Ill fix it for you. josh ----at---- thejosher [[dot]] com
Josh
TheWebJunkie
Mar 16th 2005, 3:00 pm
Thanks alot josh, email sent :)
Josh
Mar 16th 2005, 3:06 pm
And reply was sent :) Within one minute I might add ;)
Hope it works.
Josh
anthonycea
Mar 16th 2005, 3:08 pm
Rent-a-Josher.com
TheWebJunkie
Mar 16th 2005, 4:24 pm
check your email please josh :)
Weirfire
Mar 16th 2005, 4:26 pm
ROFL WebJunkie
I make up the term 'Adsense Police' and now it's everywhere thanks to you. Nice avatar :)
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.