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.

tables in profile code for phpBB3

2 posters

Go down

Solved tables in profile code for phpBB3

Post by Ape 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
https://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
Ape
Administrator
Administrator

Male Posts : 19450
Reputation : 2011
Language : fluent in dork / mumbojumbo & English haha

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

Back to top Go down

Solved Re: tables in profile code for phpBB3

Post by Ange Tuteur 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
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: tables in profile code for phpBB3

Post by Ape April 7th 2014, 3:26 am

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


tables in profile code for phpBB3 Left1212tables in profile code for phpBB3 Center11tables in profile code for phpBB3 Right112
tables in profile code for phpBB3 Ape_b110
tables in profile code for phpBB3 Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19450
Reputation : 2011
Language : fluent in dork / mumbojumbo & English haha

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

Back to top Go down

Solved Re: tables in profile code for phpBB3

Post by Ange Tuteur 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
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: tables in profile code for phpBB3

Post by Ape April 7th 2014, 3:34 am

:wouhou:  you really are the best
Thank you


tables in profile code for phpBB3 Left1212tables in profile code for phpBB3 Center11tables in profile code for phpBB3 Right112
tables in profile code for phpBB3 Ape_b110
tables in profile code for phpBB3 Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19450
Reputation : 2011
Language : fluent in dork / mumbojumbo & English haha

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

Back to top Go down

Solved Re: tables in profile code for phpBB3

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

You're welcome I love you

Topic solved and archived
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
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