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

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
avatar
APE
Manager
Manager

Male Posts : 11861
Reputation : 1173
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;
}
avatar
Ange Tuteur
Forumaster

Male Posts : 13194
Reputation : 2907
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 April 7th 2014, 3:26 am

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



avatar
APE
Manager
Manager

Male Posts : 11861
Reputation : 1173
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; }
avatar
Ange Tuteur
Forumaster

Male Posts : 13194
Reputation : 2907
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 April 7th 2014, 3:34 am

:wouhou:  you really are the best
Thank you



avatar
APE
Manager
Manager

Male Posts : 11861
Reputation : 1173
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
avatar
Ange Tuteur
Forumaster

Male Posts : 13194
Reputation : 2907
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