Jump to content


- - - - -

Invision Skin Mod - Google Adsense Skinning Guide


  • Please log in to reply
16 replies to this topic

#1 glen

glen

    Administrator

  • Admin
  • PipPipPipPip
  • 888 posts

Posted 25 May 2005 - 06:04 AM

Hi everyone,

I have been experimenting today with Adsense placement within Invision Power Board.

The current Ad positions I am using are desribed below. For each Ad I used the following tags -

<br /><center>Adsense Code</center><br />

Ad Position 1 -

ACP Home / Skin Manager Home / Board Index / PageTop
(at the bottom of this section)

Ad Position 2 -

ACP Home / Skin Manager Home / Board Index / end_all_cats
(at the bottom of this section...was blank for me to start with)

Ad Position 3 -

ACP Home / Skin Manager Home / Forum Index / PageTop

(just above the following)
<div class="borderwrap">
<div class="maintitle">

Ad Position 4 -
ACP Home / Skin Manager Home / Forum Index / TableEnd
(just above the following)
<table cellspacing="0">
<tr>
<td style='padding-left:0px' width="50%" nowrap="nowrap">{$data['SHOW_PAGES']}</td>
<td class='nopad' style='padding:5px 0px 5px 0px' align="right" width="50%">
<a href="{ipb.script_url}act=Post&CODE=00&f={$data['id']}">
<{A_POST}></a>{$data[POLL_BUTTON]}</td></tr></table>
<!--IBF.FORUM_ACTIVE-->


Ad Position 5-

ACP Home / Skin Manager Home / Topic View / topic_page_top_classic

(just above the following)
<div class="borderwrap">
<div class="maintitle">

Ad Position 6 -

ACP Home / Skin Manager Home / Topic View / topic_page_top_new_mode

(just above the following)
<div class="borderwrap">
<div class="maintitle">

Ad Position 7 -

ACP Home / Skin Manager Home / Topic View / TableFooter

(just above the following)
<!-- TABLE FOOTER -->
<div class="barc">


#2 Guest_lucky_luke_*

Guest_lucky_luke_*
  • Guests

Posted 26 May 2005 - 08:14 AM

Hi Glen,

Why didn't you just put the adsense code in the header/footer? That is what I do with my forum and works fine.

Luke

#3 glen

glen

    Administrator

  • Admin
  • PipPipPipPip
  • 888 posts

Posted 28 May 2005 - 02:19 AM

Hi lucky_luke and welcome to the forums.

I orginally had google ads in my header/footer however the Ads could only be positioned well above or below the forum. By inserting the Adsense code directly into the HTML you can position the Ads much more closely to the content of the site. It is of course a lot more work. I have only made this change recently and so I do not know if it will improve my earnings. I hope so!

As an additional tip, if you intend to try the changes above, you should really create a "child skin" to work on. If you don't like the changes then it will be very easy to revert back to your previous skin setup.

All the best,

Glen

#4 Artvision

Artvision

    New Member

  • Members
  • Pip
  • 3 posts

Posted 29 June 2005 - 02:32 PM

Hi,

This works great, but I'm wondering is there any way, so that
"Guests" also can see AdSense?
Now only registered members can see the adverts.

Thank you! :)

EDIT: Strange, but it works now. :)

#5 glen

glen

    Administrator

  • Admin
  • PipPipPipPip
  • 888 posts

Posted 30 June 2005 - 06:33 AM

Hi artvision,

If there was a problem with guests not seeing the ads that would suggest that we had incorrectly pasted the Ad Code into an area of the HTML template that was only displayed to members. There are some such areas. Just double check that the Adsense code is not inside any "if" or "else" statements such as the example below taken from "Pagetop" in the Board Index -

ACP Home / Skin Manager Home / Board Index / PageTop

Quote



   
   
   
 




   
   
 



Cheers, Glen

#6 Artvision

Artvision

    New Member

  • Members
  • Pip
  • 3 posts

Posted 30 June 2005 - 06:51 AM

Hi Glen and thank you for the reply! :)

I think that I found where the problem is!
I setup "Alternate ad URL or color" ro white color and practically
the ads were in the place, but probably they were replaced with
blank (white) color and that's why I haven't seen them. :)
Now everything is OK!

Thank you once again!

#7 glen

glen

    Administrator

  • Admin
  • PipPipPipPip
  • 888 posts

Posted 30 June 2005 - 07:05 AM

No worries. You might notice some weirdness if you have subforums. The ad (at the top of the page) will appear below the subforum link when in the "forum view" and it looks a bit "stretched out".

the problem is due to the ad code placed in end_all_cats -

ACP Home / Skin Manager Home / Board Index / end_all_cats

This ad not only gets added onto the bottom of the "Board view". It also gets added beneath the sub-forum links in "Forum View".

#8 Artvision

Artvision

    New Member

  • Members
  • Pip
  • 3 posts

Posted 30 June 2005 - 07:37 AM

glen, on Jun 30 2005, 01:05 PM, said:

No worries. You might notice some weirdness if you have subforums. The ad (at the top of the page) will appear below the subforum link when in the "forum view" and it looks a bit "stretched out".

the problem is due to the ad code placed in end_all_cats -

ACP Home / Skin Manager Home / Board Index / end_all_cats

This ad not only gets added onto the bottom of the "Board view". It also gets added beneath the sub-forum links in "Forum View".
Yes, I see it now. :) I also have tried the "Image ads only", but it seems
google hasn't got too many image ads yet. :)

#9 glen

glen

    Administrator

  • Admin
  • PipPipPipPip
  • 888 posts

Posted 30 June 2005 - 08:12 AM

the availability of image ads will vary depending on your topic of your website and how many advertisers for that topic are actually running image ads.

as i view this page at the moment I am seeing some image ads from visibone stylesheets

cheers, glen (in australia)

#10 lytrix

lytrix

    Member

  • Members
  • PipPip
  • 25 posts

Posted 30 June 2005 - 11:45 PM

Hey Glen,

Good info, although it'll be really nice if you could include screenshots of each ad position :)

#11 glen

glen

    Administrator

  • Admin
  • PipPipPipPip
  • 888 posts

Posted 01 July 2005 - 01:39 AM

good point lytrix. the problem is that i have moved my ads around since putting up this information so my current site no longer reflects all of the code above. it used to provide a perfect example!

if i get a chance i will wind things back to how they were and make some screen shots.

cheers, glen

#12 Mido

Mido

    New Member

  • Members
  • Pip
  • 9 posts

Posted 21 October 2005 - 08:59 AM

hi

check my forums

http://www.shbabonli...dex.php?act=idx

i put to ads on (global_board_header)
so you can see at the top of the page

also i put the on skyskaper at the left
this is 3 for now but i put the hack the makes first reply with google ads so these are four ads and u know the i only must put 3 per page so where to put on of the top ads to show it at the all pages of forums except the topic page to make my hack show the ad on the topic and dont make anything with TOS

#13 grillz

grillz

    New Member

  • Members
  • Pip
  • 1 posts

Posted 22 October 2005 - 12:42 AM

hey there glen and fellow "forum friends",

i was just wondering if it is possible to put ads between the first and second post of each topic...?

THANKS!
-Jordan!

#14 glen

glen

    Administrator

  • Admin
  • PipPipPipPip
  • 888 posts

Posted 22 October 2005 - 10:33 AM

View Postgrillz, on Oct 22 2005, 03:42 PM, said:

hey there glen and fellow "forum friends",

i was just wondering if it is possible to put ads between the first and second post of each topic...?

THANKS!
-Jordan!

that is easy enough. there is a mod on invisionize specifically to do that.

its called "D2 - Advertisements" :)

http://mods.invision...ndex.php/f/4313 (this is NOT for 2.1)

i guess it will be upgraded in due course

#15 glen

glen

    Administrator

  • Admin
  • PipPipPipPip
  • 888 posts

Posted 24 October 2006 - 07:30 AM

Here is an easy way to place adsense below the first post (or any other designated post that you choose).

Make the following edits at the bottom of the RenderRow template bit (under "Topic View") in your skin:

<if="post['post_count'] % ipb.vars['display_max_posts'] == 1">
<center>ADSENSE CODE HERE
</center></if>

This will place the adsense ad under the first post only. If you want to place the adsense after the second post then simply change the number from 1 to 2. Or if you want the ad to appear twice (e.g. after 1st post and 2nd post), then the easiest way is to paste the code twice as follows (notice the different numbering):

<if="post['post_count'] % ipb.vars['display_max_posts'] == 1">
 <center>ADSENSE CODE HERE
 </center></if>
<if="post['post_count'] % ipb.vars['display_max_posts'] == 15">
 <center>ADSENSE CODE HERE
 </center></if>

There might be a more efficient way of displaying the ad twice and I hope someone else can offer a solution. I just placed 2 embedded ads on this site (one after post 1 and another ad after post 15).

cheers, glen

#16 glen

glen

    Administrator

  • Admin
  • PipPipPipPip
  • 888 posts

Posted 27 February 2007 - 08:07 AM

NOTE: The above HTML Logic no longer works since the format for HTML Logic has changed.

I found this sample that seems to work OK:

<if="$post['post_count'] == 1">
<table class='ipbtable' cellspacing="1">
<tr>
<td style="background:#EEF2F7" align="center">
Ad code goes here!
</td>
</tr>
<tr>
	<td class="catend" colspan="2">
	<!-- no content -->
	</td>
</tr>
</table>
</if>


#17 BimeSmele

BimeSmele

    New Member

  • Members
  • Pip
  • 2 posts
  • Gender:Male
  • Location:143040
  • Interests:143040

Posted 26 April 2012 - 04:28 PM

Make sure you generally have new, beneficial content posted on a regular basis. Individuals aren't interested in reading things they've already read through before, and when people aren't getting something totally new on your own web site, they'll go in other places.

Focus the maximum amount of on keeping individuals in your site as you may because of have them there. This may, consequently, help with your PageRank figures. You may evaluate your appointments to your site by making use of things like Quantcast Rankings. This will have a effect on your PageRank. This info originates from metrics like Quantcast rankings. You can use discussion groups and discussion boards to persuade website visitors to remain logged straight into your web site for an extended time.

When okay-adjusting your site's search engine marketing, use efficiently-worded meta tag product descriptions which will draw in the correct visitors. The length of the tag should not go beyond 30 words. Never talk about 100 KB with this specific webpage.

Use highly effective search phrases when advertising your blog. Search engine listings check out the words that happen to be in the label label with additional emphasis than almost every other articles on your webpage. Your blog will have more website visitors when you picked powerful keywords and phrases.

You own an selection of choices to select from when it comes to acquiring inbound links to indicate your blog, which includes discussion boards, blogs and forums, content articles, press announcements plus more. The better folks that hyperlink to the web page, the bigger its standings will become.

The initial 20 Google results for a particular key word demonstrate which internet sites likely get virtually all website traffic for this keyword. If you wish to get more website visitors on your site or website, remember the suggestions in this post. Comprehending the principles of Search engine optimisation typically means the distinctions in between good results or breakdown online, so start off perfecting your web site right now!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users