1
recupsoft
Can't use Member ID
  • 2006/9/17 16:20

  • recupsoft

  • Friend of XOOPS

  • Posts: 151

  • Since: 2003/10/30


Hi,

I want to add the current Member's ID (users_uid) into an URL with tpl_vars['xoops_uid'] but I can't get his UID

Example:
global $xoopsUser;
echo "<a href=stats.php?member_uid=";
echo $this->_tpl_vars['xoops_uid'];
echo ">go</a>";
So I want to get the URL "stats.php?member_uid=1" if it's the member 1 which displays the page and maybe click on the link.

What's the solution please ?
FR/EN sites: OverFiles.com + TotalJeux.fr / FR seulement : Sos-Adsl.com + PlaneteFree.fr

2
Dave_L
Re: Can't use Member ID
  • 2006/9/17 17:35

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


global $xoopsUser;
$uid is_object($xoopsUser) ? $xoopsUser->getVar('uid') : 0;
echo 
"<a href='stats.php?member_uid=$uid'>go</a>";

3
recupsoft
Re: Can't use Member ID
  • 2006/9/17 18:23

  • recupsoft

  • Friend of XOOPS

  • Posts: 151

  • Since: 2003/10/30


Bingo ! Thx
FR/EN sites: OverFiles.com + TotalJeux.fr / FR seulement : Sos-Adsl.com + PlaneteFree.fr

Login

Who's Online

141 user(s) are online (83 user(s) are browsing Support Forums)


Members: 0


Guests: 141


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits