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.

Side change button?

View previous topic View next topic Go down

Solved Side change button?

Post by Marvin on August 8th 2011, 7:19 pm

Hi, how do I get the button change sides? (That is in the picture)

http://img4.fotos-hochladen.net/uploads/ddfes97khzvp.png

Marvin
Forumember

Male Posts : 317
Reputation : 4
Language : German, basic English, Spanish, basic Bavarian, broken Italian

http://www.schiggysboard.com/

Back to top Go down

Solved Re: Side change button?

Post by Ahmedvirus on August 8th 2011, 7:47 pm

hi go
Administration Panel → Modules Tab → Javascript codes management → Create a new javascript

Step 2:
Call it whatever you like and set its placement to all pages.

Step 3:
Once you have done that, you will need to add the following code into 'Javascript Code' field (your forum version ONLY):
phpBB 3



Code:
    var CopyrightNotice = 'All rights reserved to the
    developer A7medvirus version works phpbb3 Allowed to amend the code by
    www.ahlamontada.com .';
   
    function setprofile(loc) {
        if (loc=='left') {
            $('.postprofile').css({'float':'left','border-left':'none','border-right':'1px solid #c8c8c8'});
            $('.postbody').css('float','right');
        }
    //a7medvirus
        else {
            $('.postprofile').css({'float':'right','border-left':'1px solid #c8c8c8','border-right':'none'});
            $('.postbody').css('float','left');
        }
    }
    //a7medvirus
    function toggleprofile() {
        var x = my_getcookie('prloc');
        if (x=='left') {
            x='right';
        }
        else {
            x='left';
        }
        my_setcookie('prloc',x,true);
        setprofile(x);
    }
    //a7medvirus
    $(function() {
        if ($('.addthis_button')[0]) {
            $('.addthis_button').eq(0).before('<button class="button2"
    title="Toggle post profile location"
    onclick="toggleprofile();"><img style="padding:0px 2px;"
    src="http://illiweb.com/fa/edit.png" /></button> • ');
            var x = my_getcookie('prloc');
            if (x == null) {x = 'left';}
            my_setcookie('prloc',x,true);
            setprofile(x);
        }
    });
    //Remember that copyright a7medvirus

Ahmedvirus
Forumember

Male Posts : 321
Reputation : 59
Language : English

http://help.forumotion.com

Back to top Go down

Solved Re: Side change button?

Post by Marvin on August 8th 2011, 8:14 pm

Thanks, but now the lines, the profile box separates the contribution gray .. how do I change it?

(Look please at my Forum)

Marvin
Forumember

Male Posts : 317
Reputation : 4
Language : German, basic English, Spanish, basic Bavarian, broken Italian

http://www.schiggysboard.com/

Back to top Go down

Solved Re: Side change button?

Post by Ahmedvirus on August 8th 2011, 8:23 pm

Do not see a problem in that it is a good !!

Ahmedvirus
Forumember

Male Posts : 321
Reputation : 59
Language : English

http://help.forumotion.com

Back to top Go down

Solved Re: Side change button?

Post by Marvin on August 8th 2011, 8:33 pm

Okay Very Happy Thank you.

Its solved.

Marvin
Forumember

Male Posts : 317
Reputation : 4
Language : German, basic English, Spanish, basic Bavarian, broken Italian

http://www.schiggysboard.com/

Back to top Go down

Solved Re: Side change button?

Post by kirk on August 8th 2011, 9:00 pm

Since the topic appears to be solved i will now mark and lock the thread.

kirk
Forumaster

Male Posts : 11037
Reputation : 651
Language : English,Vulcan,Klingon, Romulan,& Gorn

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