Need to pass juser into external url link

127 views
Skip to first unread message

$t3v3H

unread,
Jan 31, 2012, 10:02:05 AM1/31/12
to joomla-...@googlegroups.com
Does anyone have a easy way that I can pass the $juser into a external url link?
 
I am trying to set up a single sign on to a external site outside of my joomla 2.5 site, and
I want to pass the joomla username into this link that goes out to the external site.
 
How can I easily grab this username and pass in the link?

Rune V. Sjøen

unread,
Feb 1, 2012, 10:09:58 AM2/1/12
to joomla-...@googlegroups.com
Is this what you are trying to do ?

$username = JFactory::getUser()->username;

> --
> You received this message because you are subscribed to the Google Groups
> "Joomla! CMS Development" group.
> To view this discussion on the web, visit
> https://groups.google.com/d/msg/joomla-dev-cms/-/opYOla-H-5IJ.
> To post to this group, send an email to joomla-...@googlegroups.com.
> To unsubscribe from this group, send email to
> joomla-dev-cm...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/joomla-dev-cms?hl=en-GB.

Steve Hugunin

unread,
Feb 1, 2012, 10:42:23 AM2/1/12
to joomla-...@googlegroups.com
Yes, I ended up setting it up this way with a few other features.
 
Thanks,

2012/2/1 Rune V. Sjøen <rvs...@gmail.com>
Reply all
Reply to author
Forward
0 new messages