need updatedBy fullname

10 posts by 4 authors in: Forums > CMS Builder
Last Post: April 24, 2012   (RSS)

Re: [IronVictory] need updatedBy fullname

By Dave - November 14, 2008

No, there is no automatic support for that. If it's for a viewer (not the admin program) you could add some PHP to load the user record by the $record['updatedByUserNum'] value.

Let me know if that would work for you.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] need updatedBy fullname

By markr - February 1, 2009

I am creating a book review list and I would be grateful for the php to display the "reviewer's" fullname in a viewer, based on updatedByNum field.

Thanks in advance. It will make perfect sense when I see the code, I'm sure. I'm just not at the level where I can write it.

Re: [markr] need updatedBy fullname

By Dave - February 2, 2009

Hi markr,

Would the createdByNum field work or does it have to be updatedByNum?

Let me know and I'll give you some suggestions.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] need updatedBy fullname

By markr - February 2, 2009

updatedByNum would work fine

Re: [markr] need updatedBy fullname

By markr - February 2, 2009

...sorry, I didn't read your last post correctly. createdByNum is fine.

Re: [markr] need updatedBy fullname

By Dave - February 3, 2009

Try this:

<?php echo $record['createdBy.fullname']; ?>

To see all the variables available you can use this debug code:

<xmp><?php print_r($record) ?></xmp>

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

Re: [Dave] need updatedBy fullname

By Perchpole - April 24, 2012

Hello, All -

Did we ever find a solution for this? I do need to show updatedBy.fullname - or i ned to put together the php which will allow me to display the same thing.

Can anyone help, please?

:0)

Perch

Re: [Perchpole] need updatedBy fullname

By Perchpole - April 24, 2012

Actually, I think I may have worked it out!

<?php $user = mysql_get('accounts', $pageContent['updatedByUserNum']);
echo $user['fullname'];
?>


This appears to work!

:0)

Perch

Re: [Perchpole] need updatedBy fullname

By Dave - April 24, 2012

Hi Perch,

Looks good! Nice job.

Cheers!
Dave Edis - Senior Developer
interactivetools.com