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

Reply
 
Thread Tools
vBsociable Details »»
vBsociable
Version: 1.0.2, by Eric Eric is offline
Developer Last Online: Jun 2023 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.6.x Rating:
Released: 06-10-2007 Last Update: 06-20-2007 Installs: 170
Uses Plugins Template Edits
Re-useable Code Additional Files  
No support by the author.

What is this!?
This modification is a continuation of my vBdigger hack. This hack displays buttons in a new thread tools menu "Submit Tools" that will allow your users to submit a thread to many of the popular social sites such as digg, del.icio.us, reddit, etc.

Current Version
1.0.2

Current Features:
Can submit to the following sites:
  • del.icio.us
  • Digg
  • Facebook
  • feedmelinks
  • Furl
  • Ma.gnolia
  • NewsVine
  • Netscape
  • Reddit
  • Slashdot
  • SphereIt
  • Spurl
  • StumbleUpon
  • Technorati
  • YahooMyWeb

It allows to disable this menu for certain forums, turn it on/off, open the links in a new window or not.

Features flagged for future version(s):
  • Allow to remove sites from the listing, via ACP
  • Add: google, askjeeves, earthlink, simpy, bluedot.us and indianpad
  • Anything else that you all suggest.

Will this work on x.x.x ??
Unless otherwise stated, this will work on all 3.6 versions.

Sounds cool. How do I install?
  1. Upload the images found in images/buttons/ to your images/buttons/ folder.
  2. Import the product, product-vBsociable.xml
  3. Make the following template edits:
    SHOWTHREAD

    Find:
    HTML Code:
    	<td class="vbmenu_control" id="threadtools" nowrap="nowrap">
    		<a href="$show[nojs_link]#goto_threadtools"<if condition="is_browser('ie')"> accesskey="3"</if>>$vbphrase[thread_tools]</a>
    		<if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("threadtools"); </script></if>
    	</td>
    Add before:
    HTML Code:
    	<if condition="$show['vBsociable']">
    	<td class="vbmenu_control" id="vBsociable" nowrap="nowrap">
    		<a href="$show[nojs_link]#goto_vBsociable">$vbphrase[vBsociable]</a>
    		<if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("vBsociable"); </script></if>
    	</td>
    	</if>
    Find:
    HTML Code:
    <!-- thread tools menu -->
    Add before:
    HTML Code:
    <if condition="$show['vBsociable']">
    <!-- vBsociable menu -->
    <div class="vbmenu_popup" id="vBsociable_menu" style="display:none">
    	<table cellpadding="4" cellspacing="1" border="0">
    	<tr>
    		<td class="thead">$vbphrase[vBsociable]<a name="goto_vBsociable"></a></td>
    	</tr>
    	<tr>
    		<td class="vbmenu_option">$vbphrase[vBsociable_submit]</td>
    	</tr>
    	$vBsociablebits
    	</table>
    </div>
    <!-- / vBsociable menu -->
    </if>
  4. Set options in AdminCP > vBulletin Options > Tread Display Options (showthread)

UPGRADING
1.0.1 to 1.0.2
- Upload images/buttons/facebook.png to your images/buttons directory - OR - download the attached facebook image and upload it; then..
- Re-import the product file (which is attached), product-vBsociable.xml - with "Allow overwrite" set to "yes"

1.0.0 to 1.0.1
- Just re-import the product file (which is attached), product-vBsociable.xml - with "Allow overwrite" set to "yes"


That's it! Enjoy!

Changelog
1.0.2 - June 20, 2007
- Added Facebook.


1.0.1 - June 11, 2007
- Fixed the URL for Stumbleupon.


1.0.0 - June 11, 2007
- Initial release.


If you use this modification, please mark as >> INSTALLED <<, TY!

Show Your Support

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

Comments
  #52  
Old 08-27-2007, 06:59 PM
tribedude tribedude is offline
 
Join Date: Feb 2002
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am having difficulty installing this product in our 3.58 test forum. When I import the product it generates this error in the vBulletin product manager:

Database error in vBulletin 3.5.8:

Invalid SQL:

### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO plugin
(`active`, `executionorder`, `title`, `hookname`, `phpcode`, `product`)
VALUES
('1', '5', 'vBSociable', 'showthread_complete', '// ################################################## ###############################\r\n// vBsociable\r\n$vBsociable = array(\r\n \'del.icio.us\' => array(\r\n \'img\' => \'delicious.png\',\r\n \'url\' => \'http://del.icio.us/post?url=LINK&amp;title=TITLE\'\r\n ),\r\n \'Digg\' => array(\r\n \'img\' => \'digg.png\',\r\n \'url\' => \'http://digg.com/submit?phase=2&amp;url=LINK&amp;title=TITLE\'\r\n ),\r\n \'Facebook\' => array(\r\n \'img\' => \'facebook.png\',\r\n \'url\' => \'http://www.facebook.com/share.php?u=LINK\'\r\n ),\r\n \'feedmelinks\' => array(\r\n \'img\' => \'feedmelinks.png\',\r\n \'url\' => \'http://feedmelinks.com/categorize?from=toolbar&amp;op=submit&amp;url=LINK &amp;name=TITLE\'\r\n ),\r\n \'Furl\' => array(\r\n \'img\' => \'furl.png\',\r\n \'url\' => \'http://www.furl.net/storeIt.jsp?u=LINK&amp;t=TITLE\'\r\n ),\r\n \'Ma.gnolia\' => array(\r\n \'img\' => \'magnolia.png\',\r\n \'url\' => \'http://ma.gnolia.com/bookmarklet/add?url=LINK&amp;title=TITLE\'\r\n ),\r\n \'NewsVine\' => array(\r\n \'img\' => \'newsvine.png\',\r\n \'url\' => \'http://www.newsvine.com/_tools/seed&amp;save?u=LINK&amp;h=TITLE\'\r\n ),\r\n \'Netscape\' => array(\r\n \'img\' => \'netscape.gif\',\r\n \'url\' => \'http://www.netscape.com/submit/?U=LINK&amp;T=TITLE\'\r\n ),\r\n \'Reddit\' => array(\r\n \'img\' => \'reddit.png\',\r\n \'url\' => \'http://reddit.com/submit?url=LINK&amp;title=TITLE\'\r\n ),\r\n \'Slashdot\' => array(\r\n \'img\' => \'slashdot.png\',\r\n \'url\' => \'http://slashdot.org/bookmark.pl?title=TITLE&amp;url=LINK\'\r\n ),\r\n \'SphereIt\' => array(\r\n \'img\' => \'sphere.png\',\r\n \'url\' => \'http://www.sphere.com/search?q=sphereit:LINK&amp;title=TITLE\'\r\n ),\r\n \'Spurl\' => array(\r\n \'img\' => \'spurl.png\',\r\n \'url\' => \'http://www.spurl.net/spurl.php?url=LINK&amp;title=TITLE\'\r\n ),\r\n \'StumbleUpon\' => array(\r\n \'img\' => \'stumbleupon.png\',\r\n \'url\' => \'http://www.stumbleupon.com/submit?url=LINK&amp;title=TITLE\'\r\n ),\r\n \'Technorati\' => array(\r\n \'img\' => \'technorati.png\',\r\n \'url\' => \'http://technorati.com/faves?add=LINK\'\r\n ),\r\n \'YahooMyWeb\' => array(\r\n \'img\' => \'yahoomyweb.png\',\r\n \'url\' => \'http://myweb2.search.yahoo.com/myresults/bookmarklet?u=LINK&amp;=TITLE\'\r\n )\r\n);\r\n\r\nif ($vbulletin->options[\'vBsociable_enabled\'])\r\n{\r\n // Are we wanting to exclude certain forums?\r\n if (!empty($vbulletin->options[\'vBsociable_excluded\']))\r\n {\r\n if (strpos($vbulletin->options[\'vBsociable_excluded\'], \',\') === false)\r\n {\r\n $excluded_forums = array($vbulletin->options[\'vBsociable_excluded\']);\r\n }\r\n else\r\n {\r\n $excluded_forums = explode(\',\', $vbulletin->options[\'vBsociable_excluded\']);\r\n }\r\n }\r\n else\r\n {\r\n $excluded_forums = array();\r\n }\r\n\r\n $excluded = false;\r\n\r\n foreach ($excluded_forums AS $excluded_forum)\r\n {\r\n if ($thread[\'forumid\'] == $excluded_forum)\r\n {\r\n $excluded = true;\r\n break;\r\n }\r\n }\r\n unset($excluded_forums);\r\n\r\n // Let\'s go..\r\n if ($excluded)\r\n {\r\n $show[\'vBsociable\'] = false;\r\n }\r\n else\r\n {\r\n $show[\'vBsociable\'] = true;\r\n $threadurl = urlencode($vbulletin->options[\'bburl\'] . \"/showthread.php?t=$thread[threadid]\");\r\n $threadtitle = urlencode($thread[\'title\']);\r\n\r\n foreach ($vBsociable AS $name => $values)\r\n {\r\n $vBsociable_img = $values[\'img\'];\r\n $vBsociable_phrase = $vbphrase[\'vBsociable_\' . strtolower(str_replace(\'.\', \'\', $name))];\r\n $vBsociable_url = str_replace(array(\r\n \'LINK\',\r\n \'TITLE\'\r\n ), \r\n array(\r\n $threadurl,\r\n $threadtitle\r\n ), $values[\'url\']);\r\n eval(\'$vBsociablebits .= \"\' . fetch_template(\'vBsociable_bits\') . \'\";\');\r\n }\r\n }\r\n}\r\nelse\r\n{\r\n $show[\'vBsociable\'] = false;\r\n}\r\nunset($vBsociable);\r\n// ################################################## ###############################', 'vBsociable');

MySQL Error : Unknown column 'executionorder' in 'field list'
Error Number : 1054
Date : Monday, August 27th 2007 @ 03:54:18 PM
Script : http://www.velocity.to/forums/admincp/plugin.php

.......


Then the product seems to partially install (it doesn't work but shows up in the installed products). what can I do to solve it?

Thanks for your help.
Reply With Quote
  #53  
Old 08-28-2007, 10:36 AM
vwdforum vwdforum is offline
 
Join Date: Jun 2006
Posts: 179
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

worked on 3.8 at booze britain

I also added a couple of others to the list.

Is there any way of greating a keywords tag, on top of the LINK, and TITLE ?
Reply With Quote
  #54  
Old 08-28-2007, 08:33 PM
Eric's Avatar
Eric Eric is offline
 
Join Date: May 2006
Location: Kentucky
Posts: 792
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've been very busy the last couple months. I'll see what I can do about getting another version out.

Quote:
Originally Posted by majorvbuser View Post
Great little mod few questions before I click install, as this thread seems to have gone a little quiet.

a) Can you configure which sites are listed in the drop down.
b) Is it now possible to choose a select few like Digg, delicious etc and add them to postbit.
Not yet, but that will be an option in the next version.
Quote:
Originally Posted by tribedude View Post
I am having difficulty installing this product in our 3.58 test forum. When I import the product it generates this error in the vBulletin product manager:

Then the product seems to partially install (it doesn't work but shows up in the installed products). what can I do to solve it?

Thanks for your help.
This mod is for 3.6
Reply With Quote
  #55  
Old 08-29-2007, 05:57 AM
majorvbuser majorvbuser is offline
 
Join Date: Jan 2006
Location: UK
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SecondV View Post

Not yet, but that will be an option in the next version.

This mod is for 3.6
Excellent. I don't suppose you could give us the idiots guide to exactly how this works ?

When you submit the content of the post to digg etc, does it inclue the link back to your forum to increase traffic ? Is that the purpose?

I've never "dugg" anything so not entirely sure how the process works.
Reply With Quote
  #56  
Old 09-09-2007, 05:11 PM
Ohiosweetheart Ohiosweetheart is offline
 
Join Date: Dec 2005
Location: N.E. Ohio
Posts: 2,291
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Features flagged for future version(s):
  • Allow to remove sites from the listing, via ACP
This is what I'm waiting for.

In the meantime - can sites be removed via the xml file?
Reply With Quote
  #57  
Old 09-09-2007, 06:33 PM
Bounce's Avatar
Bounce Bounce is offline
 
Join Date: Mar 2004
Location: Edinburgh,Scotland
Posts: 919
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it possible to be able to post into another forum ? Like having a custom site...

i.e : post in my own forum and would post it here (vb.org) (provided they are both members) and if selected in the submit tools.

Thanks
Reply With Quote
  #58  
Old 09-10-2007, 03:24 AM
jnr jnr is offline
 
Join Date: Jun 2007
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

.
Outstanding. Thanks SecondV. InStalled.
.
Reply With Quote
  #59  
Old 09-12-2007, 10:16 AM
Eric's Avatar
Eric Eric is offline
 
Join Date: May 2006
Location: Kentucky
Posts: 792
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Since I will be starting a new job soon, I will not have any time to work on my modifications.
Therefore, anyone who wants to take my modification(s) and build/improve them further, are free to do so.
All I ask is you give proper credit.
Reply With Quote
  #60  
Old 09-16-2007, 05:37 AM
user_not_found user_not_found is offline
 
Join Date: Aug 2007
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very good thanks
Reply With Quote
  #61  
Old 09-16-2007, 05:03 PM
sigh sigh is offline
 
Join Date: Oct 2002
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you're still working on this at all, it would be nice to be able to apply this to the vBulletin Blog posts as well.

Cheers!
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 11:27 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.05406 seconds
  • Memory Usage 2,332KB
  • Queries Executed 25 (?)
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
  • (4)bbcode_html
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (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
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete