How to Put Google Adsense in a Profile
You can put Google Adsense using two techniques. This one shows you how to do it using the page_7.html page, which drives the profile.php page. The second way uses the profile builder thereby giving you more control.
What you do is open up the page_7.html page located in templates/tmpl_uni
When you open it you will see:
__include _header.html__
<div class="divUnderCustomization">
__page_main_code__
<div class="clear_both"></div>
</div>
__include _footer.html__
If you look at it, it is the framework for the page. If we do this:
__include _header.html__
<div class="divUnderCustomization">
__page_main_code__
<div class="clear_both"></div>
</div>
<script type="text/javascript"><!--
google_ad_client = "pub-0915650683949696";
//200x200, created 1/19/08
google_ad_slot = "4038161912";
google_ad_width = 200;
google_ad_height = 200;
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
__include _footer.html__
The Google Adsense will show up at the bottom of the page. And that's it. If it doesn't immediately show up, then wait a few minutes. It needs to be "found" by Google.
The next one is a few more steps but give you the flexibility to "place" the ad in your profiles page.
How to Put AdSense in a Block
Now here's the way to do it so that it's in a block. What we want to do is create a custom block. Once made we can then dump our Google Adsense in there. So here's what you do.
1. Login to your admin.
2. Go to Builders > Profile Builder.
3. You will see at the top Active items and at the bottom All items. We want to drag a NEW BLOCK into the Active items area.
4. Select a NEW BLOCK and drag it over to the Active items area. You can place it just about anywhere. It doesn't matter at this point.
5. Once the NEW BLOCK is in the Active items area, click on the word "NEW BLOCK". A dialog box should pop up asking for:
System Name
Language Key
Default Name
Visible for
and then you will see the TinyMC editor.
For the values you can use these for now:
System Name: AdSense
Language Key: _AdSense
Default Name: AdSense
Visible for : check guest and member
Once you hit save, it will make an entry in the database. The information you enter into the TinyMC editor will then be reflected in your Language Settings for the newly created block.
You then need to go to your database to update the information that particular block will be displaying. I will be using phpMyAdmin. You can usually access it via cpanel.
In phpMyAdmin, find the ProfileCompose table. And locate the record that has the title field "AdSense". Click to edit and it will show you the field values for that record. In the content field, paste your AdSense code and save.
It will then show up in your profile.
Seeing that we created it with using a NEW BLOCK as the template. You can then move it around like any other block. This technique is much more flexible than the first one.
Download(s)
N/A
Addendum
N/A

ssss |