Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 09-25-2009, 09:25 AM   #1
ideamon
Registered User
 
Join Date: Jun 2006
Posts: 45
WP textlink ads plugin

Does anyone know the WP plugin that allow display text link ads base on category?
ideamon is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-25-2009, 10:46 AM   #2
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
not sure but you could use an ad plugin and use conditional tags

Code:
<?php if ( is_category('cat') ): ?>
<!-- Insert code for cat ad here -->

<?php elseif ( is_category( 'dog') ): ?>
<!-- Insert code for cat ad here -->

<?php else: ?>
<!-- Insert code for generic ad here -->

<?php endif; ?>
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-25-2009, 11:07 AM   #3
Fat Panda
Porn is Dead. Move along.
 
Fat Panda's Avatar
 
Industry Role:
Join Date: Aug 2006
Posts: 13,295
fris you are a wordpress ninja
Fat Panda is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-27-2009, 10:25 AM   #4
ideamon
Registered User
 
Join Date: Jun 2006
Posts: 45
Thanks fris, but is_category does not working, I try to change to in_category and it's working!
ideamon is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-27-2009, 01:38 PM   #5
$5 submissions
I help you SUCCEED
 
$5 submissions's Avatar
 
Industry Role:
Join Date: Nov 2003
Location: The Pearl of the Orient Seas
Posts: 32,195
Fris is the WP MAN!
$5 submissions is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-27-2009, 01:47 PM   #6
Jdoughs
Confirmed User
 
Jdoughs's Avatar
 
Industry Role:
Join Date: Mar 2004
Location: Great White North
Posts: 5,794
I spent the last couple days tweaking a dicks/cocks site, the site isnt primarily gay but because of the niche has lots of gay clicks too.

I was lookin for a way to only show gay ads on gay categories, both parent and children cats, and to show a different sidebar/header for any post cat or tag, that was gay.

To display a gay banner in the header on all posts in a descendant of cat 25 (gay), this will also work on tags that have the first post showing from desc of cat 25.

PHP Code:
if (is_home() ) {
    include(
TEMPLATEPATH."/banner.php");
} else if ( 
is_category'gay-dicks' ) || post_is_in_descendant_category25 ) ) {
    include(
TEMPLATEPATH."/bangay.php");
} else {
    include(
TEMPLATEPATH."/banner.php");

And to pull seperate sidebars (only shown on the gay side of the site)

PHP Code:
 if ( in_category'gay-dicks' ) || post_is_in_descendant_category25 ) ) {
    include(
TEMPLATEPATH."/sidebar-gay.php");
} else {
    include(
TEMPLATEPATH."/sidebar.php");

As mentioned above, if_category is not as 'usefull' as in_category. You can use this to completely sanction off and make a category completely relevant and making the site solid for niche landers. The gay traffic never sees anything but stuff tagged as gay or put in the category of gay, likewise for the straight. (I do list the gay category on main page, but never include the posts in the updates, except in the gay pages.)

If that makes any sense, great..lol
__________________
LinkSpun - Premier Adult Link Trading Community - ICQ - 464/\281/\250
Be Seen By New Webmasters/Affiliates * Target out webmasters/affiliates based on niches your sites are for less than $20 a month.
AmeriNOC - Proudly hosted @ AmeriNOC!
Jdoughs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-27-2009, 01:50 PM   #7
xxxjay
Tube groupie.
 
xxxjay's Avatar
 
Industry Role:
Join Date: Aug 2002
Location: LoScandalous, CA
Posts: 13,482
good thread
xxxjay is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.