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: [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