Author Topic: profile link to webpage based on nickname instead of user  (Read 2099 times)

Leirra

  • Newbie
  • *
  • Posts: 7
  • Karma: +1/-0
    • View Profile
profile link to webpage based on nickname instead of user
« on: June 18, 2014, 06:06:23 PM »
Help please.
We currently have profile to automatically link to a web page based on the user ID.  We would like to change that to nickname. 
We tried change %USER% to %NICKNAME% and %NICK% to no avail.  In reading the docs, I was expecting this to work.  What can I do to force the rerun of the nickname.  (i.e. www.mypage.com/index.php?title=%NICNAME% )

admin

  • Administrator
  • Newbie
  • *****
  • Posts: 49
  • Karma: +1/-0
    • View Profile
Re: profile link to webpage based on nickname instead of user
« Reply #1 on: June 19, 2014, 03:11:47 AM »
Hello friend,

Thanks for contacting 123flashchat support team.

You mean you want to change the parameter "%USER%" in profile link to "NICKNAME" and change the profile page to this one "www.mypage.com/index.php?title=%NICNAME%",right?

If so,sorry to tell you that nickname parameter may be not supported in chat.

I have registered a test account in your website "www.mypage.com" and the profile page is this one "http://www.mypage.com/koalawang".

According to the format of profile URL, you may couldn't change it to this one: http://www.mypage.com/index.php?title=koalawang . Because the profile URL of your website is based on the username,not nickname.

If the website is not yours,just a sample,and your website is based on the nickname.
You could get the nickname value through profile.php .
1.Bring the %USER% value to profile.php
2.Check the user in database
3.Get the correct value like nickname from database
4.Return the correct profile URL of your website

I have attached a sample file for your reference.

Also,please provide us below info if you don't know how to do it. Thanks, you can send the credential info via private message.
1.FTP account of your website
2.Two test users of your website

Hope this could be helpful and any further question please feel free to contact us.

Regards,
Admin

Leirra

  • Newbie
  • *
  • Posts: 7
  • Karma: +1/-0
    • View Profile
Re: profile link to webpage based on nickname instead of user
« Reply #2 on: June 19, 2014, 11:58:05 AM »
well, mypage.com was meant to be an example.  It was not the actual page.  I am sorry if that want clear.  We are linking to a wiki

But the idea is that when someone in the chat (hosted by 123flashchat) clicks on another user and elects to see their profile, it can link to a webpage specific to them.

Currently, we have this in place such that that webpage is linked to the user ID with %USER%.
We want that to link to the nickname the user is currently under. 

I do not see a file attached to your post, but it sounds like that would be helpful.

Leirra

  • Newbie
  • *
  • Posts: 7
  • Karma: +1/-0
    • View Profile
Re: profile link to webpage based on nickname instead of user
« Reply #3 on: June 19, 2014, 12:15:21 PM »
I am attaching a screenshot to help.  I want to change the USER in the image to the nickname, if that helps

admin

  • Administrator
  • Newbie
  • *****
  • Posts: 49
  • Karma: +1/-0
    • View Profile
Re: profile link to webpage based on nickname instead of user
« Reply #4 on: June 23, 2014, 02:07:52 AM »
Hi Friend,

Sorry for my late response, i can not open your attachment, can you send to us one more time?

Thanks and look forward from you.

Regards,
Admin

Leirra

  • Newbie
  • *
  • Posts: 7
  • Karma: +1/-0
    • View Profile
Re: profile link to webpage based on nickname instead of user
« Reply #5 on: June 23, 2014, 10:08:48 AM »
just a screen shot from a mac in a png format.  hopefully this works

Leirra

  • Newbie
  • *
  • Posts: 7
  • Karma: +1/-0
    • View Profile
Re: profile link to webpage based on nickname instead of user
« Reply #6 on: June 26, 2014, 12:28:51 PM »
ok, lets try it this way


