Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
vBulletin Tweet Poster! Details »»
vBulletin Tweet Poster!
Mod Version: 1.0.6, by Milad (Coder) Milad is offline
Developer Last Online: Mar 2016 I like it Show Printable Version Email this Page

vB Version: 3.8.x Rating: (29 votes - 4.48 average) Installs: 351
Released: 17 Jun 2009 Last Update: 06 Aug 2009 Downloads: 2028
Not Supported DB Changes Uses Plugins Auto-Template Additional Files External Content  

Brought to you by Milad's vBulletin Services!

Click install to receive support & updates. Please click install before you ask for help!
You like it? nominate it.


Introduction & Description
It's amazing how twitter drives traffic to various websites around the web, so I thought it would be a very good idea to get advantage of it, because Twitter will bring us more traffic and more valuable registrations.

This add-on runs as a scheduled task every ten minutes, and posts the newly posted threads to twitter in the form:
Thread title - preview (if possible) - tiny or full URL.

Threads must be in forums viewable by guests, not private forums.

Features
  • 1.0.0
    • Post to twitter using OAuth authentication.
    • You have your own application at twitter, so the tweets will be appeared from your website name. Attachment 100694
    • Only guest-accessible stuff is posted at Twitter.
    • Integrated with bit.ly to shorten the thread URL, giving more space for title and preview.
    • Set it up once, and forget it. twitter's access token doesn't expire, unless you revoke the access permission.
  • 1.0.2
    • You can set from which forums the threads will be tweeted. (See the page where you edit the forum info and settings Attachment 100710)
    • vBSEO compatible (if available), so the URLs are rewritten before they get shortened. This will help to reduce the number of redirects as few as possible.
    • The task prints valuable information when you run it manually, to help you diagnose problems when they happen! Attachment 100725
  • 1.0.3
    • Non-Unicode forums can use the built-in conversion (to UTF-8) to abide by the requirement of twitter. Attachment 100687
    • You can disable the automatic tweeting function, and tweet threads manually right from the first postbit. with user group over which user group can tweet manually Attachment 100843 Attachment 100845
    • You can set threads from which user group will be tweeted. Attachment 100845
  • 1.0.5
    • Scheduled task: Post Hot threads.
    • Check port 443 on installation / upgrade.
    • The product can't be installed if cURL isn't complied into PHP.
    • Update forums / usergroups / permissions cache on successful authorization, to avoid problems with some admins, where caches don't get updated on upgrade!
    • strip_html from the preview text, for forums that enable HTML in posts.
    • Delete tweet if the thread is deleted.
    • Status Message Prefix. Attachment 100687
  • 1.0.6
    • Option: to remove URLs from preview text (enabled by default).
    • Option: to have only the thread title as a tweet without any part of the message.
    • Added form (in the footer) to allow admins to tweet from any page, right in their forums, with an option to disable it, also it's enabled only for super admins. Attachment 102934

How different is this from twitterfeed.com?
  • This hack is not intended to be an alternative to twitterfeed.com, however:
  • It may be safer than giving your Twitter-Login to twitterfeed.com (by redlabour)
  • Later, this hack will include more options so you have better control over what is posted at twitter. (like post only hot threads, or threads by certain usergroup, etc.)
  • You have your own application at twitter, so the tweets will be appeared from your website name, instead of any other service. Attachment 100694

Happy Users of This Product! contact me to add your twitter account.
Requirements
  • Mandatory:
    • vBulletin 3.8.0
    • PHP 5.2.3
    • cURL & OpenSSL compiled to your PHP installation.
    • Twitter account (I've created a dedicated account for my website @syrianmeds)
  • Optional (but recommended):
    • bit.ly account to shorten URLs.
    • Your forum's character set must be UTF-8 (required by twitter) or latin with no non-English characters. Alternatively, you can use the iconv built-in function to convert the encoding.

Installation
  1. Upload the files to their respective locations.
  2. Import the XML product file: product-twitterposter.xml
  3. *Optional* go to http://bit.ly/ and register an account there, you need it to shorten the URLs!
    There are two important values here: the login username and the apiKey (you can obtain it from http://bit.ly/account/)
    Attachment 100687
  4. Register your application at twitter. (You must be already registered as a regular member)
    https://twitter.com/oauth_clients/new
    Attachment 100688
    Pay attention to the Callback URL, it must point to the file twitterposter.php in your admincp, ex: http://www.yourdomain.com/forum/admincp/twitterposter.php
  5. After registering your application, twitter will provide two values to you (Consumer Key and Consumer Secret), keep them for use in the authorization later.
    Attachment 100689
  6. Go to vBulletin Tweet Poster -> Authorize.
  7. Enter the two values in there appropriate fields and submit (Attachment 100690). You will be given a link to twitter.com to authorize this hack (Attachment 100691) to post on your behave.
  8. You will be redirected to your admincp, and a "Hello World!" message will be posted to your twitter account.

Upgrade
  1. Upload the files to their respective locations.
  2. Import (Allow Overwrite: Yes!) the XML product file: product-twitterposter.xml
  3. Re-authorize the hack, to make sure everything works for you.

Troubleshooting
  • Q: I'm not seeing any updates after the one "#vBulletin Tweet Poster by http://services.milado.net/ Hello World! #testoauth".
    A: Please make sure that you have new threads in forums available to guests, otherwise the hack won't post anything.
    After that go to Admincp -> Scheduled Tasks -> Scheduled Task Manager, then find the task "vBulletin Tweet Poster" click run and see if there is any error displayed.
  • Q: I'm getting the error "Fatal error: Call to undefined function curl_init() in /home/investme/forums/includes/twitterposter/twitteroauth/twitterOAuth.php on line 126"
    A: That error says that you don't have cURL installed on your server. If you have a dedicated server/vps, install and compile curl, if you're on shared/reseller hosting, contact your host and ask if they can install cURL support. (thanks stapler2025 for answering on my behave)
  • Q: I receive the following error:

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

    A: You have to enable write & read for your application at twitter, so go here, edit your application access setting and request new consumer key and token. If it didn't work, please delete the application, add a new one and use my settings from the screen shots.

Credits
I've used the Twitter's OAuth library, by Abraham Williams | http://abrah.am | @abraham

Change log
  • 1.0.0 first public release (beta) Jun, 17th 2009
  • 1.0.1 (beta) Jun, 17th 2009
  • 1.0.2 (beta) Jun, 18th 2009
  • 1.0.3 (beta) Jun, 21th 2009
    • Implementation of iconv conversion for non-unicode forums.
    • Control threads by which usergroups will be posted to twitter.
    • Tweet threads in forums manually instead of it being automatic. Attachment 100843
  • 1.0.4 (beta) Jun, 22th 2009
    • Bug fixed: Manual tweeting doesn't show thread preview!
    • Bug fixed: Plugin overwrites the hook: $template_hook['postbit_controls']
  • 1.0.5 (beta) Jul, 23th 2009
    • Renamed function_twitterposter.php to functions_twitterposter.php
    • Moved some functions from functions_twitterposter.php to a new class in class_twitterposter.php (New PHP class is created, first step to move to OOP).
    • Canceled the redirection to twitter (on authorization), and replaced with a link opening in a new tab / window.
    • New scheduled task: Post Hot threads.
    • New: Check port 443 on installation / upgrade.
    • New: The product can't be installed if cURL isn't complied into PHP.
    • New: Update forums / usergroups / permissions cache on successful authorization, to avoid problems with some admins, where caches don't get updated on upgrade!
    • New feature: strip_html from the preview text, for forums that enable HTML in posts.
    • New feature: Delete tweet if the thread is deleted.
    • New feature: Status Message Prefix.
  • 1.0.6 (RC1) Aug, 6th 2009
    • Add phrase 'HOT:'.
    • Improve bit.ly class a bit.
    • Push the plug-in at hook (postbit_display_complete) to run lastly, to put the tweet button at the last.
    • Include an option to remove URLs from preview text.
    • Option: to have only the thread title as a tweet without any part of the message.
    • Added form (in the footer) to allow admins to tweet from any page, right in their forums, with an option to disable it, also it's enabled only for super admins. Attachment 102934
  • 1.0.7 (RC2) to be released.
    • Bug fixed: improperly cached template.
    • Bug fixed: Hot Threads Look up Time Span.
    • New feature: Include thread prefix in the tweet.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

screenshot1.jpg   screenshot2.jpg   screenshot3.jpg   screenshot4.jpg  

tweet.jpg   forum_option.jpg   healthy_task_messages.jpg   postbit_button.jpg  

settings.jpg  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 17 Jun 2009, 11:55
Milad's Avatar
Milad Milad is offline
 
Join Date: May 2005
Real name: Milad
Reserved!
Attached Images
File Type: jpg usergroup_permissions.jpg (13.6 KB, 746 views)
File Type: jpg fast_tweeting_form.jpg (17.3 KB, 569 views)

Last edited by Milad; 06 Aug 2009 at 01:30.
Reply With Quote
  #3  
Old 17 Jun 2009, 12:12
redlabour's Avatar
redlabour redlabour is offline
 
Join Date: Mar 2004
Real name: Andrť
Ehmmm...is it possible to place the twitterposter.php elsewhere - ex. /forum?

My admincp Directory is .htaccess secured.
Reply With Quote
  #4  
Old 17 Jun 2009, 12:13
Daniel_HBK's Avatar
Daniel_HBK Daniel_HBK is offline
 
Join Date: Feb 2006
Real name: Daniel Y. Naguib
thanks Milad for this great hack!
الف شكر لك ملاك .. تحياتي لك .. دانيال
__________________

Reply With Quote
  #5  
Old 17 Jun 2009, 12:19
Milad's Avatar
Milad Milad is offline
 
Join Date: May 2005
Real name: Milad
Originally Posted by redlabour View Post
Ehmmm...is it possible to place the twitterposter.php elsewhere - ex. /forum?

My admincp Directory is .htaccess secured.
Twiiter won't do anything with that file, it will redirect you to it only, that's it.

So don't worry.
Reply With Quote
  #6  
Old 17 Jun 2009, 13:09
Milad's Avatar
Milad Milad is offline
 
Join Date: May 2005
Real name: Milad
I've just ween this and I'm going to integrate vBSEO URL rewrite into this hack!
Reply With Quote
  #7  
Old 17 Jun 2009, 13:30
Quantnet Quantnet is offline
 
Join Date: Nov 2006
how different is this with twitterfeed.com?
Reply With Quote
  #8  
Old 17 Jun 2009, 13:42
redlabour's Avatar
redlabour redlabour is offline
 
Join Date: Mar 2004
Real name: Andrť
Originally Posted by Quantnet.org View Post
how different is this with twitterfeed.com?
1. There is no great difference in Function.

2. I guess it is safer then giving your Twitter-Login to twitterfeed.com.
Reply With Quote
  #9  
Old 17 Jun 2009, 14:05
Serenity278 Serenity278 is offline
 
Join Date: Jun 2009
It is suppose to update every 10 minutes? It has been 23 minutes and I still have the first update on there #vBulletin Tweet Poster by http://services.milado.net/ Hello World! #testoauth https://twitter.com/cf_net

I just want to know if it is working.

My website is http://www.christianfellowship-net.com, am using 3.8.3, and am a newbie to vb and twitter by the way.

Thanks.
Reply With Quote
  #10  
Old 17 Jun 2009, 14:14
TNCclubman's Avatar
TNCclubman TNCclubman is offline
 
Join Date: Sep 2008
Milad rules!

Thanks for this Milad!!
Reply With Quote
  #11  
Old 17 Jun 2009, 14:46
Soonerdude Soonerdude is offline
 
Join Date: Mar 2007
Originally Posted by Serenity278 View Post
It is suppose to update every 10 minutes? It has been 23 minutes and I still have the first update on there #vBulletin Tweet Poster by http://services.milado.net/ Hello World! #testoauth https://twitter.com/cf_net

I just want to know if it is working.

My website is http://www.christianfellowship-net.com, am using 3.8.3, and am a newbie to vb and twitter by the way.

Thanks.

I was having the same problem, but realized that I had the limited guest viewing hack installed and once I disabled it, the posts started showing up.
Reply With Quote
  #12  
Old 17 Jun 2009, 14:52
Serenity278 Serenity278 is offline
 
Join Date: Jun 2009
Originally Posted by Soonerdude View Post
I was having the same problem, but realized that I had the limited guest viewing hack installed and once I disabled it, the posts started showing up.
I don't have that mod installed but thanks for trying to help. I might just try that twitterfeed if I can't get this mod to work.
Reply With Quote
  #13  
Old 17 Jun 2009, 15:03
drsli's Avatar
drsli drsli is offline
 
Join Date: Jan 2008
Real name: Dietmar
Very interesting hack! Is it possible to exclude forums from being posted at twitter, cause some of them have private status at my site?
Reply With Quote
  #14  
Old 17 Jun 2009, 15:14
unp unp is offline
 
Join Date: Oct 2008
I get this error
Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/adminfunctions.php:279) in [path]/includes/functions.php on line 3087
Reply With Quote
  #15  
Old 17 Jun 2009, 15:33
zelnik zelnik is offline
 
Join Date: Aug 2008
Does this have an option to turn on/off for specific forums/sections?!?!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 22:03.

Layout Options | Width: Wide Color: