Greenguy's Board


Go Back   Greenguy's Board > Blogs and Blogging
Register FAQ Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Rating: Thread Rating: 1 votes, 5.00 average. Display Modes
Old 2008-08-15, 07:16 PM   #1
walrus
Oh no, I'm sweating like Roger Ebert
 
walrus's Avatar
 
Join Date: May 2005
Location: Los Angeles
Posts: 1,773
Send a message via ICQ to walrus Send a message via Yahoo to walrus
Stripe Ads

Yes, I know there are plug ins for this but in my never ending battle against useless plug ins I present the other method.

Now you can look cool like all those bloggers that use free hosts and add some highly visible advertising to the top of your blog!!! Be the envy of everyone you know...

Seriously, I was fucking around the other day and decided I wanted to check this out. So I added one to Porn Blog Surfer and kind of liked it. Here's how.

Add this line to your header.php file just underneath the body tag
Code:
<div id=“ad-top”>Your Banner or Text Link here</div>
Then add the following to you style sheet.
Code:
/* Ad Space CSS Start */
#ad-top {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 17px;
background-color: #FFFFE1;
color: #0000FF;
border-bottom: #000000;
padding: 5px 0 5px 0;
text-align: center;
font-size: 12px;
font-family: Arial, Tahoma, Verdana;
font-weight: bold;
}
html > body #ad-top {
position: fixed;
}
#ad-top a:link, #ad-top a:visited {
color: #0000FF;
background-color: transparent;
}
ad-top a:hover {
text-decoration: none;
}
body {
padding-top: 17px;
}
/* Ad Space CSS Start */
Remember you can change all the color and font shit to match your blog. This matches mine

Then, because IE6 is a bitch you'll need to add this little piece of code. Some themes have a seperate ie style sheet if your does add this to it.
Code:
/*---IE is a Bitch---*/
<style type="text/css">
body
{
overflow-y: hidden;
}
div#ad-top
{
height: 100%;
overflow: auto;
}
If your theme doesn't have a seperate IE style sheet use this underneath the link to your themes style sheet
Code:
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
-----This is the WP link to the style sheet add the following underneath it-------
<!--IE is still a bitch-->
<!--[if IE]>
<style type="text/css">
body
{
overflow-y: hidden;
}
div#ad-top
{
height: 100%;
overflow: auto;
}
</style>
<![endif]-->
__________________
Naked Girlfriend Porn TGP
free partner account
walrus is offline   Reply With Quote
Old 2008-08-15, 07:57 PM   #2
Tekster
Formerly known as TekAngel
 
Tekster's Avatar
 
Join Date: Feb 2007
Location: Valley of the Sun
Posts: 1,951
Send a message via ICQ to Tekster
Is that the Fling ad on top of Porn Blog Surfer?
Looks good. I might give it a try.
__________________
Mr. Eros Free Porn Links
iPhone Porn Phone-Pics
Tekster is offline   Reply With Quote
Old 2008-08-15, 08:04 PM   #3
walrus
Oh no, I'm sweating like Roger Ebert
 
walrus's Avatar
 
Join Date: May 2005
Location: Los Angeles
Posts: 1,773
Send a message via ICQ to walrus Send a message via Yahoo to walrus
Quote:
Originally Posted by TekAngel View Post
Is that the Fling ad on top of Porn Blog Surfer?
Looks good. I might give it a try.
yep its fling.
__________________
Naked Girlfriend Porn TGP
free partner account
walrus is offline   Reply With Quote
Old 2008-08-15, 09:20 PM   #4
hashbury
My name is hashbury not assburry
 
hashbury's Avatar
 
Join Date: Oct 2007
Location: Tampa
Posts: 1,125
Thanks Walrus
Its like you read my mind. I was just getting ready to look for this code for my free blog host.
__________________
Sig Goes Here!
hashbury is offline   Reply With Quote
Old 2008-08-16, 08:02 AM   #5
Mr. Blue
Searching for Jimmy Hoffa
 
Mr. Blue's Avatar
 
Join Date: Jan 2005
Location: Long Island, NY
Posts: 771
Interesting method...have you ever thought of using OpenX to handle the advertising spaces on your blog?
__________________
69Blue.com
ICQ #223487665
Mr. Blue is offline   Reply With Quote
Old 2008-08-16, 05:29 PM   #6
walrus
Oh no, I'm sweating like Roger Ebert
 
walrus's Avatar
 
Join Date: May 2005
Location: Los Angeles
Posts: 1,773
Send a message via ICQ to walrus Send a message via Yahoo to walrus
Quote:
Originally Posted by Mr. Blue View Post
Interesting method...have you ever thought of using OpenX to handle the advertising spaces on your blog?
Actually, I'd never thought about that. hmmmm
__________________
Naked Girlfriend Porn TGP
free partner account
walrus is offline   Reply With Quote
Old 2008-08-16, 05:45 PM   #7
Mr. Blue
Searching for Jimmy Hoffa
 
Mr. Blue's Avatar
 
Join Date: Jan 2005
Location: Long Island, NY
Posts: 771
Quote:
Originally Posted by walrus View Post
Actually, I'd never thought about that. hmmmm
I've done it once on a network I was setting up for hire. Since the person wanted it automated down the line and didn't really know much about wordpress templates it was easier to set up Openx and incorporate it in the blog.

Granted Openx has the worst documentation ever, lol, but once you learn it (after crying a bit, lol)...it really is nice and easy to set up zones on your blog and it allows you to rotate out sponsors whenever you want. Considering how the adult industry is and how many times I've had to pull links for any number of reasons...it's nice to have something that can control a network of advertising.

Hmm, I hadn't done this on my own blog network, but I think I might have just talked myself into it, lol.
__________________
69Blue.com
ICQ #223487665
Mr. Blue is offline   Reply With Quote
Old 2008-08-16, 06:44 PM   #8
Simon
That which does not kill us, will try, try again.
 
Simon's Avatar
 
Join Date: Aug 2003
Location: Conch Republic
Posts: 5,150
Send a message via ICQ to Simon Send a message via AIM to Simon Send a message via Yahoo to Simon
I'm doing that with OpenX 2.6 right now. Headers, sidebars, footers, ads between posts, everything is being done through OpenX from now on.

Upgrade if you haven't done it yet because the new Single Page Call really cuts down on the amount of code you have to use to display an ad. Especially if you don't care about the 'noscript' surfers.
__________________
"If you're happy and you know it, think again." -- Guru Pitka
Simon is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:54 AM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc