The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||
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
|
Comments |
#402
|
|||
|
|||
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
|
|||
|
|||
Quote:
dioxin |
#404
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
Quote:
(so i don't have modify coming up version of it any more.. ) |
#409
|
|||
|
|||
one question:
if i add this: PHP Code:
why do you use this function in newnews.pl: PHP Code:
please help, thanx in advance. |
#410
|
|||
|
|||
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
|
|||
|
|||
I actually removed the seq part a long time ago as it was causing threads in my normal forums to appear out of order.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|