The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Forum News (News in a Forum) Details »» | |||||||||||||||||||||||||
This hack adds news headlines to the top of a forum. The headlines come from an XML source. The headlines are links to the articles. Through the admin cp, add or modify forums system, you can select from a list of sources (or select no news for that forum). There is also a master on/off switch for the entire feature, and you can also select how many headlines will appear.
Support for this hack will be provided only within the vbulletin.org forums. This hack involves database modifications. Please make a backup copy of your database prior to installing this hack. The author of this hack assumes no responsibility for anything. The XML feeds come from Moreover.com. This service is provided free-of-charge only to non-commercial, non-profit, educational, or personal/hobby sites, and may not be used on any for-profit site. If you operate a for-profit site, you must contact Moreover.com to discuss purchasing the rights to the service. Changelog v1.0: Original release v1.1: Fixes problem of not being able to change a forum's newsfeed back to NONE after previously selecting one. v1.1a: Error in instructions file corrected. If you have 1.1, you do not need to download this; absolutely no code has changed. v1.1b: See Post #30 below. If you have v1.1a, you do not need to download again; just make the fix as instructed in Post #30. v1.2: Changes the code added to forumdisplay.php so that only one query is used. If you have v1.1b, you only need to replace the code added to forumdisplay.php with the newer bit of code from the instructions. v1.2a: Fixes a minor bug affecting only the appearance of the output. If you already have installed v1.2, you do not need to re-download and re-install; please see Post #34 below for the simple fix. v1.2b: Current release. Corrects the URL shown in the registration required notice. The only change over v1.2a is the "forumnewsbit_accessreg" template. OPTIONAL Add-in feature: Make this feature user-selectable I have created some instructions you can use if you'd like to give your users the ability to not see the news in a forum. Read Post #44 below for more info. Show Your Support
|
Comments |
#32
|
|||
|
|||
Thanks for the fast reply.
|
#33
|
||||
|
||||
I have updated this hack to v1.2, after FireFly has shown me how to reduce the queries when showing a forum from one all the time, plus another if there's a newsfeed for that forum, to just one, only if there's a newfeed for that forum.
I have sent an update using the send update feature to all users who've clicked the Install button. For the record, if you have v1.1b, you only need to change the code added to forumdisplay.php, the part from "// Begin Forum News" to "// End Forum News". |
#34
|
|||
|
|||
Quote:
Cool Update Feature Is this FireFly's work? Must Be :classic: |
#35
|
||||
|
||||
I have identified a minor bug in this hack.
Some of the sources that Moreover.com uses require free registration at their site before you can view the entire article linked to in the headlines. Headlines that come from sources that require registration are marked in the XML source with a special flag, and I have written a feature into the XML decoder that if that flag is present, a notice will appear by the headline that says, "(NOTE: Registration or subscription may be required to access this article.)". There was a minor code error in this part of the hack whereby if there was more than one headline showing up with this notice, there would be one notice for the first, two for the second, three for the third, etc. I will be updating the attachment in the original post above shortly. That will become v1.2a. If you have already installed v1.2, all you need to do to fix this is: In forumdisplay.php, find: PHP Code:
PHP Code:
|
#36
|
||||
|
||||
One other minor little bug corrected, which was that in the "(NOTE: Registration or subscription may be required to access this article.)" message, as described in the previous post, the URL which formed the text "Registration or subscription" was not defined properly, causing it to point back to your own forum's home page. This is corrected in v1.2b.
|
#37
|
||||
|
||||
Simply Superb
Satan |
#38
|
|||
|
|||
Ok I have an idea for an enhancement for this script... what is the possibility to take it to the next step and allow the headlines to be put into a specific forum(s) and then have an "initial" post made for each news article with a preset template with the article name, source and a "cookie cutter" sentense asking for people to read the article and discuss it there. If you need more clarification let me know. Its just an idea.
|
#39
|
||||
|
||||
Something like that is probably beyond my capabilities at this point, and it may even be beyond vBulletin's capabilities. Moreover updates their headlines about every 15 minutes. Now a particular newsfeed may not get a new headline every update, of course. But, if every headline was to get automatically posted as a thread, you would need to run some kind of cron job in your website that would check the newsfeed to see if there were any new headlines on it. That's why I say it might be beyond the capabilities of vB, because cron jobs are separate. The only way I can think of to do it in vBulletin is for the script to check for new headlines whenever the forum itself is loaded (whenever someone goes to that forum), and unless that forum is constantly busy, there might be some headlines that get missed.
|
#40
|
|||
|
|||
I utilize moreover's feed via cold fusion and have it set to check on a preset time (2 hours). It pulls the list... then queries the list against the table i made.. if it finds it already in the able (article name and date/time match) then it ignores it.. if it does not find it.. it proceeds to create a new record with this information.
I'm considering trying to write an outside hack (using cold fusion) to populate the vB this way... but this would require a better understanding of the table relationships and field creation rules that vB has then what i am capable of myself... Just an idea... sounds like something that might bring vB to yet another level that no other board has right now (not that vB isn't already above the rest). I'll be happy to give more ideas on concept for this on how I see it working.. just let me know. |
#41
|
|||
|
|||
Warning: php_hostconnect: connect failed in /home/fashe/maze0001/forum/admin/functions.php on line 2339
Warning: file("http://p.moreover.com/cgi-local/page?c=Windows%202000%20news&o=xml") - Bad file descriptor in /home/fashe/maze0001/forum/admin/functions.php on line 2339 Warning: Bad arguments to implode() in /home/fashe/maze0001/forum/admin/functions.php on line 2339 Why? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|