The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
"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)
Developer Last Online: Apr 2014
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> 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> 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
|
Благодарность от: | ||
Taleempoint |
Comments |
#12
|
|||
|
|||
thanks, will install in a few days
|
#13
|
|||
|
|||
|
#14
|
||||
|
||||
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()" |
#15
|
|||
|
|||
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? |
#16
|
||||
|
||||
Insert below, do not replace.
|
#17
|
||||
|
||||
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: |
#18
|
||||
|
||||
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.
|
#19
|
||||
|
||||
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> Thats it. |
#20
|
|||
|
|||
i will try.
thank |
#21
|
|||
|
|||
To somebody knowledge, is it possible to configure the button to share only on Facebook? thanks! great hack!!
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|