Forums

Make a URL page with username/user id? (4 posts)

  1. Tony
    Member
    Posted 1 year ago #

    I'm using ThemeMyLogin and one of the links the user can click on once logged in is called "My Contests" (www.website.com/my-contests/)

    How can I make it so that depending on that person's username/user id, when they click on that link they will be sent to a page that's customized for their username/user id?

    For example:
    JoeSchmo55 clicks on http://www.website.com/my-contests/,
    and they are sent to a page that I made specifically for them such as http://www.website.com/joeschmo55-contests/

    Is there any way to do that? Any shortcodes or anything?

    Thanks,
    Tony

  2. richarduk
    Member
    Posted 1 year ago #

    I can give you a possible starting point:

    <?php global $user_identity; if ($user_identity) { echo "<h3>Hi $user_identity! "; } ?>

  3. Tony
    Member
    Posted 1 year ago #

    I have no idea what that code means haha could you please elaborate in basic terms?

  4. richarduk
    Member
    Posted 1 year ago #

    Sorry, I didn't realise, and it was only a starting point. It was basically to say that you could use that to say that if a user's identity = Jane then do something.

    Someone else might have a better idea.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.