Previous Thread
Next Thread
Print Thread
Rate Thread
#142937 01/31/2002 12:19 PM
Joined: Jun 2001
Posts: 7
ian
Offline
Junior Member
Junior Member
Offline
Joined: Jun 2001
Posts: 7
Limit amount of signature lines for all users!

http://www.xs4all.nl/~i74/limitsig620.txt

+/+
very small, easy to install
effective when user updates his/her profile

-/-
Hack counts amount of "
" in signature, so it is still possible to get a big signature when users write a long text without hitting

Sponsored Links
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
quote:
if ($cnt > 2){$sig_html =''};
should be
quote:
if ($cnt > 2){$sig_html ='';}
so if a sig is over 2 lines, it becomes blank? interesting...

perhaps in the future a &StandardHTML error there so no one could submit a signature of a predesignated length.

Joined: Mar 2002
Posts: 64
Member
Member
Offline
Joined: Mar 2002
Posts: 64
and maybe a CP control will be added?? if i know how it works.. i maybe could add it.. but i dont know a thing about programming in perl... i understand it (mostly) but i can't figure out how to program it myself.. to bad.. frown otherwise i could make you guys good hacks laugh smile

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
CP suggestion for mod addon:
[code][/code]Then use $vars_modifications{limitlines_lines} instead of 2.

Also, about the -/- thing, you can use length($tel) > 1200 or something like that. (and make that CP compatible too, if you wish)

Joined: Oct 2001
Posts: 213
Member
Member
Offline
Joined: Oct 2001
Posts: 213
Cool, I posted this yesterday in Mod Ideas and already a solution - you guys rule! Wish I could reciprocate some way.......

Anyone care to wrap this up into a tidy package - incl the code to limit the sig, CP changes, error message, etc?

Sponsored Links

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
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)