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
  #52  
Old 08-05-2002, 07:31 PM
bill-t's Avatar
bill-t bill-t is offline
 
Join Date: Feb 2002
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, I completely undid everything... I think I had everything right except importing the .sql file... Had to do full uninstall cuz it trashed my forums... I couldn't created new forums, couldn't post... got db errors... The errors referenced the table I created... No surprise since I had never manually created one before and winged it... I know myphpadmin is supposed to be able to import the file, but couldn't make it happen... Will do full install again after i'm sure i understand how to do that and it's late enough none of my users will be on the board... any help appreciated... was looking for a script specifically like this for both my vb and for wallpaper I'm making for my wife's dtop...
Reply With Quote
  #53  
Old 08-05-2002, 07:34 PM
bill-t's Avatar
bill-t bill-t is offline
 
Join Date: Feb 2002
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

let me re-say that... I know for sure I had evrything correct... Uninstalling it was a breeze... Working backwards everything was exactly where it should be and didn't take long at all... (By the way, your notes with the line numbers and stuff are the best I've used...) I've had to rebuild my board from scratch over the last 3 days, and I've done at least a dozen hacks in the last couple days... Every one of them worked on the first attempt... Even so, yours was the clearest despite the fact I failed first time out, lol....
Reply With Quote
  #54  
Old 08-05-2002, 09:24 PM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So your problem was just with importing the database stuff?
Reply With Quote
  #55  
Old 08-05-2002, 09:30 PM
bill-t's Avatar
bill-t bill-t is offline
 
Join Date: Feb 2002
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

correct... what are the verbatim step for importing the .sql file via phpmyadmin when the table (newsforum or whatever it was called - sorry, don't have the documentation on the screen, but obviously you know the name, lol) doesn't exist to begin with... I tried the obvious, clicking on the choose button and navigating to the file on my hd and it would try and execute the file, but it couldn't load the info as there was no table to load it into...
Reply With Quote
  #56  
Old 08-05-2002, 09:44 PM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In the instructions, in this section: III. Database Modifications, you need to do all the stuff listed in there. The first thing is an ALTER TABLE statement. What you do is copy the entire line(s) and paste it into the Query textarea (window) in phpMyAdmin, then hit Go. Now since you say there was no table to load the stuff from the file into, you probably missed the next part, which starts with CREATE TABLE forumnews (. Copy that entire section, from that line through ) TYPE=MyISAM;, paste that into the Query window, and Go. Make sure you have done the three queries after that as well (if you're not sure if you did or didn't, you can check by going to your admin cp, vBulletin Options page, and look for a section called "Forum News"; it will probably be the last section). After you have done all that, then you should try to import the sources.sql file, by doing just what you said you did the first time.
Reply With Quote
  #57  
Old 08-05-2002, 09:57 PM
bill-t's Avatar
bill-t bill-t is offline
 
Join Date: Feb 2002
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You're absolutly right... I went thru those directions at least a dozen times and somehow missed ever even reading that paragraph every single time.... Unbelievable... The one below... speechless... Thanks!

<CREATE TABLE forumnews (
forumnewsid smallint(5) NOT NULL auto_increment,
xmlsource char(100) NOT NULL default '0',
title char(250) NOT NULL default '0',
PRIMARY KEY (forumnewsid)
) TYPE=MyISAM;>
Reply With Quote
  #58  
Old 08-06-2002, 01:17 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

JJR512,

This is a great hack, as usual from yourself.

Just a question - is it possible to create my own keyword to search Moreover with so that I can have my own news category?
Reply With Quote
  #59  
Old 08-06-2002, 06:51 AM
bill-t's Avatar
bill-t bill-t is offline
 
Join Date: Feb 2002
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed in minutes this time, thanks!
Reply With Quote
  #60  
Old 08-07-2002, 12:38 AM
TalkHardRandy's Avatar
TalkHardRandy TalkHardRandy is offline
 
Join Date: Jan 2002
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got a small problem & don't know how to fix:

I installed the hack with the add-on at the same time, however I go into my admin CP & I see a blank area under "Forum News". First thing I checked was the settinggroup queries... sure enough I put in the wrong number. Removed the three entries & tried them with the correct number - still nothing.

I've triple checked my PHP & everything looks the same. Any ideas?
Reply With Quote
  #61  
Old 08-07-2002, 01:09 AM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What is the settinggroupid number of the Forum News settinggroup? Did you put this same number in the appropriate spots for the two settings?
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:47 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.04988 seconds
  • Memory Usage 2,302KB
  • 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
  • (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