Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
CSS Signature Size Enforcer Details »
CSS Signature Size Enforcer
Mod Version: 0.91, by sinaluna (Member) sinaluna is offline
Developer Last Online: Jul 2011 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.5.4 Rating: (5 votes - 5.00 average) Installs: 178
Released: 15 Mar 2006 Last Update: 20 Mar 2006 Downloads: 377
Not Supported Uses Plugins  

Product Name:
Signature Size Enforcer

Product Description:
Ever get tired of problem users with half-page long signatures and of policing signature size rules by hand? This mod might be just what you are looking for.

This product wraps signatures in a <div> and forces the sig to a maximum height (in pixels) with CSS. If their sig goes over the maximum height, the sig area is limited to the specified height. Optionally, you can choose to have a vertical scroll bar displayed for the overflowing signature.

This product requires no template changes or file modifications at all. It is all done automagically in the plugin.

Contents:
This package includes:
2 Plugin:
"Add CSS code to vBulletin": Adds CSS code to the global CSS header.
"Put Signature in a <div>": Wraps the signature inside a <div> with the CSS class defined above.

1 Phrase:
sigsizecss: holds the CSS code to be added. In this product, it creates a class called "sizedsig" that will be used for the sig <div>

2 Option/Setting:
maxsigsize: (group "Signature Sizing"): This is the maximum size, in pixels, a signature is allowed to grow.

sigsizescroll: (group "Signature Sizing"): [yesno] Option to add scroll bars to the oversized signatures, or to just clip the signature.

Installation Instructions:

Step 1: Import the product .xml file (attached here)

Step 2: Change the "maxsigsize" option to your desired maximum signature size. This number is in pixels. The default is "150".

Step 3: Change the "sigsizescroll" option to yes to add scroll bars to oversized signatures, or no to just clip the region with no scroll bars.

Step 4: Enjoy.

Version History:
version 0.9 - Initial release]
version 0.91]
Added option to choose scroll bars.

Download Now

Only licensed members can download files, Click Here for more information.

Supporters / CoAuthors

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 15 Mar 2006, 01:23
hiiped's Avatar
hiiped hiiped is offline
 
Join Date: Jan 2006
very nice

< will likely install >
Reply With Quote
  #3  
Old 15 Mar 2006, 01:24
sinaluna sinaluna is offline
 
Join Date: Feb 2005
Please let me know if there are any problems with this modification. The CSS has been tested on most major browsers and is "hacked" to work with quirky and standard DOMs.

Please post here if you have any problems with the CSS on a specific Browswer. The Browser AND VERSION will be needed to try to debug if any problems arise.

Thanks and enjoy.
Reply With Quote
  #4  
Old 15 Mar 2006, 10:21
AlchemyX's Avatar
AlchemyX AlchemyX is offline
 
Join Date: Jan 2006
ha, I just started working on this exact thing about 10 minutes ago, but decidewd to check and see if it was already done first.

Nice job :-)
Reply With Quote
  #5  
Old 15 Mar 2006, 10:33
sinaluna sinaluna is offline
 
Join Date: Feb 2005
Thanks.

Wrote a bunch of little hacks in the last few months. Have some time this week so Im trying to "productize" them and release them before I get busy again.
Reply With Quote
  #6  
Old 15 Mar 2006, 11:41
Freezerator Freezerator is offline
 
Join Date: Dec 2001
Real name: Bas
Nice one, i had this already manually in my style editted, but the less edits the better!
Reply With Quote
  #7  
Old 15 Mar 2006, 12:30
OverMindpt OverMindpt is offline
 
Join Date: Jul 2005
Perfect ...
Reply With Quote
  #8  
Old 15 Mar 2006, 14:21
COBRAws's Avatar
COBRAws COBRAws is offline
 
Join Date: Oct 2002
Real name: Jack
Very Handy. Thank you.
Reply With Quote
  #9  
Old 15 Mar 2006, 14:38
MentaL's Avatar
MentaL MentaL is offline
 
Join Date: Jan 2003
whos a good boy then :P
__________________
RaGEZONE
Reply With Quote
  #10  
Old 15 Mar 2006, 14:51
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Awesome stuff. Cheers!
__________________
AndroidETC.com :: Android, and other stuff.
Reply With Quote
  #11  
Old 15 Mar 2006, 14:58
Doc Great's Avatar
Doc Great Doc Great is offline
 
Join Date: Jan 2005
Real name: Sven
Great! I like it

* click install
Reply With Quote
  #12  
Old 15 Mar 2006, 20:22
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Real name: Josh
Awesome!
Reply With Quote
  #13  
Old 15 Mar 2006, 21:05
Megareus Rex's Avatar
Megareus Rex Megareus Rex is offline
 
Join Date: Feb 2004
Location: Pennsylvania, USA
Real name: Johnny H
Just one question. Is there a way to prevent users from going over the pixel height limit altogether? Like, preventing them from saving the sig if it exceeds that limit.
Reply With Quote
  #14  
Old 15 Mar 2006, 23:49
sinaluna sinaluna is offline
 
Join Date: Feb 2005
Is there a way to prevent users from going over the pixel height limit altogether? Like, preventing them from saving the sig if it exceeds that limit.
Short Answer: not really.

Problem is that the sig height can display different in different browsers, various default text sizes, etc. The actual height is determined when the sig is rendered in the browser. Even if you could get that information back from the browser to the server, or limit it with a client-side script, it is not guaranteed to be the same height in other's browsers.

For instance, a user could shrink their default text size to the smallest setting and save their really long sig under those settings. Everyone with normal text size would have a much larger sig displayed. Hope that makes sense.
Reply With Quote
  #15  
Old 16 Mar 2006, 01:47
Megareus Rex's Avatar
Megareus Rex Megareus Rex is offline
 
Join Date: Feb 2004
Location: Pennsylvania, USA
Real name: Johnny H
Originally Posted by sinaluna
Short Answer: not really.

Problem is that the sig height can display different in different browsers, various default text sizes, etc. The actual height is determined when the sig is rendered in the browser. Even if you could get that information back from the browser to the server, or limit it with a client-side script, it is not guaranteed to be the same height in other's browsers.

For instance, a user could shrink their default text size to the smallest setting and save their really long sig under those settings. Everyone with normal text size would have a much larger sig displayed. Hope that makes sense.
Dang. Well then, its not exactly what I want, but its the closest thing I've seen yet!

*clicks install*
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 12:53.

Layout Options | Width: Wide Color: