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

Gilby,

If you want to try out the new function to strip the bbcode, replace your existing one with this.

You can be the guinea pig and take all the flack from the usenet users if it goes wrong No, but seriously, I'd appreciate some help in testing it. It's getting a bit boring posting test messages to myself
Code:
sub remove_bb_code {
    my $text = $_[0];
    my ($bbo,$bbc);
    $text =~ s/&/&/ig;
    $text =~ s/\[size=[0-9]+\]|\[\/size\]//ig;
    $text =~ s/\[color=(\"\#)?[A-Za-z0-9]+(\")?\]|\[\/color\]//ig;
    $text =~ s/\[url=(\")?//ig; $text =~ s/(\")?\](.)+\[\/url\]//gi;
    $text =~ s/\[email=(\")?//ig; $text =~ s/(\")?\](.)+\[\/email\]//gi;
    $text =~ s/\[font=(\"\#)?[A-Za-z]+(\")?\]|\[\/font\]//ig;
    $text =~ s/\[list(=)?[1Aa]?\]|\[\/list(=)?[1Aa]?\]//ig;
    $text =~ s/\[\*\]/ - /ig;
    $text =~ s/\[(\/)?code\]//ig;
    my $bbcodes = db_fetch("SELECT bbcodetag FROM bbcode");
    while (my $bbcode = $bbcodes->fetchrow_array) {
      $bbo=quotemeta("[".$bbcode."]");
	   $bbc=quotemeta("[/".$bbcode."]");
	   $text =~ s/$bbo|$bbc//gi;
    }
    return $text;
}
  #403  
Old 05-15-2001, 12:38 PM
Dioxin Dioxin is offline
 
Join Date: Oct 2001
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by tamarian


How about a a listing of the database schema? Only the relevant table/fields.

I'm still running the old hack 1.8 on RC3 since my database is no longer compatible with the last hack. Couldn't figure which fields I didn't revert/update.

Looking forward to the update!
this would be a nice feature. i am also on hack release 1.8 and i plan to alter the tables manually. this would save me a lot of time

dioxin
  #404  
Old 05-15-2001, 06:25 PM
jarvis jarvis is offline
 
Join Date: Nov 2001
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, update on the Win32 install...

Looks like this won't work with Win32 systems without additional coding.

Also, some of the Perl mods don't match up, or I can't find them.

Net::NNTP and SMTP are not listed as ActivePerl mods, but NNTPClient and SMTP client are. Might be same, but then again, I'm not a technical expert.

All of the others I can find, except Date::Parse and MIME::WordDecoder.

So, I guess I'll have to wait until someone ports this to a Win32 Environment (hint, hint, maybe even money)

Thanks though for the hack...
  #405  
Old 05-16-2001, 06:28 AM
n3n
Guest
 
Posts: n/a
Default

here is html version of it.. nothing that i have done
i just added content type and br tags to it
so you can execute it online with browsers..

i was tired of getting into telnet and execute it to see the realtime result of the page..

just replace the existing newnews.pl with attached file (newnews.txt) and rename it to newnews.pl and call it from a web browser..
i checked if it works with crontab and it works of course..
  #406  
Old 05-16-2001, 12:50 PM
fastforward fastforward is offline
 
Join Date: Oct 2001
Location: NC, USA
Posts: 399
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice one. I'll see if I can get time to add this. I'll add some checking to see if it's running on the console or a browser and hide the <br>'s accordingly.
  #407  
Old 05-16-2001, 02:38 PM
SeanM SeanM is offline
 
Join Date: Oct 2001
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are there any problems with upgrading to RC3? I have noticed that the Usenet Gateway hack has been updated to work with RC3. Just curious if there's any problems..
  #408  
Old 05-16-2001, 09:49 PM
n3n
Guest
 
Posts: n/a
Default

Quote:
Originally posted by fastforward
Nice one. I'll see if I can get time to add this. I'll add some checking to see if it's running on the console or a browser and hide the <br>'s accordingly.
Great!!
(so i don't have modify coming up version of it any more.. )
  #409  
Old 05-18-2001, 01:58 PM
Dioxin Dioxin is offline
 
Join Date: Oct 2001
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

one question:

if i add this:
PHP Code:
// START USENET HACK
ORDER BY seqdateline $postorder
// END USENET HACK 
to showthread, the postorder istn't correct. i use the latest release.

why do you use this function in newnews.pl:
PHP Code:
sub order_local_posts {
   
my $posts db_fetch("SELECT threadid,postid,dateline FROM post WHERE isusenetpost=0 AND ord=0");
   while (
my $post $posts->fetchrow_hashref()) {
       
my $countposts db_fetch("SELECT COUNT(*) FROM post WHERE threadid = $post->{threadid} AND dateline < $post->{dateline}");
       
my $ord $countposts->fetchrow_array;
       
$countposts->finish;
       
db_execute("UPDATE post SET ord=$ord, seq=$ord+1 WHERE postid = $post->{postid}");
   } 
$posts->finish;

it counts all posts and update the seq-field. but wgy?? if a member post to a forum, the post is added with seq = 0 and the post is displayed in the middle of the thread. so i removed the "order by seq".

please help, thanx in advance.
  #410  
Old 05-18-2001, 02:32 PM
fastforward fastforward is offline
 
Join Date: Oct 2001
Location: NC, USA
Posts: 399
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The date you have elected to use for posts in your control panel will determine whether these functions are needed.

If you remove the order by seq line and you have selected nntpdate in your control panel, then usenet posts will not be ordered correctly for reasons explained in several posts in this thread. To get around it the posts are 'sequenced' and the thread is ordered using that column. The order_local_posts() function is to allow people to use the nntp date without editing the newreply.php file. It will simply add the sequence number for any local posts when the script is executed.

This is all irrelevent in the next release anyway so I shouldn't worry about it to much. But the bottom line is in the current version, those things are needed unless you want confused users.
  #411  
Old 05-18-2001, 02:35 PM
Mark Hewitt Mark Hewitt is offline
 
Join Date: Oct 2001
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I actually removed the seq part a long time ago as it was causing threads in my normal forums to appear out of order.
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 04:28 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.04787 seconds
  • Memory Usage 2,309KB
  • 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_code
  • (2)bbcode_php
  • (2)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
  • (8)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