![]() |
"Share" Button in NavBar and Showthread (links to over 200 social networking sites)
1 Attachment(s)
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> Code:
<td class="vbmenu_control"><!-- AddThis Button BEGIN --> 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. |
(you know...for any problems) ;)
|
Easy and nice one
Thanks |
Quote:
|
Does it have to go on the navbar?
|
I found another good place to put this.
In your SHOWTHREAD template find the code Quote:
|
Quote:
...so I'm off to install in SHOWTHREAD... |
do you have a screen shot of how it looks in SHOWTHREAD please?
|
Quote:
|
As Woffie has pointed out...you can put the code anywhere you want. Other Ideas??
|
thanks, will install in a few days
|
|
Quote:
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()" |
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? |
Insert below, do not replace.
|
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: |
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.
|
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']"> Thats it. |
i will try.
thank |
To somebody knowledge, is it possible to configure the button to share only on Facebook? thanks! great hack!!
|
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. |
Quote:
Quote:
|
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 https://vborg.vbsupport.ru/external/2009/10/65.jpg but after installation in my vbulletin, i've only got this https://vborg.vbsupport.ru/external/2009/10/66.jpg can somebody help? how can i show the thread title, pics, and thread content at my wall post? thanx and regards. |
Quote:
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. |
Quote:
but in my first screen shot (from the demo forum), i dont have to copy anything into the box........... :confused: |
Quote:
|
Quote:
i also try your code: Code:
<td class="vbmenu_control"><!-- AddThis Button BEGIN --> i also try tu change my style and template to default style, but still the same again.. any idea? |
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? |
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? |
Quote:
|
Quote:
Code:
http://sharethis.com Peace.............. |
Quote:
dont know what happened... thanx for your help anyway :) |
Quote:
|
I think between you and Woffie, the anywhere has been accomplished. As Woffie pointed out early in the thread, doesn't just have to go in navbar, he put it in the showthread template. You have shown others how to use it in the bookmarks temp.
There are of course about a million places it could be used. I think if people want to place it somewhere and can't figure it out, we can help them. If you think it's better to edit the mod and create "anywhere" instructions, then let me know an we'll do that. I just really appreciate all your help. |
i use in navbar and showthread ;
thats wonderfull working. thanks ;) |
Glad it's working for you.
|
Thank you!
|
Glad it's working for you. If you think of any other ares you would like to use, please let us know.
|
thanks, screenshots wanted plz..
|
Is there a way to exclude this from certain forums?
|
All times are GMT. The time now is 02:20 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|