![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
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 | ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Carpe Visio
Industry Role:
Join Date: Jul 2002
Location: New York
Posts: 43,061
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
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...?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
(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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Confirmed User
Join Date: Dec 2001
Location: London Town
Posts: 2,924
|
Quote:
__________________
ICQ 1454 81 522 | ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
(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; ?> |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
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 | ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
Confirmed User
Join Date: Dec 2001
Location: London Town
Posts: 2,924
|
Quote:
![]()
__________________
ICQ 1454 81 522 | ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |
WINNING!
Industry Role:
Join Date: Oct 2002
Posts: 14,579
|
Quote:
Great simple stuff - this is why I wish I could code myself |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 | |
(felis madjewicus)
Industry Role:
Join Date: Jul 2006
Location: In Mom & Dad's Basement
Posts: 20,368
|
Quote:
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. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Confirmed User
Join Date: Dec 2001
Location: London Town
Posts: 2,924
|
Yea hence the idea of using widgets. We shall see if I can make it happen :D
__________________
ICQ 1454 81 522 | ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
Confirmed User
Join Date: Dec 2001
Location: London Town
Posts: 2,924
|
Jewcat just saw your edit... will do
![]()
__________________
ICQ 1454 81 522 | ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 | |
Confirmed User
Industry Role:
Join Date: Nov 2005
Location: RI
Posts: 2,112
|
Quote:
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; ?>
__________________
![]() SUBMIT PORN BLOGS HERE ![]() ![]() ![]() ![]() ![]() ![]() ![]() Now Hiring My network is in need of clean, honest, good traders for different niches. Contact |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 | |
RIP Dodger. BEST.CAT.EVER
Industry Role:
Join Date: Dec 2002
Location: NYC Area
Posts: 18,450
|
Quote:
__________________
-uno icq: 111-914 CrazyBabe.com - porn art MojoHost - For all your hosting needs, present and future. Tell them I sent ya! |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 |
RIP Dodger. BEST.CAT.EVER
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! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 |
(felis madjewicus)
Industry Role:
Join Date: Jul 2006
Location: In Mom & Dad's Basement
Posts: 20,368
|
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...
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#18 |
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
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#19 |
(felis madjewicus)
Industry Role:
Join Date: Jul 2006
Location: In Mom & Dad's Basement
Posts: 20,368
|
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#20 |
(felis madjewicus)
Industry Role:
Join Date: Jul 2006
Location: In Mom & Dad's Basement
Posts: 20,368
|
actually thats a total lie, i've been parked on my ass doing dick all for the entire day.
![]() 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? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#21 |
Webmaster Extraordinaire
Industry Role:
Join Date: Jul 2002
Location: A beautiful beach...
Posts: 10,748
|
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)
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#22 | |
Confirmed User
Industry Role:
Join Date: Nov 2005
Location: RI
Posts: 2,112
|
Quote:
im thinking some kind of variation of this code Code:
<?php if (!is_paged()) : ?> include this shit only on index page <?php endif; ?> that wont work either it will come to me in a dream
__________________
![]() SUBMIT PORN BLOGS HERE ![]() ![]() ![]() ![]() ![]() ![]() ![]() Now Hiring My network is in need of clean, honest, good traders for different niches. Contact |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#23 | |
(felis madjewicus)
Industry Role:
Join Date: Jul 2006
Location: In Mom & Dad's Basement
Posts: 20,368
|
Quote:
i just dunno... |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#24 | |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,359
|
Quote:
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 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#25 |
(felis madjewicus)
Industry Role:
Join Date: Jul 2006
Location: In Mom & Dad's Basement
Posts: 20,368
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#26 | |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,359
|
Quote:
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 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#27 | |
Confirmed User
Join Date: May 2006
Location: wherever you aren't
Posts: 1,225
|
Quote:
__________________
boom chicka wah wah
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#28 |
(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?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#29 |
Confirmed User
Join Date: Oct 2008
Location: Hollywood, CA
Posts: 179
|
Thanks for the code. Very useful!
__________________
ICQ# - 498023663 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#30 | |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,359
|
Quote:
?
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#31 |
(felis madjewicus)
Industry Role:
Join Date: Jul 2006
Location: In Mom & Dad's Basement
Posts: 20,368
|
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#32 | |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,359
|
Quote:
add this to functions.php Code:
function do_pageads() { global $paged; if(!$paged) include (TEMPLATEPATH . '/front_ads.php'); else include (TEMPLATEPATH . '/other_ads.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(); ?>
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff |
|
![]() |
![]() ![]() ![]() ![]() ![]() |