Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications

Reply
 
Thread Tools
"Share" Button in NavBar and Showthread (links to over 200 social networking sites) Details »»
"Share" Button in NavBar and Showthread (links to over 200 social networking sites)
Version: 1.00, by bmckinley bmckinley is offline
Developer Last Online: Apr 2014 Show Printable Version Email this Page

Category: Social Group and Album Enhancements - Version: 3.8.x Rating:
Released: 07-25-2009 Last Update: Never Installs: 32
Template Edits
Re-useable Code Translations  
No support by the author.

This is more of an idea than a really involved mod. Just a little template edit that places the "Share" button from www.addthis.com the Navbar so your posts and threads can be Shared with the world easily. Thanks go out to all the other people who published mods that showed me how.

1. DEMO HERE to see if this is something you want to do.

2. Go to www.addthis.com and get your own button code. Save in WordPad then go to step 3.

3. In navbar template find:
Code:
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
                </if>
4. Insert below: (REPLACE CODE IN RED WITH CODE YOU GOT FROM WWW.ADDTHIS.COM IN STEP 2.)
Code:
<td class="vbmenu_control"><!-- AddThis Button BEGIN -->
<a href="http://www.addthis.com/bookmark.php?v=250&pub=hearts4horses" onmouseover="return addthis_open(this, '', '[url]', '[TITLE]')" onmouseout="addthis_close()" onclick="return addthis_sendto()"><img src="http://s7.addthis.com/static/btn/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js?pub=hearts4horses"></script>
<!-- AddThis Button END -->
</td>
5. Save

6. (optional) Post a thread notifying your members about the new feature.

7. Click "Installed"

This is a simple way to allow for additional cross networking for your forums.

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
Taleempoint

Comments
  #12  
Old 08-16-2009, 03:50 AM
Saint_I_Am Saint_I_Am is offline
 
Join Date: Aug 2008
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks, will install in a few days
Reply With Quote
  #13  
Old 08-16-2009, 07:24 AM
zelnik zelnik is offline
 
Join Date: Aug 2008
Posts: 374
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what does it do that this: https://vborg.vbsupport.ru/showthread.php?t=209507 does not?

thanks
Reply With Quote
  #14  
Old 08-16-2009, 12:20 PM
bmckinley's Avatar
bmckinley bmckinley is offline
 
Join Date: Jun 2009
Location: Texas
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by zelnik View Post
what does it do that this: https://vborg.vbsupport.ru/showthread.php?t=209507 does not?

thanks

Nothing different as far as I can see. Did not find previous when looking at Temp Mods. They both do the same thing.

Also, some may want to disable the hover over opening of the links window...sometimes it can be annoying when it seems to just open even if you just get close to it...here's how:

Within your www.addthis.com code, locate and REMOVE the following:

HTML Code:
onmouseover="return addthis_open(this, '', '[url]', '[TITLE]')" onmouseout="addthis_close()" 
You can still click to open the "Share Links" window, but it won't just pop open on hover.
Reply With Quote
  #15  
Old 09-17-2009, 11:41 PM
BettorsTalk.com BettorsTalk.com is offline
 
Join Date: Mar 2002
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

On the following code:

<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>

Are you saying to replace the above code starting at:

<a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>

with the addthis code?
Reply With Quote
  #16  
Old 09-21-2009, 01:02 PM
bmckinley's Avatar
bmckinley bmckinley is offline
 
Join Date: Jun 2009
Location: Texas
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Insert below, do not replace.
Reply With Quote
  #17  
Old 09-24-2009, 02:31 PM
Hostboard's Avatar
Hostboard Hostboard is offline
 
Join Date: May 2002
Location: CT
Posts: 843
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Pretty kewl though I recommend users get their own link. I also used TMS and placed this in to my showthread_bookmarks template so the links appear where they normaly do as not to confuse the end users.

If anyone needs a hand placing it there feel free to let me know. I did not want to hijack the authors modification.

Good job :up:
Reply With Quote
  #18  
Old 09-25-2009, 01:13 AM
bmckinley's Avatar
bmckinley bmckinley is offline
 
Join Date: Jun 2009
Location: Texas
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please feel free to "hijack"...that's what this forum is about. The more and unique uses the better. Please post your code adjustments for all to share.
Reply With Quote
  #19  
Old 09-25-2009, 10:47 AM
Hostboard's Avatar
Hostboard Hostboard is offline
 
Join Date: May 2002
Location: CT
Posts: 843
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you...

First off I highly recommend using TMS
https://vborg.vbsupport.ru/showthread.php?t=152931

This will allow you to install mods like this but yet not manualy make any template changes which then allows for much easier upgrades without getting the out of date custom template messages. Uninstalling is as easy as disabling or deleting the TMS entry. No more reverting and pooring over code for changes!

So to place this in the Bookmarks section of your site (Manualy):

1. In your ACP under VBulletin options go to the Social Bookmark manager. Disable everything (uncheck) EXCEPT for 1 item. I left Google checked.

2. Find the showthred_bookmark template

Find:
Code:
<if condition="$bookmarksite['iconpath']">
  <a href="$bookmarksite[link]" target="socialbookmark"><img src="$stylevar[imgdir_misc]/$bookmarksite[iconpath]" border="0" alt="<phrase 1="$bookmarksite[title]">$vbphrase[submit_thread_to_x]</phrase>" class="inlineimg" /></a>
 </if>
 <a href="$bookmarksite[link]" target="socialbookmark" style="text-decoration:none">$bookmarksite[title]</a>
Replace with the code you get from the site as noted in the authors post.

Thats it.
Reply With Quote
  #20  
Old 09-25-2009, 11:00 AM
VB1r@n VB1r@n is offline
 
Join Date: Sep 2009
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i will try.
thank
Reply With Quote
  #21  
Old 09-25-2009, 02:59 PM
realdx realdx is offline
 
Join Date: Mar 2009
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To somebody knowledge, is it possible to configure the button to share only on Facebook? thanks! great hack!!
Reply With Quote
Reply

Thread Tools

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 03:04 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.06756 seconds
  • Memory Usage 2,327KB
  • Queries Executed 27 (?)
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)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete