Demo

Probiere ClanSphere aus und teste daran herum. Demo


Antworten: 5
Seite [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
Inaktiv
Fr33z3m4n ClanSphere Team


Medal of Honor




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


------------------
mfg
Patrick "Fr33z3m4n" Jaskulski

Antoine de Saint-Exupéry: Wenn Du ein Schiff bauen willst, so trommle nicht Männer zusammen, um Holz zu beschaffen, Aufgaben zu verteilen, sondern lehre die Männer die Sehnsucht nach dem endlosen weiten Meer.

Inaktiv
|
Denni


Specialist




Herkunft: Ilsfeld
Beiträge: 1972
# 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

Inaktiv
|
Fr33z3m4n ClanSphere Team


Medal of Honor




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


------------------
mfg
Patrick "Fr33z3m4n" Jaskulski

Antoine de Saint-Exupéry: Wenn Du ein Schiff bauen willst, so trommle nicht Männer zusammen, um Holz zu beschaffen, Aufgaben zu verteilen, sondern lehre die Männer die Sehnsucht nach dem endlosen weiten Meer.

Inaktiv
|
=BFS=WarlordRawks
Thread-Ersteller


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)
Inaktiv
|
duRiel ClanSphere Team


Weltmeister




Herkunft: Cambridge
Beiträge: 7300
# 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.


Inaktiv
|
Antworten: 5
Seite [1]


Sie müssen sich registrieren, um zu antworten.