![]() |
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 |
Thanks, GameCrash, for making this addition! :)
|
Thanks that you allowed me to do it :)
|
Interesting addition. Any screen shots?
|
I will upload some screenies later... no time atm.
|
Okay, sorry that I'm so late but I had much to do the last days.
The new section in the navigation: |
This here are the general settings:
|
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.
|
Modify the newsgroups:
|
Edit one newsgroup (same as add newsgroup)
|
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 |
Quote:
|
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"); Code:
include("$ad.class.POP3.php3"); |
Thanks, that helps but it should read;
Quote:
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. |
the include problem is fixed...
|
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 |
<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> |
Thanks, appreciate that info :)
cu, -Tom |
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! |
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...
|
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!! |
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... |
Fixed 2). Just reupload the nntpgateway.php. You can find version 1.2 in the first post...
|
Thanks a bunch, GC. That's top-notch support!
I will install and test today. :) |
this it's not an hack, thi is "THE HACK"!!!
1000000 of thanks for this great HACK!!! |
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!" :) |
Well... THE hack has been made by Gilby - I have just hacked the hack ;)
|
great both guys!
|
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. :(
|
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. :( |
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.
|
It should send the new posts to the newsgroup when you syncronize it the next time...
|
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 |
Are you sure you have replaced
Code:
header("Content-Type: text/plain"); Code:
if ($calledby != "interface") { |
Hooray for people who don't know SQL like me!!
Thanks! |
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 |
Quote:
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. |
Deleted [Problem solved]
|
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? |
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|