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)

Gilby 03-02-2002 06:58 PM

Quote:

Originally posted by mood
Now that you have put such a great gateway together, do you think you could add the feature to gate the messages to a mailing list?
THAT would be THE BEST!

Actually, I was thinking of doing something of that sort, although, I'm working on other projects at the moment and that may be a ways away. A lot of the code from this hack can be used for that. Maybe i'll take a look at it now and see if it's really easier than I expected.

saab340 03-02-2002 11:57 PM

I dont know what happened, but all my posts start with []

(Brackets in fromt of all the post that goes to the usenet)

It shows fine on my forum (Without the brackets)

Which line specifies the heading?

Only think I modified was the signature, and remove the > >> >>> stuff.

Thanks

Otherwise its working great :)

Help me out with this issue, since replies are generated in new threads.... Otherwise it would not matter.

This is my signature edit:

function sendnews($newthread, $isreply=false){
global $settings, $group, $prefix, $news, $DB_site, $msgid_date;
// 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";
// $signature .= format_text($userinfo[signature]);
// }
$signature .= "\n http://www.test.com \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";
}



and this is to remove the >>> stuff :)

//$message[text] = preg_replace("/((\n[ ]*>[^\n]*)+)/","$1",$message[text]);
$message[text] = preg_replace("/((\n[ ]*>[^\n]*)+)/","",$message[text]);
//$message[text] = preg_replace("/((\n[ ]*>[ ]*>[^\n]*)+)/","$1",$message[text]);
//$message[text] = preg_replace("/((\n[ ]*>[ ]*>[ ]*>[^\n]*)+)/","$1",$message[text]);

$message[text] = preg_replace("/((\n[ ]*>[ ]*>[^\n]*)+)/","",$message[text]);
$message[text] = preg_replace("/((\n[ ]*>[ ]*>[ ]*>[^\n]*)+)/","",$message[text]);


Those are only changes I made, and now all my posts start with:[]

Any idea why?

Gilby 03-03-2002 12:04 AM

Are the brackets in the body or the subject?

saab340 03-03-2002 12:11 AM

subject

Gilby 03-03-2002 12:21 AM

Quote:

Originally posted by saab340
subject
OK then, make sure that everything in the prefix column is set to NULL.

This SQL will do the trick:
Code:

UPDATE nntp_groups SET prefix = NULL

nafae 03-03-2002 12:22 AM

Ok so I think I did everything right, but then again I am not sure... Gilby can I get you to check out my server for me and check and see if you can tell what the problem is? I am sketchy at best with this sql stuff...

Gilby 03-03-2002 12:31 AM

Quote:

Originally posted by nafae
Ok so I think I did everything right, but then again I am not sure... Gilby can I get you to check out my server for me and check and see if you can tell what the problem is? I am sketchy at best with this sql stuff...
What/Where do you want me to look at?

saab340 03-03-2002 12:33 AM

Also I just remembered, I changed the time to show correct time... ie not time when cron (ie when downloaded)

and I see that some of the posts which are replied... ie Re: something

will show in different posts. What is the cause of this? time issue?

Thanks (Gilby You are doing a great job)

this is the mod for time....
// if ($group[lastmsg] == 0){
$date = strtotime($message[date]);
//} else {
//$date = time();
//}

nafae 03-03-2002 12:34 AM

well, I installed it and set for alt.comp.programming 31 0 (usenet url) NULL NULL 1 under nntp-groups, then I run gateway.php, it downloads a file that sayes

1 group(s) gatewayed.
Logging in to (usenet).com, group alt.comp.programming

but when I check forum 31 (http://www.coderforums.net/forumdisp...?s=&forumid=31) nothing appears there...

Gilby 03-03-2002 12:43 AM

Quote:

Originally posted by nafae
well, I installed it and set for alt.comp.programming 31 0 (usenet url) NULL NULL 1 under nntp-groups, then I run gateway.php, it downloads a file that sayes

1 group(s) gatewayed.
Logging in to (usenet).com, group alt.comp.programming

but when I check forum 31 (http://www.coderforums.net/forumdisp...?s=&forumid=31) nothing appears there...

Is the script running from the same network as your nntp server?


All times are GMT. The time now is 07:41 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.01491 seconds
  • Memory Usage 1,747KB
  • 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_code_printable
  • (4)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