Members: 16,996
Threads: 38,846
Posts: 159,391
Online: 22

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse
Old 25.11.2004, 00:05   #1 (permalink)
Senior Mamber
 
Join Date: Jul 2004
Location: here
Posts: 241
ChicoMendez is on a distinguished road
Default php code to get the user name?

does anyone know the php code/ global variable to get the user name on some page of my mambo site??? ?

Please??????????

Tnx
ChicoMendez is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 25.11.2004, 00:11   #2 (permalink)
Senior Mamber
 
drcorbeille's Avatar
 
Join Date: Aug 2004
Location: Sierre, CH
Posts: 157
drcorbeille is on a distinguished road
Default Re: php code to get the user name?

PHP Code:
<?php
global $my ;

echo 
$my->name ;
echo 
$my->username ;
?>
HTH,

Chris
__________________
Dr Corbeille @ MamboSphere
drcorbeille is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 25.11.2004, 00:16   #3 (permalink)
Senior Mamber
 
Join Date: Jul 2004
Location: here
Posts: 241
ChicoMendez is on a distinguished road
Default Re: php code to get the user name?

Quote:
Originally Posted by ChicoMendez
does anyone know the php code/ global variable to get the user name on some page of my mambo site??? ?

Please??????????

Tnx

got it!!!!


global $database;
$row = new mosUser( $database );
$row->load( $my->id );
echo $row->name;
ChicoMendez is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02.12.2005, 21:03   #4 (permalink)
Baby Mamber
 
Join Date: Dec 2005
Posts: 1
jc_13_vt is on a distinguished road
Post Re: php code to get the user name?

Hi
I'm trying to get the user's username and user's name in the pages from my mambo site but i can't, this is the code that i used:

<?php
global $my;
$uname= $my->name;
echo "Your Name is: $uname";
?>

I stored that code into a php page and then i'm pulling out with a wrapper link, idon't know what is going on.
jc_13_vt is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Highlight PHP Code GianniT Mambo 4.5.1 General Talk 2 09.11.2004 14:56
making moduls and implanting php code vat Mambo 4.5.1 General Talk 2 03.11.2004 15:30
Include PHP (and/or ASP) code in content cstalenberg Mambo 4.5 General Talk 5 15.10.2004 02:33
php code to tell me what main menu i am in?? mattymattmatt Mambo 4.5 'How Do I' Questions 3 22.09.2004 14:26
PHP Code to catch SubMenus only in Template Gunnar Template Discussions 3 10.06.2004 13:30


All times are GMT +2. The time now is 14:18.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.