WordPress.org

Ready to get started?Download WordPress

Forums

Expandable/collapseable links by category (22 posts)

  1. bambam4479
    Member
    Posted 9 years ago #

    Does anyone know of an implementation to show link categories as collapsable sections? I know Alex does this on his site, but I don't think he has his links based on WP.

  2. Root
    Member
    Posted 9 years ago #

    Try Seriocomic He's cool.

  3. bambam4479
    Member
    Posted 9 years ago #

    thanks Root, I'll give him a shout

  4. pjoern
    Member
    Posted 9 years ago #

    Maybe I'm blind, but I don't find anywhere on Seriocomic's site where he tells how that is made. It interests me as well, can anybody explain how it's done? Available plugin?
    Jørgen Peter Kjeldsen

  5. Root
    Member
    Posted 9 years ago #

    Better still blag his CSS.

  6. hanni
    Volunteer Moderator
    Posted 9 years ago #

    Perhaps still email for approval to use his CSS?

  7. Root
    Member
    Posted 9 years ago #

    Well CSS is CSS. We all look at each others all the time. No need to copy and paste but by reading it you will learn how it works. Personally I publish everything in the expectation that if somebody wanted it they would help themselves. I do not to speak for anybody else. But when someone says *it did not explain how it works* the answer is right there in front of them.

  8. hanni
    Volunteer Moderator
    Posted 9 years ago #

    OK. No worries.

  9. pjoern
    Member
    Posted 9 years ago #

    I don't see the answer right in front of me. Well, I'm a newbie in this, and maybe I'm blind. I look at it this way:
    Studying the source html code of Seriocomic, it is obvious that he uses an onclick="showHide" script. So I don't see what I will learn from studying his CSS.
    What I am interested in is how to include this neatly into my WP weblog, so my posts become expandable/collapseable.
    I did send an e-mail to the webmaster at Seriocomic. Hopefully he will be able to help.
    Or somebody else?

  10. seriocomic
    Member
    Posted 9 years ago #

    Feel free people:
    Menus:
    http://www.seriocomic.com/rhetoric/posts/2004/04/27/the-one-about-the-collapsable-sidebar/
    CSS:
    http://www.seriocomic.com/global/styles/style.css
    If you use it and you want to then you can give me credit. If you use and improve it then let me know :)

  11. Root
    Member
    Posted 9 years ago #

    The *read it here* is the standard WP more js quicktag. Its been hacked a bit you understand. But that is what it is. No magic required.

  12. pjoern
    Member
    Posted 9 years ago #

    Well, for me that would require a bit of magic. I couldn't do that kind of hacks myself. Therefore I was asking for help, because I like that way of presenting posts - that the content of a post will expand itself onto the same page once you click a "button" like 'Read it Here'. So basicly, if someone could give me a hint as to how to implement such a hack, I would be grateful.

  13. seriocomic
    Member
    Posted 9 years ago #

    Then you would be looking for this:
    http://www.scriptygoddess.com/archives/2004/05/20/show-hide-more-with-wordpress/
    I have simply modified the text used in the link that switches. I have also included a hack that counts the number of words and images. Doing a search on these forums should point you in the right direction otherwise I can supply you with the code.

  14. pjoern
    Member
    Posted 9 years ago #

    Thank you very very much, THAT was what I have been looking for. It works beautiful!
    Sorry about all the fuzz - I probably didn't express myself very clearly earlier on...

  15. Anonymous
    Unregistered
    Posted 9 years ago #

    Seriocomic 's collapsible menu is quite wonderful, to "remember" a user's preference you can try combining it with the javascript on roasthorse's tutorial that sets a cookie for each menu state.
    I've posted some codes in Chinese WordPress but the implemetation on that particular site doesn't work so well yet. For a full-featured effect check out the menu section of this other project we've been working on. All these quoted site are in Chinese, if you need any clarification just leave me a note. :)

  16. redneck
    Member
    Posted 9 years ago #

    I'm doing this with my site. Source code in this thread.

  17. bambam4479
    Member
    Posted 9 years ago #

    Anyone able to get the implementation by Seriocomic working? I've tried a few different ways to implement but keep ending up with parsing errors: "Parse error: parse error, unexpected '>' in /home/httpd/vhosts/mostvaluablenetwork.com/httpdocs/nightly/index.php on line 9"
    see here

  18. mike
    Member
    Posted 9 years ago #

    The Scotsman has a great method for expandable menus. Just view the source of that page and look for css/feedList.css and the JS function expand. Very clean.

  19. dflateau
    Member
    Posted 9 years ago #

    I'm interested in having collapsable link categories too - the scriptygoddess plugin looks promising - does anyone know exactly how I would modify it to use link categories?

    Thanks for any help!

  20. piginzen
    Member
    Posted 9 years ago #

    has anyone designed a plugin for this feature?

  21. llizard
    Member
    Posted 9 years ago #

    I have been searching around in these forums for how to do an expandible post. I had no idea until I read Root's post here what the "more" quicktag did. I searched a little more about quicktags and "more" and have now stared at the coding in quicktags.js (in the wp-admin folder) but don't see how I would change the wording in the "more" link that appears. Instead of

    (more...)

    I would like it to read

    (read more here...)

    Please advise.

    edit: I'm running wp1.2.2

  22. llizard
    Member
    Posted 9 years ago #

    Excuse me for replying to myself. (yet another case of having to know the answer before being able to pose the question)

    Further searching of The WordPress wicki and codex and these forums with different search words, I learned that the file is

    wp-includes/template-functions-post.php

    This post is useful:
    http://wordpress.org/support/topic.php?id=22775#post-161587

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.