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

   U[6.3.x] [beta] RL Spam Prevention [1.0 beta 2] to Del.icio.us Add to del.icio.us
  Digg U[6.3.x] [beta] RL Spam Prevention [1.0 beta 2] Digg it
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


Top Posters Last 30 Days
AllenAyres 18
Gizmo 12
sirdude 6
GEN 3
tackaberry 2
Philipp 2
willing 2
Who's Online
0 Registered (), 35 Guests and 11 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Team UBBDev Rides Again!
by Gizmo
08/28/08 11:45 PM
Multiple Identity Detector
by MattUK
08/28/08 04:10 PM
[7.3.x] ubb.links
by AllenAyres
08/26/08 09:57 AM
Installing FlashChat with 7.3
by Gizmo
08/23/08 05:36 AM
[7.2.1] - Naked shoutbox
by Iann128
08/22/08 07:27 PM
Nice Ajax Chat
by M4D
08/21/08 10:02 PM
51-card NVIDIA folding rig cranks out 265,200 ppd
by AllenAyres
08/13/08 10:10 PM
New Mods
Installing FlashChat with 7.3
by Paug
08/23/08 12:14 AM
[7.x] AddThis - Social Networking
by Gizmo
08/01/08 01:30 AM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.3] Dissallow quotes more then 3 levels deep
by blaaskaak
06/09/08 09:01 AM
[7.2.1] - Naked shoutbox
by sirdude
08/17/07 10:36 PM
Newest Members
welcomeback1, Paug, Tim Keating, anscers, Murphdog
13324 Registered Users

 

 

 
fusionbb message board php hacks