vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Show Thread Enhancements - Add Social Bookmarking JS Dropdown to Threads (https://vborg.vbsupport.ru/showthread.php?t=147987)

rokked 05-23-2007 10:00 PM

Add Social Bookmarking JS Dropdown to Threads
 
I have this running on 3.6.7 you can see it in action at: http://forums.rokked.com/showthread.php?t=72

edit templates:
> headinclude
Code:


<script language="JavaScript">

function openDir( form ) {

        var newIndex = form.fieldname.selectedIndex;

        if ( newIndex == 0 ) {

                alert( "Please select a location!" );

        } else {

                cururl = form.fieldname.options[ newIndex ].value;

                window.location.assign( cururl );

        }

}
</script>

edit templates:
> SHOWTHREAD

FIND
Code:

<if condition="$show['inlinemod']">
                <if condition="$show['popups']">
                        <td class="vbmenu_control" id="imod" align="center" title="$vbphrase[moderation]"><script type="text/javascript"> vbmenu_register('imod'); </script></td>
                <else />
                        <td class="thead" align="center">
                                <input type="checkbox" name="allbox" id="checkall_all" title="$vbphrase[check_uncheck_all]" onclick="inlineMod.check_all()" />
                        </td>
                </if>
        </if>
</tr>

UNDER IT ADD
Code:

<tr>
<td class="tcat" align="right" colspan="5" width="100%">
<!--social bookmarks-->
<form name=bookmarks>
<select name="fieldname" size="1" onChange="openDir( this.form )">

<option>internet 2.IMO </option>
<option value=http://del.icio.us/post?url=$vboptions[bburl]/showthread.php?t=$threadid>del.icio.us </option>
<OPTION VALUE=http://digg.com/submit?phase=2&amp;url=$vboptions[bburl]/showthread.php?t=$threadid>Digg it</option>
<OPTION VALUE=http://www.facebook.com/sharer.php?u=$vboptions[bburl]/showthread.php?t=$threadid>Facebook Share</option>
<OPTION VALUE=http://www.blogger.com/blog_this.pyra?u=$vboptions[bburl]/showthread.php?t=$threadid>Blogger</option>
<OPTION VALUE=http://myweb2.search.yahoo.com/myresults/bookmarklet?t=$vboptions[bburl]/showthread.php?t=$threadid> Yahoo MyWeb</option>
</select> </form>
<!--social bookmarks-->
</td>
</tr>
</table>

You can basically add the SHOWTHREAD code anywhere you want, this enhancement doesnt require you include the ShowThread code in the same spot as I did, but that's where I have it added. You can basically add any bookmarking site if you find the URL.

Pretty simple. So have fun with it.

rjmjr69 05-24-2007 02:29 AM

nice nice....

AK47 Nemesis 05-24-2007 07:10 AM

Nice, i put it under the thread tools. Installed!

tribedude 08-20-2007 06:46 AM

will this work in 3.5x? or is there a similar mod for 3.5x?

thanks

Amman-DJ.CoM 08-21-2007 11:00 PM

i like the thread u gave us to see in ur forum ,more than the mod :D


All times are GMT. The time now is 01:11 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.00952 seconds
  • Memory Usage 1,724KB
  • 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
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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