Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jun 2001
Posts: 4
Junior Member
Junior Member
Offline
Joined: Jun 2001
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

Sponsored Links
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
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
Joined: Jun 2001
Posts: 4
Junior Member
Junior Member
Offline
Joined: Jun 2001
Posts: 4
The link is,

http://www2.bluelight.nu/cgi-bin/fo...+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

Joined: Aug 2001
Posts: 32
Member
Member
Offline
Joined: Aug 2001
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

Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
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
Sponsored Links
Joined: Jun 2001
Posts: 4
Junior Member
Junior Member
Offline
Joined: Jun 2001
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

Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
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
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Hey, Maybe you should upgrade might get rid of some of the problems on your forum.

Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
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
Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
Yeah, the only mod I see is that you made search a Image instead of a link.

Sponsored Links
Joined: Jun 2001
Posts: 4
Junior Member
Junior Member
Offline
Joined: Jun 2001
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


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240430)