PHP-GTK2 Cookbook Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Re:accessing userid via directphp (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:accessing userid via directphp
#933
directnewbie (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
accessing userid via directphp 1 Month, 2 Weeks ago Karma: 0  
directphp works correctly as long as i use general php-code.

if i try to access for example $my->id, there is no result. i tried the example from the directphp-downloadpage. it doesn't work.

i'm using joomla! 1.5.7, the default tinymce-editor and the latest version of directphp.

please help. :/
 
  The administrator has disabled public write access.
#960
kksou (Admin)
Admin
Posts: 391
graph
User Online Now Click here to see the profile of this user
Re:accessing userid via directphp 1 Month, 2 Weeks ago Karma: 8  
$my->id is for Joomla 1.0.

For Joomla 1.5, use the following:
Code:
<?php
$user =& JFactory::getUser();
echo "id = $user->id<br>";
echo "username = $user->usermame<br>";
echo "name = $user->name<br>";
echo "email = $user->email<br>";
?>
    Regards,
      /kksou
       
       
      Last Edit: 2008/10/07 23:58 By kksou.
        The administrator has disabled public write access.
      Go to top Post Reply
      Powered by FireBoardget the latest posts directly to your desktop

      Blog - Forum - Privacy Policy - Contact Us
      Copyright © 2006-2008. kksou.com. All Rights Reserved