tables in profile code for phpBB3
2 posters
Page 1 of 1
tables in profile code for phpBB3
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
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 7 Apr 2014 - 3:36; edited 1 time in total
Re: tables in profile code for phpBB3
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 :
Then add the following to your style sheet :
Display > colors > CSS
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;
}
Re: tables in profile code for phpBB3
You want the entire postprofile contents centered ?
Add this to your CSS if so :
Add this to your CSS if so :
- Code:
.postprofile { text-align:center; }
Similar topics
» Profile Fields above Avatar phpBB3
» How to add PHPBB3 Code..
» code #pun-intro in css ? (phpbb3)
» Valentines code for PhpBB3
» what is the code for quick reply for PhpBB3
» How to add PHPBB3 Code..
» code #pun-intro in css ? (phpbb3)
» Valentines code for PhpBB3
» what is the code for quick reply for PhpBB3
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum