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
  #32  
Old 01-23-2001, 08:50 PM
Guest
 
Posts: n/a
Default

ok slight problem:

Someone posted on the newsgroup, i think 2 messages (maybe 3 as their post count is 3 but only two messages are found when searching by username.. bizarre)

anyway..

in one thread this were the results (3 posted messages)

Quote:
Thanks, Mandy. That was great. Loved the Teal'c and his staff weapon and Major Davis and his chocolate bath... but bring back MARTOUF!!



One question though...why wasn't General Hammond getting devested? Is he too old or...

Sent via AsciFi.com - the number 1 science fiction community
Visit us today --> http://www.ASciFi.com/?source=news
this is the correct post in the correct thread. this is when we have problems. Next posts:

Quote:
Thanks, Mandy. That was great. Loved the Teal'c and his staff weapon and Major Davis and his chocolate bath... but bring back MARTOUF!!



One question though...why wasn't General Hammond getting devested? Is he too old or...

Sent via AsciFi.com - the number 1 science fiction community
Visit us today --> http://www.ASciFi.com/?source=news
Subject: The Dannytoes Dream Episode, Pt 2
From: jsc
Sender: jsc
Newsgroups: alt.tv.stargate-sg1
Content-Type: text/plain; charset=ISO-8859-1:
Content-Transfer-Encoding: 8bit
User-Agent: AsciFi.com Forums
References: 2jsc980271399 <20010122100836.02009.00001018@nso-ma.aol.com> <94hu5k$q8p$2@news6.svr.pol.co.uk> <94kov7$bqi$1@neptunium.btinternet.com>
Organization: AsciFi.com (http://www.ascifi.com.com)

This is a great story. Love the Major Davis and Dr. Frasier interlude! Telll the T-man to get himself to my home and I'ss show him some acorns and strong oaks!

Sent via AsciFi.com - the number 1 science fiction community
Visit us today --> http://www.ASciFi.com/?source=news
Subject: Dream Episode, Part 3
From: jsc
Sender: jsc
Newsgroups: alt.tv.stargate-sg1
Content-Type: text/plain; charset=ISO-8859-1:
Content-Transfer-Encoding: 8bit
User-Agent: AsciFi.com Forums
References: 2jsc980271609 <20010123153937.04061.00000750@nso-mh.aol.com>
Organization: AsciFi.com (http://www.ascifi.com.com)

Mandi this is fun to read! Please keep it up!



And tell T-Man to do the same!

Sent via AsciFi.com - the number 1 science fiction community
Visit us today --> http://www.ASciFi.com/?source=news
and next one

Quote:
Thanks, Mandy. That was great. Loved the Teal'c and his staff weapon and Major Davis and his chocolate bath... but bring back MARTOUF!!



One question though...why wasn't General Hammond getting devested? Is he too old or...

Sent via AsciFi.com - the number 1 science fiction community
Visit us today --> http://www.ASciFi.com/?source=news
Subject: The Dannytoes Dream Episode, Pt 2
From: jsc
Sender: jsc
Newsgroups: alt.tv.stargate-sg1
Content-Type: text/plain; charset=ISO-8859-1:
Content-Transfer-Encoding: 8bit
User-Agent: AsciFi.com Forums
References: 2jsc980271399 <20010122100836.02009.00001018@nso-ma.aol.com> <94hu5k$q8p$2@news6.svr.pol.co.uk> <94kov7$bqi$1@neptunium.btinternet.com>
Organization: AsciFi.com (http://www.ascifi.com.com)

This is a great story. Love the Major Davis and Dr. Frasier interlude! Telll the T-man to get himself to my home and I'ss show him some acorns and strong oaks!

Sent via AsciFi.com - the number 1 science fiction community
Visit us today --> http://www.ASciFi.com/?source=news
i have no idea what is going on here, it appears that messages are being mixed together, and then all posted to the same thread (the thread where the second post was meant to go never went there... strange)...


One final thing this brought up, if someone deletes their own posts it should be deleted from the awaiting to send to usenet table if it has not yet gone.

any ideas what is going on here? It only occurs when more than 1 message goes from the awaiting to send at table at once.
  #33  
Old 01-23-2001, 08:52 PM
Guest
 
Posts: n/a
Default

reading through again this is what appears to have happened.

first post --> sent to correct thread correctly.

2nd post combined with 1st post (including headers) --> sent to forum of first thread.

3rd post combined with 1st post and 2nd post (including headers) --> sent to forum of first thread.

not god
  #34  
Old 01-23-2001, 09:28 PM
Guest
 
Posts: n/a
Default

Ooops! It seems the array that holds the messages for sending is not cleared before it starts reading the next one. I must admit, I never tested it with more than one message in the outgoing table. Here's the fix:

On line 279 of newnews.pl, just after the line that reads
Code:
$c->post(@article);
Add the following line:
Code:
@aticle = ();
This is an extra line, NOT a replacement.

Sorry about that.
  #35  
Old 01-23-2001, 09:52 PM
Guest
 
Posts: n/a
Default

thanks a lot

now assuming the next run works and i don't find any more problems in the actual collection of the posts (let's hope) a few things/improvements for v2.0 (have a rest first after all the help though!)

1. Delete post from table to be sent if user deletes it. This may be because they post in wrong forum etc.

2. Using BPCode i would think to change the colour of quoted stuff
>stuff
>here
>for example
see. Not quite sure how this can be done really. Perhaps adding the bpcode on import would be best???

3. I am going to seperate posts in newsgroups to post on forums in user account, this won't be hard i doubt and will be part of vbulletin as opposed to this hack.

4. using more than one server, i know of some newsgroups i would like to mirror that are only on 1 specific server, would need a choice for these.

5. auto pruning of a guest's user posts and auto deletion of any of these posts upon upload (referenced by a username in a certain newsgroup or by an email address etc.)

6. Hard one this is, email notification of a new newsgroup post to a thread that a member of the forum has posted in.

7. Can variables be passed into the signature i would like a sig like

Quote:
Posted from ASciFi.com - the number 1 science fiction community.
View this thread on the internet at http://www.blah.com/blah?blah=blah
type thing. Would be quite cool.

anyway that is just a few possibile things i can think of, more i am sure will come perhaps add a few of these in (email notification most useful probably) when you do the change for v2.0 (hope that is not too hard, shouldn't be i would not think).

Cheers again for all your help.

chris
  #36  
Old 01-24-2001, 12:21 AM
Guest
 
Posts: n/a
Default

What an original and most excellent hack, I look forward to experimenting with it when V2.0 comes out.

Thanks
  #37  
Old 01-24-2001, 08:44 AM
Guest
 
Posts: n/a
Default

i now get the following error message referring to the new line

Quote:
Global symbol "@aticle" requires explicit package name at newnews.pl line 296.
Execution of newnews.pl aborted due to compilation errors.
  #38  
Old 01-24-2001, 11:01 AM
Guest
 
Posts: n/a
Default

ok to get it to work just comment out the use strict.

It now works but i get this error message:

Quote:
Name "main::aticle" used only once: possible typo at newnews.pl line 296.
i doubt this matters though.
  #39  
Old 01-24-2001, 12:26 PM
Guest
 
Posts: n/a
Default

Chris,

It looks like you may have forgotten to use the '@' symbol in front 'article' on that new line you added.

Every mention of 'article' in the sub-routine post_outgoing() should be prefixed with @

What exactly do you have on line 296.

The post_outgoing() routine should be this:

Code:
sub post_outgoing {
   print "Processing outgoing messages\n";
   my @article=();
   my $q2 = db_fetch("SELECT poster,newsgroup,subject,refs,body FROM usenet_outgoing");
   while ( my ($poster,$newsgroup,$subject,$refs,$body) = $q2->fetchrow_array ) {
      push(@article,"Subject: $subject\n");
      push(@article,"From: $poster\n");
      push(@article,"Sender: $poster\n");
      push(@article,"Newsgroups: $newsgroup\n");
      push(@article,"Content-Type: text/plain; charset=ISO-8859-1:\n");
      push(@article,"Content-Transfer-Encoding: 8bit\n");
      push(@article,"User-Agent: $useragent\n");
      if ($refs) { push(@article,"References: $refs\n"); }
      push(@article,"Organization: $organization\n");
      autoformat $body, {right=>72};
      push(@article,"\n$body\n\n$footer\n");
      print "Posting message by $poster to $newsgroup...\n";
      $c->post(@article);
      @article = ();
   }
   db_execute("DELETE FROM usenet_outgoing");
}
  #40  
Old 01-24-2001, 12:34 PM
Guest
 
Posts: n/a
Default

even more silly, you made a type and i copied and paste:

Quote:
@aticle = ();
oops it should be article

i should have noticed that
  #41  
Old 01-26-2001, 11:11 PM
Guest
 
Posts: n/a
Default

I just received an email from hostro telling me that I was spamming newsgroups. I know this was not from my account. I have accounted for all posts. All I can imagine is somebody downloaded the script and didn't change the $footer variable (which had my site in it). Please... if you have the script and didn't change it, change it NOW.
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 11:48 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.04645 seconds
  • Memory Usage 2,294KB
  • 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
  • (3)bbcode_code
  • (7)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
  • (2)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
  • (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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete