Link Icon in Posts

Each time a user is posting a link in a post, if you want the link to be identified as is, a good Web2.0 technique is to identify the link with an icon.

The problem is that vBulletin do not put a class to the bbcode which generate the links in posts… we provide a solution here…

nex_linkicon_in_posts.jpg

… You can go to >> Google or not!

This will work in posts, but also in private messages…

note: 17/06/09, updated to 1.0.1, modifyed the HowTo.txt — read and redo what it say, to avoid applying the tag to IMG tags… thanks to [user]xOBKx[/user]
note: 10/22/09: updated the link in HowTo.txt so the addon will not add an icon on local links *(the ones on your site), thanks to [user]Taragon[/user] for the idea
note: dec. 5th, 2009: updated the css detail to avoid a typo that cause html validator to hate me!
note: dec. 8th, 2009: now version 1.5, have a local/external detector that will change the icon… you can still modify the whole css and icons if you like.

Views: 153

41 thoughts on “Link Icon in Posts”

  1. nexia dit :

    note, my version of the icon differ from the original provided in the release, as it’s a small customization for this place.. you can edit the .css in the product at any time to change its look.

    This tweak requires a simple file edit, can’t avoid it…

  2. kronnos dit :

    All this mod does is add an image near the link?

  3. nexia dit :

    exactly… this is called Web 2.0 improvement… some people think it’s interesting…

  4. natecoupons dit :

    bummer….is there another version for 3.7??

  5. natecoupons dit :

    okay I got it working for 3.7 just fine….works great. Now I have a question about the flag….currently I’m using the default image….with is that little green arrow….

    With the flag i’m assuming it’s two different images….and i have to fiddle with one of these lines:

    background-image: url(“‘ . $stylevar . ‘/nex_linkicon.png”);
    background-repeat: no-repeat;

    Is that right??

  6. nexia dit :

    yeah.. right!

  7. omegared dit :

    Hmm I tried installing this and I’m sure I did everything right, but now none of my links that I post or try and quote appear. I did everything except rebuild counters. I tried making new posts and the hyperlinks don’t appear. I’m going to see if I can reupload the class_bbcode.php to see if it fixes it.

  8. xOBKx dit :

    Thanks [user]nexia[/user], really nice and simple little touch.

    Shame about the file edit, but it’s oh so worth it.. 😉

  9. xOBKx dit :

    Is there any way to disable the “link” image if there’s url tags wrapped around img tags? Looks a little weird..

    nex_linkicon_in_posts.jpg

  10. nexia dit :

    hum, i will see to this… thanks for reporting the situation… i already saw it, but never thought i had to change it… rofl…

    it’s a bit complicated though, vB is not parsing the bbCodes properly… have to be taken globally, vB take them individually.

  11. Shelley dit :

    I’ve been pondering on whether to use this script. Thanks Nexy.

  12. nexia dit :

    as you can see, it is now corrected… version 1.0.1 is available… it will not tag the images anymore… btw, you need to drop the line you modified and redo it the new way, and rebuild counters…

    @xOBKx 21755 wrote:

    Is there any way to disable the “link” image if there’s url tags wrapped around img tags? Looks a little weird..

    nex_linkicon_in_posts.jpg

  13. xOBKx dit :

    Thank you very much.. 🙂 – You’re a star.

    Should also be noted that “Empty Signature Cache” may need to be run aswell.

  14. xOBKx dit :

    Darn it! I’ve discovered that this conflicts with AME.. 🙁

  15. nexia dit :

    i’ll see what i can do about it… i suppose that changing the order and the type of thing it can tag will give a result.

  16. xOBKx dit :

    Actually, sorry for the false alarm (and thanks for offering to look into it).

    After installing this and rebuilding my post cache, the videos disappeared – not even the links showed. So I paniced, naturally.

    However, after rebuilding the post cache you then need to rebuild the AME code aswell.. Some videos still wouldn’t show for some reason, but after manually editing the posts even these videos worked again! 🙂

    Nexia’s Link Icon and AME working in harmony example.

  17. nexia dit :

    hey hey, good to know… rofl, i did not have time to look into it yesterday evening… but now that you have the answer, it is documented… 🙂

  18. trotskid dit :

    This addon is perfect to emphasize the links in the style of my forum. Thank you! ^w^

  19. MsJac dit :

    Thanks for this wonderful add-on!
    I appreciate the effort and the share 😉

    Jacquii.

  20. Taragon dit :

    just noticed this at longtailvideo.com, and I guess it’s kind of nice

    in english 🙂
    if a link goes to its own site: ‘Posting Link Icon in Posts’ disabled, if a link goes to an external source: ‘Posting Link Icon in Posts’ enabled

  21. nexia dit :

    oh, yeah, would be logical… will add right away… 🙂

    testing: vbEnhancer.comGoogle

  22. nexia dit :

    script updated, will not activate a link icon on local link…

    only HowTo.txt have to be redone…

  23. Taragon dit :

    thanks.

    it works for class_bbcode_blog.php aswell. just have to add a new plugin or add the styling from the plugin to the style manager

  24. nexia dit :

    oh, yeah, good to know… will add it to the blog css

  25. jaderollie dit :

    couldnt get this one going sorry 🙁
    any help please

  26. Taragon dit :

    Just noticed something, which probably is a typo, causing a w3 validation error (marked in red at the code blockquote)
    [PHP]

    [/PHP]

  27. nexia dit :

    hum, yeah, maybe, but this is not the thing causing your error.. 😉

    i’ll upload a newer version in 30 seconds

    updated… and look like i was wrong, it is supposed to fix your problem.. 😉

  28. Shelley dit :

    Thanks Nexy. 🙂

    Edit: To be honest, I prefer the link icon showing when I post a link from within my site. Anychance you can post what I would need to insert to revert this back nexy so the image shows again?

    Or, why not have an alternative icon (a home image icon) when a local link is typed? I think I would like this one better. So for all external links you get the link icon and for local links the home image would be displayed.

  29. nexia dit :

    having alternative icon, i’ll see today.

  30. Shelley dit :

    @nexia 25781 wrote:

    having alternative icon, i’ll see today.

    Thanks nexy much appreciated. Yeah not so much an altenative to the link but an additional one for the local links but still retain the link icon for external sources.

  31. nexia dit :

    i understood perfectly at first, darlin’ 😉

  32. Shelley dit :

    @nexia 25783 wrote:

    i understood perfectly at first, darlin’ 😉

    You got my hopes up. There’s the thinking it was updated and you where giving me confirmation of my confirmation that you understood but i was unsure that you really understood resulting in the following….

    It’s like going into mcdonalds for a bigmac deluxe and getting home only to find that the deluxe bigmac isn’t a deluxe but a default big mac. You wanted that upgrade of the deluxe but you now have to go back and complain to get that deluxeversion with the extra slice of gherkin or in my case a link . lol

    Yeah, I just wanted to make sure nexy. 😉

  33. nexia dit :

    ok, let’s see if the new implementation will work:

    1- an external link: Google that will show a bookmark icon… hover it to see it change size
    2- an internal link, vbEnhancer.com that is supposed to show a house…

    you can always edit the css to disable the hovering effect, and you can change your icons all the way… or use the same icon for both local and external… etc… you have to rebuild your posts cache again if you update.

  34. Shelley dit :

    Thanks nexy much appreciated. I didn’t see the external icon in the archive anychance you could include that.

    Thanks again. 😉

  35. nexia dit :

    i did not upload the latest version yet, sorry, i was with the kids… lol
    father working at home, i suppose it is mentionned somewhere!

  36. nexia dit :

    updated to 1.5… 😉

  37. Shelley dit :

    Thanks again Nexy, and confirming that it’s all working great on my forum.

  38. Taragon dit :

    Neat! Much appreciated 🙂

  39. trotskid dit :

    Thanks nexia (Y)

    PS: it’s necessary edit again class_bbcode.php file?

  40. nexia dit :

    yeap, the changes in the new version are complete rewrite of the line to add in the class_bbcode.php … replace the old one with the new one.

  41. trotskid dit :

    Ok, thx.

    —-

Laisser un commentaire

Ce site utilise Akismet pour réduire les indésirables. En savoir plus sur comment les données de vos commentaires sont utilisées.

En savoir plus sur Un Papa Pro

Abonnez-vous pour poursuivre la lecture et avoir accès à l’ensemble des archives.

Continue reading