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

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
  #22  
Old 09-25-2009, 03:11 PM
Hostboard's Avatar
Hostboard Hostboard is offline
 
Join Date: May 2002
Location: CT
Posts: 843
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am not sure addthis allows selective bookmark usage. But you can always just use VB's book mark manager:

Just need to set the icon and link
You could technicaly also just add a link in your navbar for this pretty easily as well if you did not want to use the default system.
Reply With Quote
  #23  
Old 09-30-2009, 02:02 AM
bmckinley's Avatar
bmckinley bmckinley is offline
 
Join Date: Jun 2009
Location: Texas
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by realdx View Post
To somebody knowledge, is it possible to configure the button to share only on Facebook? thanks! great hack!!
Hostboard hit it right on the money...don't think the add this can be restricted to FB only.

Quote:
Originally Posted by Hostboard View Post
I am not sure addthis allows selective bookmark usage. But you can always just use VB's book mark manager:

Just need to set the icon and link
You could technicaly also just add a link in your navbar for this pretty easily as well if you did not want to use the default system.
The navbar thing would be really cool. Hostboard, do you want to either post or publish a hack on how to? if not, I'll do it, but your idea, so just go with it...if you publish, don't forget to come back here and edit in a link to your mod. Thanks for the help and suggestions about tms.
Reply With Quote
  #24  
Old 09-30-2009, 04:10 PM
Rean Rean is offline
 
Join Date: Sep 2009
Location: Indonesia
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi, can somebody help.. i've tried your demo in http://hearts4horses.net/member_forum/upload/index.php

and when i try to share on facebook, i've got this



but after installation in my vbulletin, i've only got this



can somebody help? how can i show the thread title, pics, and thread content at my wall post?

thanx and regards.
Reply With Quote
  #25  
Old 10-01-2009, 12:26 PM
bmckinley's Avatar
bmckinley bmckinley is offline
 
Join Date: Jun 2009
Location: Texas
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Rean View Post
hi, can somebody help.. i've tried your demo in http://hearts4horses.net/member_forum/upload/index.php

and when i try to share on facebook, i've got this



but after installation in my vbulletin, i've only got this



can somebody help? how can i show the thread title, pics, and thread content at my wall post?

thanx and regards.
Hello,
It appears from your screenshots, that you have the install done correctly. To add content to "share" just copy what you want from your threads, and paste it into the box. Try that and let us know if it works.
Reply With Quote
  #26  
Old 10-02-2009, 07:46 AM
Rean Rean is offline
 
Join Date: Sep 2009
Location: Indonesia
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bmckinley View Post
Hello,
It appears from your screenshots, that you have the install done correctly. To add content to "share" just copy what you want from your threads, and paste it into the box. Try that and let us know if it works.
hi... thanx for reply...

but in my first screen shot (from the demo forum), i dont have to copy anything into the box...........
Reply With Quote
  #27  
Old 10-04-2009, 01:39 AM
bmckinley's Avatar
bmckinley bmckinley is offline
 
Join Date: Jun 2009
Location: Texas
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Rean View Post
hi... thanx for reply...

but in my first screen shot (from the demo forum), i dont have to copy anything into the box...........
Content goes in the box which has "What's on your mind?" as default text. Tried to log on to your forum but could not get it to come up. I do not know why your button doesn't add the title and options for a thumbnail. Did you get button code from AddThis.Com?
Reply With Quote
  #28  
Old 10-05-2009, 03:23 AM
Rean Rean is offline
 
Join Date: Sep 2009
Location: Indonesia
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bmckinley View Post
Content goes in the box which has "What's on your mind?" as default text. Tried to log on to your forum but could not get it to come up. I do not know why your button doesn't add the title and options for a thumbnail. Did you get button code from AddThis.Com?
yes i've got the button code from addthis.com
i also try your code:
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>
but still give me the same result...
i also try tu change my style and template to default style, but still the same again..
any idea?
Reply With Quote
  #29  
Old 10-06-2009, 02:08 AM
bmckinley's Avatar
bmckinley bmckinley is offline
 
Join Date: Jun 2009
Location: Texas
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The only other thoughts I have is the difference in "Sharing" from the Navbar vs. "Sharing" from a Postbit and possibly a difference in the url calling features from Facebook US vs. Facebook Indonesia. What is the log in URL for Facebook there?

We don't have many installs to ask, but has anyone else had this problem?
Reply With Quote
  #30  
Old 10-06-2009, 04:09 AM
Rean Rean is offline
 
Join Date: Sep 2009
Location: Indonesia
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

dont you think it's should be the same?
from the 2 screen shots, i was logged in to facebook with the same login...

the login URL is
www.facebook.com

can somebody help?
Reply With Quote
  #31  
Old 10-09-2009, 09:39 PM
bmckinley's Avatar
bmckinley bmckinley is offline
 
Join Date: Jun 2009
Location: Texas
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Rean View Post
dont you think it's should be the same?
from the 2 screen shots, i was logged in to facebook with the same login...

the login URL is
www.facebook.com

can somebody help?
Please create a user id and PW for me to log in to your forum and PM it to me along with the url for your forum. I will log in and try and see what is going on.
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 06:28 PM.


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.07433 seconds
  • Memory Usage 2,342KB
  • 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
  • (5)bbcode_code
  • (7)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
  • (4)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