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 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 07:54 AM.

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.01313 seconds
  • Memory Usage 1,737KB
  • 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
  • (4)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete