• 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
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

How can I forbid that the user can set an image as avatar?

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to have a lightweight forum, and want to forbid that the user can upload an avatar or set an external image as avatar.

I want to have very fast Forum, most of our user are with 56K moden online.

Thank you indeed for the wonderful forum!
Kia
[originally posted on jforum.net by kia]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

kia wrote:Hi,
I want to have a lightweight forum, and want to forbid that the user can upload an avatar or set an external image as avatar.

I want to have very fast Forum, most of our user are with 56K moden online.

Thank you indeed for the wonderful forum!
Kia


In the Administration Console you have these avatar controls:
Avatar:
Max. Avatar Size ( in KB )
Max. avatar width ( in pixels )
Max. avatar height ( in pixels )

I haven't tried setting the size to "0" to see if that prevents any avatars ...

[originally posted on jforum.net by GatorBait3]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, you can edit the file templates/default/user_form.htm and remove the avatar form fields.

From templats/default/post_*.htm, you can edit the templates used to show a message and remove the code that tries to display an avatar.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

GatorBait3 wrote:
I haven't tried setting the size to "0" to see if that prevents any avatars ...



This works in that they cannot set avatars, but not neatly. They still get the option but are told that the uploaded avatar is too large when they try to upload it.
[originally posted on jforum.net by chris222]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!