Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

can i show php fusion username anywhere? outside

Asked Modified Viewed 4,428 times
D
Darra
D
Darra 10
  • Member, joined since
  • Contributed 54 posts on the community forums.
  • Started 18 threads in the forums
  • Started this discussions
asked
Member

Is there code that can show my php fusion username (only, nothing else) if i have like public_html/test.php or public_html/test/test.php?

that code would be inside that test.php

sry bad english, i didn't find anything like this.

what i have to add to this so i can bring those information from php fusion system?


<?php
echo "".$userdata['user_name']."";
?>
0 replies

3 posts

C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]$userdata['username'] [/syntaxhighlighter]
To show you your own username.

[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]$user_data['username'] [/syntaxhighlighter]
To show other peoples usernames to other people.

Also Look up the profile_link function for V7.01
0 replies
D
Darra
D
Darra 10
  • Member, joined since
  • Contributed 54 posts on the community forums.
  • Started 18 threads in the forums
  • Started this discussions
answered
Member

yeah i know but it doesn't work in other folders. it needs to work like in subfolders. exapmle: public_html/test/test/test.php

i need some code to bring that information

actually i don't get that first one work either

E: this was it!

<?php
require_once "/plaplapla/public_html/maincore.php";
echo "".$userdata['user_name']."";
?>
Edited by Darra on 29-01-2011 19:26,
0 replies
P
PolarFox
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
answered
Veteran Member

For public_html/test/test/test.php

code:

Quote


require_once "../../maincore.php";
echo $userdata['user_name'];
0 replies

Category Forum

User Administration - 8

Labels

None yet

Statistics

  • Views 0 views
  • Posts 3 posts
  • Votes 0 votes
  • Topic users 3 members

3 participants

C
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
P
P
  • Veteran Member, joined since
  • Contributed 1,633 posts on the community forums.
  • Started 29 threads in the forums
D
D
Darra 10
  • Member, joined since
  • Contributed 54 posts on the community forums.
  • Started 18 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet