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.

tables in profile code for phpBB3

View previous topic View next topic Go down

Solved tables in profile code for phpBB3

Post by APE on April 7th 2014, 2:45 am

can some one help me with the code to put tables in my profile with rounded corners  like this post please
http://help.forumotion.com/t129744-tables-in-post
and i would also like to center it all as well please

Much thanks

Ape


SOLVED WITH THANKS TO Ange Tuteur


Last edited by APE on April 7th 2014, 3:36 am; edited 1 time in total

APE
Manager
Manager

Male Posts : 8309
Reputation : 716
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: tables in profile code for phpBB3

Post by Ange Tuteur on April 7th 2014, 3:10 am

Hello APE,

Try this :
Administration panel > modules > javascript codes management > create a new script

Title : what you wish
Placement : in the topics
Paste the code below and save :
Code:
$(function() {
    var p = $('.postprofile');
    for (i = 0; i < p.length; i++) {
       p[i].innerHTML = p[i].innerHTML.replace(/<span class="label">(.*?)<\/span>(.*?)(<br>|<hr>)/ig,'<span class="profile_field"><span class="label">$1<\/span>$2</span>');
    }
});

Then add the following to your style sheet :
Display > colors > CSS
Code:
.profile_field {
    text-align:center;
    border:1px solid #CCC;
    border-radius:3px;
    display:block;
    margin:4px 0;
    padding:3px;
}

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2681
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: tables in profile code for phpBB3

Post by APE on April 7th 2014, 3:26 am

it did as i wanted but it did not move the rank over aswell Wink





APE
Manager
Manager

Male Posts : 8309
Reputation : 716
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: tables in profile code for phpBB3

Post by Ange Tuteur on April 7th 2014, 3:29 am

You want the entire postprofile contents centered ?

Add this to your CSS if so :
Code:
.postprofile { text-align:center; }

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2681
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: tables in profile code for phpBB3

Post by APE on April 7th 2014, 3:34 am

:wouhou:  you really are the best
Thank you





APE
Manager
Manager

Male Posts : 8309
Reputation : 716
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: tables in profile code for phpBB3

Post by Ange Tuteur on April 7th 2014, 3:37 am

You're welcome I love you

Topic solved and archived

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2681
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.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