Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Closed Thread
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 01-21-2001 Last Update: Never Installs: 3
 
No support by the author.

THIS THREAD IS CLOSED!
Posts in here will NOT be answered

This hack has undergone many major changes since this thread was started. Consequently, most of the posts have become dated and of little use. To coincide with the latest major release (20010712), a new one has been started.

See this thread for the latest version and discussion

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #572  
Old 06-25-2001, 04:48 AM
NgtCrwlr's Avatar
NgtCrwlr NgtCrwlr is offline
 
Join Date: Jan 2002
Location: Fort Myers, FL, USA
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
  #573  
Old 06-25-2001, 01:26 PM
webhost's Avatar
webhost webhost is offline
 
Join Date: Oct 2001
Location: St. Louis
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #574  
Old 06-25-2001, 06:22 PM
fastforward fastforward is offline
 
Join Date: Oct 2001
Location: NC, USA
Posts: 399
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
  #575  
Old 06-25-2001, 08:28 PM
webhost's Avatar
webhost webhost is offline
 
Join Date: Oct 2001
Location: St. Louis
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

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

joey
  #576  
Old 06-25-2001, 08:52 PM
NgtCrwlr's Avatar
NgtCrwlr NgtCrwlr is offline
 
Join Date: Jan 2002
Location: Fort Myers, FL, USA
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
  #577  
Old 06-25-2001, 09:18 PM
webhost's Avatar
webhost webhost is offline
 
Join Date: Oct 2001
Location: St. Louis
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #578  
Old 06-25-2001, 09:27 PM
NgtCrwlr's Avatar
NgtCrwlr NgtCrwlr is offline
 
Join Date: Jan 2002
Location: Fort Myers, FL, USA
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
  #579  
Old 06-25-2001, 09:30 PM
webhost's Avatar
webhost webhost is offline
 
Join Date: Oct 2001
Location: St. Louis
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks

fastened
  #580  
Old 06-25-2001, 09:58 PM
fastforward fastforward is offline
 
Join Date: Oct 2001
Location: NC, USA
Posts: 399
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
  #581  
Old 06-25-2001, 10:01 PM
webhost's Avatar
webhost webhost is offline
 
Join Date: Oct 2001
Location: St. Louis
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

where you download php, perl, mysql newsgroups from?

Joey
Closed Thread


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:28 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06901 seconds
  • Memory Usage 2,306KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete