Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
For those wanting to add a Google Adsense block, copy the following (with your advertiser id) into a custom block:
Code
/* PHP CODE HERE */

/* BODY HERE */
$body = <<<EOF
<center>
<script type="text/javascript"><!--
google_ad_client = "pub-5168900358893374";
google_alternate_color = "000000";
google_alternate_ad_url = "http://banners.undergroundnews.com/CS.gif";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_channel ="3810782578";
google_ad_type = "text_image";
google_color_border = "000000";
google_color_bg = "081750";
google_color_link = "FFFFFF";
google_color_url = "CCCCCC";
google_color_text = "FFFFFF";
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</center>
EOF;

You can add this to your forum through the control panel (Control Panel -> Custom Islands -> Custom Island #1); to add the custom island to your forum you will need to edit the forum(s) that you wish it to be provided on and select the island from the "Custom Island Insert" dropdown on the "Custom Inserts" tab.


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Sponsored Links
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
I missed this? Thanks gizzy thumbsup


- Allen wavey
- What Drives You?
Joined: Feb 2001
Posts: 817
Moderator / Kingpin
Moderator / Kingpin
Joined: Feb 2001
Posts: 817
If you're using the Custom Island Insert (between the 1st/2nd post) you can increase your clicks by blending in the ad unit a bit.

Example:
http://www.bowlingcommunity.com/b/ubbthreads.php/ubb/showflat/Number/14424/page/1#Post14424

Replace your portal_box_1.tpl with:
Code
{* Script Version 7.0.0b4 *}
{* $Id: portal_box_1.tpl 354 2006-08-22 21:30:12Z rick $ *}
<?php if(!defined('UBB_MAIN_PROGRAM')) exit; ?>
{$tbopen}
<tr>
<td class="subjecttable">
<span class="small" style="float: right;">
<span id="number33118">#33118</span> - <span class="date">Today at</span> <span class="time">12:01 AM</span>
</span>
<img src="http://www.bowlingcommunity.com/b/images/icons/default/book.gif" alt="" border="0"></a>
<b>
<span id="subject1">{$name}</span></b> <span class="small">

[Re: <span style="color:#000099;text-decoration:underline">First Post</span>]</span>
</td>
</tr>
<tr>
<td class="{$style_side}alt-1">
{$body}
</td>
</tr>
{$tbclose}

Place the following into Content Island:
Code
/* BODY HERE */

$body = <<<EOF
<table border="0" width="100%" cellspacing="0" cellpadding="0"><tr><td class="alt-2" width="17%" valign="top">
<span style="display: none;" id="username33117">Sponsored Links</span>
<b><span id="menu_control_33117" style="color:#000099;text-decoration:underline">Sponsored Links</span></b><br />
<span class="small">
Member
<br />
<img src="/images/general/default/star.gif" title="" alt="*"><img src="/images/general/default/star.gif" title="" alt="*"><img src="/images/general/default/star.gif" title="" alt="*"><img src="/images/general/default/star.gif" title="" alt="*"><img src="/images/general/default/star.gif" title="" alt="*"><br />
<br />
Registered: 27/08/04
<br />
Posts: 10136
<br />
Loc: Mountain View, CA
<br />
</span>
</td>
<td class="post-content" valign="top" width="83%">
<span id="body0">
<script type="text/javascript"><!--
google_ad_client = "pub-9696832784455006";
google_alternate_ad_url = "http://www.insidebowling.com/phpadsnew/alternative300250.php";
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = "300x250_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "000099";
google_color_text = "000000";
google_color_url = "000099";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

</span></td></tr>
<tr>
<td class="alt-2 small" valign="bottom">
<a href="#top">Top</a>
</td>
<td class="post-options" align="right" valign="bottom">
</td>
</tr></table>
EOF;


Joined: Feb 2004
Posts: 182
Member
Member
Joined: Feb 2004
Posts: 182
Good idea. thumbsup

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
I was contemplating doing something similar, I like it smile.


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Sponsored Links
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Hey Steve, i tried out your blending stuff and where I like it quite a bit it doesn't *exactly* match the styles, not sure what html is messed up but its all sorts of out of wack with the table (whereas the left portion of the block was indented slightly so you could see other colors, not to mention hardcoded colors don't allow for it to blend on "other" stylesheets); I'd love it if someone would publish a complete template mod of this in the templates forum if they had the chance wink...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Gizmo #312568 01/07/2007 11:37 PM
Joined: Oct 2006
Posts: 7
Lurker
Lurker
Offline
Joined: Oct 2006
Posts: 7
Is, or could there maybe be someone who would be interested in making a mod where this second post google adsence would NOT be shown to people in a certain group or groups? So maybe contributing or donating users wouldnt see this in the forums? Anyone up for this? (I will sponsor this mod if need be.)

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
It should be possible, and not too difficult imo; You'd have to look at including the groups that a user has access to in the showflat and showthreaded files and work accordingly...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Gizmo #312921 01/26/2007 12:38 PM
Joined: Oct 2006
Posts: 7
Lurker
Lurker
Offline
Joined: Oct 2006
Posts: 7
I'm not a programmer though and want to be sure not to mess up my forums. Maybe i should post this request in another space here? As i said, i would pitch in for this mod if someone could whip it up?

Thanks guys...

Joined: Mar 2007
Posts: 2
Lurker
Lurker
Offline
Joined: Mar 2007
Posts: 2
I dont know if anyone here can help, but I noticed the ads only show when viewing by IE, not foxfire. Is there a way to make them show at all with foxfire?

Sponsored Links
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
They should show if there is data to show... If google doesn't want to serve ads it will show a blank area and can be rather selective.


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Mar 2007
Posts: 2
Lurker
Lurker
Offline
Joined: Mar 2007
Posts: 2
I can see them in IE but not when I use firefox, im at a loss as why. I searched the net, but no real answer there. any suggestions?

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
Unless you have a firefox extention that blocks ads, I have no idea... I run FireFox 2 and I can display google adsense just as well as i can in IE7.


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Apr 2001
Posts: 96
Power User
Power User
Joined: Apr 2001
Posts: 96

I see them with Firefox as well.

As Gizzy said, make sure you're not blocking them with Adblock or some other extension...


GangsterBB.NET (Ver. 7.3)
2007 Content Rulez Contest - Honorable Mention
UBB.classic 6.7.2 - RIP
Browser: Firefox 2.0
Joined: Feb 2005
Posts: 7
Lurker
Lurker
Offline
Joined: Feb 2005
Posts: 7
Originally Posted by usr bin geek
If you're using the Custom Island Insert (between the 1st/2nd post) you can increase your clicks by blending in the ad unit a bit.

How can i display the island after the 5th post or after each 5th post in a thread?


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)