Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Problem with users across multiple forums
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem with users across multiple forums

 Post Reply Post Reply Page  <12
Author
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 16 April 2004 at 4:49pm
Why are you storing things that are not likely to change in the database? Why not store configuration variable in a config file?
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Post Options Post Options   Thanks (0) Thanks(0)   Quote dj air Quote  Post ReplyReply Direct Link To This Post Posted: 16 April 2004 at 6:30pm

makes it an online admin area controlled, means

if you want to change something you don't need to download, edit, upload and

it means you can change it anywhere you like just by loggin in....

Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 16 April 2004 at 6:39pm
you can edit a text file using the File System Object
and even if access to the FSO is disabled on server, how often do you really change those parameters?
The skins are not editable nor are the language files. At some point you have to weigh admin versus server performance and necessity, IMO configuration settings belong in a config file not stored in a database.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 17 April 2004 at 12:41pm
Nearly all setting in the admin area are now in application varibles.

These do occassionally get changed and store things like, forum name, email setup, upload setup, forum email address, threads per page, locked forums, avatar enabling, flash enabling, etc, etc.

So although these settings may only get changed once in awhile it is important to keep these settings online and not in a cofig file as it would make setting up and adminstrating the forum very difficult.

As these settings are not changed for each user and remain the same for each user throughout the forum they are storred in application level variabls to cut down on database calls.
Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 17 April 2004 at 12:50pm
Things such colors in the skin files get changed as well, but are available in the admin area. I'm also more likely to change the text in the language files as well, but those are not available in the admin area. However, things like site name, email configs, avatar, flash, etc that I'm not likely to change after set-up are available in the admin.

What is the deciding factor in having one over the other. Snitz and php boards use the same system so this is wide spread, but logically it makes little to no sense. Why use application variables to store information that in most cases constant?
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 17 April 2004 at 1:12pm
Some things like forum configuration only use a hand full of database fields and would be better in constents, but to make the forum easier to setup they are available in the admin area.

Things like skins use many, many variables and would be a big hit on performance and database size (Acces version) and so are not stored in the database.
Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.