admin

  • Administrator
  • Newbie
  • *****
  • Posts: 49
  • Karma: +1/-0
    • View Profile
Re: profile link to webpage based on nickname instead of user
« Reply #7 on: July 02, 2014, 02:03:52 AM »
Hello Leirra,

Thanks for your screenshot.

According to your screenshot, the profile links of your website are based on user's nickname,right?

In this way,you can follow below steps to achieve that.
1.Bring the %USER% value to profile.php
2.Check the user in database
3.Get the correct value like nickname from database
4.Return the correct profile URL of your website

And I have attached the sample file for your reference this time.

Please kindly check it.

If not,may I know the reason why you want to use "NICKNAME" parameter?

Thanks and waiting for your reply. : )

Leirra

  • Newbie
  • *
  • Posts: 7
  • Karma: +1/-0
    • View Profile
Re: profile link to webpage based on nickname instead of user
« Reply #8 on: July 02, 2014, 08:03:40 AM »
We are using your chat as part of a game.  A specific player may control different avatars, which are represented by their nickname.  We want the data linked by clicking the "view profile" to be specific to the avatar rather than the player.

admin

  • Administrator
  • Newbie
  • *****
  • Posts: 49
  • Karma: +1/-0
    • View Profile
Re: profile link to webpage based on nickname instead of user
« Reply #9 on: July 08, 2014, 10:46:08 PM »
Hi Friend,

Sorry for my late response, can you explain this with more details, then i will confirm with our supporter and help you.

Thanks and look forward from you.

Regards,
Admin

Leirra

  • Newbie
  • *
  • Posts: 7
  • Karma: +1/-0
    • View Profile
Re: profile link to webpage based on nickname instead of user
« Reply #10 on: July 09, 2014, 10:33:03 AM »
We are using your chat as an online communication in a game.  This game has several players (real live people), but the actual number is not constant. The players each control a single avatar at a time, but each player has multiple avatar's to choose from.  Every Avatar is unique.  We currently use the "nickname" feature to represent the avatar currently in play.

This allows us to see the player by mousing over the name, and it allows us to view a profile.  We would like to point the view profile option to a specific webpage about the avatar, rather than the player.  The pages are in wiki format, so having them based on the same nickname is easy.

Perhaps this will help

Dave has two avatars.  He can only be one at a time.
     Fred
     Shaggy
Audrey has two avatars.  She can only play as one at a time.
    Daphne
    Velma
Chris has only one avatar.
    Scooby

Dave is not allowed to play as Audrey or Chris's avatars, and they are not allowed to play as Dave's.  Each person "owns" their avatars.

We could require a different login for each avatar, but that would quickly get troublesome for players swapping between them.  Also, the current system allows new players to quickly identify moderators or specific individuals when they do not readily know which avatars are controlled by which players.   

So, in the example box I posted in the picture, we would like to have the part of the code that says %USER% (the variable that calls the user ID) instead be a variable that points to the unique nickname currently being employed by the user:  a %NICKNAME% so to speak.

admin

  • Administrator
  • Newbie
  • *****
  • Posts: 49
  • Karma: +1/-0
    • View Profile
Re: profile link to webpage based on nickname instead of user
« Reply #11 on: July 14, 2014, 02:06:33 AM »
Hello Leirra,

Thanks for your explanation.

You said that "We currently use the "nickname" feature to represent the avatar currently in play.", so there must be some connection between nickname and avatar in your website,right?

If so, you can follow below steps to get the correct avatar through %USER% in a .php file.
1.Bring the %USER% value to profile.php
2.Select the user info by username from database
3.Get the user's nickname
4.Get the user's current avatar value through the connection between nickname and avatar
5.Return the correct avatar URL of your website

Hope you could understand.

Or could you please email below info to support@topcmm.com ? Then we can help you to do that.
a.FTP account of your website
b.Two test accounts of your website
c.database info of your website

Thanks and waiting for your reply. : )

 

Powered by Greek-Chat.gr