WordPress.org

Ready to get started?Download WordPress

Forums

Super-Uber Blockquotes (17 posts)

  1. TechGnome
    Moderator
    Posted 10 years ago #

    Flickerfly had posted a hack that would allow a "Source" link in blockquotes. At the same time ff also wanted to be able to name the source to give it context. Well, it's been done!
    The directions and code can be found here on my site. You can see it in action in the post there, or for a really cool effect, see Buzzing Bye for an example of quotes in a quote.....
    TG

  2. NuclearMoose
    Member
    Posted 10 years ago #

    Great stuff, TG!
    Craig.

  3. NuclearMoose
    Member
    Posted 10 years ago #

    Have any of you seen the database somehow get corrupted with weird code? I installed the blockquote code from TG and flickerfly, and although I have typed it in exactly as they have, I have a problem on the page.
    You can see the problem here. where the Source: link is listed twice. The HTML differs from the WP Post/Edit coding. I can't figure this out.
    Craig.

  4. NuclearMoose
    Member
    Posted 10 years ago #

    Hmm...I'm finding that this is quite a clunky way to create this kind of blockquote...especially for doofus Mooses like me! :)
    Craig.

  5. Matt Mullenweg
    Troublemaker
    Posted 10 years ago #

    Another script or it may be the same thing:
    http://www.1976design.com/blog/archive/2003/11/10/updates/

  6. NuclearMoose
    Member
    Posted 10 years ago #

    @allusion,
    That script seems to have solved the problem. Thanks, Matt!
    Craig.

  7. SteveB
    Member
    Posted 10 years ago #

    How would one go about getting this to work? I put link to citation.js in my index, I edited my .css file, but I don't know how to make it do the source part.
    I just installed WP today, so I don't know everything about how it works yet.

  8. tcervo
    Member
    Posted 10 years ago #

    For some reason I can't get this to work...I think I'm missing something along the way. Here's what I've done:
    * uploaded the citations.js file to my server
    * linked to the citations.js file in my template
    * added title and cite attributes to the blockquote tag
    Now, when I upload a test post, the link doesn’t show up. I’ve viewed my source and verified I’m pointing to the correct location of the .js file…and the blockquote tag has title="test title? cite="http://www.test.com? inside the opening blockquote tag.
    What am I missing?
    Thanks…

  9. NuclearMoose
    Member
    Posted 10 years ago #

    Just as a follow-up:
    Maybe one of the uber-hackers here can write up a nice little addition to the POST/EDIT GUI to make this a bit easier.
    If I knew how, I would. Really! :)
    Craig.

  10. NuclearMoose
    Member
    Posted 10 years ago #

    @TG,
    Hmm...I suspect that there is something wrong with the whole ball of wax. I'm going to strip out everything and start again. :)
    Looking forward to seeing your write-up, TG.
    Craig.

  11. tcervo
    Member
    Posted 10 years ago #

    TG,
    Aha! I've found the problem, but can't seem to nail down the fix...In my body tag, I've got onload="onloadHandler();" to preload some header graphics. When I remove that line, the blockquotes hack works fine...Seems like the body onload is conflicting with the window.onload in the script. I tried calling extractBlockquoteCitations() in the body onload, but that's not working either...I'll keep playing with it. At least I know what the problem is.
    Thanks everyone for your suggestions...
    -Tony

  12. TechGnome
    Moderator
    Posted 10 years ago #

    Just for S'n'G's..... how are you guys linking in the js file?
    This is how I've go mine linked in:
    <script src="citations.js" type="text/javascript" ></script>
    It appears, just _before_ the closing head tag.....
    If it still givesd problems, let me know. The write up it going to have more details that will clear some of this up.
    TG

  13. Matt Mullenweg
    Troublemaker
    Posted 10 years ago #

    tcervo, you need to create a function that wraps or calls everything you want to call onload.

  14. tcervo
    Member
    Posted 10 years ago #

    allusion: I had a feeling it was something along those lines. I had a thought last night about writing a "master" function that's called with the onload handler, that will call any functions I want to load...I'm too full of pie, port, and fudge to do anything about it at the moment, though ;-)
    Thanks for the help.

  15. TechGnome
    Moderator
    Posted 10 years ago #

    @tcervo
    Ah.... I missed your post when I posted last.... was more concerned with NM's problems with it.
    Part of the js file creates that hook that is needed. Since you have one already, it sounds like it will take a bit more massaging to get it to work properly. Maybe make the call at the end of your existing script?
    TG

  16. TechGnome
    Moderator
    Posted 10 years ago #

    At long last!
    I have been threatning for a week now to do a complete write up on the evloution of Uber-Blockquotes and how to use it. Well, it's finally done. The article can be found here on my developer site. It shows step by step how the UBQ is built, provides the javascript code (both with and w/o running commentary) and a sample CSS piece.
    The current incarnation of UBQ is the culmination of work by several people, I just happened to be the last one to touch it, and gave it that cherry on top.
    TG

  17. Matt Mullenweg
    Troublemaker
    Posted 10 years ago #

    What is that, XOOPS? :-p
    Run WordPress!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.