vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Graphical Interface for the NNTP Gateway (https://vborg.vbsupport.ru/showthread.php?t=36475)

GameCrash 03-22-2002 10:00 PM

Graphical Interface for the NNTP Gateway
 
Current version is 1.2

You can always download the newest version in the first post.

This hack will allow you to administrate the NNTP Gateway hack created by Gilby via the Admin CP. This is version 1.1 and will work for NNTP Gateway version 1.8 and 1.9. It will NOT work for 1.7 and earlier.

It is tested with vBulletin 2.2.2 and vBulletin 2.2.4. It may work with 2.0.x, it may not.

For installation instructions please read the install.txt in the zip file.

I created a new thread to make sure I can answer your questions easier. So please do NOT Email, PM or ICQ me about this hack - you will be ignored.

Changelog

Version 1.2 (06.04.2002)
- fixed bug in nntpgateway.php that caused a reset of the last message id when editing a newsgroup

Version 1.1 (28.03.2002)
- Fixed bug in the gateway.php changes causing class.POP3.php3 not beeing included properly when calling via CP

Gilby 03-23-2002 06:00 PM

Thanks, GameCrash, for making this addition! :)

GameCrash 03-23-2002 06:35 PM

Thanks that you allowed me to do it :)

Robert Basil 03-23-2002 08:34 PM

Interesting addition. Any screen shots?

GameCrash 03-24-2002 08:48 AM

I will upload some screenies later... no time atm.

GameCrash 03-27-2002 10:17 AM

Okay, sorry that I'm so late but I had much to do the last days.

The new section in the navigation:

GameCrash 03-27-2002 10:17 AM

This here are the general settings:

GameCrash 03-27-2002 10:19 AM

Add a new newsgroup. It is like adding a simple new forum, just the new section on the top and you don't have the option if it should work as forum - it will always work as one.

GameCrash 03-27-2002 10:19 AM

Modify the newsgroups:

GameCrash 03-27-2002 10:23 AM

Edit one newsgroup (same as add newsgroup)

~rc~ 03-27-2002 08:23 PM

What would cause this error during syncronisation?

Warning: Failed opening 'class.POP3.php3' for inclusion (include_path='') in /home/sites/site3/web/forum/gateway.php on line 31

Gilby 03-27-2002 08:28 PM

Quote:

Originally posted by ~rc~
What would cause this error during syncronisation?

Warning: Failed opening 'class.POP3.php3' for inclusion (include_path='') in /home/sites/site3/web/forum/gateway.php on line 31

You don't have that file uploaded. If you upload the file from the nntp gateway distribution, that error will not occur.

Gilby 03-27-2002 08:32 PM

Ah, I see what's happening. The error is when you to the sync from the control panel. There is an error in the instructions to this. What you need to do is change:
Code:

include("class.POP3.php3");
to
Code:

include("$ad.class.POP3.php3");

~rc~ 03-27-2002 08:48 PM

Thanks, that helps but it should read;
Quote:

include($ad."class.POP3.php3");

Now if you can figure out how to get my cron to work, you'd be a star. I've tried everything, but still nada.

GameCrash 03-28-2002 06:17 AM

the include problem is fixed...

Thomas P 03-30-2002 01:12 AM

Hi,

Great job Gilby & GameCrash! :)
Will try to include this hack the next days.

OT @ GC: Does d)f provide us with lynx?
I mean, does the mentioned cron job work at d)f:
>5,15,25,35,45,55 * * * * /usr/bin/lynx -source "http://www.yourserver.com/vbdir/gateway.php?log=cron"
Errrm, do you use a d)f-nntp server or an external one?

Tia,
-Tom

GameCrash 03-30-2002 06:21 AM

<off topic>

D)F has no newsserver as I know ;) I use news.microsoft.com but you will not be very successfull to find standard newsgroups there ;)

But you will not be very successfull with this cron job. D)F provides cron jobs only via their own interface at kundenmenue.de and they only allow daily (or longer) cron jobs... You also may get problems with the very restrictive script limits there... that are two of the reasons why I use my own server now...

</off topic>

Thomas P 03-31-2002 05:39 PM

Thanks, appreciate that info :)
cu,
-Tom

jarvis 04-05-2002 12:12 AM

Is there a way to limit the number of days that is pulled for a particular group thru the panel, or is there a field I have to alter in the dB?

Thanks!

GameCrash 04-05-2002 05:06 AM

Well... the panel can do everything the gateway itself can do atm (I think). You can't select the number of days, the only thing you can change is the last message number...

jarvis 04-06-2002 03:10 PM

Thanks for your hard work on this!!

I love it...

There are just 2 minor things that I find myself challenged with...

1) If I run "Manual Synch" from with my CP, it just hangs, however, if I call gateway.php from a command line or in my browser, all seems to work fine. Not a big deal since I'm using a scheduler to fire up IE and run my gateway.php every few minutes. I found this much easier than trying to get my durned cron job to work right.

2) If I edit a group from within my CP, my message ID resets to 0 and I get stuck with having to do the initial pull again, or deleteing and re-adding the group with the proper message ID.

Again, neither of these are life threatening and are probably just an error I've done along the way, but if you have any ideas, I'd love to hear 'em. :D This hack keeps me away from my SQL dB, and since I'm a UNIX and mySQL idiot, that's a good thing!! :paranoid:

Thanks again!!

GameCrash 04-06-2002 03:47 PM

1) Well... calling it via CP does not anything other than calling it directly... it's just a include... but maybe it's a bit slower and you hit your server limits...

