logo

eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 1528
Change error and visibility storage

I propose that $_SESSION['error'] be removed and changed to $error instead. This means that eoCMS stores less data within sessions and this session has been causing a few problems like the error keeps displaying until you visit another page. By changing it to $error, we can use $error[] (an array) and be able to output multiple error messages at the same time  Smile

Also, the visibility, currently, you cant use a query to get only the data the user can see, you have to do a while() and check the visibility against it and not output it if it does not match. I spoke about this with Paul and we had the idea of changing the way the ranks for boards etc are stored. Instead of 1, 2, 3, 4 (Guest, Member, Global Moderator, Admin) change it to |1|2|3|4|. This way we can use a LIKE within the query Mr Green

Comments?

Please do not PM me requesting support or anything, use the forums, thats what they are here for
eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 242
banancanardbanancanard@live.com
Re: Change error and visibility storage

I like the first idea about the errors.  This should make error displaying a lot easier as we can then log errors and choose which to display based on rules and such.

As for the second part it sounds like a good idea as well.  We just have to be careful with using like in a query as it can slow the query down a bit. Not that much but it will a little bit.

"Control yourself. Take only what you need from it"
http://mrrsm.com
Member
Member
Offline Offline
avatar
Posts: 126
Re: Change error and visibility storage

Code:

ini_set('display_errors',1);
error_reporting(E_ALL);


Why cant use like this :?

http://bildites.lv/images/99fryy3h89w8q0l707mu.jpg
eoCMS Developer
eoCMS Developer
Offline Offline
avatar
Posts: 1528
Re: Change error and visibility storage

Talking about errors the CMS sets, not PHP errors Example: "Username/Password do not match"

Please do not PM me requesting support or anything, use the forums, thats what they are here for
eoCMS Designer
eoCMS Designer
Offline Offline
avatar
Posts: 1290
tbarkass_willamson@hotmail.com
Re: Change error and visibility storage

I think both ideas are good. If it makes it a lot easier to do but a bit slower then it's probably worth it.

Seen a bug? Report it!

Jump to:


0.06 seconds Queries: 13