Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Closed Thread
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 01-21-2001 Last Update: Never Installs: 3
 
No support by the author.

THIS THREAD IS CLOSED!
Posts in here will NOT be answered

This hack has undergone many major changes since this thread was started. Consequently, most of the posts have become dated and of little use. To coincide with the latest major release (20010712), a new one has been started.

See this thread for the latest version and discussion

Show Your Support

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

Comments
  #142  
Old 03-23-2001, 04:42 PM
Guest
 
Posts: n/a
Default

Quote:
Originally posted by etones
go for it m8.
I seconded the motion......

  #143  
Old 03-24-2001, 04:19 AM
Guest
 
Posts: n/a
Default

This is just a minor update to the newnews.pl script. The sql statements have been revisited and optimized to make better use of indexes. The 'insert ignore' statement has also been replaced with a function that wraps the sql statement into an eval() to trap errors which will prevent the script dying at a key violation. This allows me to make more use of the mysql_insertid function which is obviously far more efficient than re-looking up the key of inserted records manually.

Basically this means the script will place far less load on the server during news pulls. I now run mine every 10 minutes and I never know it's running.

By the way, I will start an install script this weekend. It will only ever be useful on a fresh copy of vB of a specific version obviously. I will try to update the script within a few days of each official vB release.

I suppose I'll have to write it in PHP so that it can be ran from a browser; I'd much rather do it in Perl. Ah well I'd best go and start reading my PHP for Dummies book
  #144  
Old 03-24-2001, 05:23 AM
Guest
 
Posts: n/a
Default

Quote:
Originally posted by fastforward
[B]This is just a minor update to the newnews.pl script. The sql statements have been revisited and optimized to make better use of indexes. The 'insert ignore' statement has also been replaced with a function that wraps the sql statement into an eval() to trap errors which will prevent the script dying at a key violation. This allows me to make more use of the mysql_insertid function which is obviously far more efficient than re-looking up the key of inserted records manually.
Fastforward, thanks for a great hack! I installed on a test directory and it's running great, no problems.

I have a question regarding upgrades to future versions of vb, like 2.0 none beta etc. I have no problems updating php, but I'm pretty green in sql stuff, I can just do the basics, backup, retore, etc.

If I install the latest usenet hack on vb2 beta 3, what would be involved in updating the database to future vb release? I don't mind losing the usenet posts, but don't want to lose members posts and information?
  #145  
Old 03-24-2001, 03:36 PM
Guest
 
Posts: n/a
Default

Quote:
Originally posted by tamarian
If I install the latest usenet hack on vb2 beta 3, what would be involved in updating the database to future vb release? I don't mind losing the usenet posts, but don't want to lose members posts and information?
You should be OK for the most part. The usenet tables are all prefixed by 'usenet_' and it's unlikely they will ever conflict with a vB table. There are some added columns to the vB tables but again, it's unlikely they will conflict as they only have relevence to usenet stuff.

Where you may run into problems is the indexes. It should be fine when vB 2.0 is finally released, but with each beta I see a different set of indexes on the tables. One major ommission on beta 3 is the unique index on the 'username' column in the user table. This is required if you are importing users from usenet so my script adds it. If beta 4 fixes this ommission, you will end up with redundant indexes.

I can't forsee any scenario that would lead to posts or users being lost or removed so you're safe there.

Don't worry too much as I have this installed on my boards and it will be in my interest to make sure it all works for each new release
  #146  
Old 03-25-2001, 04:44 AM
Guest
 
Posts: n/a
Default

I'm getting this error when I click on Options in the Usent control panel:

[quote
Warning: Offset 0 is invalid for MySQL result index 6 in /home/tamarian/lowcarber-www/forum/admin/db_mysql.php on line 153
[/quote]
  #147  
Old 03-25-2001, 05:30 AM
Guest
 
Posts: n/a
Default

Quote:
Warning: Offset 0 is invalid for MySQL result index 6 in /home/tamarian/lowcarber-www/forum/admin/db_mysql.php on line 153
That's a standard PHP/Mysql Error. It usually means a table or column can't be found. What about the 'Groups' and 'Spam Control'; do they work?

Make sure you have the 'usenet_setting' & 'usenet_settinggroup' tables.
  #148  
Old 03-25-2001, 05:36 AM
Guest
 
Posts: n/a
Default

Yes, the other buttons work.

I deleted the 2.3 newnews.pl and installed the 2.2 one on top of the 2.3 hack. I added the groups through phpMyAdmin and things work fine as far as pulling the groups from nntp.

I can't figure which table is missing though. Any tips on what to look for? Would you like a dump of the schema?

When I ran the sql script, it issued an error regarding a specific forum user!! but since the pdate proceded and create the tables, I dismissed that error.
  #149  
Old 03-25-2001, 05:53 AM
Guest
 
Posts: n/a
Default

The only tables the php web page uses are 'usenet_setting' and 'usenet_settinggroup'. It doesn't actually have anything else to with the collecting of news. It is purely for setting the options.

Try downloading the latest hack and running the usenet.php from that. If that fails, drop your usenet_setting and usenet_settinggroup tables, run the SQL that creates and populates them (only those two). You'll have to re-enter your options obviously.

I've just ran the sql script on a fresh vB and loaded up the options with no problem.

In the meantime I'll try to reproduce the problem at my end.
  #150  
Old 03-25-2001, 06:42 AM
Guest
 
Posts: n/a
Default

I have the latest hack 2.3 downloaded this afternoon.

I ran the usenet.php script and it gave the same error, so I followed your second sugestion, dropping the two tables, and adding them (through the sql script trimmed to only adding those two) and it worked, I was able to update the usenet options, It gave me this warning:

Quote:
Your changes have been saved.
Warning: Cannot add header information - headers already sent by (output started at /home/tamarian/lowcarber-www/forum/admin/adminfunctions.php:17) in /home/tamarian/lowcarber-www/forum/admin/usenet.php on line 97
But the 2 tables were populated with my entries, and I used the 2.3 newnews.pl which worked fine.

Thanks for your continued help, I have no idea what went wrong, but the drop/load solution worked.
  #151  
Old 03-25-2001, 08:15 PM
Guest
 
Posts: n/a
Default

I just got the following db error in replying to a usenet message, I guess it's the ''' in the title:

Quote:
Database error in vBulletin: Invalid SQL: UPDATE forum SET lastactivethread = LEFT('Atkin's baking mix',35) WHERE forumid = 30
mysql error: You have an error in your SQL syntax near 's baking mix',35) WHERE forumid = 30' at line 1
mysql error number: 1064
Date: Sunday 25th of March 2001 04:26:21 PM
Script: /newreply.php
Closed Thread


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 03:47 PM.


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.12300 seconds
  • Memory Usage 2,289KB
  • Queries Executed 27 (?)
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
  • (6)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
  • (3)pagenav_pagelinkrel
  • (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_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_postinfo_query
  • fetch_postinfo
  • 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
  • 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