Wordpress plugin needed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mike Semen
    Confirmed User
    • Dec 2001
    • 2924

    #1

    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 |
  • candyflip
    Carpe Visio
    • Jul 2002
    • 43069

    #2
    http://www.quickonlinetips.com/archi...press-widgets/

    http://wordpress.org/extend/plugins/widget-logic/
    Last edited by candyflip; 02-21-2009, 11:56 AM.

    Spend you some brain.
    Email Me

    Comment

    • who
      So Fucking Banned
      • Aug 2003
      • 19593

      #3
      I need to fuck a five-foot, 90lbs blonde chick in the ass, so what...?

      Comment

      • fris
        Too lazy to set a custom title
        • Aug 2002
        • 55679

        #4
        easy to do
        Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

        Comment

        • Angry Jew Cat - Banned for Life
          (felis madjewicus)
          • Jul 2006
          • 20368

          #5
          doable manually for anywhere in the theme with conditional includes, not sure how to go about doing it with a plugin or widget though.

          Comment

          • Mike Semen
            Confirmed User
            • Dec 2001
            • 2924

            #6
            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 |

            Comment

            • Angry Jew Cat - Banned for Life
              (felis madjewicus)
              • Jul 2006
              • 20368

              #7
              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
              Last edited by Angry Jew Cat - Banned for Life; 02-21-2009, 12:06 PM.

              Comment

              • Mike Semen
                Confirmed User
                • Dec 2001
                • 2924

                #8
                thanks Jew Cat! Have a feeling that may get complicated if there's 200 different bits to include...
                ICQ 1454 81 522 |

                Comment

                • Mike Semen
                  Confirmed User
                  • Dec 2001
                  • 2924

                  #9
                  Originally posted by who
                  I need to fuck a five-foot, 90lbs blonde chick in the ass, so what...?
                  Don't we all?
                  ICQ 1454 81 522 |

                  Comment

                  • Machete_
                    WINNING!
                    • Oct 2002
                    • 14579

                    #10
                    Originally posted by Angry Jew Cat
                    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

                    Comment

                    • Angry Jew Cat - Banned for Life
                      (felis madjewicus)
                      • Jul 2006
                      • 20368

                      #11
                      Originally posted by Mike Semen
                      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.
                      Last edited by Angry Jew Cat - Banned for Life; 02-21-2009, 12:12 PM.

                      Comment

                      • Mike Semen
                        Confirmed User
                        • Dec 2001
                        • 2924

                        #12
                        Originally posted by Angry Jew Cat
                        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 |

                        Comment

                        • Mike Semen
                          Confirmed User
                          • Dec 2001
                          • 2924

                          #13
                          Jewcat just saw your edit... will do
                          ICQ 1454 81 522 |

                          Comment

                          • Doctor Feelgood
                            Confirmed User
                            • Nov 2005
                            • 2112

                            #14
                            Originally posted by Angry Jew Cat
                            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; ?>

                            Comment

                            • uno
                              RIP Dodger. BEST.CAT.EVER
                              • Dec 2002
                              • 18450

                              #15
                              Originally posted by Angry Jew Cat
                              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!

                              Comment

                              • uno
                                RIP Dodger. BEST.CAT.EVER
                                • Dec 2002
                                • 18450

                                #16
                                if/elseif
                                -uno
                                icq: 111-914
                                CrazyBabe.com - porn art
                                MojoHost - For all your hosting needs, present and future. Tell them I sent ya!

                                Comment

                                • Angry Jew Cat - Banned for Life
                                  (felis madjewicus)
                                  • Jul 2006
                                  • 20368

                                  #17
                                  Originally posted by Doctor Feelgood
                                  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...

                                  Comment

                                  • dial
                                    Confirmed User
                                    • May 2006
                                    • 1225

                                    #18
                                    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

                                    Comment

                                    • Angry Jew Cat - Banned for Life
                                      (felis madjewicus)
                                      • Jul 2006
                                      • 20368

                                      #19
                                      Originally posted by dial
                                      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.

                                      Comment

                                      • Angry Jew Cat - Banned for Life
                                        (felis madjewicus)
                                        • Jul 2006
                                        • 20368

                                        #20
                                        Originally posted by Angry Jew Cat
                                        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?

                                        Comment

                                        • czarina
                                          Webmaster Extraordinaire
                                          • Jul 2002
                                          • 10752

                                          #21
                                          Originally posted by Angry Jew Cat
                                          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)

                                          Comment

                                          • Doctor Feelgood
                                            Confirmed User
                                            • Nov 2005
                                            • 2112

                                            #22
                                            Originally posted by Angry Jew Cat
                                            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

                                            Comment

                                            • Angry Jew Cat - Banned for Life
                                              (felis madjewicus)
                                              • Jul 2006
                                              • 20368

                                              #23
                                              Originally posted by Doctor Feelgood
                                              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...

                                              Comment

                                              • fris
                                                Too lazy to set a custom title
                                                • Aug 2002
                                                • 55679

                                                #24
                                                Originally posted by Doctor Feelgood
                                                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.

                                                Comment

                                                • Angry Jew Cat - Banned for Life
                                                  (felis madjewicus)
                                                  • Jul 2006
                                                  • 20368

                                                  #25
                                                  Originally posted by fris
                                                  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...

                                                  Comment

                                                  • fris
                                                    Too lazy to set a custom title
                                                    • Aug 2002
                                                    • 55679

                                                    #26
                                                    Originally posted by Angry Jew Cat
                                                    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.

                                                    Comment

                                                    • dial
                                                      Confirmed User
                                                      • May 2006
                                                      • 1225

                                                      #27
                                                      Originally posted by Angry Jew Cat
                                                      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

                                                      Comment

                                                      • Angry Jew Cat - Banned for Life
                                                        (felis madjewicus)
                                                        • Jul 2006
                                                        • 20368

                                                        #28
                                                        you don't happen to know a way to assign includes to specific pages in your general posting pagination would you?

                                                        Comment

                                                        • Tsang
                                                          Confirmed User
                                                          • Oct 2008
                                                          • 179

                                                          #29
                                                          Thanks for the code. Very useful!
                                                          ICQ# - 498023663

                                                          Comment

                                                          • fris
                                                            Too lazy to set a custom title
                                                            • Aug 2002
                                                            • 55679

                                                            #30
                                                            Originally posted by Angry Jew Cat
                                                            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.

                                                            Comment

                                                            • Angry Jew Cat - Banned for Life
                                                              (felis madjewicus)
                                                              • Jul 2006
                                                              • 20368

                                                              #31
                                                              Originally posted by fris
                                                              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.

                                                              Comment

                                                              • fris
                                                                Too lazy to set a custom title
                                                                • Aug 2002
                                                                • 55679

                                                                #32
                                                                Originally posted by Angry Jew Cat
                                                                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.

                                                                Comment

                                                                Working...