The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Appearance of "Switch account" widget

View previous topic View next topic Go down

Solved Appearance of "Switch account" widget

Post by Monikita on November 4th 2017, 1:05 pm

Good day dear forumotion members.
I have a question regarding "acount-switch" widget appearance.
So I took a code from this topic: http://help.forumotion.com/t137292-log-in-account-switch-widget?highlight=switch+accounts but I cant really use it as a normal widget due to my forums style (url of forum: http://www.seoul-arts.com ).
I saw other forums using this widget in different way:
Spoiler:
So what I wanted to ask, maybe someone knows a way to place this widget in a different way/position than a normal widget would be ?
I would be really grateful for you help (I really don't know where to look for answer to this anymore Very Happy) <3


Last edited by Monikita on November 15th 2017, 3:56 pm; edited 1 time in total
avatar
Monikita
Forumember

Female Posts : 53
Reputation : 0
Language : English
Location : Lithuania

http://seoul-arts.123.st/

Back to top Go down

Solved Re: Appearance of "Switch account" widget

Post by Gray on November 12th 2017, 9:34 am

If you know a bit of HTML and CSS, you do inline styling within the elements themselves. Here's the code I'm using as an example:

Code:
    <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>
<center>
       <input type="text" id="switch_uname" style="border-radius:5px; border-color:#346cdb;" /><br />        <input type="password" id="switch_pass" style="border-radius:5px;border-color:#346cdb;" /><br />    <input onclick="switch_accounts();" value="Switch user" type="button" style="border-radius:5px;border-color:#346cdb;color:#346cdb;cursor:pointer;" />
</center>

Leave everything within the <script></script> tags untouched. Everything else is just basic HTML and can be manipulated using inline styling (using style="property:description;" within the element's tag).

Gray
Forumember

Posts : 38
Reputation : 1
Language : English

http://www.theromancedawnrp.com/

Back to top Go down

Solved Re: Appearance of "Switch account" widget

Post by Monikita on November 15th 2017, 3:56 pm

Thank you for explaining <3
avatar
Monikita
Forumember

Female Posts : 53
Reputation : 0
Language : English
Location : Lithuania

http://seoul-arts.123.st/

Back to top Go down

Solved Re: Appearance of "Switch account" widget

Post by Draxion on November 15th 2017, 3:58 pm

I see you marked this as solved, @Monikita. Is this true?


NEVER provide your founder's account or email
Please provide forum's URL when dealing with design and appearance issues
Don't forget to mark the topic as when the issue is resolved. This helps the staff greatly.
PM Support is prohibited!
TOS | General Rules | FAQ | Tricks & Tips | Latest Updates | Introduce Yourself

avatar
Draxion
Support Moderator
Support Moderator

Male Posts : 1834
Reputation : 230
Language : English
Location : USA

http://www.draxionsgameden.com/

Back to top Go down

Solved Re: Appearance of "Switch account" widget

Post by Monikita on November 15th 2017, 4:00 pm

Yes, it is.
avatar
Monikita
Forumember

Female Posts : 53
Reputation : 0
Language : English
Location : Lithuania

http://seoul-arts.123.st/

Back to top Go down

Solved Re: Appearance of "Switch account" widget

Post by Draxion on November 15th 2017, 4:00 pm

Thank you for clarifying that.

Problem solved & topic archived.
Please read our forum rules: ESF General Rules


NEVER provide your founder's account or email
Please provide forum's URL when dealing with design and appearance issues
Don't forget to mark the topic as when the issue is resolved. This helps the staff greatly.
PM Support is prohibited!
TOS | General Rules | FAQ | Tricks & Tips | Latest Updates | Introduce Yourself

avatar
Draxion
Support Moderator
Support Moderator

Male Posts : 1834
Reputation : 230
Language : English
Location : USA

http://www.draxionsgameden.com/

Back to top Go down

View previous topic View next topic Back to top


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