vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   NNTP Gateway for Usenet ( Newsgroups ), Mailing Lists (https://vborg.vbsupport.ru/showthread.php?t=92588)

KW802 02-11-2006 02:57 AM

Anybody else having problems exporting posts that contain list, quote, code, or php tags? If any of those tags are used in a thread then the post has nothing exported.

I can see in functions_nntp.php in the format_text function that it attempts to convert those tags to be plain text dashes but I'm not seeing where the problem might be.

Thoughts?

:)

jarosciak 02-13-2006 01:48 AM

I am having a real problem in 3.5.3

When I run gateway.php in debug mode:

Gateway version 2.3.2 101 group(s) gatewayed.


Connecting to server, server says: 200 SurgeNews Text-East.u (Version 2.0a-4) http://surgenews.com posting OK

Server responded after user name: 381 Helo myusername password required

Server responded after password: 281 Authorization accepted

Info for sci.lang at text-east.usenet.com: 211 46541 245219 291997 sci.lang selected (items,min,max)

Getting message number 288938:

'Re: Time in various languages...' from Peter T. Daniels. Thread found by References.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>S...


And it displays the whole posts and gateway.php stops.

and below that is:

Database error in vBulletin 3.5.3:

Invalid SQL:
INSERT INTO post
(postid, threadid, title, username, userid, dateline, pagetext,
allowsmilie, showsignature, ipaddress, iconid, visible,
isusenetpost, msgid, ref, parentid) VALUES
(NULL, 214260, 'Re: Time in various languages...',
'Peter T. Daniels', 0, '1137363805',
'Se?n O\'Leathl?bhair wrote:
[color=blue][color=green]
&gt; &gt; &gt; &gt; Let\'s check that I understand you. Is the following correct?
&gt; &gt; &gt; &gt;
&gt; &gt; &gt; &gt; German \&quot;Halb Neun\&quot; meaning 08:30 is reasonable.

&gt; &gt;
&gt; &gt; Sure. It\'s halfway through t

jarosciak 02-13-2006 01:49 AM

Can Someone help out. I spent last 4 hours trying to figure this one out.
Looks like there is something with posting to post database.
But why doesn't it work?
Joe

sensimilla 02-13-2006 06:25 AM

looks like this topic is unsupported anyway.. its a pity , great addon in my opinion

jarosciak 02-13-2006 10:58 AM

Lierduh, can you please look at the code above?
I can even give you ftp and forum access if needed.
Please let me know
joe

Deepdog009 02-13-2006 11:09 AM

only probs is the gateway.php file doesn't continue in the cron area, so must setup server cron. also have prob with exporting sometimes, it works and then it doesn't work depending on the auth from server. some hosts dont support import or export. other than that its hecca cool dude. thanks a mil Lierduh. if i had some extra cashola, I be PP U.

jarosciak 02-13-2006 12:20 PM

Could anyone look at the problem above?
My whole forum is stuck for couple of days now, no support here.
I will gladly pay to someone who can figure out what is causing my problem.
Joe

KW802 02-13-2006 02:45 PM

Re: /includes/functions_image.php

So am I missing something obvious or do we need to use a modified version of functions_image.php from vB 3.0.x with vB 3.5.x in order to get the attachment thumbnails working? :)

Deepdog009 02-13-2006 05:40 PM

Thread Items of interest

https://vborg.vbsupport.ru/showthread.php?t=65152
3.0 version / take a look my help solve some problems with 3.5
lierduh page 1

http://gt500forums.com/testvb/index.php
dodgez page 2

http://phorums.com.au/forumdisplay.php?f=21
lierduh page 5

http://www.cyburbia.org/forums/
Cyburbia page 5

http://www.techenclave.com/forums/
Acers page 7

You won't find smtp in the scripts. If you need more info about mail(), please check:
http://php.mirrors.ilisys.com.au/ma...nction.mail.php

Ok, I think I have it partially figured out re: attachments... But I'm getting this debug message, and have set everything to allow attachments... Any idea for what I might be missing?
The Pimp / page 4

Getting message number 971197:
This forum does not allow attachments, therefore attachment ignored.
http://www.maximumgamer.com/forums
ixian page 9

http://www.edinburghtalk.com/forum/
donnacha page 9

The Gateway script is not picking up attachments!!!

http://www.asiasrc.org/forum3.5/showthread.php?t=32
The attachment is available in the pipermail archive on Mailman.. at: http://asiasrc.org/pipermail/pleasu...ber/000052.html
Any idea pls?
babulgogoi page 11

The problem happens when you have a completely empty forum. I fixed that in the CVS a while back, but having trouble to find time to release a new version.
lierduh page 12

1.) add a plugin, the hook you want is "showthread_start"
2.) product is vbulletin (or you can create a product just for nntp hacks)

PHP Code:

global $vbulletin;
$thread = verify_id('thread', $threadid, 1, 1);
if ($thread) {
$sql = "SELECT newsgroupid FROM " .
TABLE_PREFIX .
"nntp_groups WHERE forum = " .
$thread['forumid'];
if($vbulletin->db->query_first($sql)) {
unset($threadedmode);
$vbulletin->userinfo['threadedmode'] = 2; // 1 - threaded, 2 - hybrid
}
}
scruby page 12

Look at my site http://ms-os.com. You can see new threads and posts. Those are all usenet forums.
That error happens when there is a problem with an image attachment in a usenet post. I get it from time to time. Go to newsgroup settings and dit each groups message id number. Increment it by one.
AWS page 13

Here's how I resolved my issue of masking email addresses, in case anyone else is interested.

Find:

Quote:
$message['text'] = preg_replace('/([-_.\\w]+)@([\\w]+[-\\w]+)\\./', '\\1 (AT) \\2 (DOT) ', $message['text']);

Replace with:

Quote:
$message['text'] = preg_replace('/([-_.\\w]+)@([a-zA-Z0-9\.]+)/', '\\1@xxxxxx', $message['text']);

Find:

Quote:
$from_name = from_name($message['from']);

Replace with:

Quote:
$sender_name = from_name($message['from']);
$from_name = preg_replace('/([-_.\\w]+)@([a-zA-Z0-9\.]+)/', '\\1', $sender_name);

I'm sure it's not the most efficient want to do it, but it seems to work for me.
http://vfrworld.com/forums/vf-vfr-mailing-list/
volarium page 14

Hope all dont mind if posting sites again to view by new installers.
This hack is very useful and should be given more attention.
Hope this helps somebody.

sensimilla 02-13-2006 05:48 PM

@Deepdog009
Outstanding reply, thanks alot!

KW802 02-13-2006 06:00 PM

Deepdog009: Thanks for the recap. :) Unfortuntaley neither of my two issues are addressed. :( I searched both this thread and the older vB 3.0.x thread and didn't find references to either. Before I started hacking the files I was hoping somebody else came across them.

jarosciak 02-14-2006 02:22 AM

Perfect reply but not to my questions. Eh, it's frustrating when there is no support for such a great script. Only if I could figure out how to get it to work. It seems so close.
joe

KW802 02-14-2006 12:06 PM

Quote:

Originally Posted by KW802
Re: /includes/functions_image.php

So am I missing something obvious or do we need to use a modified version of functions_image.php from vB 3.0.x with vB 3.5.x in order to get the attachment thumbnails working? :)

Since attachments are obviously working for some of you guys/gals, could you please tell me where you obtained the functional copy of /includes/functions_image.php from since it is not included in neither the download attached to this thread and it is no longer a standard vB 3.5 file? :disappointed: If it's a case of modifying the old vB 3.0.x version could you let me know what modifications you did to it? Changing the $vboptions to $vb->options is easy enough but I'm not sure what to replace the "global $vboptions" with since "global $vb->options" results in an error.

I can work around the problem with the code/quote/list/whatever threads but am stuck a bit on the functions file.

jmw 02-15-2006 08:55 PM

Does this hack work with vbulletin 3.5.3? Any plans to converting it to plugin?

AWS 02-16-2006 02:58 AM

