We launched new forums in March 2019—
join us there
.
In a hurry for help with your website?
Get Help Now!
Back to MODX.com
Forums
Docs
Revo Issues
Blog
My Forums
General
General Support
Search
User Extended Fields to filter external db data
<
1
2
>
24,544 Posts
BobRay
Reply #11,
11 years, 11 months ago
Try this at the top:
echo "User ID: " . $modx->user->get('id');
Are you running this snippet outside of MODX?
BTW, where are the funky curly quotes around 'Profile' coming from?
Did I help you?
Buy me a beer
Get my Book:
MODX:The Official Guide
MODX info for everyone:
http://bobsguides.com/modx.html
My MODX Extras
Bob's Guides is now hosted at
A2 MODX Hosting
40 Posts
bigben83
Reply #12,
11 years, 11 months ago
ok I have now got it.
there was an error in the first line it had (’Profile’) instead of ('Profile')
$profile =$modx->user->getOne('Profile');
Many many thanks for your help
I will donate to your good cause
24,544 Posts
BobRay
Reply #13,
11 years, 11 months ago
Thank you. I'm glad I could help.
Did I help you?
Buy me a beer
Get my Book:
MODX:The Official Guide
MODX info for everyone:
http://bobsguides.com/modx.html
My MODX Extras
Bob's Guides is now hosted at
A2 MODX Hosting
<
1
2
>