vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Link to del.icio.us from post (https://vborg.vbsupport.ru/showthread.php?t=95105)

GilbertZ 08-25-2005 10:00 PM

Link to del.icio.us from post
 
If you want to allow your users to bookmark your posts or threads, you can add this code to the end of each post.

Something like this in your postbit should work:

Search for
PHP Code:

<!-- / controls --> 

and right below add this:

PHP Code:

<br /><div align="left"><class="smallfont" href="http://del.icio.us/post?url=$vboptions[bburl]/showpost.php?p=$post[postid]&title=$post[title]target="_blank">Bookmark this post with Del.icio.us</a></div


You can modify the wording or use it on a thread level rather than a post level. Especially if you don't have that option where the thread title is quoted on a post level, because you'll have an empty title in that case.

3.50 Demo 1:

http://www.simstalk.com/forums/showthread.php?t=161

3.08 Demo 2:

http://www.diamondtalk.com/forums/t6...rsonality.html

If you like this mod bookmark it ;)

nexialys 08-26-2005 10:17 AM

<a href="http://del.icio.us/" target="_blank">http://del.icio.us/</a>

» del.icio.us is a social bookmarks manager. It allows you to easily add web pages you like to your personal collection of links, to categorize those sites with keywords, and to share your collection not only among your own browsers and machines, but also with others.
» Once you've registered for the service, you add a simple bookmarklet to your browser. When you find a web page you'd like to add to your list, you simply select the del.icio.us bookmarklet, and you'll be asked for information about the page. You can add descriptive terms to group similar links together and add notes for yourself or for others.
» You can access your list of links from any web browser. Your links are shown to you with those you've added most recently at the top. In addition to viewing by date, you can also view all links with a specific keywords (you define your own keywords as you add the links), or search your links for keywords.
» What makes del.icio.us a social system is its ability to let you see the links that others have collected, as well as showing you who else has bookmarked a specific site. You can also view the links collected by others, and subscribe to the links of people whose lists you find interesting.

jugo 08-26-2005 11:52 AM

Thanks Nexialys...I was going to ask...

And thanks Gilbertz for the hack.

/me installs.

flaregun 08-26-2005 08:46 PM

hmm, am i missing something, I just tested this hack and the link doesn't show. I think i'm dense :(

ahh, I am dense, I forgot postbit legacy :)

flaregun 08-26-2005 08:56 PM

BTW - if you want send the thread to del.icio.us, here is the code. Put it wherever you want, I put it above the 'next' and 'previous' thread.

Code:

<a class="smallfont" href="http://del.icio.us/post?url=$vboptions[bburl]/showthread.php?t=$thread[threadid]&title=$thread[title]" target="_blank">Bookmark this thread with Del.icio.us</a>

Tony G 08-27-2005 12:23 AM

Hi, thank you for sharing your mod.

Could you please put your instructions into a .txt file and attach it? Makes it easier for users who need to re-install this mod for any reason to find the file rather than this thread. Thank you. :)

totenmaske 08-27-2005 04:50 AM

Quote:

Originally Posted by flaregun
BTW - if you want send the thread to del.icio.us, here is the code. Put it wherever you want, I put it above the 'next' and 'previous' thread.

I varied this a little by placing it between the previous and next threads.

Code:

?  PREV THREAD  | DEL.ICIO.US BOOKMARK | NEXT THREAD  ?
Sweet (and quick) little mod!

GilbertZ 08-28-2005 06:46 AM

Rethinking this mod, where it really belongs and fits well is thread level and in the thread tools drop down, with a little deli.cio.us icon next to it.

I'll redo it when vb 3.5 goes gold.

Alien 09-10-2005 05:35 PM

Very nice work, thanks for this!

Alien 09-15-2005 06:48 PM

Quote:

Originally Posted by Alien
Very nice work, thanks for this!

Any idea how best to get this NOT to show in private messages? :)

GilbertZ 09-15-2005 07:41 PM

Put a conditional in it. I can't give you the exact code offhand, but open private.php and look for some variable that would be around when pulling the page. You can probably use the page name which should be defined at the top.

piXelatedEmpire 10-08-2005 07:02 AM

Quote:

Originally Posted by GilbertZ
Rethinking this mod, where it really belongs and fits well is thread level and in the thread tools drop down, with a little deli.cio.us icon next to it.

I'll redo it when vb 3.5 goes gold.

Are you still planning this update? That would be fabtastic!

GilbertZ 10-09-2005 12:40 AM

Quote:

Originally Posted by piXelatedEmpire
Are you still planning this update? That would be fabtastic!

Eventually, once I upgrade all my sites to Gold. Were you looking for this to be on thread level? Or you wanted the Gold version? I ask because this should work fine on Gold.

piXelatedEmpire 10-09-2005 03:35 AM

Yeah I was thinking the thread tools drop down box would be great.

I'm a patient man!

EricaJoy 01-01-2006 04:43 PM

Quote:

Originally Posted by GilbertZ
Rethinking this mod, where it really belongs and fits well is thread level and in the thread tools drop down, with a little deli.cio.us icon next to it.

I'll redo it when vb 3.5 goes gold.

Have you made any advances with the thread tools drop down? I'm waiting for that before I install. Thanks!

Handbag 06-28-2006 10:07 AM

It's easy to insert in the thread tools.

Open showthread and search for
Code:

<if condition="$show['addpoll']">
        <tr>
                <td class="vbmenu_option"><img class="inlineimg" src="$stylevar[imgdir_button]/addpoll.gif" alt="$vbphrase[add_a_poll]" /> <a href="poll.php?$session[sessionurl]do=newpoll&amp;t=$threadinfo[threadid]">$vbphrase[add_a_poll_to_this_thread]</a></td>
        </tr>
        </if>

Underneath it paste:

Code:

<tr>
                <td class="vbmenu_option"><img class="inlineimg" src="http://www.yoursite.com/resizeddeliciouslogo.jpg" alt="Del.icio.us" /> <a href="http://del.icio.us/post?url=$vboptions[bburl]/showthread.php?t=$thread[threadid]&title=$thread[title]" target="_blank">Bookmark with Del.icio.us</a></td>
        </tr>

I screenshoted their fullsize logo and resized it :)

I wouldn't apply any conditionals because you want as many people as possible bookmarking your links.

You could also add this to any other pulldown menu - could have individual forums bookmarkable too!

You'd probably want to remove the image to fit in wit hthe forum tools pulldown and go to forumdisplay, search for:

Code:

<tr><td class="vbmenu_option"><a href="subscription.php?$session[sessionurl]do=addsubscription&amp;f=$foruminfo[forumid]" rel="nofollow">$vbphrase[subscribe_to_this_forum]</a></td></tr>
and paste after (or after/before any of the chunks of code there depending on the order you want to achieve)

Code:

<tr>
                <td class="vbmenu_option"><a href="http://del.icio.us/post?url=$vboptions[bburl]/forumdisplay.php?f=$foruminfo[forumid]" target="_blank">Bookmark with Del.icio.us</a></td>
        </tr>


cheekymonkey2 11-01-2006 10:41 AM

Great work!

tribedude 08-28-2007 06:08 PM

Can you modify this to link to facebook from post?


All times are GMT. The time now is 04:47 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01180 seconds
  • Memory Usage 1,768KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code_printable
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (18)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete