pluck
pluck 4.7 out now, download it today!

pluck support forums

for all your questions about the easiest CMS on the planet

You are not logged in.

Announcement

New registrations are disabled for some spam problems. New registrations will be avaliable soon. If you want to help to keep forum away from spam - contact us.
Please post your bug reports on Launchpad.

#1 22-03-2010 20:37:19

Spirit55555
developer
From: Denmark
Registered: 09-11-2008
Posts: 227
Website

Improved message system

I have created a branch here, which changes the way we show messages and errors to the user. All messages are now shown the same place on each page, right under the page title. I have also modified the redirect() function, so it use header() instead of a meta redirect. And because of that, I also had to change the way we assign the cont vars.

Any feedback is welcome big_smile

Offline

#2 31-03-2010 11:57:55

a_bach
developer/module guru
From: Poland
Registered: 24-11-2008
Posts: 439
Website

Re: Improved message system

Spirit55555 wrote:

I have created a branch here, which changes the way we show messages and errors to the user. All messages are now shown the same place on each page, right under the page title. I have also modified the redirect() function, so it use header() instead of a meta redirect. And because of that, I also had to change the way we assign the cont vars.

Any feedback is welcome big_smile

I think you should move message function from function.admin.php into function.all.php

Message will be show also in site - righgt?

A_Bach

Offline

#3 31-03-2010 13:34:28

Sander
project webmaster
From: The Netherlands
Registered: 14-06-2007
Posts: 942
Website

Re: Improved message system

I like the idea, but I didn't have time to look at the code. I hope I can look at it soon.

Offline

#4 31-03-2010 22:14:17

Spirit55555
developer
From: Denmark
Registered: 09-11-2008
Posts: 227
Website

Re: Improved message system

a_bach wrote:

I think you should move message function from function.admin.php into function.all.php

Message will be show also in site - righgt?

No, the system is only for the admin interface.

Offline

#5 01-04-2010 22:40:18

Sander
project webmaster
From: The Netherlands
Registered: 14-06-2007
Posts: 942
Website

Re: Improved message system

Spirit55555 wrote:
a_bach wrote:

I think you should move message function from function.admin.php into function.all.php

Message will be show also in site - righgt?

No, the system is only for the admin interface.

Why not extend it, so that it can be used in the site too?

Offline

#6 02-04-2010 11:42:31

Spirit55555
developer
From: Denmark
Registered: 09-11-2008
Posts: 227
Website

Re: Improved message system

Sander wrote:
Spirit55555 wrote:
a_bach wrote:

I think you should move message function from function.admin.php into function.all.php

Message will be show also in site - righgt?

No, the system is only for the admin interface.

Why not extend it, so that it can be used in the site too?

Themes would need .error, .notice and .success styles in their CSS, but other than that, it should be easy to do. We might also need a theme function to display the messages?

Offline

Board footer

Powered by FluxBB