2) Yes... there seems to be a problem, let me see...

GameCrash 04-06-2002 03:59 PM

Fixed 2). Just reupload the nntpgateway.php. You can find version 1.2 in the first post...

jarvis 04-06-2002 04:45 PM

Thanks a bunch, GC. That's top-notch support!

I will install and test today. :)

proton242 04-17-2002 03:50 PM

this it's not an hack, thi is "THE HACK"!!!
1000000 of thanks for this great HACK!!!

akaler 04-17-2002 04:02 PM

interface + actual nntp hack (two hacks) = the hack. :)

well, one of THE HACK hacks, anyway. (Has a big payoff, and certainly one of the more complex packages to code - so SUPER kudos to the programmers!). there's a couple of others that really dramatically boost usage of the forums that are far simpler... like quickreply. God, I feel like a hippy... "It's all good, maaaan!" :)

GameCrash 04-17-2002 04:47 PM

Well... THE hack has been made by Gilby - I have just hacked the hack ;)

proton242 04-17-2002 05:47 PM

great both guys!

asarian 05-25-2002 03:05 PM

Hmm, so where are these newsgroups supposed to be then?? I did all the install, ran gateway.php, which says something like "1 group(s) gatewayed. mynews server, my newsgroup," but that is about it. It would be cool if it actually did something, like show the newsgroup, for instance. :(

asarian 05-25-2002 03:59 PM

Sigh; getting desperate. :( I can see the imported posts in the dababase, but they just do not show up anywhere on the board. :( If I click on the newsgroup forum, it just shows,

"Public Forum > Newsgroups

(Users Browsing this Forum: admin)"

But there is nothing to see. :(

asarian 05-25-2002 04:38 PM

Well, I changed "cancontainthreads" to 1; now, at least, it is showing the posts. But it behaves like a regular forum, and not a NNTP gateway; that is, replies are simply posted in the forum, but do not make it to the news server.

GameCrash 05-25-2002 06:42 PM

It should send the new posts to the newsgroup when you syncronize it the next time...

Alby 05-30-2002 02:32 PM

Hello :)

I installed everything recently, and when I try to use the "Manual Syncronisation" feature in the admin cp, it gives me this error:

Fatal error: Cannot redeclare stripslashesarray() in /*mydomain*/admin/global.php on line 33


Being a complete php dummy I cannot even guess where the problem is. Could anyone help?

Thanks!

Alby

GameCrash 05-31-2002 06:26 AM

Are you sure you have replaced
Code:

header("Content-Type: text/plain");
include("global.php");

// Load NNTP classes
include("nntp.php");
// POP3 class
include("class.POP3.php3");
// Load Mime message parser
include("mime.php");

with
Code:

if ($calledby != "interface") {
  $ad = "";
  header("Content-Type: text/plain");
  include("global.php");
} else {
  $ad = "../";
  $headers_sent=1;
}

in the gateway.php?

omniweapon 06-06-2002 02:46 PM

Hooray for people who don't know SQL like me!!

Thanks!

omniweapon 06-06-2002 03:05 PM

Oh. Wait. Everytime i run gateway.php I get an error as follows.

Database error in vBulletin 2.2.5:

Invalid SQL: SELECT post.postid,post.username,post.userid,post.datelin e,post.attachmentid,post.paget ext,post.showsignature,post.ipaddress,thread.title ,post.threadid,thread.forumid, thread.msgid,thread.prefix FROM thread,post WHERE post.isusenetpost=0 AND thread.threadid=post.threadid AND (thread.forumid=51)
mysql error: Unknown column 'thread.msgid' in 'field list'

mysql error number: 1054

jschefdog 06-12-2002 10:58 PM

Quote:

Originally posted by asarian
Well, I changed "cancontainthreads" to 1; now, at least, it is showing the posts.
Where do you change "cancontainthreads"? I am having the same problem. I click the manual synchronization link, get no warnings or errors, but nothing ever shows up in the forum.

If I open gateway.php from IE, I get the following messages:

Notice: Undefined variable: calledby in c:\inetpub\wwwroot\test_vb\gateway.php on line 19

Warning: Cannot add header information - headers already sent by (output started at c:\inetpub\wwwroot\test_vb\gateway.php:19) in c:\inetpub\wwwroot\test_vb\gateway.php on line 21

Warning: Cannot add header information - headers already sent by (output started at c:\inetpub\wwwroot\test_vb\gateway.php:19) in c:\inetpub\wwwroot\test_vb\gateway.php on line 489

1 group(s) gatewayed. Logging in to .....

Problem resolved:See the NNTP Gateway Thread for details.

Marv 06-23-2002 09:24 AM

Deleted [Problem solved]

MaXxed 10-13-2002 08:39 AM

Firstly, great hack and for the most part performs perfectly. I have issues however, as follows:

1. Deleting a usegroup doesnt delete all posts.

2. When manually syncing, it will time out. However, syncing via calling gateway.php will not.

Any clues as to why?

GameCrash 10-13-2002 09:31 AM

Hmm, why didn't I get a email with the other posts??? Sorry that I didn't answer... :(

@MyXxed:

1. I'm not sure what you mean. If you set them to a standard forum all threads will be kept, but no newsgroup function will be anabled any more...

2. Well... if you call the script via command line for example, there will be no time limit. If you call it via web, It is called by apache and the time limits of apache may kill the script. I don't think there is something you can do except you are the owner of the server...


All times are GMT. The time now is 04:43 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01294 seconds
  • Memory Usage 1,810KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete