Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Add Social Bookmarking JS Dropdown to Threads Details »»
Add Social Bookmarking JS Dropdown to Threads
Version: 1.00, by rokked rokked is offline
Developer Last Online: Apr 2008 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.6.7 Rating:
Released: 05-23-2007 Last Update: Never Installs: 7
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 05-24-2007, 02:29 AM
rjmjr69's Avatar
rjmjr69 rjmjr69 is offline
 
Join Date: Jan 2007
Location: Southie
Posts: 876
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice nice....
Reply With Quote
  #3  
Old 05-24-2007, 07:10 AM
AK47 Nemesis AK47 Nemesis is offline
 
Join Date: Dec 2006
Location: The Netherlands
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice, i put it under the thread tools. Installed!
Reply With Quote
  #4  
Old 08-20-2007, 06:46 AM
tribedude tribedude is offline
 
Join Date: Feb 2002
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

thanks
Reply With Quote
  #5  
Old 08-21-2007, 11:00 PM
Amman-DJ.CoM's Avatar
Amman-DJ.CoM Amman-DJ.CoM is offline
 
Join Date: May 2006
Location: Athens
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i like the thread u gave us to see in ur forum ,more than the mod
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:33 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07341 seconds
  • Memory Usage 2,239KB
  • Queries Executed 20 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete