tables in profile code for phpBB3

Go down

Solved tables in profile code for phpBB3

Post by APE on Mon Apr 07 2014, 03:45

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 Mon Apr 07 2014, 04:36; edited 1 time in total
avatar
APE
Administrator
Administrator

Male Posts : 12327
Reputation : 1284
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 on Mon Apr 07 2014, 04:10

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;
}
avatar
Ange Tuteur
Forumaster

Male Posts : 13202
Reputation : 2918
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Solved Re: tables in profile code for phpBB3

Post by APE on Mon Apr 07 2014, 04:26

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



avatar
APE
Administrator
Administrator

Male Posts : 12327
Reputation : 1284
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 on Mon Apr 07 2014, 04:29

You want the entire postprofile contents centered ?

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

Male Posts : 13202
Reputation : 2918
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Solved Re: tables in profile code for phpBB3

Post by APE on Mon Apr 07 2014, 04:34

:wouhou:  you really are the best
Thank you



avatar
APE
Administrator
Administrator

Male Posts : 12327
Reputation : 1284
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 on Mon Apr 07 2014, 04:37

You're welcome I love you

Topic solved and archived
avatar
Ange Tuteur
Forumaster

Male Posts : 13202
Reputation : 2918
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Back to top


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