The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
news2vb - Moreover news headlines to vBulletin discussion thread Details »» | |||||||||||||||||||||||||||
news2vb - Moreover news headlines to vBulletin discussion thread
Developer Last Online: Apr 2010
Hope the instructions at the top are clear, if not please post here.
To install this utility, copy the single PHP file to your vB dir. Edit it and change the password to whatever you wish. Change the yourvbdir variable to the URL pointing to your vB directory. As demo - here are some sample output threads: http://www.boards.ie/vbulletin/showt...threadid=44475 http://www.boards.ie/vbulletin/showt...threadid=44522 Also, have a look at the menu here: http://www.boards.ie/vbulletin/news2...ion=picksource This script will generate messages of the following form in whatever forum you wish, using any of the Moreover newsfeeds.
Changelog 1.1 - "Post News" output now shows BB code parsed message, URL to thread 1.1 - Fixed missing references to $yourvburl Show Your Support
|
Comments |
#2
|
||||
|
||||
So what does the hack do - basically if you call the PHP script with the jaction=picksource command you can see a list of Moreover feeds (www.moreover.com) and a list of your forums, and you can post the headlines into the forum of your choice (as long as you supply the correct password as hardcoded into the script).
Alternatively, you can ignore the categories and perform a custom list of headlines (by searching in the headline keywords or a query through the article text - keyword and query boxes respectively), or you can enter a feed number in the feed box (some unedited Moreover feeds don't have category names - you can see the feed ID number in examples at their site). You should also be able to generate forum posts from a script, e.g. using wget you would do something like: Quote:
Any questions, please ask. |
#3
|
|||
|
|||
got a demo for us!
|
#4
|
||||
|
||||
It works!!!
I am making it a cron job and running the query every 24 hours... thanks! |
#5
|
||||
|
||||
Cool - the only thing that stumps me is the
$jiconid = "1"; variable - I put in a number 1, but the icon does not show up. Am I meant to put in the full gif file name, or the whole path to the icon file? Thanks for your help... |
#6
|
||||
|
||||
I see... the posticon shows up in the actual showthread itself, but not in forumdisplay... I wonder why...
|
#7
|
||||
|
||||
What you should put in for that post icon variable ($iconid) is the ID number of the icon in the icons table (can check in PHPMyAdmin or else in the CP).
I've moved the demo links up top. |
#8
|
|||
|
|||
I like this, but would love to know how it could be automatically programmed to run to post a set of stories each day
|
#9
|
||||
|
||||
If you are on Unix you can use crontab to schedule the wget (as in the quoted example earlier in this thread) command for a particular feed.
Other options for Windows that I can think of off the top of my head would be to install Lynx and use the Windows scheduler to call the URL corresponding to a particular feed from Lynx - you'll see when you use the menu version to post a particular feed that there is a URL in the output - that is the URL you would call from an automated script (on Unix or Windows). I'm not really that familiar with any other options for calling a URL in Windows, I guess you could also just write a PHP or Perl script to download the URLs and schedule that daily with Windows scheduler as well. Here's the syntax for the URLs (password hardcoded into the script is cloudbot):
Again I'd refer to http://w.moreover.com/dev/ and http://w.moreover.com/dev/custom/ for help on Moreover feeds. Let me know if I can help further, or if there are any bugs/improvements you've spotted. John. -- |
#10
|
||||
|
||||
Quote:
Strange... |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|