The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Switch Accounts isn't working

2 posters

Go down

Solved Switch Accounts isn't working

Post by WolfStory 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 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 : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Switch Accounts isn't working

Post by WolfStory 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 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 : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Switch Accounts isn't working

Post by WolfStory 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 January 15th 2015, 4:26 am

You're welcome ^^

Topic archived
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Back to top

- Similar topics

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