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 02-21-2009, 01:53 PM   #1
Mike Semen
Confirmed User
 
Mike Semen's Avatar
 
Join Date: Dec 2001
Location: London Town
Posts: 2,924
Wordpress plugin needed

I'm sure one of you geniuses knows this, and I'm almost sure its out there.

I need a plugin that shows an element (widget if needs be) in the sidebar dependent on category. So I can basically have a bit of the sidebar that only shows for categiry "lesbians" for instance.

Cheers
__________________
ICQ 1454 81 522 |
Mike Semen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2009, 01:54 PM   #2
candyflip
Carpe Visio
 
candyflip's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: New York
Posts: 43,061
http://www.quickonlinetips.com/archi...press-widgets/

http://wordpress.org/extend/plugins/widget-logic/
__________________

Spend you some brain.
Email Me

Last edited by candyflip; 02-21-2009 at 01:56 PM..
candyflip is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2009, 01:56 PM   #3
who
So Fucking Banned
 
Join Date: Aug 2003
Location: ICQ #23642053
Posts: 19,593
I need to fuck a five-foot, 90lbs blonde chick in the ass, so what...?
who is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2009, 02:00 PM   #4
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
easy to do
__________________
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 02-21-2009, 02:01 PM   #5
Angry Jew Cat - Banned for Life
(felis madjewicus)
 
Industry Role:
Join Date: Jul 2006
Location: In Mom & Dad's Basement
Posts: 20,368
doable manually for anywhere in the theme with conditional includes, not sure how to go about doing it with a plugin or widget though.
Angry Jew Cat - Banned for Life is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2009, 02:02 PM   #6
Mike Semen
Confirmed User
 
Mike Semen's Avatar
 
Join Date: Dec 2001
Location: London Town
Posts: 2,924
Thanks Candyflip, looks like the second one is what I need. The plugin home is down but eh will give it a go.
__________________
ICQ 1454 81 522 |
Mike Semen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2009, 02:05 PM   #7
Angry Jew Cat - Banned for Life
(felis madjewicus)
 
Industry Role:
Join Date: Jul 2006
Location: In Mom & Dad's Basement
Posts: 20,368
Code:
<?php if (is_home('')) : ?>
include this shit only on index page
<?php endif; ?>

<?php if (is_category('category-one') ) : ?>
include this shit only on category with category slug "/category-one/"
<?php endif; ?>
conditional includes are much more flexible than just these examples and you can lookup more info on codex.wordpress.org
Angry Jew Cat - Banned for Life is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2009, 02:07 PM   #8
Mike Semen
Confirmed User
 
Mike Semen's Avatar
 
Join Date: Dec 2001
Location: London Town
Posts: 2,924
thanks Jew Cat! Have a feeling that may get complicated if there's 200 different bits to include...
__________________
ICQ 1454 81 522 |
Mike Semen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2009, 02:08 PM   #9
Mike Semen
Confirmed User
 
Mike Semen's Avatar
 
Join Date: Dec 2001
Location: London Town
Posts: 2,924
Quote:
Originally Posted by who View Post
I need to fuck a five-foot, 90lbs blonde chick in the ass, so what...?
Don't we all?
__________________
ICQ 1454 81 522 |
Mike Semen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2009, 02:11 PM   #10
Machete_
WINNING!
 
Industry Role:
Join Date: Oct 2002
Posts: 14,579
Quote:
Originally Posted by Angry Jew Cat View Post
Code:
<?php if (is_home('')) : ?>
include this shit only on index page
<?php endif; ?>

<?php if (is_category('category-one') ) : ?>
include this shit only on category with category slug "/category-one/"
<?php endif; ?>
conditional includes are much more flexible than just these examples and you can lookup more info on codex.wordpress.org

Great simple stuff - this is why I wish I could code myself
Machete_ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2009, 02:11 PM   #11
Angry Jew Cat - Banned for Life
(felis madjewicus)
 
Industry Role:
Join Date: Jul 2006
Location: In Mom & Dad's Basement
Posts: 20,368
Quote:
Originally Posted by Mike Semen View Post
thanks Jew Cat! Have a feeling that may get complicated if there's 200 different bits to include...
yes, this might not be the most efficient means to achieve your goal if you have 200+ categories, heh.

personally i'd just create a seperate .php document with all my includes sorted within it. then include the conditions.php or whatever into the sidebar.php beyond that for organization. but if one of these plugins works for you, post back to the thread. i wouldn't mind looking it over.
Angry Jew Cat - Banned for Life is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2009, 02:12 PM   #12
Mike Semen
Confirmed User
 
Mike Semen's Avatar
 
Join Date: Dec 2001
Location: London Town
Posts: 2,924
Quote:
Originally Posted by Angry Jew Cat View Post
yes, this might not be the most efficient means to achieve your goal if you have 200+ categories, heh.
Yea hence the idea of using widgets. We shall see if I can make it happen :D
__________________
ICQ 1454 81 522 |
Mike Semen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2009, 02:14 PM   #13
Mike Semen
Confirmed User
 
Mike Semen's Avatar
 
Join Date: Dec 2001
Location: London Town
Posts: 2,924
Jewcat just saw your edit... will do
__________________
ICQ 1454 81 522 |
Mike Semen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2009, 07:23 PM   #14
Doctor Feelgood
Confirmed User
 
Doctor Feelgood's Avatar
 
Industry Role:
Join Date: Nov 2005
Location: RI
Posts: 2,112
Quote:
Originally Posted by Angry Jew Cat View Post
Code:
<?php if (is_home('')) : ?>
include this shit only on index page
<?php endif; ?>

<?php if (is_category('category-one') ) : ?>
include this shit only on category with category slug "/category-one/"
<?php endif; ?>
conditional includes are much more flexible than just these examples and you can lookup more info on codex.wordpress.org
but then it still shows up on page 1,2,3 etc
then i tried this and almost had it, but nothing shows

Code:
<?php if (is_home ('') and is_page ('')) : ?>
include this shit only on index page
<?php endif; ?>
Doctor Feelgood is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2009, 07:33 PM   #15
uno
RIP Dodger. BEST.CAT.EVER
 
uno's Avatar
 
Industry Role:
Join Date: Dec 2002
Location: NYC Area
Posts: 18,450
Quote:
Originally Posted by Angry Jew Cat View Post
yes, this might not be the most efficient means to achieve your goal if you have 200+ categories, heh.

personally i'd just create a seperate .php document with all my includes sorted within it. then include the conditions.php or whatever into the sidebar.php beyond that for organization. but if one of these plugins works for you, post back to the thread. i wouldn't mind looking it over.
I'd probably do that too or have a subdir with various php files for various functions.
__________________
-uno
icq: 111-914
CrazyBabe.com - porn art
MojoHost - For all your hosting needs, present and future. Tell them I sent ya!
uno is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2009, 07:35 PM   #16
uno
RIP Dodger. BEST.CAT.EVER
 
uno's Avatar
 
Industry Role:
Join Date: Dec 2002
Location: NYC Area
Posts: 18,450
if/elseif
__________________
-uno
icq: 111-914
CrazyBabe.com - porn art
MojoHost - For all your hosting needs, present and future. Tell them I sent ya!
uno is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2009, 07:42 PM   #17
Angry Jew Cat - Banned for Life
(felis madjewicus)
 
Industry Role:
Join Date: Jul 2006
Location: In Mom & Dad's Basement
Posts: 20,368
Quote:
Originally Posted by Doctor Feelgood View Post
but then it still shows up on page 1,2,3 etc
then i tried this and almost had it, but nothing shows

Code:
<?php if (is_home ('') and is_page ('')) : ?>
include this shit only on index page
<?php endif; ?>
you know you got me stumped too, i played with it a bit and couldn't figure it out for myself either. i never really thought to use it in such a way. though i am sure there could easily be a way out there to work it. the wordpress forums are packed with very wordpress knowledgeable folk who i'm sure could answer this for you if it is in fact doable. they always come through for me in tight spots...
Angry Jew Cat - Banned for Life is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2009, 07:43 PM   #18
dial
Confirmed User
 
Join Date: May 2006
Location: wherever you aren't
Posts: 1,225
Angry Jew Cat, do you do custom wordpress code work? would love to have a contact in that area, I always have client asking for custom plugins
__________________
boom chicka wah wah
dial is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2009, 08:00 PM   #19
Angry Jew Cat - Banned for Life
(felis madjewicus)
 
Industry Role:
Join Date: Jul 2006
Location: In Mom & Dad's Basement
Posts: 20,368
Quote:
Originally Posted by dial View Post
Angry Jew Cat, do you do custom wordpress code work? would love to have a contact in that area, I always have client asking for custom plugins
my days of being other people's wordpress grunt are done. and honestly since i moved over to doing mainstream stuff i pretty much grab templates now. spending less of my time on the design aspect and more on getting the sale through. so i'm kind of slacking a bit now in that department. anything new i pick up wodpress-wise now is out of my own necessity or just interest trying somehting new. i wouldn't consider myself a professional in the field by a long shot. intermediate-advanced maybe, lol. better things i can do with my time.
Angry Jew Cat - Banned for Life is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2009, 08:04 PM   #20
Angry Jew Cat - Banned for Life
(felis madjewicus)
 
Industry Role:
Join Date: Jul 2006
Location: In Mom & Dad's Basement
Posts: 20,368
Quote:
Originally Posted by Angry Jew Cat View Post
better things i can do with my time.
actually thats a total lie, i've been parked on my ass doing dick all for the entire day. i'm kind of pissed off that i'm stumped here and am probably gonna dig into this now. i don't really understand what good it would be for.

i'm thinking if you want something first page only, why not just put it in a sticky post and tack it right at the top of the index?
Angry Jew Cat - Banned for Life is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2009, 08:06 PM   #21
czarina
Webmaster Extraordinaire
 
czarina's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: A beautiful beach...
Posts: 10,748
Quote:
Originally Posted by Angry Jew Cat View Post
Code:
<?php if (is_home('')) : ?>
include this shit only on index page
<?php endif; ?>

<?php if (is_category('category-one') ) : ?>
include this shit only on category with category slug "/category-one/"
<?php endif; ?>
something like this is what I was going to suggest. It works great and you dont depend on a plugin (which may end up not being compatible with the next version of WP)
czarina is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2009, 08:46 PM   #22
Doctor Feelgood
Confirmed User
 
Doctor Feelgood's Avatar
 
Industry Role:
Join Date: Nov 2005
Location: RI
Posts: 2,112
Quote:
Originally Posted by Angry Jew Cat View Post
actually thats a total lie, i've been parked on my ass doing dick all for the entire day. i'm kind of pissed off that i'm stumped here and am probably gonna dig into this now. i don't really understand what good it would be for.

i'm thinking if you want something first page only, why not just put it in a sticky post and tack it right at the top of the index?
haha ive stumped the cat

im thinking some kind of variation of this code
Code:
<?php if (!is_paged()) : ?>
include this shit only on index page
<?php endif; ?>
but instead of 'and' use 'or'
that wont work either
it will come to me in a dream
Doctor Feelgood is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2009, 09:05 PM   #23
Angry Jew Cat - Banned for Life
(felis madjewicus)
 
Industry Role:
Join Date: Jul 2006
Location: In Mom & Dad's Basement
Posts: 20,368
Quote:
Originally Posted by Doctor Feelgood View Post
haha ive stumped the cat

im thinking some kind of variation of this code
Code:
<?php if (!is_paged()) : ?>
include this shit only on index page
<?php endif; ?>
but instead of 'and' use 'or'
that wont work either
it will come to me in a dream
i'm thinking there's maybe some variation of the is_front_page() tag that would work for this. i'll eventually get around to posting about it on the wordpress forums, i'm curious how to do it myself. i thought is_page_template('index.php') might work, but that didn't seem to cut it either.

i just dunno...
Angry Jew Cat - Banned for Life is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2009, 09:11 PM   #24
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
Quote:
Originally Posted by Doctor Feelgood View Post
but then it still shows up on page 1,2,3 etc
then i tried this and almost had it, but nothing shows

Code:
<?php if (is_home ('') and is_page ('')) : ?>
include this shit only on index page
<?php endif; ?>
Code:
<?php if ( (is_home())&&!(is_paged()) ){ ?>
<h1>this will only be on the index not pages</h1>
<?php } ?>
__________________
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 02-21-2009, 09:14 PM   #25
Angry Jew Cat - Banned for Life
(felis madjewicus)
 
Industry Role:
Join Date: Jul 2006
Location: In Mom & Dad's Basement
Posts: 20,368
Quote:
Originally Posted by fris View Post
Code:
<?php if ( (is_home())&&!(is_paged()) ){ ?>
<h1>this will only be on the index not pages</h1>
<?php } ?>
tested and working 100%. should have expected it from gfy's local wordpress freak...
Angry Jew Cat - Banned for Life is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2009, 09:26 PM   #26
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
Quote:
Originally Posted by Angry Jew Cat View Post
tested and working 100%. should have expected it from gfy's local wordpress freak...
Code:
<?php if ( (is_home()) && !(is_page()) && !(is_single()) && !(is_search()) && !(is_archive()) && !(is_author()) && !(is_category()) && !(is_paged()) ) { ?>
<h1>this is really the index page this time seriously</h1>
<?php } ?>
__________________
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 02-21-2009, 09:32 PM   #27
dial
Confirmed User
 
Join Date: May 2006
Location: wherever you aren't
Posts: 1,225
Quote:
Originally Posted by Angry Jew Cat View Post
my days of being other people's wordpress grunt are done. and honestly since i moved over to doing mainstream stuff i pretty much grab templates now. spending less of my time on the design aspect and more on getting the sale through. so i'm kind of slacking a bit now in that department. anything new i pick up wodpress-wise now is out of my own necessity or just interest trying somehting new. i wouldn't consider myself a professional in the field by a long shot. intermediate-advanced maybe, lol. better things i can do with my time.
cool. i just need someone that can work with me doing custom plugins, all mainstream work, with mainstream level pay
__________________
boom chicka wah wah
dial is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2009, 09:43 PM   #28
Angry Jew Cat - Banned for Life
(felis madjewicus)
 
Industry Role:
Join Date: Jul 2006
Location: In Mom & Dad's Basement
Posts: 20,368
you don't happen to know a way to assign includes to specific pages in your general posting pagination would you?
Angry Jew Cat - Banned for Life is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2009, 09:57 PM   #29
Tsang
Confirmed User
 
Join Date: Oct 2008
Location: Hollywood, CA
Posts: 179
Thanks for the code. Very useful!
__________________
ICQ# - 498023663
Tsang is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-21-2009, 10:03 PM   #30
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
Quote:
Originally Posted by Angry Jew Cat View Post
you don't happen to know a way to assign includes to specific pages in your general posting pagination would you?
not sure if i understand you, you want to include a file say for only /page/2/ and not /page/3/

?
__________________
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 02-21-2009, 10:23 PM   #31
Angry Jew Cat - Banned for Life
(felis madjewicus)
 
Industry Role:
Join Date: Jul 2006
Location: In Mom & Dad's Basement
Posts: 20,368
Quote:
Originally Posted by fris View Post
not sure if i understand you, you want to include a file say for only /page/2/ and not /page/3/?
exactly. it's not really anything i have any particular use for atthe moment, just curious while we're somewhat on topic if it's doable also? to say have a seperate banner on the index, page/1/, page/2/ and so forth. i know you could just stick a rotator in there, i'm speaking theoretically if you wanted to do this.
Angry Jew Cat - Banned for Life is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-22-2009, 10:04 AM   #32
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
Quote:
Originally Posted by Angry Jew Cat View Post
exactly. it's not really anything i have any particular use for atthe moment, just curious while we're somewhat on topic if it's doable also? to say have a seperate banner on the index, page/1/, page/2/ and so forth. i know you could just stick a rotator in there, i'm speaking theoretically if you wanted to do this.
this is a way to do it

add this to functions.php

Code:
function do_pageads() {
        global $paged;
        if(!$paged) include (TEMPLATEPATH . '/front_ads.php');
        else include (TEMPLATEPATH . '/other_ads.php');
}
sample index.php

Code:
<?php get_header(); ?>

<div id="content" class="narrowcolumn">

<?php if (have_posts()) : ?>
<?php $count = 0; ?>
<?php while (have_posts()) : the_post(); ?>

<?php $count++; ?>

<div class="entry">
<?php the_content(); ?>
</div>

<?php if ($count == 2) : ?>
<?php do_pageads(); ?>
<?php endif; ?>

<?php endwhile; ?>

<?php endif; ?>

</div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>
this will add your page ad after every 1st post on each page, calling the frontpage_ads or other_ads, add as many as you want.
__________________
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
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.