Using CMSBuilding Login

25 posts by 9 authors in: Forums > CMS Builder
Last Post: October 8, 2009   (RSS)

By Djulia - September 16, 2009

Hi Dave,

This post open new possibilities, thank you very much !

It would be possible to obtain the value of createdByUserNum and updatedByUserNum in information of session ?

I would like to use it with addForm.php.

Thank you for your assistance.

Djulia

Re: [Djulia] Using CMSBuilding Login

By Dave - September 16, 2009

Hi Djulia,

We're probably going to have a plugin that makes this even easier at some point. But right now the easiest way to get the current user might be to do a getRecords() query with a where like this:

'where' => "username = '" .mysql_real_escape_string(@$_SESSION['username']). "'",

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com

By Djulia - September 16, 2009

Hi Dave,

Thanks, your suggestion is correct ! :)

Djulia

Re: [Djulia] Using CMSBuilding Login

By benedict - October 8, 2009

Hi Dave,

I've implemented the above and it worked well (except if user gets password wrong it takes them to the CMS login screen). But the clients I have asking for this functionality won't want back end users having access to the User Accounts section.

What I really need is a dumbed down version of the User Accounts section that just takes a persons user name/password, real name and email (no hierarchical levels required). And of course, I need it by next Wednesday [:/] . Is this something you guys could put together quickly?

Cheers,

Benedict

P.S. Great post Sagentic - you opened my eyes!

Re: [benedict] Using CMSBuilding Login

By Kenny - October 8, 2009

Here's one we use all the time. It's simple and works great...

http://www.phpeasystep.com/workshopview.php?id=6