PDA

View Full Version : Adding javascript image link in user profile?


bigtime
01-17-2006, 05:22 AM
Hi,

On the Edit Profile page, I want to add the following code to display a link to google adsense:

Click the image below to signup for google adsense: <script type="text/javascript"><!--

google_ad_client = "pub-4166677013602529";

google_ad_width = 110;

google_ad_height = 32;

google_ad_format = "110x32_as_rimg";

google_cpa_choice = "CAAQ0ZGazgEaCNfGe9Y_ARDqKPmNxXQ";

//--></script>

<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">

</script>


On the edit profile page:

http://www.defend.net/deluxeforums/profile.php?do=editprofile
I have a custom field at the bottom and I'd like that code to appear there.

This is what I have now as a custom field:

Google AdSense Client ID

If you have an AdSense account, you can enter your client ID here. 50% of the revenue generated from the AdSense ads clicked on are credited to your account on threads you participate in. It should be in the form of pub-xxxxxxxxxxxxxxxx

I would like the image to be displayed somewhere near that.

How do I do that?

Thanks,

Tim