![]() |
oooohhh... I am not that good.
Is there a way to add that to the code.... I could redownload them all again... since I have cron running I would like to get them stripped then, and not running things twice. I know there is a way of doing that by using perl, but even my perl would not be able to do so... would that be hard? ie should I ask custom job for this? How much would it cost approx? |
Quote:
Code:
$message[text] = preg_replace("/((\n[ ]*>[^\n]*)+)/","[ color=blue]\\1[/ color]",$message[text]); Code:
$message[text] = preg_replace("/((\n[ ]*>[^\n]*)+)/","",$message[text]); |
Awesome
|
Quote:
|
Quote:
|
I get these errors now:
6 group(s) gatewayed. 200 News.GigaNews.Com (Typhoon v1.2.3) 381 More Authentication Required 502 Failed connection to netblock restricted feed 'cc' 480 Authentication Required ArrayLogging in to news.tn.comcast.giganews.com, group rec.collecting.cards.discuss 200 News.GigaNews.Com (Typhoon v1.2.3) 381 More Authentication Required 502 Failed connection to netblock restricted feed 'cc' 480 Authentication Required ArrayLogging in to news.tn.comcast.giganews.com, group rec.collecting.sport.baseball 200 News.GigaNews.Com (Typhoon v1.2.3) 381 More Authentication Required 502 Failed connection to netblock restricted feed 'cc' 480 Authentication Required ArrayLogging in to news.tn.comcast.giganews.com, group rec.collecting.sport.basketball 200 News.GigaNews.Com (Typhoon v1.2.3) 381 More Authentication Required 502 Failed connection to netblock restricted feed 'cc' 480 Authentication Required ArrayLogging in to news.tn.comcast.giganews.com, group rec.collecting.sport.football 200 News.GigaNews.Com (Typhoon v1.2.3) 381 More Authentication Required 502 Failed connection to netblock restricted feed 'cc' 480 Authentication Required ArrayLogging in to news.tn.comcast.giganews.com, group rec.collecting.sport.hockey 200 News.GigaNews.Com (Typhoon v1.2.3) 381 More Authentication Required 502 Failed connection to netblock restricted feed 'cc' 480 Authentication Required ArrayLogging in to news.tn.comcast.giganews.com, group alt.collecting.autographs |
Quote:
|
Quote:
|
Quote:
|
Got it working. IS there a way to filter it to a certain date? Trying to find out how to set showthread to "the beginning" instead of 30 days.
|
Quote:
|
This is the best hack. Period
Now I need a provider, that allows me to also post on the groups. (I only need 3 groups. text only ie not too much bandwith requirements) Willing to pay for service, but I'll take the free one if one is around. E-mail me or PM me your suggestion. Hopefully one that someone has tested this with. Thanks |
I found a free one, but the download is SUPER slow. Getting 527 bytes/sec
|
Quote:
|
I run crobtab crontab.txt , but show this error in e-mail:
Quote:
|
Quote:
|
FEATURE REQUEST:
Gilby, 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! Pls contact me "off forum" if you'd like some "extra" support" Mood |
25,50 * * * * /usr/bin/lynx -source "http://www.collectorempire.com/forums/gateway.php?log=cron
|
Quote:
|
Quote:
|
Quote:
|
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? |
Are the brackets in the body or the subject?
|
subject
|
Quote:
This SQL will do the trick: Code:
UPDATE nntp_groups SET prefix = NULL |
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...
|
Quote:
|
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(); //} |
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... |
Quote:
|
no, my nntp server is the one that my isp uses
|
Quote:
|
Quote:
|
so the next step would be, assuming that I can't access my isp's usnet group... I purchase a username to another usenet server? What are the typical prices and where can I buy a usenet account :confused:
|
Quote:
|
ok, thanks for your help.
|
remove // from } ?
I did this like you suggested early on, to show correct thread date... I dont understand? It seems correct. Please confirm. |
Quote:
|
My problems are [] listed right before each post on the topic, and when replied... they will show up on a different post.
some Re: posts also show as a different topic. |
Quote:
Otherwise, if all else fails, we can hardcode it to not use my undocumented feature for you: Change: Code:
if ($prefix[$newthread[forumid]] and !$isreply){ Code:
if ($isreply){ |
All times are GMT. The time now is 09:05 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:
|