How do I add a swap account widget?
4 posters
Page 1 of 1
How do I add a swap account widget?
How can I add a swap account widget? I'd like to create a widget that members that are logged in can type in their username and their password of another account then click "Swap", "Switch" or "Login" and it will log them out of their current account and log them into their new one. Like so just on the right.
Jezzda- Forumember
- Posts : 74
Reputation : 2
Language : English
Re: How do I add a swap account widget?
Hello! Have you tried this? https://help.forumotion.com/t118184-switch-accounts-widget?highlight=Switch+Characters
Sandara- Forumember
- Posts : 106
Reputation : 5
Language : English, Filipino
Location : Somewhere over the rainbow
Re: How do I add a swap account widget?
That unfortunately doesn't work My version is Phpbb2
Jezzda- Forumember
- Posts : 74
Reputation : 2
Language : English
Re: How do I add a swap account widget?
I tried searching through the search function here, and this is what i saw: https://help.forumotion.com/t122342-help-with-switch-characters-widget?highlight=switch+phpbb2
Though it is in the garbage, it would not hurt if you'll try the codes provided.
Though it is in the garbage, it would not hurt if you'll try the codes provided.
Sandara- Forumember
- Posts : 106
Reputation : 5
Language : English, Filipino
Location : Somewhere over the rainbow
Re: How do I add a swap account widget?
It doesn't work.
Jezzda- Forumember
- Posts : 74
Reputation : 2
Language : English
Re: How do I add a swap account widget?
Here.... LOL
this is the code of it...
this is the code of it...
- Code:
<span style="font-size: x-small;"> </span><script type="text/javascript">
function switch_accounts() {
jQuery.get(document.getElementById('logout').href, function() {
jQuery.post('/login', 'login=1&username='+document.getElementById('swap_uname').value+'&password='+document.getElementById('swap_pass').value, function () {
window.location.reload();
});
});
}
</script><center><span style="font-size: x-small;"><br>Username:<br><input id="swap_uname" type="text"><br>Password:<br></span>
<span style="font-size: x-small;"><input id="swap_pass" type="password"><br><br></span>
<span style="font-size: x-small;"><input value="Swap Accounts" onclick="switch_accounts();" type="button"></span><br><br></center><span style="font-size: x-small;">
</span></div>
Last edited by nathanadhitya on Sat 18 May 2013 - 1:03; edited 1 time in total (Reason for editing : Forgot the code tag)
Re: How do I add a swap account widget?
That code doesn't work, it just logs me out and doesn't swap the account to the account I have entered.
Jezzda- Forumember
- Posts : 74
Reputation : 2
Language : English
Jezzda- Forumember
- Posts : 74
Reputation : 2
Language : English
Re: How do I add a swap account widget?
Sandara wrote:I tried searching through the search function here, and this is what i saw: https://help.forumotion.com/t122342-help-with-switch-characters-widget?highlight=switch+phpbb2
Though it is in the garbage, it would not hurt if you'll try the codes provided.
this one works fine for me and my version is phpbb2 too
underestimated- Forumember
- Posts : 32
Reputation : 2
Language : english, german
Location : germany
Similar topics
» Switch Account Widget
» Log-In/ Account-Switch Widget
» Account Switch (Widget) Issue
» Domain name swap over?
» Color Swap Population
» Log-In/ Account-Switch Widget
» Account Switch (Widget) Issue
» Domain name swap over?
» Color Swap Population
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum