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.

Side change button?

3 posters

Go down

Solved Side change button?

Post by Marvin 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
Marvin
Forumember

Male Posts : 320
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 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://2img.net/i/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
Ahmedvirus
Forumember

Male Posts : 321
Reputation : 59
Language : English

https://help.forumotion.com

Back to top Go down

Solved Re: Side change button?

Post by Marvin 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
Marvin
Forumember

Male Posts : 320
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 August 8th 2011, 8:23 pm

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

Male Posts : 321
Reputation : 59
Language : English

https://help.forumotion.com

Back to top Go down

Solved Re: Side change button?

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

Okay Very Happy Thank you.

Its solved.
Marvin
Marvin
Forumember

Male Posts : 320
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 August 8th 2011, 9:00 pm

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

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

Back to top Go down

Back to top

- Similar topics

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