• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

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

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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]
 
Hot dog! An advertiser loves us THIS much:
create, convert, edit or print DOC and DOCX in Java
https://products.aspose.com/words/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!