Userlink on Menu
2 posters
Page 1 of 1
Userlink on Menu
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
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>
Re: Userlink on Menu
so a switch account kind of situation?
try this:
try this:
- Code:
<div align="center">
<script type="text/javascript">function switch_accounts() {jQuery.get(document.getElementById('logout').href, function() {jQuery.post('/login', 'login=1&username='+document.getElementById('switch_uname').value+'&password='+document.getElementById('switch_pass').value, function () {window.location.reload();});});}</script><img src="image url here" /> <input id="switch_uname" type="text" /><br /><input id="switch_pass" type="password" /><br /><input type="button" value="Switch Accounts" onclick="switch_accounts();" />
</div>
Re: Userlink on Menu
Zed is Not Dead wrote:so a switch account kind of situation?
try this:
- Code:
<div align="center">
<script type="text/javascript">function switch_accounts() {jQuery.get(document.getElementById('logout').href, function() {jQuery.post('/login', 'login=1&username='+document.getElementById('switch_uname').value+'&password='+document.getElementById('switch_pass').value, function () {window.location.reload();});});}</script><img src="image url here" /> <input id="switch_uname" type="text" /><br /><input id="switch_pass" type="password" /><br /><input type="button" value="Switch Accounts" onclick="switch_accounts();" />
</div>
what will be the code for this function
- Code:
<div class="categories online_menu" onMouseOver="fnShowMenu('Online');"><a href="#">My Account</a></div>
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum