Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Blogs and Blogging (http://www.greenguysboard.com/board/forumdisplay.php?f=8)
-   -   Displaying different link categories (http://www.greenguysboard.com/board/showthread.php?t=33150)

karomesis 2006-07-22 03:59 PM

Displaying different link categories
 
Hey guys, I was wondering if anyone here has knowledge of how to display different link categories with different post categories?

I have 3 blogs that are interconnected on one main site, but I really want them to each have their own seperate links for obvious reasons.

any help is appreciated.|thumb

virgohippy 2006-07-22 11:37 PM

I don't have a solution, but I have a suggestion: Mention the blog script you're using. :D

karomesis 2006-07-23 12:32 AM

my bad...WP.

virgohippy 2006-07-23 02:39 AM

No worries. WP is the standard... so I guess I shouldn't have bothered asking. :D

ronnie 2006-07-23 03:14 PM

I dont use wordress, so I'm no help.

ronnie.

karomesis 2006-07-23 05:35 PM

Ronnie, is it possible with the blog software you use?

ronnie 2006-07-24 11:26 AM

Honestly, I am not totally sure what you are asking. I've read it a couple times and I am still not sure, or I am just wacked this week..:)

I use movable type.

ronnie

walrus 2006-07-24 02:53 PM

Basicly what he's trying to ask is if anyone knows if it is possible to display different groups of links depending upon the post category you are viewing.

I admit that I doubt it, I also wouldnt be surprised if it was possible to do.

ronnie 2006-07-24 06:04 PM

Oh, okay, boy I missed that one. Actually probably would'nt be hard to do with php and mysql. If you could just grab a variable then you could pull all the links you want from what ever catagory.

ronnie

virgohippy 2006-07-24 07:23 PM

I don't use WP, but is this the kind of thing you're looking for?

http://rudd-o.com/projects/wp-list-main-cats/

EDIT: For future reference, I found it here:

http://wp-plugins.net/

karomesis 2006-07-25 01:12 AM

gracias amigo|thumb

I seem to be technically challenged to say the least, I'm still trying to figure out what a tag is|shocking|

virgohippy 2006-07-25 01:33 AM

Quote:

Originally Posted by karomesis
I'm still trying to figure out what a tag is|shocking|

http://www.technorati.com/help/tags.html

I should've been born a hunting dog. :D

walrus 2006-08-02 02:16 PM

I was checking around in the WP template tags today for somthing I want to do on one of my blogs and ran across your solution.

Lets say you have a site http://www.yoursite.com and you want to have different links on your home page than a couple of your category pages. Say you have a cams category and a teen category.

Make 3 link categories...one well call blogroll and it is your main index page links. One call cams and the other lets call teens.

Where you want the links to appear on your sidebar, add this:
Code:

if (is_category(cams)) {
        echo "
    ";
            wp_get_linksbyname('cams');
            echo "
";
} elseif (is_category(teens)) {
        echo "
    ";
            wp_get_linksbyname('teens');
            echo "
";
} else {
        echo "
    ";
            wp_get_linksbyname('blogroll');
            echo "
";
}
?>

When you do link exchanges anyone linking to your home page (http://www.yoursitename.com will be added to the blogroll category. Now depending on how permalinks is setup: anyone trading with your cams pages will be link to http://www.yoursitename.com/category/cams and you would add their site to the cam category trade, linking to teens would be http://www.yoursite.com/category/teens and their links would be added by you in the teens category.

Disclaimer: I haven't tested it and usually I fuck it up the first dozen or so times before I get it right so be prepared for a little trial and error.

karomesis 2006-08-02 03:25 PM

Thanks for the help walrus:D

Although, I think I'll probably fuck up 50 times before I get it right.|violin|

ronnie 2006-08-03 12:00 PM

php can be golden..:)

ronnie

virgohippy 2006-08-03 03:31 PM

Or it can be a real sun-of-a-bitch, and turn your whole site into a big picture of a polar bear covering his nose in the middle of a snow storm.

|banghead| |banghead| |banghead|

DON'T FORGET THE SEMI-COLONS!!!


All times are GMT -4. The time now is 12:06 PM.

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