Switch Accounts isn't working

Go down

Solved Switch Accounts isn't working

Post by WolfStory on January 12th 2015, 4:37 pm

I placed a code in a widget on my forum to let users switch accounts easely
This code: https://help.forumotion.com/t137292-log-in-account-switch-widget?highlight=switch+accounts

But now, when someone wants to switch and they click the 'switch user' button, nothing happens..

Can someone help me with this problem?
avatar
WolfStory
New Member

Posts : 7
Reputation : 1
Language : Nederlands

http://www.wolfstory.clicboard.com

Back to top Go down

Solved Re: Switch Accounts isn't working

Post by Ange Tuteur on January 13th 2015, 3:56 am

Hello @WolfStory,

Have you modified or removed the {GENERATED_NAV_BAR} variable in the overall_header template ?
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13223
Reputation : 2960
Language : EN, JA, FR
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Solved Re: Switch Accounts isn't working

Post by WolfStory on January 13th 2015, 6:09 pm

Yes I use another nav bar
This is the website; http://www.wolf-story.com
avatar
WolfStory
New Member

Posts : 7
Reputation : 1
Language : Nederlands

http://www.wolfstory.clicboard.com

Back to top Go down

Solved Re: Switch Accounts isn't working

Post by Ange Tuteur on January 13th 2015, 6:44 pm

The script for the widget needs to access the logout link of the default navbar. Add this after your custom navbar :
Display > templates > general > overall_header Edit
Code:
<div style="display:none">{GENERATED_NAV_BAR}</div>

It'll readd the default navigation, but you wont see it. The script in the widget should then be able to find the logout href attribute again.
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13223
Reputation : 2960
Language : EN, JA, FR
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Solved Re: Switch Accounts isn't working

Post by WolfStory on January 14th 2015, 11:44 am

It's working Smile Thank you!
avatar
WolfStory
New Member

Posts : 7
Reputation : 1
Language : Nederlands

http://www.wolfstory.clicboard.com

Back to top Go down

Solved Re: Switch Accounts isn't working

Post by Ange Tuteur on January 15th 2015, 4:26 am

You're welcome ^^

Topic archived
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13223
Reputation : 2960
Language : EN, JA, FR
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum