Not Solved Enhanced Account Switcher help
#1
Not Solved
Hey there!

Okay, okay, I need a little bit of help. I have a specific idea that I want when the account switcher shows up, but, the problem is that when I installed it, it didn't work. So I'm turning to you guys for help!

This is what I want it to look like. This is just the normal way it should look. No fuss, no muss.

This is what I want it to do upon clicking on the Switch Accounts Link The would bring up a drop down, or the switch account link could turn into the drop down itself, like this.

I have a code for the former.

<!-- AccountSwitcher -->| <a href='#' onclick="document.getElementById(‘AccountSwitcherform’).style.display='inline';">Switch Accounts</a><span id=‘AccountSwitcherform' style='display: none;'> &gt; <form method='post' action='index.php' style='display: inline;'><select name=‘AccountSwitcherloginas'>{$as_header}</select> <input type='submit' value='Go'></form></span><!-- /AccountSwitcher -->

But when I tried it, that didn't work. It wouldn't turn into a drop down. Help?

I can get you what you need if you can tell me. Smile

Is there no one who can help me?
Reply
#2
Not Solved
A select box in header isn't possible with template edits only.
But you could show the links in a dropdown menu instead.
http://imgur.com/GN6blRc
http://imgur.com/On4dWcD


In template as_header replace all with:


<!-- AccountSwitcher -->
| <a href="#" id="accountswitcher_header">Switch Accounts</a>
<div id="accountswitcher_header_popup" style="display: none; padding:0 30px 0 15px; background: #222;">
  <ul>
    {$as_3d_menu}
  </ul>
</div>
<script type="text/javascript">
  new PopupMenu("accountswitcher_header");
</script>
<!-- /AccountSwitcher -->

You probably have to adjust the style of the dropdown box for your theme.
Reply
#3
Not Solved
Okay, I did that. But now it won't switch. It drops down, but won't switch.
Reply
#4
Not Solved
It worked for me.
Are you using the latest version (1.4.1) of the plugin?
Reply
#5
Not Solved
(2014-08-31, 04:32 PM)doylecc Wrote: It worked for me.
Are you using the latest version (1.4.1) of the plugin?

http://i.imgur.com/ocByLWo.png <--this is what it told me. The little box thingy that says Please activate JavaScript in your browser for Enhanced Account switcher to work.

And yes, I'm using 1.4.1.


This is frustrating, but I appreciate all the help you give me. 
Reply
#6
Not Solved
(2014-08-31, 04:45 PM)jenny loo who?! Wrote: http://i.imgur.com/ocByLWo.png <--this is what it told me. The little box thingy that says Please activate JavaScript in your browser for Enhanced Account switcher to work.

There probably is a jQuery conflict. I've seen jQuery is loaded multiple times in your forum which can be the cause for it.
You can try and upload the attached file into your inc/plugins folder and replace the current plugin file.
But if it's not going to work, I'm afraid you would've to clean the multiple jQuery instances.


Attached Files
.php   accountswitcher.php (Size: 56.67 KB / Downloads: 117)
Reply
#7
Not Solved
Sorry, I didn't get back to you sooner! I have actually decided to forgo my forum's move for another month, so that I could get some of the stuff sorted out.

On that same note, I'm curious to know if you're going to make this available on 1.8?

I will try what you've described and hope for the best, if not, well, we're waiting for more mods to become available for 1.8. Smile Thanks ever so much for your help!
Reply
#8
Not Solved
(2014-09-03, 06:09 PM)jenny loo who?! Wrote: On that same note, I'm curious to know if you're going to make this available on 1.8?

Yes, I released the new EAS version for 1.8 today. Smile
Reply
#9
Not Solved
(2014-09-04, 09:02 PM)doylecc Wrote:
(2014-09-03, 06:09 PM)jenny loo who?! Wrote: On that same note, I'm curious to know if you're going to make this available on 1.8?

Yes, I released the new EAS version for 1.8 today. Smile

You might be a god to the RPG world.
Reply
#10
Not Solved
I also have the "Please activate JavaScript in your browser for Enhanced Account switcher to work" problem. I'm certain that I don't have any jquery conflict as it's on a clean installation with no other plug-ins and using default theme.

However account switching seems to work nevertheless the message. The only glitch, there is no sign of an arrow to edit the post author afterwards, only posting as a new author works.

I was trying version 1.5 on Mybb 1,8, did not check your latest 1.6.
Reply


Forum Jump:


Users browsing this thread: 9 Guest(s)