Previous Thread
Next Thread
Print Thread
Rate Thread
[6.2x] Limit signature lines! #142937 01/31/2002 11:19 AM
Joined: Jun 2001
Posts: 7
ian Offline OP
Junior Member
OP Offline
Junior Member
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
Re: [6.2x] Limit signature lines! #142938 02/05/2002 4:15 PM
Joined: May 2001
Posts: 1,042
Likes: 7
Brett Offline
Moderator
Offline
Moderator
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.

Re: [6.2x] Limit signature lines! #142939 04/05/2002 8:53 AM
Joined: Mar 2002
Posts: 64
Consolefreak Offline
Member
Offline
Member
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

Re: [6.2x] Limit signature lines! #142940 04/05/2002 9:39 AM
Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Offline
Admin / Code Breaker
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)

Re: [6.2x] Limit signature lines! #142941 04/05/2002 11:58 AM
Joined: Oct 2001
Posts: 213
little_joe Offline
Member
Offline
Member
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
badfrog
badfrog
somewhere on the coast of Maine
Posts: 94
Joined: March 2007
Forum Statistics
Forums63
Topics37,528
Posts293,719
Members13,834
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online 99
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 18
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,795
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 5
isaac 4
Top Likes Received
isaac 30
Gizmo 8
Brett 7
Morgan 2
Top Likes Received (30 Days)
Gizmo 8
isaac 3
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2020 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Snapshot build 20200113.dev)
Responsive Width:

PHP: 5.4.45 Page Time: 0.039s Queries: 24 (0.012s) Memory: 3.2590 MB (Peak: 3.4458 MB) Data Comp: Zlib Server Time: 2020-01-19 22:00:47 UTC
Valid HTML 5 and Valid CSS