|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
For those wanting to add a Google Adsense block, copy the following (with your advertiser id) into a custom block: /* 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.
|
|
|
|
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 
|
|
|
|
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#Post14424Replace your portal_box_1.tpl with: {* 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: /* 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. 
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 Likes: 20 |
I was contemplating doing something similar, I like it  .
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 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  ...
|
|
|
|
Joined: Oct 2006
Posts: 7
Lurker
|
Lurker
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,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 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...
|
|
|
|
Joined: Oct 2006
Posts: 7
Lurker
|
Lurker
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
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?
|
|
|
|
Joined: Jan 2000
Posts: 5,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 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.
|
|
|
|
Joined: Mar 2007
Posts: 2
Lurker
|
Lurker
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,834 Likes: 20
UBBDev Owner Time Lord
|
UBBDev Owner Time Lord
Joined: Jan 2000
Posts: 5,834 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.
|
|
|
|
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...
|
|
|
|
Joined: Feb 2005
Posts: 7
Lurker
|
Lurker
Joined: Feb 2005
Posts: 7 |
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?
|
|
|
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.
|
|
Posts: 254
Joined: January 2000
|
|
Forums63
Topics37,575
Posts293,931
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|