Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Intra-vanilla link preview

2»

Comments

  • Options
    edited November 2006
    Have you follow the instructions ?
    "This extension require also the Jquery library.
    Download it at http://jquery.com/src/jquery-latest.pack.js and save in /vanillafolder/js/jquery.js

    You also need to open extensions/PreviewBubble/previewbubble.js and edit the line 10:
    var bubbleImagePath = '/Vanilla/extensions/PreviewBubble/bg.png';

    Change it for the correct path."


    Edit: Can you enable again the extension on your forum?
  • Options
    Oops, just re-enabled it now! Yup I've followed this instructions ( http://www.glosunit.co.uk/js/jquery.js for example ) but still not having any luck unfortunately.

    Do you think it could be because I'm using Vanilla 1.0?
  • Options
    edited November 2006
    It is working
    Image Hosted by ImageShack.us
  • Options
    blizeHblizeH ✭✭
    edited November 2006
    Ahh excellent thank you! For some reason I thought it would display discussions etc too but then I realised that'd be pretty pointless :-)

    Rated! Thanks again
  • Options
    yw :-)
  • Options
    How come some previews come up with this...

    pic
  • Options
    edited November 2006
    Look at the address of the image:http://images.websnapr.com/?url=undefined
    That could be the problem. Should also note that thumbnails would not work in a private forum, since websnapr would need access to the pages to be able to thumbnail them.
  • Options
    I realise the address above is undefined but the one being rolled-over is a valid one.
    Maybe it's the long string after the ? in the address that is not being followed.

    Also, this URL comes up forbidden...
    http://www.apple.com/getamac/
  • Options
    It's because god hates Apple Macs.
  • Options
    I don't think so, He is Steve Jobs' father!

    (I hope that's not blasphemous, I hear a little thunder in the distance)
  • Options
    edited November 2006
    It is working http://images.websnapr.com/?url=http%3A%2F%2Fwww.apple.com%2Fgetamac%2F&size=m
  • Options
    edited November 2006
    The extension itself works however it's been hours now and I still get Forbidden...

    Later: With a text link it works but with an image link it says FORBIDDEN, go figure.

    See it here:
    http://www.debono.com.au/forum/comments.php?DiscussionID=40
  • Options
    @ DinoBoff: looks great. Still have to install it (busy week)

    It's not exactly what I needed/envisioned though.

    I want to read the text (pointing at intra-forum discussion or specific comment) while
    hovering. No thumbnails required I think, nor thick/thinbox or jquere (?)

    Hover -> ajaxy action to retrieve text stored in forum DB (URL points to discussion or
    comment) -> shown this text in tooltip (with some stylesheet)

    Possible? Anyone? I think it would make navigating vanilla forums much easier (and
    add another competitive advantage to Vanilla over vBulletin c.s.).
  • Options
    edited November 2006
    Thanks for this kickass extension :D It's more gadget than a really needed feature, but I love it.

    Would there be a way to limit the bubble display for particular links? For example, I'm using Jazzman's attachments extension, and empty bubbles appear when hovering the attached files links. Also, would it be possible to make no preview for internal links? Previews of links related to other discussions are quite pointless in my opinion.

    It would also be nice to add a "disable preview bubbles" checkbox in the account settings for people who will find this feature annoying - and I'm sure there will be some.
  • Options
    To remove the preview for some link, depending of of the href attibute, you just to add after the 248 of previewbuble.js something like that:
    //remove previewlink class from external link for the forum $("div.CommentBody/a.previewlink[@href^='http://www.domain.com/vanilla/']").removeClass("previewlink"); //remove previewlink class from internal links with relative path starting with extensions/ $("div.CommentBody/a.previewlink[@href^='extensions/']").removeClass("previewlink"); //remove previewlink class from links with absolute path to the forum $("div.CommentBody/a.previewlink[@href^='/forum/']").removeClass("previewlink");
  • Options
    edited November 2006
    It works fine for the internal links, except for some reason, previews still show on links included in a HTML bold tag. Your solution to get rid of previews for the Attachments extension didn't work in the beginning, but after a dozen of blind tries (yeah I suck...) I came up with this, which seems to do the trick:

    $("div.Attachments/ul/li/a.previewlink[@href^='http://www.domain.com/']").removeClass("previewlink");
    I believe the reason is it has its own class, independantly from the .CommentBody class.

    Thanks a lot for the hints :)
  • Options
    I like the new add-on, but would still love a much simpler pop-up for discussions within the same forum
    (clean simple, quick, no ads, graphics etc., just retrieve the discussion title & content, not the comments)
  • Options
    I will look at it.
  • Options
    TomTesterTomTester New
    edited December 2006
    To clarify (and bump it a tiny little bit):

    I'd like something like the amazon 'live' pop-up links at the bottom of this page, retrieving the referenced
    discussion or comment (and nothing else, no browser chrome, images, etc.):

    http://www.stnicholascenter.org/Brix?pageID=35
  • Options
    gee they are cool; similar to the britney-and-pussy discussion, it is only a matter of taste. have there been any others that have been developed / released since the last post ?
This discussion has been closed.