php forum
php mysql forum
php mysql smarty
 
Topic Options
#127149 - 08/23/01 10:36 PM "NO" post blocks all topics from showing in default view
Thelazer Offline
Junior Member

Registered: 06/10/01
Posts: 4
Okay, anyone know how to prevent someone from posting a post called "NO" dated 1900. This post prevents all topics from being loaded in your default view.. but if you switch to "Show all topics" your able to view the "NO" post.

If you click on the "NO" post, it just goes to a blank page.

This has happend like 9 times over the last few weeks, I know it's not some odd thing happening, someone is doing it.. HELP!

Thanks
Jay

Top
#127150 - 08/23/01 11:44 PM Re: "NO" post blocks all topics from showing in default view
BassTeQ Offline
Moderator / Code Fixer

Registered: 10/14/00
Posts: 891
Loc: Australia
Umm, why dont you just delete the post??

If you want I can give you some code to prevent people replying to that topic only.

Whats the link to your board where we can see the post in question?

[ August 23, 2001: Message edited by: BassTeQ ]
_________________________
I can't afford a good signature editor frown

Top
#127151 - 08/24/01 08:01 AM Re: "NO" post blocks all topics from showing in default view
Thelazer Offline
Junior Member

Registered: 06/10/01
Posts: 4
The link is,

http://www2.bluelight.nu/cgi-bin/forumdisplay.cgi?action=topics&forum=Bluelight+Social&number=18&DaysPrune=5&LastLogin=

We have deleted the post already, it's just getting to be a pain in the ass as someone keeps reposting it daily.

Jay

Top
#127152 - 08/24/01 12:06 PM Re: "NO" post blocks all topics from showing in default view
trin Offline
Member

Registered: 08/20/01
Posts: 32
We had that problem on a board that no longer exists today... it's a security exploit in 5.39, I believe.

The problem was solved on the board I was a member of by upgrading. frown

Top
#127153 - 08/26/01 06:16 PM Re: "NO" post blocks all topics from showing in default view
BassTeQ Offline
Moderator / Code Fixer

Registered: 10/14/00
Posts: 891
Loc: Australia
Hey Bluelight.nu, cool board, I read it all the time!!!!!
As for your question.

* Can you not look at the IP of the user and block it?

* Now the code below will block any subject that starts with NO***** so it would not allow a post to start with the word NOTHING for example, if you like I can modify it so it will only block posts where the first word is NO.
Ive written this for my 5.47d board, it should work ok on your board hopefully.


In postings.cgi

---------------------------
FIND
---------------------------

$TopicSubject = &CensorCheck("$TopicSubject");

---------------------------
BEFORE THAT ADD
---------------------------


unless ($Status eq "Administrator") {

$CheckValidStr = $TopicSubject;

# Below values are HEX Codes
# x22 = " # x23 = #
# x26 = & # x27 = '
# x2B = + # x2F = /
# x3A = : # x3B = ;
# x3C = < # x3D = =
# x3E = > # x60 = `
# x5C = # x5E = ^
# x7c = |

if ($CheckValid =~ /^NO/ ) {
&StandardHTML("Sorry, you have used illegal characters in your subject line!




Use your Back button.");
exit;
}
}

If you need any help getting it working just let me know.
_________________________
I can't afford a good signature editor frown

Top
#127154 - 08/27/01 09:21 AM Re: "NO" post blocks all topics from showing in default view
Thelazer Offline
Junior Member

Registered: 06/10/01
Posts: 4
Thanks for the code, I'll see if I can add that to fix the problem.

As for the IP address.. Once you do change to "show all topics" you see the NO post. However, if you want to open that post, it ends up going to a invaild page can not be found. Bascily it's a link to a post that doesn't exisit anymore..

Jay

Top
#127155 - 08/27/01 07:35 PM Re: "NO" post blocks all topics from showing in default view
BassTeQ Offline
Moderator / Code Fixer

Registered: 10/14/00
Posts: 891
Loc: Australia
I had a prblem on my board with a post that had a stuffed up date, so I manually deleted the corresponding HTML and CGI file but it still listed in the forum, so I went via control pannel and used the prune message function and removed that message, worked fine.
_________________________
I can't afford a good signature editor frown

Top
#127156 - 08/28/01 02:38 AM Re: "NO" post blocks all topics from showing in default view
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
Hey, Maybe you should upgrade might get rid of some of the problems on your forum.

Top
#127157 - 08/29/01 07:23 PM Re: "NO" post blocks all topics from showing in default view
BassTeQ Offline
Moderator / Code Fixer

Registered: 10/14/00
Posts: 891
Loc: Australia
yeah you should upgrade, there are no major custom hacks on the board so that makes upgrading soo much easier!
_________________________
I can't afford a good signature editor frown

Top
#127158 - 08/30/01 03:06 AM Re: "NO" post blocks all topics from showing in default view
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
Yeah, the only mod I see is that you made search a Image instead of a link.

Top
#127159 - 08/30/01 07:52 AM Re: "NO" post blocks all topics from showing in default view
Thelazer Offline
Junior Member

Registered: 06/10/01
Posts: 4
Yea, we are "Supposed" to upgrade.

Sadly, I don't have access to the server to make the upgrade happen.. so we have to wait on the board owner to get anything done.

Jay

Top


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

Latest Posts
Spell Check [beta]
by Bill B
Yesterday at 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
Yesterday at 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
Yesterday at 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
Yesterday at 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
David DelMonte, nick1, Begbie, cenk, MATTO
13363 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks