vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=208488

vBulletin 2 Twitter - Take Your News Straight To Twitter!
by AHealthForum
16 Mar 2009 07:40

1 Attachment(s)
vBulletin2 Twitter Courtesy A Health Forum http://ahealthforum.com
Special Thanks to Jarvis From http://seovb.com for help
vbtotwitt.php copyright Vojtech Semecky released under the terms of GPL
===========================================================

This modification will take one of your latest news threads and post it directly to your twitter account. You must have RSS enabled for this modification to work. You can specify a forum to pull the content from using external.php?f=FORUMID

The RSS feed will post your thread title directly into your Twitter account, and then create a link back using TinyURL. The links are automatically converted into tinyurl.com links via the TinyURL API


Install instructions

1. Upload the includes folder into your forum root. This will automatically place the 2 scripts need to operate this into the "includes/cron/" folder
2. Install the product-ahealthforumcomvbtwit.xml file via the Product Manager in your adminCP
3. Navigate to vBulletin Options -> vBulletin Options -> vBulletin 2 Twitter and enter your name and password.
4. Hit Save and Wait 2 minutes
5. View your twitter account to confirm that an update was posted.
6. Enter the URL to your forum feed.

Notice: By default for testing purposes this makes one tweet announcing you've installed vB2Twitter You are free to delete this tweet as it is for testing purposes only!!!!

===============================================================

vBulletin 2 Twitter Options

1. Twitter Username: This is your Twitter.com username. If you don't have one yet, you can get one for free at http://twitter.com

2. Twitter Password: This is your password for your twitter account. Notice that its not hashed or encypted so anyone with adminCP access can view it. If you can't trust those who have your AdminCP information with such details, then this mod isn't for you sorry.

3. Feed URL: This can be to any sites feed if you want, but I suggest pointing it to your news forum and creating a prefix such as [Breaking News] to make the most of this. Your twitter posts will then be prefixed with [Breaking News] Thread Title link to thread.

=============================================================


Again, this modification will take the latest thread from the forum RSS feed you specify. I don't beleive in spamming on twitter with useless crap, so I've made this modification to only take one thread at a time from your forums RSS feed.


Trouble Shooting:

If it does not automatically update to your account. Go into the scheduled tasks manage and run the task manually.

external.php gives a blank page. Enable RSS from your vBulletin Admin Control Panel.

AHealthForum 16 Mar 2009 07:40

Reserved

tanand79 16 Mar 2009 12:59

not working

hollosch 16 Mar 2009 14:25

I'm using zoints-seo, and i get "Error: RSS file not found, dude." when i use the scheduled task...

ericgtr 16 Mar 2009 15:26

FYI, this can be done without a modification by placing the RSS feed of your forum into twitterfeed.com I do this myself for one of my more popular forums. It can also do all forums as well.

hollosch 16 Mar 2009 15:48

Quote:

Originally Posted by ericgtr (Post 1769611)
FYI, this can be done without a modification by placing the RSS feed of your forum into twitterfeed.com I do this myself for one of my more popular forums. It can also do all forums as well.

thanx for this.

-1 cron-job in my vB

raaowdot 16 Mar 2009 16:35

Won't work for me either. I'm using the RSS feed /external.php?type=RSS2 which displays all open nonrestricted forum posts and this plugin may require the forum code only.

I've resorted to using the twitterfeed.com for now but it only post a maximum of 5 messages every 30mins so at busy time messages will be missed.

Any chance of an update to get this working as the popularity of Twitter is growing fast and my users want this feature.

Note this is my first posts here in 2 years as I've never has the need to ask something that wasn't already answered a million times before but Twitter is pretty new and we need more plugins. The Twitter on Profile pages works brilliantly though.

AHealthForum 16 Mar 2009 19:00

Some tips to help get it working.

Make sure your server has cURL installed or it may not work correctly.

After installing and you enter your RSS feed location. Go to the forum where you selected the RSS feed come from and make a fast post in there.

vBulletin Scheduled tasks don't seem to run every minute for some reason, so it may take a few minutes for it to update to twitter

I just uninstalled on my forums, and reinstalled following the instructions and it still works okay: http://twitter.com/healthforum Feel free to register an account at health forums and make a test post to see.

lord_of_chaos 16 Mar 2009 19:47

Twitterfeed.com does only run the Cronjob every 30 Minutes...

@AHealthForum:
1. Could you advertise a little bit less inside your product? "HealthForum" everywhere annoys me. ;)

2. This mod always posts the last RSS-item into my Twitter Account. It doesn't care that the item is two weeks old and that it have been posted before.

My Twitter profile looked like that:
- "News from 2.03.09"
- "Some other handmade Twit"
- "News from 2.03.09"

Jasem 16 Mar 2009 20:37

not working, thank you :confused:

AHealthForum 16 Mar 2009 21:03

Quote:

Originally Posted by lord_of_chaos (Post 1769821)
Twitterfeed.com does only run the Cronjob every 30 Minutes...

@AHealthForum:
1. Could you advertise a little bit less inside your product? "HealthForum" everywhere annoys me. ;)

Its not every where? And sure next time i create a product and share i'll keep your feelings in mind ;)

Quote:


2. This mod always posts the last RSS-item into my Twitter Account. It doesn't care that the item is two weeks old and that it have been posted before.

My Twitter profile looked like that:
- "News from 2.03.09"
- "Some other handmade Twit"
- "News from 2.03.09"
This is does do, I haven't been able to find a work around, but i haven't actively looked for one yet either as I just use my twitter account to post updates from the forums and this is good enough for that :D

:up:

AHealthForum 16 Mar 2009 21:03

Quote:

Originally Posted by Jasem (Post 1769867)
not working, thank you :confused:

Your welcome?

wizardan 16 Mar 2009 21:55

Didn't work for me either.
Ran the scheduled task manually and got an error message posted to my twitter page.
Uninstalled for now.

AHealthForum 16 Mar 2009 22:56

Quote:

Originally Posted by wizardan (Post 1769929)
Didn't work for me either.
Ran the scheduled task manually and got an error message posted to my twitter page.
Uninstalled for now.

Make sure your have your RSS enabled on your forums, and cURL support on the server.

This may also only work with PHP5 as i haven't tested on PHP4 yet


I'm in the process of moving to a another hosting company that should let me test this in PHP4 and PHP5 to see if that maybe a problem for some users.

Flep 17 Mar 2009 18:42

I get wrong TinyURL.com link.


All times are GMT. The time now is 17:16.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.