Page 1 of 1

Adsense in the Database

Posted: Sat Nov 03, 2007 5:38 am
by rj
I haven't been around lately because Serendipity is running so smooth it worries me! :)

This idea could help many of us as it is becoming clear that the "inline" ads get the best results.

90% of my traffic comes to an article. All they see besides the sidebars is the article, the article footer, that long space of TRACKING and COMMENT CHOICE and then the Comments and the Comment editor.

Ideally I would like to eliminate all the space between the footer and the comments (get rid of the TRACKING lines and the choice of Linear and thread, just defalut everyone to one or the other), and in its place, put a 468 x 60 horizontal adsense. (two side by side text ads)

I think this would solve the 3 only rule by adsense. One in the header, one in the sidebar and one inline.

A wordpress friend says they have an inline nugget of some sort and all they have to do is type something like {adsense here} and off it goes.

How about an EVENT PLUGIN which is just a html nugget that brings up the editor to put your own code in, and deposits it in that place.

Like the SAMPLE but with this extra option placement. "Below article footer when article is presented by itself".

I think this is the best idea I ever had!!!!!!!!!!!! :)


Thanx

RJ

Re: Adsense in the Database

Posted: Sat Nov 03, 2007 10:44 am
by garvinhicking
Hi!

Check the "Include Entries / Entry Blocks" event plugin. It allows you to attach stuff.

You could also use a plugin like the "Content rewrite" eventplugin or "Glossary" to define a custom tag like{inline} which gets replaced with whatever you like.

Regards
,Garvin

Posted: Sat Nov 03, 2007 2:59 pm
by rj
I took a look at all three of those, have them in INACTIVE now, but I just don't understand any of it. Over my head! :)

Since BLOGGER and WORDPRESS began making this inline adsnese process easy to initiate, Monitize SEO forums are awash with the success of CTRs of inline ads.

You dont want (or are allowed by Adsense) to have one after each article, it would be just too much. So you only want it when the article is presented by itself. Ideally, above the tracking line before the comments.

With 90% of my traffic coming to the articles rather than the blog itself, placing and ad after article one or between article 3 and 4 is not the answer for me. It has to attach to the single article in the DB.

I really think there should be some simple event plugin for this for us simple minded people. :)

I keep coming back to the SAMPLE plugin I use. If only one of the placement options said. "Above Comments"

In the mean time, because of your help, I think I know enough about entries.tpl code to go there and give this a try. I can probably find the right spot, but not sure if I can put the code right in or have to point to it somewhere else.

Sorry I am too stupid to figure out how those plugins work. :)

RJ

Posted: Wed Nov 07, 2007 5:17 am
by rj
I found the way! I hope it doesnt screw things up though! :)
Here is the place in entries.tpl I put the adsense code and it goes in only when viewing an article by itself.

{$entry.plugin_display_dat}

{if $is_single_entry and not $use_popups and not $is_preview}
{if $CONST.DATA_UNSUBSCRIBED}
<br /><div class="serendipity_center serendipity_msg_notice">{$CONST.DATA_UNSUBSCRIBED|@sprintf:$CONST.UNSUBSCRIBE_OK}</div><br />
{/if}

ADSENSE SCRIPT

{if $CONST.DATA_TRACKBACK_DELETED}
<br /><div class="serendipity_center serendipity_msg_notice">{$CONST.DATA_TRACKBACK_DELETED|@sprintf:$CONST.TRACKBACK_DELETED}</div><br />
{/if}