Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Forum News (News in a Forum) Details »»
Forum News (News in a Forum)
Version: 1.00, by JJR512 JJR512 is offline
Developer Last Online: Jun 2006 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 07-13-2002 Last Update: Never Installs: 85
 
No support by the author.

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

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

Comments
  #42  
Old 07-29-2002, 02:17 PM
nghiasi nghiasi is offline
 
Join Date: Jun 2002
Location: USA
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice one!Thanks You
Reply With Quote
  #43  
Old 07-29-2002, 03:02 PM
nghiasi nghiasi is offline
 
Join Date: Jun 2002
Location: USA
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by mem
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?
'


I think you have mess up your functions.php . You might mess up with other hacks with this hacks. :bunny:
Reply With Quote
  #44  
Old 07-29-2002, 06:59 PM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried that news feed just now on my own board to test it, it worked fine for me. I also manually viewed the URL http://p.moreover.com/cgi-local/page...0%20news&o=xml and it displayed correctly as well. I don't know what the problem could be for you. Is this the only newsfeed that is giving you a problem? Does it work now? Maybe Moreover.com's server was temporarily unavailable or something.
Reply With Quote
  #45  
Old 07-29-2002, 10:39 PM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have come up with some optional instructions you can use if you'd like to give your members the ability to turn this feature on or off for themselves. This feature will be enabled by default, and they can elect to not see it. Note that if you have the feature completely turned off (through the admin cp setting added by this hack), that a user cannot turn it on for themselves; in other words, the admin cp setting of "off" overrides a user's setting of "on".

The instructions for this will assume that you have already completely finished the instructions from the original base hack.
Reply With Quote
  #46  
Old 07-30-2002, 03:49 AM
mem mem is offline
 
Join Date: Oct 2001
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by JJR512
I tried that news feed just now on my own board to test it, it worked fine for me. I also manually viewed the URL http://p.moreover.com/cgi-local/page...0%20news&o=xml and it displayed correctly as well. I don't know what the problem could be for you. Is this the only newsfeed that is giving you a problem? Does it work now? Maybe Moreover.com's server was temporarily unavailable or something.
Yes, it can work.
but it is very very slow.
Reply With Quote
  #47  
Old 07-30-2002, 03:58 AM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For just this one feed or for all feeds?
Reply With Quote
  #48  
Old 07-31-2002, 06:44 AM
Kars10's Avatar
Kars10 Kars10 is offline
 
Join Date: Jun 2002
Location: Germany/Franken
Posts: 748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello JJR!!
I like the Idea of this Hack and will install it.
But is there a way to put News in German Language on my Forum??
Thanx!
Reply With Quote
  #49  
Old 07-31-2002, 07:05 AM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't believe so. The text is provided by an independent website.
Reply With Quote
  #50  
Old 08-05-2002, 11:18 AM
bill-t's Avatar
bill-t bill-t is offline
 
Join Date: Feb 2002
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, I screwed the pooch on this one... My problem is that I couldn't figure out how to import the sql file in phpmyadmin... So I created the table and tried doing an import, since it it had to have a table to import to... I know it's messed up... Any help? I know I need to delete that table and do that over... Everything else is good to go...
Reply With Quote
  #51  
Old 08-05-2002, 06:02 PM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What do you need help with first? Do you need to know how to delete a table, or did you already do that?
Reply With Quote
Reply

Thread Tools

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 06:48 AM.


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.06441 seconds
  • Memory Usage 2,303KB
  • 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
  • (2)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