Usermenu
User Birthdays
FELLINGA (20)
SpX - Junky (17)
Users Online: 20
Poll
Keine Umfrage aktiv
Banners / Partner
MMOzone Clan-Templates.at Sebel-Design
Contact
Optimized for
CoČ Frei
CoČ Freie Site
Unsere 4 Top Level Domains

clansphere.de
clansphere.net
clansphere.org
clansphere.eu
Latest Posts
Keine neuen Beiträge
Advert
DONATE CLANSPHERE
Forum - Thema
« Vorheriges Thema | Nächstes Thema ->
Forum -> Hilfe -> PHP -> retrieve the Nick

Antworten: 5
< [1] >
=BFS=WarlordRawks


Beginner



Beiträge 3
# Thema - 13.11.2008 um 22:11 Uhr
Hi,

I would like to retrive the nick of the logged user, I think it's $account['users_nick']
But for exemple, if I try to write it on a static page, by echo $account['users_nick']; it doesn't work...

Maybe I should call some others files by "require" function.. or add some codes but I'm not very good.

Any idea please?

Thanks


Offline
Fr33z3m4n ClanSphere Team


VIP - Poster



Herkunft: Hamm
Beiträge 7916
# Antwort: 1 - 14.11.2008 um 08:19 Uhr
add in your static page, first
global $account;


------------------
mfg
Fr33z3m4n

ClanSphere - professional clan care starts here

visit "Trackmania Friends"



Offline
|
Denni ClanSphere Team


Moderator



Herkunft: Ilsfeld
Beiträge 1803
# Antwort: 2 - 14.11.2008 um 09:36 Uhr
fr33z3: are you sure that the nickname is global available in $account?


------------------
Gruß
Denni

ClanSphere - Makes your website a playmate, just dress her



Offline
|
Fr33z3m4n ClanSphere Team


VIP - Poster



Herkunft: Hamm
Beiträge 7916
# Antwort: 3 - 14.11.2008 um 10:10 Uhr
yes, look at "System" -> "Variables"


------------------
mfg
Fr33z3m4n

ClanSphere - professional clan care starts here

visit "Trackmania Friends"



Offline
|
=BFS=WarlordRawks


Beginner



Beiträge 3
# Antwort: 4 - 14.11.2008 um 18:39 Uhr
It works when I insert it in a static page. Thanks a lot!

But I also want to retrieve the same nickname in another php file than de index.php, for example a "test.php" file located in the same "clansphere" folder? How should I do?

thanks


Zuletzt editiert von =BFS=WarlordRawks am 14.11.2008 um 21:10 Uhr (1x Editiert)


Offline
|
duRiel ClanSphere Team


Champion



Herkunft: Darmstadt
Beiträge 4822
# Antwort: 5 - 15.11.2008 um 02:39 Uhr
hey,

youll need to startup clansphere first then.

you can actually copy most of the lines of the index.php but without echo cs_template.




Offline
|
Antworten: 5
< [1] >

Sie müssen sich registrieren, um zu antworten.