A nugget on the top ban of the blog ?

Creating and modifying plugins.
Post Reply
dymezac
Regular
Posts: 19
Joined: Mon May 01, 2006 5:23 pm
Contact:

A nugget on the top ban of the blog ?

Post by dymezac »

Hi Garvin,

i am now wondering if it is possible to put a nugget on the top of my weblog, I mean where the title of the blog is. For my blog it is on the long blue image on the top of the screen, because there is much space here.

For example to put my xiti bann or google adsense ?

Is it possible ?

many thanks..again
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: A nugget on the top ban of the blog ?

Post by garvinhicking »

Hi!

You can use the "Page Nugget" event plugin for that. Or edit your index.tpl template file.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
dymezac
Regular
Posts: 19
Joined: Mon May 01, 2006 5:23 pm
Contact:

Post by dymezac »

Ok the Page nugget event plugin didn't fit..
So i think i am going to study how to personalize a template or a theme..

thanks again .. and again ;)
Have a good afternoon Garvin
budgetbabe
Regular
Posts: 13
Joined: Sun Mar 01, 2009 2:57 am
Location: New England
Contact:

Re: A nugget on the top ban of the blog ?

Post by budgetbabe »

Hi,
I think my question is related to this post: I'm trying to figure out how to insert a large horizontal banner ad (using Google Adsense code) either above my main header image or directly below it OR I'd like to create a smaller header graphic and place it to the left of the banner ad (as I've seen done on such sites as FabSugar.com)

Here's a link to my blog: www.thebudgetbabe.com

Any advice would be greatly appreciated! Thanks.

ps. I'm using the Bulletproof template
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: A nugget on the top ban of the blog ?

Post by yellowled »

budgetbabe wrote:I'm trying to figure out how to insert a large horizontal banner ad (using Google Adsense code) either above my main header image or directly below it
Does the Google Adsense plugin not provide this?
budgetbabe wrote:ps. I'm using the Bulletproof template
Any inclusion of ads which can not be done using a plugin or the BP theme options will mean that you're going to have to edit core files of BP like the index.tpl. Those will be overwritten with the next s9y and/or BP update, i.e. you'll have to "backport" those changes after any update. Not sure if that's worth it.

YL
Don Chambers
Regular
Posts: 3652
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: A nugget on the top ban of the blog ?

Post by Don Chambers »

Bulletproof provides a mostly un-used DIV directly below the banner, if you want to use that. In the file /templates/bulletproof/index.tpl, look for this code:

Code: Select all

<div id="serendipity_below_banner"/></div>
Place your google code within that <div>. You might need to add some css to it to get it to display how you want, and as Yellowled mentioned, you would need to make a similar modification if you ever upgraded your bulletproof template. Looks like you have done some nice revisions to BP for your site.

The alternative would be to modify the index.tpl file in any way you wanted to accomplish your objective.
=Don=
budgetbabe
Regular
Posts: 13
Joined: Sun Mar 01, 2009 2:57 am
Location: New England
Contact:

Re: A nugget on the top ban of the blog ?

Post by budgetbabe »

Thanks, this is really helpful. I'm going to try the un-used DIV first, and if that's too obtrusive, I'll attempt to modify the index.tpl file. Thanks again!
budgetbabe
Regular
Posts: 13
Joined: Sun Mar 01, 2009 2:57 am
Location: New England
Contact:

Re: A nugget on the top ban of the blog ?

Post by budgetbabe »

It's been a while but here's an update...and another problem!

I finally got my ad to display above the banner, but I did it by putting a table into the "serendipity_event_head_nugget" plugin, which allows you to insert HTML-Code into the HEAD-area of your blog.

It works fine, but on every 3rd or 4th time to load the page in Firefox, the gray "background" behind all the columns of the blog layout disappear...here's what it looks like:

http://www.thebudgetbabe.com/uploads/20 ... d-blog.jpg

I'm wondering if it has to do with the type of ad that's being delivered, and if so, is there a way I can tweak my table code to fix the problem? Here's the code as it stands now:

<center><table cellpadding="0" cellspacing="0" border="0">
<tr>
<td><script type="text/javascript" language="javascript" src="http://www2.glam.com/app/site/affiliate ... cript></td>
<td><a href="http://www.thebudgetbabe.com/categories ... ales"><img src="http://www.thebudgetbabe.com/uploads/20 ... 90x270.jpg" img border=0></a></td>
</tr>
</table></center>

Ideas? Thx!
Don Chambers
Regular
Posts: 3652
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: A nugget on the top ban of the blog ?

Post by Don Chambers »

I do not encounter this issue with FF 3.6.3. Do you experience this behavior with any other browsers?
=Don=
budgetbabe
Regular
Posts: 13
Joined: Sun Mar 01, 2009 2:57 am
Location: New England
Contact:

Re: A nugget on the top ban of the blog ?

Post by budgetbabe »

Nope, not seeing it in IE (probably should have tested that earlier!). I'm also using Firefox 3.6.3. Maybe it's just my browser?! That would certainly make my life easier. Thx for the feedback.
Don Chambers
Regular
Posts: 3652
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: A nugget on the top ban of the blog ?

Post by Don Chambers »

budgetbabe wrote:Nope, not seeing it in IE (probably should have tested that earlier!). I'm also using Firefox 3.6.3. Maybe it's just my browser?! That would certainly make my life easier. Thx for the feedback.
Probably just a cache thing.
=Don=
Post Reply