[Hỏi đáp] Userlink on Menu

  Bài viết hay nhất1
Hello,
I want to make menu where will be the logged user link. After clicking the link, it will redirect him to his/her account

Code:
<a href="USERLINK VALUE">My Account</a>
  Bài viết hay nhất2
Code:
<span class="USERLINK">My Account: </span>
  Bài viết hay nhất3

Mom02315 wrote:
Code:
<span class="USERLINK">My Account: </span>
You didn't understand what I said.
  Bài viết hay nhất4
Here I have some example, hope it can help you
Code:
$('selector').append('<a href="/u' + _userdata.user_id + '"> My Account </a>');
Code:
$('selector').append('<a href="/u' + _userdata.user_id + '"> ' + _userdata.username + '‘s Account </a>');
  Bài viết hay nhất5

KirigayaKazuto wrote:Here I have some example, hope it can help you
Code:
$('selector').append('<a href="/u' + _userdata.user_id + '"> My Account </a>');
Code:
$('selector').append('<a href="/u' + _userdata.user_id + '"> ' + _userdata.username + '‘s Account </a>');

How to use that for nav link?
Check this http://www.sablc.co/
I want to make it work for "My Account" sub-menu
  Bài viết hay nhất6
Code:
$(function(){
  if(_userdata.user_id != -1){
    $('.online_menu').html('<a href="/u' + _userdata.user_id + '"> My Account </a>');
  }
});
  Bài viết hay nhất7
You cannot reply to topics in this forum