1
Mamba
Setting up Preferences at installation
  • 2011/3/18 21:22

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


What is the best way to set certain preferences already at installation.

For example, in the original News, I always had to set permission for Webmaster to be able to post messages.

xNews is fixing that by setting the permissions already during the installation.

What I am curious is, if this is the best way, or if there are better ways to do it?

The goal is to make the life of a first-time user much easier, i.e. he doesn't have to figure out permissions. If he is a Webmaster, he can do everything right away.

Plus maybe setting up some more common settings for a module.

Ideas? Suggestions?
Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

2
Anonymous
Re: Setting up Preferences at installation
  • 2011/3/19 8:19

  • Anonymous

  • Posts: 0

  • Since:


Is it possible to do this using the MySQL file, i.e. writing the default permissions into the tables after the module installation creates the table?

3
phppp
Re: Setting up Preferences at installation
  • 2011/3/19 10:24

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


No need of reinventing the wheel, check some 'old' modules like 'newbb', 'article'.

4
Mamba
Re: Setting up Preferences at installation
  • 2011/3/19 15:01

  • Mamba

  • Moderator

  • Posts: 11409

  • Since: 2004/4/23


Thanks DJ, I'll look into them.

You're absolutely right - we definitely don't want to reinvent the wheel. That's exactly why I've asked here for advise and why I am looking for the best practices, so I can re-use it in the modules I am working on right now.

The issue is that we have a lot of modules that are, as you said, "old"

Things changed, improved, and there are newer modules, but I don't have the time to evaluate all of them, so I was curious if somebody did it already and can make recommendation on what is the best way to do it. Basically, what is the current best practice?

And it could be that the method in an "old" module is still the best

The basic issue is that there are many typical "functions" that are being used in modules, for example:
- set preferences at installation
- upload a file
- delete file
- create a menu tabs
etc.

so for people who are trying to update/refresh their "old" modules for 2.5.0, it might be useful to have a catalog of "best practices" on how to provide a specific function. The was the ideas behind "Blue move" and sharing "best practices" - see the example here

Support XOOPS => DONATE
Use 2.5.11 | Docs | Modules | Bugs

Login

Who's Online

382 user(s) are online (294 user(s) are browsing Support Forums)


Members: 0


Guests: 382


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits