Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Sep 2001
Posts: 194
svr
Offline
Member
Member
Offline
Joined: Sep 2001
Posts: 194
Hi guys, I want to be able to hack the UBB 5.45c so that nobody can post ALL CAPS subject headers, and if they do, then the hack should change it to normal text.

I looked in the database here, but the URL specified there is outdated.

Any help would be appreciated much. Thanks in advance.

Sponsored Links
Joined: Apr 2001
Posts: 117
Member
Member
Offline
Joined: Apr 2001
Posts: 117
It should be in the database, i downloaded the hack from here, not so long ago....tbbh, i wouldnt use it though - if its all caps, the post will just not be submitted - no warning text, etc...

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708

Joined: Jan 2000
Posts: 23
Member
Member
Offline
Joined: Jan 2000
Posts: 23
I'm looking for this hack, but the link from the database is dead frown

Joined: May 2001
Posts: 6,708
Member
Member
Offline
Joined: May 2001
Posts: 6,708
PM AllenAyres about it. He will get the link back up. smile

Sponsored Links
Joined: Sep 2001
Posts: 194
svr
Offline
Member
Member
Offline
Joined: Sep 2001
Posts: 194
Actually I found it in these forums a few weeks back. I am pasting the whole post as it is. There is one problem (or lack of feature) with this hack. It works with ALL CAPS characters. So "HELLO HOW ARE YOU" will be converted to "Hello How Are You" . However, "HELLO how ARE YOU" will remain as "HELLO how ARE YOU"

Anyone have any solution to this? wink

Anyways here is the hack text in its entirety:

=========================================
There are a lot of broken links on the forum (especially for the v5 hacks).
Anyways, I got the file today/yesterday but I don't remember where to get it. The hack is very short, so I'll post the code here:


quote:
--------------------------------------------------------------------------------

#############################
postings.cgi
#############################

## FIND:

$ReplyMessage = $in{'ReplyMessage'};
$Message = $in{'Message'};


## PASTE THIS UNDER:

# ALL CAPS Message Hack
if ($ReplyMessage eq uc $ReplyMessage) {
$ReplyMessage = ucfirst lc $ReplyMessage;
}
if ($Message eq uc $Message) {
$Message = ucfirst lc $Message;
}


## FIND:

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


## PASTE THIS UNDER:

# Topic Subject All Caps Mod
if ($TopicSubject eq uc $TopicSubject) {
$TopicSubject = ucfirst lc $TopicSubject;
$TopicSubject =~ s/(s)(w)(w{2,})/$1u$2$3/g;
$TopicSubject =~ s/(s)i(W)/$1I$2/g;
$TopicSubject =~ s/.(s+?)(w)/.$1u$2/g;
}
# end

DONE!

--------------------------------------------------------------------------------

Joined: Oct 2000
Posts: 290
Member
Member
Offline
Joined: Oct 2000
Posts: 290
Thanks svr!! smile

Yeah, the V5 database is going to get a facelift...I think we're just waiting to see who the Dr. is going to be!!! LOL

I plan to help as much as possible...I usually sit at my PC 6-8 hours a day doing this-and-that...so hopefully it will get better.

I do have to go to Seattle this Friday, back on the 6th...trying to find a real job!! smile


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
isaac
isaac
California
Posts: 1,157
Joined: July 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 20221218)