Results 1 to 4 of 4

Thread: Show username in user cp page

  1. #1
    Join Date
    Jul 2003
    Posts
    40

    Default Show username in user cp page

    Hi!
    How do I show the users' <%username%> in the user Control Panel page?

    The header would be the best place for me ...

    Thanks! =)

  2. #2
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    try this: right after
    Code:
    if(isset($COOKIE_USERNAME)) 
      $_SESSION['indexu_session_username'] = $COOKIE_USERNAME;
    add:
    $user_name = $COOKIE_USERNAME;

    then at the bottom, make the following change
    Code:
      DisplayTemplate($theme_path."cp/header.html","\$title,\$cat,\$user_name");
    which files? all the ones in indexu/cp that you want the user_name to appear

    then, in the themes/default/cp folder, open the corresponding files that you changed in the previous step, and add <%user_name%>

    that should work
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  3. #3
    Join Date
    Jul 2002
    Posts
    189

    Default

    Suggestion for cp/header.html:

    about line 220:
    look for
    Code:
    &nbsp; &nbsp; <a href="change_pwd.php" class=menu>Change Password</a>
    and add:
    Code:
    &nbsp; &nbsp;--&nbsp; &nbsp;Username: <%user_name%> [<a href="../logout.php">logout</a>]
    do the spaces with "nonbreaking spaces" (HTML-Tag) => VB does convert this!
    Last edited by tjoerg; 07-26-2003 at 07:06 AM.
    --------- applying hacks require a knack ---------

  4. #4
    Join Date
    Jul 2003
    Posts
    40

    Default

    Thanks Esm and Tjoerg! =)

Similar Threads

  1. Show Top-Rated Links on Main Page
    By pip in forum v5.x
    Replies: 1
    Last Post: 05-16-2004, 03:33 AM
  2. Replies: 4
    Last Post: 11-23-2003, 10:44 PM
  3. looking up user during add process
    By esm in forum v5.x
    Replies: 3
    Last Post: 06-18-2003, 10:27 PM
  4. Show full page ads before actual link
    By joysky in forum v5.x
    Replies: 1
    Last Post: 01-30-2003, 03:59 AM
  5. User login problem
    By webmasterjr in forum v5.x
    Replies: 3
    Last Post: 12-16-2002, 06:03 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •