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)
-   -   Usenet gateway (https://vborg.vbsupport.ru/showthread.php?t=7100)

NgtCrwlr 06-25-2001 04:48 AM

Well, my bright idea turned dim. I know I'm right track, but my Perl skills are just not up to this task. At least not without a hundred or so hours of head scratching and testing.

I thought it would be as easy as changing the decode to encode in this line:
decode_entities($f); decode_entities($s);

but for some reason it loops or repeats a bunch of times. You can see the output here:
http://www.mis-forums.com/vbbs/showt...threadid=17939

Then I started to look at newnews closer and realized that not only do incoming subject titles and poster names need to be encoded but they will need to be decoded before sending them back to USENET (I think).

Unfortunately, as we talked about earlier this is a problem of the way vB stores user names and thread/post titles/subjects. If vB stored the raw data (&,",<,>) and filtered it before displaying it like they do in all other data fields there would not be a problem.

This would go unnoticed for a long time because IE5 seems to digest the bad characters without problems, however, it is way bad HTML style to have &'s and greater/less than symbols where they don't belong, and the pages will never come close to validating.

Damn, I'm the bearer of bad news again! :(
I wish I could help more.

webhost 06-25-2001 01:26 PM

Paul I tried to copy and paste from shell but having problem with that. I have attached a zip file on what error I get. I download articles and it states they are downloading and then I get the attached error when it completes. The messages show up in my phpmyadmin but not on my board. It does however add a topic on my board with this title: Using an online form to enter data in to a local database. and also this one Tables set to 100% width
but only a title nothing in threads when you click on them. I get the samw thing every time I run script. my site is at http://forums.realwebhost.net look at frontpage on bottom.

The zip file should show you the error hopefully.

Hope you have time to look at it. This is what my host thinks the probelm is. I don't know need help please.

it's causing an SQL error. I think it's probably due to some
> characters not being escaped correctly. Tell the developer to try
> and auto escape all the characters contained in the pagetext prior
> to it attempting an insert.

Hope you understand that. Joey

fastforward 06-25-2001 06:22 PM

All characters are already escaped before inserting into the database. If they weren't, nothing would work for anybody :)

If you look at your error message, you will see the threadid is null. This is what's causing it to fail.

You need to make sure you have the latest DBI/DBD modules from CPAN. Older versions do not support the msql_insertid function correctly.

webhost 06-25-2001 08:28 PM

Does this correct for a cron job for the script to run it very 20 minutes?

*/20 * * * * /home/realweb/newnews.pl

joey

NgtCrwlr 06-25-2001 08:52 PM

This one fires every 20 minutes
0,20,40 * * * * /your/pathto/newnews.pl >/your/pathto/cron_usenet.log

This one does its work twice an hour
0,30 * * * * /your/pathto/newnews.pl >/your/pathto/cron_usenet.log

Do you see the idea here?
If you want it to run at 12 mins past the hour and then at 43, 47, and 52 minutes past the hour it would be
12,43,47,52 * * * * /your/pathto...

This part of the line
>/your/pathto/cron_usenet.log
saves the output to the the file cron_usenet.log
You can then download cron_usenet.log and see if everything worked properly. Name the file anything you want, just make sure the path is correct for your server.

I hope this helps.

webhost 06-25-2001 09:18 PM

Thanks for ther help guys. PAUL I have live data now in the forum, updated the module as you requested. It works?

Great HACK.

Thanks Crawler for the cron data.

Paul what server do you pull the php and mysql on your site from?

Joey

NgtCrwlr 06-25-2001 09:27 PM

You're welcome Joey, I'm happy you got it working. Now fasten your seatbelt for the disk space ride. You're gonna need a *lot*.

The fun has just begun! :D

webhost 06-25-2001 09:30 PM

thanks

fastened

fastforward 06-25-2001 09:58 PM

Quote:

Originally posted by webhost

Paul what server do you pull the php and mysql on your site from?

Not sure I understand the question. Do you mean where do I download MySQL & PHP from or are you asking what or where is the server that houses my site?

webhost 06-25-2001 10:01 PM

where you download php, perl, mysql newsgroups from?

Joey


All times are GMT. The time now is 03:53 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.01559 seconds
  • Memory Usage 1,741KB
  • 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_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