|
|
Joined: Jun 2001
Posts: 7
Junior Member
|
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
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
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.
|
|
|
|
Joined: Mar 2002
Posts: 64
Member
|
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.. otherwise i could make you guys good hacks
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
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)
|
|
|
|
Joined: Oct 2001
Posts: 213
Member
|
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?
|
|
|
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.
|
|
Posts: 1,157
Joined: July 2001
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|