Quote:

Originally Posted by jmw
Does this hack work with vbulletin 3.5.3? Any plans to converting it to plugin?

Yes it does.

jarosciak 02-16-2006 03:02 AM

I ended up reworking the whole damn script, using only parts of the one presented here.
Now I have my own version of NNTP gateway and it works like a charm.
I am planning to do also a remote windows version for this program.
Joe

KW802 02-16-2006 12:12 PM

Joe,

I'm also in the midst of rewriting chunks of it to make it work since people here either don't know (or don't care) that some parts of it don't work or simply don't feel like sharing their solutions. Maybe we should talk? :D

jarosciak 02-16-2006 12:28 PM

Hi KW802,
I've got a whole script written in vb.net as windows app.
Basically what it does, it gives you a list of newsgroups. You can select those you want to sync.
It gets all the messages and feeds them into mysql database.
You can see this script working here: www.n-n-a.com .
It should be very easy to feed it into vb.net forum.
First of all, it's extremely fast. It gives you progress in percentage for each newsgroup and I can pull millions of posts a day.
Do you want to give me some helping hand to get it to work with vbulletin?
Joe

KW802 02-16-2006 03:25 PM

Joe,

Thanks but I would be in need of a PHP based solution. I've already re-written parts of functions_nntp.php file to handle the quote/php/code/list bb codes and will be tackling the functions_image.php file issue next. I figure at this point I'll just hack the PHP files to suit the needs of the site I'm running it on and go from there.

AWS 02-16-2006 06:58 PM

I am having no problems with this script at all. Everything works and has always worked. No problems with bbcode, images, attachments or anything else that others in this thread have problems with. The only time I ever had a problem is when the usenet provider purges one of the groups. This is fixed by running setlastmessage.php after the run dies.

KW802 02-16-2006 08:36 PM

Quote:

Originally Posted by AWS
I am having no problems with this script at all. Everything works and has always worked. No problems with bbcode, images, attachments or anything else that others in this thread have problems with. The only time I ever had a problem is when the usenet provider purges one of the groups. This is fixed by running setlastmessage.php after the run dies.

And the "functions_image.php" file that is included from functions_nntp.php and works with this version running on vB 3.5.x was acquired from where? As I said above, that file is NOT included with the zip file attached to this thread, is NOT a standard vB 3.5.x file, and the vB 3.0.x version will NOT work as-is.

Have you verified lately that outgoing quotes are working since the upgrade to 3.5?

srpompon 02-17-2006 03:01 AM

Great script!! GREAT! im to happy...

attachs dont work.. but is great!

why in some forums like http://www.cyburbia.org/forums/showthread.php?t=19169 the attachs work?

please sorry for my bad english.

Ivan

AWS 02-17-2006 03:01 PM

Quote:

Originally Posted by KW802
And the "functions_image.php" file that is included from functions_nntp.php and works with this version running on vB 3.5.x was acquired from where? As I said above, that file is NOT included with the zip file attached to this thread, is NOT a standard vB 3.5.x file, and the vB 3.0.x version will NOT work as-is.

Have you verified lately that outgoing quotes are working since the upgrade to 3.5?

I changed that block of code to use the new image class that vbulletin has although I do actually have the function image file. Must be leftover from an older version after upgrade. Forgot I had modified that part of the script.
Outgoing qutes do show. I read the newgroups with a news reader and all posts from my forums have quoted text sent from my forums.
It is possible that I have made more changes to this hack then I remember. Whenever I install a hack I always have to change something to make it work since I run on IIS and use .phtml extension.
I guess I should document them in the hack threads, but, in reality most would be of no use if you don't run IIS.

Deepdog009 02-18-2006 01:49 AM

Hi all, just wanted to advice everybody that this week I received a FLAGG from Usenet. Why I received it Im not sure, well they say in the email because of spamming, Im innocent I tell you.

They're looking into it and will get back to me when they finish the investigation. Holy crap Batman.

Don't know if other members or one of the groups has singled me out 4 pain.

I posted less than several times using this script, all posts were related to groups content and no spamming. Maybe it was the links (userid and forumid).
To make a long story short I can't post anymore until they give me an anwser.

Has anybody had any problems posting to the groups? (exporting).

F_ck!!!

srpompon 02-18-2006 01:57 PM

please sorry for my bad english.

Now the attachs work in my 3.5.3, for this i copy a functions_image.php file from another old vb instalation to my includes.

And i comment some lines in the file incliudes/functions_nntp.php

// if (!$forumperms)
// {
// logging("This forum does not allow attachments, therefore attachment ignored.");
// }
// else
// {
$forumperms2 = true;
// }

i dont know php i only know C, this is a very uggly solutions buts work.
if anyone know php please solve this in a good way.

in some attachs whit names like "dirty monkey.jpg" the filename parcer fails at the space and say "unknow extencion" this is the only problem.

thanks,

MrPompon

srpompon 02-19-2006 02:46 AM

This is the filename error:

Successfully connected to the 'pop3.orchidswamp.com' pop3 server.
Retrieving 1 E-mails from the 'pop3.orchidswamp.com' pop3 server.
Getting message number 1:
extensions are not accepted, as currently set up in the control panel.
extensions are not accepted, as currently set up in the control panel.
'[orquidea] BC. HIPPODAMIA' from Carlos Keller. New thread.

the filenames are:
filename="Bc. Hippodamia 'Kelvin Lucky' AM.AOS, 01 (ID).jpg"
filename="Bc. Hippodamia 'Kelvin Lucky' AM.AOS, 02 (ID).jpg"

anyone know howto solve this?

thanks!

MrPompon

srpompon 02-19-2006 02:31 PM

new error on some attachs

<b>Fatal error</b>: Call to a member function on a non-object in <b>/www/docs/orchidswamp.com/public_html/includes/functions_image.php</b> on line <b>224</b><br />

8-)

Grinler 02-21-2006 06:13 PM

Can someone tell me what the purpose of setlastmsg.php is for? I did not run it first..is that going to be a problem? I do not appear to be having any probs. Also did anyone port the advanced hack instructions over to 3.5.3?

srpompon 02-21-2006 06:20 PM

i dont run the setlastmsg.php and work fine in my 3.5.3

Grinler 02-22-2006 03:21 PM

On another note, has anyone who uses this script ever had a problem with any usenet providers when they found out what you were using the script for? Did they cancel your service or tell you that it was not allowed? Are there any known services that know about this script and do not care if you use it?

AWS 02-22-2006 04:41 PM

Quote:

Originally Posted by Grinler
On another note, has anyone who uses this script ever had a problem with any usenet providers when they found out what you were using the script for? Did they cancel your service or tell you that it was not allowed? Are there any known services that know about this script and do not care if you use it?

As long as you stay under the alloted download limits you'll be OK.
I've been running this hack using GigaNews 2 gig per month account for 3 years and have never had a problem. If you pull binaries then you'll need a larger amount. I pull about 35 text groups and I have never used anywhere near my allotment.

Grinler 02-22-2006 05:19 PM

Any idea if they know what you are using it for? Just curious as though it does not break any AUP they may not like it. Btw, how do you like giganews?

KW802 02-22-2006 08:02 PM

Quote:

Originally Posted by AWS
I changed that block of code to use the new image class that vbulletin has although I do actually have the function image file. Must be leftover from an older version after upgrade. Forgot I had modified that part of the script.

I'd be interested in seeing the modified version using class_image.php instead, doesn't matter if it's phmtl or php. :)

srpompon 02-23-2006 01:20 PM

Quote:

Originally Posted by KW802
I'd be interested in seeing the modified version using class_image.php instead, doesn't matter if it's phmtl or php. :)


i also...

laxyy 02-24-2006 03:53 AM

Quote:

Originally Posted by Cyburbia
This:

