• Currently I’m still using the default layout and I want to start changing small things first. It seems that my links are all posted in the same place in one list regardless of how I change the link groups they belong to. I would like the Links to be displayed in the same place but separated by what link group they belong to, with the group being preceded by the name of the group. How would I do that?

Viewing 15 replies - 1 through 15 (of 23 total)
  • Exactly what I was coming here to post. My blogroll got hijacked this morning, just like everyone else’s.
    I had the links section filled with a few message boards I go to but would like to have a reads section separate from the links. Is this possible using the link manager, or will everything be in one place? I use .CSS and have “Reads” in one part of my sidebar and “Links” in another part.
    Any help would be great! ??

    Ajay, You could use the get_links_list() function that dougal wrote for links.php It spits out all the links in their respective categories as an ordered list. The parameters are order by (default is name) and whether to show blank categories or not (default is to leave empty categories out)
    SG, there are a couple of functions in links.php which could help you out. It sounds like you already know the categories you want to seperate. You could use get_linksbyname() There is a good set of comments inside wp-links/links.php which tells you how to use the functions.
    Hope this helps.
    Peace.

    Thread Starter ajaychandra

    (@ajaychandra)

    Thanks for the info, I replaced get_links with get_links_list in the default layout and it does what I want, but only problem is that the font sizes of the actual categories has gotten a bit smaller, and the actual links are in a tiny font, I guess it’s nesting two tags that cause font size to be reduced, any idea what I need to make changes to in order for the size to not get reduced twice?

    Thanks you laughing lizard you! I will have to play with this later on… ??

    Good question, I might retool the function to get that right. I have been wanting to implement that myself, but that waited because of the font size issue. I dont want to fix it in the CSS (which you could do) because I am using that nesting elsewhere. Look for a hack/fix later tonight or tomorrow on this thread.

    Worked great, laughing lizard, THANK YOU! Now…one more question! How do I get links to show updated? ??

    There has to be a way as I have seen it on other blogs.

    Hi All,
    If you use wp_get_linksbyname() instead of get_linksbyname() then the list of links will be displayed according to the parameters you set in the ‘manage link categories’ page. Ditto for wp_get_links instead of get_links.
    southerngal,
    in order to get updated to work, you need to do a couple of things:
    1. Set the option to show updated on the manage link categories page.
    2. Under Options -> Link Manager Settings you can specifiy various related parameters for the display of updates. For now I would leave the defaults.
    3. Uncomment the line from the default index.php
    require_once($abspath.’wp-links/links.weblogs.com.php’)
    make sure the file weblogs.com.changes.cache is writable by your web server.
    4. And then it should start working.
    It will grab the list of updated weblogs (set in options) from weblogs.com once per hour (default, change it in options) and set the updated timestamp in any links you have which appear in the file from weblogs.com.
    That last updated timestamp will be displayed as a title attribute (tooltip) of the link. If the last updated timestamp is within the two hours (again, set in options) of the current time then it will use the prepend and append text specified in, you guessed it, options around the link.
    Hope that helps,
    Mike

    Sorry….Mike beat me to it…school tripped me over! ??

    Thanks Mike, I went through and double checked everything. I think everything is right, yet, it’s not working. ??

    SG, the update issue takes a couple of minutes (took mine quite a few minutes the first time) to sync, patience worked for me that time ?? The code gets a little convoluted and time dependant because of the XML updates from Blogrolling. Is your file gettings updated? Check the time stamp on your updates file. If not, you might have a problem.
    Ajay, I fixed the links list to my satisfaction. Check it out at https://dinki.mine.nu/weblog/ and if you like it, here is what you do:
    Replace your links.php under the wp-links folder with the text from the following file: https://dinki.mine.nu/weblog/b2-img/links.phps

    Thread Starter ajaychandra

    (@ajaychandra)

    Thanks for the the fix Liza, once I replaced my links.php file the new links showed in the appropriate size. However another problem cropped up, they are nowunderlined, and they weren’t before. I guess I have to change the css file for that, any idea what section I should change to remove the underline? scribbles.mobiustrip.org is the address of my site.

    Crapola…anybody care to tell a newbie how to properly post something to show the code with actually having the code render? ??
    I am a doofus tonight..
    Craig.

    I use a decoder in IE, can’t find one yet for Mozilla! There’s a thread on here somewhere, hunt for “decoder” ??
    Mike, how do you change the “just updated” << to something else? I want a “*” instead. And how do you change the timestamp for the updates? I’m assuming they are both in the same file, right?

    SG: Look under Link Manager Settings under the options page, all the settings you need are in there…

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘Changing Link layout’ is closed to new replies.