• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Default user settings..

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I cant figure out where to set the defaults settings for when theres a new user registered.

What im trying to do, is to set the "Send notification for all new messages:
Keep sending notifications even if the other messages weren't read yet." to default True.

Can anyone help me out with this?
[originally posted on jforum.net by Trout]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are two possible places to modify this.

First, the very basic stuff gets set in the insertNew() method of the net.jforum.view.forum.UserAction class. E.g., username, password, and e-mail.

The second place is in the addNew(User u) method of the class that impliments the UserDAO interface.

The second is probably the correct place to add in custom settings since the "view" classes should probably just collect form data and process it. In addition, overriding a few DAO implimentations if fairly simple. Just subclass your DB server's DataAccessDriver implimentation so that it uses your custom UserDAO implimentation (which can be a subclass of the DB specific one) and then change your config properties to use your DataAccessDriver.
[originally posted on jforum.net by monroe]
 
And inside of my fortune cookie was this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic