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)
-   -   NNTP Gateway (Usenet/Newsgroups) (https://vborg.vbsupport.ru/showthread.php?t=35247)

groovesalad 06-05-2003 10:25 PM

.

limey 06-06-2003 04:12 AM

groovesalad...yes i do. you need to get with an appropriate server. one that reads and posts. the free ones are hard to find and are all sketchy. I have not been able to find one that reads and posts and I don't want to get a commercial one.

btw I listen to ur station all the time.

mood 06-08-2003 09:34 AM

Gilby,

Totally stumped why I cannot get the mail list gateway section to work.

Do you have a working "class.POP3.php" sample you could PM me?

BIG Thanks!

Mood

mood 06-08-2003 09:56 AM

Got the mail list feature to work (didn't realize that you had to setup the mail account as a news group in nntp_groups)

Next question: HOW to avoid the circular effect when wanting to sync forum/nntp/mail list.

anybody any ideas?
Thanks
Mood

limey 06-13-2003 01:14 AM

Cancel that its working. Different newsgroups must have different message ID's because I changed that and it worked.

Tried using newsranger and its not working.

mr.children 06-21-2003 08:43 PM

how come i am getting those errors?
please...tell me, i have installed everyhintg

Warning: main(class.POP3.php3) [function.main]: failed to create stream: No such file or directory in /home/virtual/site13/fst/var/www/html/bbs/gateway.php on line 25

Warning: main(class.POP3.php3) [function.main]: failed to create stream: No such file or directory in /home/virtual/site13/fst/var/www/html/bbs/gateway.php on line 25

Warning: main() [function.main]: Failed opening 'class.POP3.php3' for inclusion (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site13/fst/var/www/html/bbs/gateway.php on line 25

Warning: Cannot modify header information - headers already sent by (output started at /home/virtual/site13/fst/var/www/html/bbs/gateway.php:25) in /home/virtual/site13/fst/var/www/html/bbs/gateway.php on line 483
1 group(s) gatewayed. Could not connect to NNTP-serverLogging in to newsgroup.server, group your.newsgroup Not connectedNot connected

btw, what does setlastmsg.php for?

allan grossman 06-22-2003 01:00 PM

Outstanding hack, Gilby - running fine on a clean vB 2.3.0 install.

I did have a small problem with cron jobs not running properly if I redirected stderr and stdout to /dev/null but I fixed that by writing the output to a log file instead.

Can someone help this php n00b tweak the signature function a little?

Instead of appending the username and custom title, what I'd like is *nothing* if the user doesn't have a signature, the user's signature appended to the post if he does, and instead of thread and profile links maybe something under the dashed line like "this post was gatewayed through the forum at http://pointbeing.com"

No big deal, but if someone could knock something like that out for me in a couple minutes it'd be greatly appreciated. Here's the signature section of gateway.php - I don't really need the "unregistered user" section as unregistered users can't post.

PHP Code:

        // get user's signature
        
if ($newthread[userid]){
            
$get_userinfo=$DB_site->query("SELECT signature,usertitle,customtitle FROM user WHERE userid=$newthread[userid] LIMIT 1");
            
$userinfo=$DB_site->fetch_array($get_userinfo);
            
$signature "\n--\n";
            
$signature .= $newthread[username];
            if (
$userinfo[customtitle]){ $signature .= " - $userinfo[usertitle]"; }
            if (
$userinfo[signature]){
                
$signature .= "\n\n";
                
$signature .= format_text($userinfo[signature]);
            }
            
$signature .= "\n------------------------------------------------------------------------\n";
            
$signature .= "$newthread[username]'s Profile: $settings[profileurl]$newthread[userid]\n";
            
$signature .= "View this thread: $settings[threadurl]$newthread[threadid]\n";
        } else {
            
$userinfo false;
            
$signature "\n--\n".$newthread[username]." - Unregistered User";
            
$signature .= "\n------------------------------------------------------------------------\n";
            
$signature .= "View this thread: $settings[threadurl]$newthread[threadid]\n";
        } 

Thanks in advance :)

allan grossman 06-24-2003 11:29 AM

Never mind, I fixed it :)

PhoenixBB 06-29-2003 04:49 PM

Quoting from post 381:

Quote:

my searchindex table started getting out of hand... It reached about a gig, and I was only a quarter done, so I killed all the records and set the nntp options to not index the groups that are based on newsgroups and only index local groups.... now that that is done, my whole dbase is arround 40 meg as of may 22, but should be around 80 or so when done!...
This is the only post I can find on this. Where are these NNTP options? I've looked in the php file but saw nothing there, so anyone know how I can exclude the newsgroups from the search function/index?

I'm shortly going to be adding the code to ensure that newsgroup posts aren't included in normal 'view new' so will that be all that's needed or do I need to do more?

Installed this and the interface without problems, but I haven't run it yet. :D

Also, I have attachments switched off on the board and I'm just using a couple of text groups. I'm using the interface so will that automatically not download attachments, or will they just be put into the database and not displayed on the board. If so how can I ensure it doesn't download binaries?

I'm on a shared server and my host has been really encouraging to me re installing this hack. Don't want to push my luck by having the database grow massively. ;)

Thanks for any help.

PhoenixBB 06-29-2003 04:51 PM

Quoting from post 381:

Quote:

my searchindex table started getting out of hand... It reached about a gig, and I was only a quarter done, so I killed all the records and set the nntp options to not index the groups that are based on newsgroups and only index local groups.... now that that is done, my whole dbase is arround 40 meg as of may 22, but should be around 80 or so when done!...
This is the only post I can find on this. Where are these NNTP options? I've looked in the php file but saw nothing there, so anyone know how I can exclude the newsgroups from the search function/index?

I'm shortly going to be adding the code to ensure that newsgroup posts aren't included in normal 'view new' so will that be all that's needed or do I need to do more?

Installed this and the interface without problems, but I haven't run it yet. :D

Also, I have attachments switched off on the board and I'm just using a couple of text groups. I'm using the interface so will that automatically not download attachments, or will they just be put into the database and not displayed on the board. If so how can I ensure it doesn't download binaries?

I'm on a shared server and my host has been really encouraging to me re installing this hack. Don't want to push my luck by having the database grow massively. ;)

Thanks for any help.


All times are GMT. The time now is 11:20 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.02008 seconds
  • Memory Usage 1,764KB
  • 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
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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