php forum
php mysql forum
php mysql smarty
 
Topic Options
#155388 - 12/01/02 10:11 AM U[6.3.x] [beta] RL Spam Prevention [1.0 beta 2]
Dave2 Offline
Member

Registered: 12/16/01
Posts: 672
Loc: Bath || Reading, England
Code:
********************************************************************************
*    DESCRIPTION: Stop junior members and unregistered people from posting     *
*                 URLs (ftp etc) and replaces them with an explanation         *
*     CREATED BY: Dave2/Dave Wickham <mailto:dave@aagames.co.uk>               *
*           DATE: 09/12/2002                                                   *
*        VERSION: Version 1.0beta2                                             *
*           DEMO: http://www.aagames.co.uk/cgi-bin/ultimatebb.cgi              *
********************************************************************************
Download link: HERE (text file)

Thanks to LK for fixing the wordlet (it was hard-coded before).

So, is anyone brave enough to try a hack written by me? wink
_________________________
The allaboutgames.co.uk UBB.classic -- Reborn and XHTML'd, 19th May 2002

Top
#155389 - 12/01/02 12:48 PM Re: U[6.3.x] [beta] RL Spam Prevention [1.0 beta 2]
joking-down Offline
deutscher moderator / v5 specialist

Registered: 12/24/00
Posts: 712
Loc: Germany
I think this is a good hack. cool


I have some questions...
  1. What happens when an user post a link like this: 192.168.0.1/xy.html?
  2. Can the user post links with the destionation in the same board (eg. linking an other topic...)?
  3. An additional feature could be to disallow an users to post URLs.
_________________________
UBB-Admin ( kids-hotline.de )


join Team UBBDev

I have [img]http://www.ubbdev.com/ud/?s=1&u=joking-down[/img] Points.

Top
#155390 - 12/01/02 01:22 PM Re: U[6.3.x] [beta] RL Spam Prevention [1.0 beta 2]
Dave2 Offline
Member

Registered: 12/16/01
Posts: 672
Loc: Bath || Reading, England
1) If it's in [url] it'll be cut. if it isn't, it won't be a "clickable" link, and won't be cut.
2) Nope... It'd be pretty hard to do that, AFAIK (actually, that'd be pretty simple if people want it... just worked out how)
3) Could be done by just deleting the code I modify, or commenting it out wink
_________________________
The allaboutgames.co.uk UBB.classic -- Reborn and XHTML'd, 19th May 2002

Top
#155391 - 12/01/02 01:32 PM Re: U[6.3.x] [beta] RL Spam Prevention [1.0 beta 2]
joking-down Offline
deutscher moderator / v5 specialist

Registered: 12/24/00
Posts: 712
Loc: Germany
Quote:
quote:
Originally posted by Dave2:
3) Could be done by just deleting the code I modify, or commenting it out wink
I mean to disallow some special users the posting of links who spam the forum with links e.g.

If anyone need Point 2, I can post the code I use for this...
_________________________
UBB-Admin ( kids-hotline.de )


join Team UBBDev

I have [img]http://www.ubbdev.com/ud/?s=1&u=joking-down[/img] Points.

Top
#155392 - 12/01/02 01:57 PM Re: U[6.3.x] [beta] RL Spam Prevention [1.0 beta 2]
Dave2 Offline
Member

Registered: 12/16/01
Posts: 672
Loc: Bath || Reading, England
3) I personally would ban them for a week or something, but it in theory could easily be modified...
_________________________
The allaboutgames.co.uk UBB.classic -- Reborn and XHTML'd, 19th May 2002

Top
#155393 - 12/01/02 02:00 PM Re: U[6.3.x] [beta] RL Spam Prevention [1.0 beta 2]
Dave2 Offline
Member

Registered: 12/16/01
Posts: 672
Loc: Bath || Reading, England
BTW, a demo thread:

http://www.aagames.co.uk/ubbnoncgi/ultimatebb.php?ubb=get_topic;f=6;t=000022
_________________________
The allaboutgames.co.uk UBB.classic -- Reborn and XHTML'd, 19th May 2002

Top
#155394 - 12/01/02 04:04 PM Re: U[6.3.x] [beta] RL Spam Prevention [1.0 beta 2]
Charles Capps Offline
Admin Emeritus
Resident Code Hacker

Registered: 01/09/00
Posts: 5438
Loc: Lynnwood, WA
Your FAQ modifications are out of date - 6.3.1 and higher versions allow FAQ modifications from the control panel...
_________________________
UBB.classic: Love it or hate it, it was mine.

Top
#155395 - 12/01/02 04:11 PM Re: U[6.3.x] [beta] RL Spam Prevention [1.0 beta 2]
Dave2 Offline
Member

Registered: 12/16/01
Posts: 672
Loc: Bath || Reading, England
Code:
########## POSSIBLE PROBLEMS
##########
#### I think that the newer UBB.classic versions use wordletised FAQs. If you
#### want this written to make use of that, feel free to buy me a new licence ;)
wink

Without actually seeing the code, it's quite hard to accomodate it wink .
_________________________
The allaboutgames.co.uk UBB.classic -- Reborn and XHTML'd, 19th May 2002

Top
#155396 - 12/02/02 01:09 PM Re: U[6.3.x] [beta] RL Spam Prevention [1.0 beta 2]
Dave2 Offline
Member

Registered: 12/16/01
Posts: 672
Loc: Bath || Reading, England
New patch to allow links to your site; doesn't work very well though, since if just one link to your site is in the post, any links are allowed...

Replace (both times):
Quote:
code:</font><hr />
Code:
        if (($user_profile[8]) && ($user_profile[8] ne "$vars_misc{custom_titles}->{0}")) {
<hr /></blockquote>With:

<blockquote><font class="small">code:
[qb]
Code:
        $sitebase = $vars_config{CGIURL};
        $sitebase =~ s/http.*:////isg;
        $sitebase =~ s//.*//isg;

        if ($check =~ /$sitebase/i) {
                $is_this_site = "1";
        }

        if ((($user_profile[8]) && ($user_profile[8] ne "$vars_misc{custom_titles}->{0}")) &#0124;&#0124; ($is_this_site eq "1")) {
[/qb]
_________________________
The allaboutgames.co.uk UBB.classic -- Reborn and XHTML'd, 19th May 2002

Top
#155397 - 12/02/02 01:41 PM Re: U[6.3.x] [beta] RL Spam Prevention [1.0 beta 2]
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
It wouldn't work: $check is the WHOLE string, not just the specific URL.
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#155398 - 12/02/02 02:01 PM Re: U[6.3.x] [beta] RL Spam Prevention [1.0 beta 2]
Dave2 Offline
Member

Registered: 12/16/01
Posts: 672
Loc: Bath || Reading, England
Quote:
quote:
New patch to allow links to your site; doesn't work very well though, since if just one link to your site is in the post, any links are allowed...
wink

As I said, I don't know how to separate it...
_________________________
The allaboutgames.co.uk UBB.classic -- Reborn and XHTML'd, 19th May 2002

Top
#155399 - 12/09/02 01:06 PM Re: U[6.3.x] [beta] RL Spam Prevention [1.0 beta 2]
Dave2 Offline
Member

Registered: 12/16/01
Posts: 672
Loc: Bath || Reading, England
New version - excludes sigs from censorship.
IMO, sigs = OK for promotion.
_________________________
The allaboutgames.co.uk UBB.classic -- Reborn and XHTML'd, 19th May 2002

Top
#155400 - 12/09/02 02:57 PM Re: U[6.3.x] [beta] RL Spam Prevention [1.0 beta 2]
joking-down Offline
deutscher moderator / v5 specialist

Registered: 12/24/00
Posts: 712
Loc: Germany
this is my script to seperate all links:

Code:
while ($ThePost =~ /([url])(.+?)([/url])/isg) { }
 
while ($ThePost =~ /([url=)(.+?)(])(.+?)([/url])/isg) { }
 
while ($ThePost =~ /(^|s)((http|https)://(.+?)s)/isg) { }
 
while ($ThePost =~ /(^|s)((ftp)://(.+?)s)/isg) { }
 
while ($ThePost =~ /(^|s)(www.S+)|(www(.+S+(?+)(S+)))|((ww+.ww+.ww+)(S+))/isg) { }
_________________________
UBB-Admin ( kids-hotline.de )


join Team UBBDev

I have [img]http://www.ubbdev.com/ud/?s=1&u=joking-down[/img] Points.

Top


Who's Online
0 registered (), 18 Guests and 11 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
ubb.social
by Placebo
Yesterday at 04:25 AM
Displaying a gif for a paying member
by Iann128
01/06/09 07:04 AM
Restore The "New Topic Is Highlighted" Feature
by hikelite
01/02/09 07:41 PM
Web Hosting
by Pilgrim
01/02/09 04:13 PM
Finishing touches on a UBB migration
by AllenAyres
01/02/09 03:04 PM
Sidebar options?
by Pilgrim
12/26/08 03:40 PM
Legacy Style
by sirdude
12/24/08 07:18 PM
New Mods
Displaying a gif for a paying member
by Iann128
12/29/08 11:44 AM
Legacy Style
by Micky
12/21/08 01:36 PM
ubb.social
by
08/03/06 10:38 AM
Newest Members
bluedthunder, blaqskreen, RAICHU, sebak, BaronDriver
13371 Registered Users
Top Posters
AllenAyres 25461
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks