wood burning stoves 2.0*
The moose likes JForum and the fly likes How to limit size of signature / images shown for all forum users? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "How to limit size of signature / images shown for all forum users?" Watch "How to limit size of signature / images shown for all forum users?" New topic
Author

How to limit size of signature / images shown for all forum users?

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Greetings,

I did search for a topic related to this and did not encounter one so my apologies if I overlooked a relevant post.

What solutions are available for controlling the signature content of Jforum users?

What could could be used to limit the size of a signature in use by all forum users of all groups?

If this can only be done with the text of a signature is there a way to force all images in the signature area to only show at a certain pixel height?

Any thoughts on this matter would be greatly appreciated.


[originally posted on jforum.net by Kaliena]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
There are only two things that limit the signature. First, is the size of the jforum_user.sig column. This should limit it to 255 chars by default. The second is the "safeHtml" settings. These are the tags and attributes that are considered "safe" to use in a post (and sig). Anything not in this, is converted to ampersand notation.

But both these don't really solve your problem. The only thing I can think of is to modify the post_show.htm HTML to include some CSS that limits the visual size of a signature. E.g., add a named div around the sig and then add some CSS rules to define max-height/width for IMG tags in this (and maybe a max-height/width for the sig div too).

You may have to "futz" with it to get this to work with older browsers like IE <= 6 that don't honor the max-height tags.
[originally posted on jforum.net by monroe]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Thank you for your reply. I'll pass this along to the board I moderate. Hopefully it can be put to good use.
[originally posted on jforum.net by Kaliena]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to limit size of signature / images shown for all forum users?