Problem implementing createdBy.fullname

7 posts by 2 authors in: Forums > CMS Builder
Last Post: November 19, 2013   (RSS)

By gkornbluth - November 15, 2013 - edited: November 17, 2013

Hi All,

In order to show the name of the person who created a record, I’m trying to implement <?php echo $record['createdBy.fullname']; ?> in a standard vanilla list page foreach loop in V 2.53 and can’t get it to work.

I've tried to find an answer to this on the forum, and although I've used it before (and it's even a recipe in my CMSB Cookbook), I’m a bit confused

I even tried putting this in the load records call, although I thought that it was true by default:

 'loadCreatedBy' => true,

I don't know if this is related but in the cmsAdmin directory there's an error log with a number of entries like this:

[16-Nov-2013 14:35:14 UTC] PHP Warning:  php_uname() has been disabled for security reasons in /home/k9class/public_html/cmsAdmin/lib/menus/admin/general.php on line 746
[16-Nov-2013 14:35:27 UTC] PHP Warning:  php_uname() has been disabled for security reasons in /home/k9class/public_html/cmsAdmin/lib/menus/admin/general.php on line 744
[16-Nov-2013 14:35:27 UTC] PHP Warning:  php_uname() has been disabled for security reasons in /home/k9class/public_html/cmsAdmin/lib/menus/admin/general.php on line 745
[16-Nov-2013 14:35:27 UTC] PHP Warning:  php_uname() has been disabled for security reasons in /home/k9class/public_html/cmsAdmin/lib/menus/admin/general.php on line 746



Any ideas appreciated?

Thanks,


Jerry Kornbluth

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

By Dave - November 18, 2013

Hi Jerry,

You're right, it should be loaded by default.  What is shown by this code?

<?php showme($record); ?>

And the "PHP Warning:  php_uname() has been disabled" is just because your host has disabled that function.  Hosts can disable any PHP function they want and sometimes disable more then is really needed in the hopes it will increase security.  All we use those for is to display the operating system name under: Admin > General.  I've added a @ in front of php_uname in the file specified so you won't get those errors in future (and feel free to do the same for your installed version).

Hope that helps!

Dave Edis - Senior Developer
interactivetools.com

By gkornbluth - November 18, 2013 - edited: November 21, 2013

Hi Dave,

Thanks for looking at this.

So the two issues are unrelated? uname() is not critical then.

best,

Jerry Kornbluth

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

By Dave - November 18, 2013

Hmm, that's odd.  Are you using Website Membership with a different membership table or something like that? 

Can you email me CMS/FTP login details and and a link to this forum post and I'll take a look?  (Note: Don't post login details to the forum).

Thanks!

Dave Edis - Senior Developer
interactivetools.com

No, it's a pretty straight forward installation.

Login will be on it's way in a few seconds, but Ross has it already, since he's been doing the listings manager conversion on this site.

Thanks,

Jerry

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Hi Dave,

All the user records are hidden, (must have been a default in the import from listings manager) but I didn't put the two ideas together.

Sorry to spin your wheels, but I learned something. (now if I can only remember it)

Have a great day,

Jerry Kornbluth

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php