HTML Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="ltr" lang="en">
<head>
        <title>Scheduled Task Manager - (my site) - vBulletin Admin Control Panel</title>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
        <link rel="stylesheet" href="../cpstyles/vBulletin_3_Default/controlpanel.css" />
        <script type="text/javascript">
        <!--
        var SESSIONHASH = "";
        function set_cp_title()
        {
                if (typeof(parent.document) != 'undefined' && typeof(parent.document) != 'unknown' && typeof(parent.document.title) == 'string')
                {
                        parent.document.title = (document.title != '' ? document.title : 'vBulletin');
                }
        }
        //-->

        </script>
        <script type="text/javascript" src="../clientscript/vbulletin_global.js"></script>

</head>
<body style="margin:0px" onload="set_cp_title();">
<div class="pagetitle">Scheduled Task Manager</div>
<div style="margin:10px">
<!-- END CONTROL PANEL HEADER -->

<p><b>Mailing list gateway</b></p><p>Done</p>

<!-- START CONTROL PANEL FOOTER -->
<p align="center"><a href="http://www.vbulletin.com/" target="_blank" class="copyright">vBulletin v3.5.0 Release Candidate 1, Copyright &copy;2000-2005, Jelsoft Enterprises Ltd.</a></p>
</div>
</body>
</html>

Just raw HTML.

its good to get update from news group
I just installed this mod,, but facing some problem and its not updating the contain rapidly,

its gives error when i run it
"Another instance of gateway.php is running, try again in 30 minutes if the script was crashed."

its megarly updating less than hundred post each time

Plz guide me in this

Thanx

laxyy 02-24-2006 03:53 AM

its good to get update from news group
I just installed this mod,, but facing some problem and its not updating the contain rapidly,

its gives error when i run it
"Another instance of gateway.php is running, try again in 30 minutes if the script was crashed."

its megarly updating less than hundred post each time

Plz guide me in this

Thanx

Maddog417 02-26-2006 05:33 PM

I'm also having all sorts of problems with this hack. For starters, the documentation is a fiasco and there are so many different issues and problems here on the forums I'm not certain what is working on this hack.

I installed the files as best I could given that the files included in the current version aren't even mentioned in the Readme. Whenever I attempt to run the http://www.yourserver.com/vbdir/gateway.php?debug=1 script, I get the following error:

Quote:

Warning: fsockopen(): unable to connect to myemail.com:110 in /includes/pop.php on line 40
Connection timed out (110)
Warning: fwrite(): supplied argument is not a valid stream resource in /includes/pop.php on line 107

Warning: fgets(): supplied argument is not a valid stream resource in /includes/pop.php on line 99

Warning: fwrite(): supplied argument is not a valid stream resource in /includes/pop.php on line 107

Warning: fgets(): supplied argument is not a valid stream resource in /includes/pop.php on line 99

Done
I'm trying to get this to work for a Mailing List, not a newsgroup. So far I can't even get the gateway.php to run at all.

Does anyone have this working for vb3.5.4 for a mailing list? If so, can you provide some tips on exactly how you did it? Thanks.

Maddog417 02-26-2006 10:54 PM

Every time the gateway.php attempts to run, I also get this:

Quote:

Database error in vBulletin 3.5.4:

Invalid SQL:
UPDATE nntp_settings
SET value = WHERE varname = 'last_postid';

MySQL Error : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE varname = 'last_postid'' at line 2 Error Number : 1064

jmw 02-26-2006 11:11 PM

Why doesn't any of you guys takes this hack and be in charge of delivering timely updates and charge a fee for it? This hacks appears to be abandoned and it is needed badly. There is a ton of money to be made with these abandoned hacks. There are a ton of people that don't know a line of code and that don't want to put up with these buggy hacks, lack of updates problem and don't mind to shell out money. Remember, the majority of Vb customers don't know a line of code. Where is that paid hack directory anyway?

AWS 02-27-2006 07:10 PM

Quote:

Originally Posted by Maddog417
Every time the gateway.php attempts to run, I also get this:

Looks like the querry wasn't run when you installed the hack. Did you follow the install instructions and open the gateway settings page before you added any newsgroups?


All times are GMT. The time now is 04:49 AM.

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.01824 seconds
  • Memory Usage 1,869KB
  • 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_html_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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