Page 1 of 1

Customizing user forum?

Posted: Tue Apr 16, 2019 4:30 pm
by Echo Dino
Hello. I want to make my site customized. I want to make the user forum page (which has an avatar and clicking on it jumps to the user profile) customized. I want to align it in center. Not in the center of the forum. Like thst:

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
a Image aaaa Hello
aaaa BayoDino
aaaaa (stars)
aa Administrator
aaaa 6 aaaaa 20
aa Posts aaa Pets

Re: Customizing user forum?

Posted: Wed Apr 17, 2019 6:55 am
by AmigoJack
  1. What have you tried so far?
  2. What did you expect?
  3. What happened instead?
The questions will show at which part/level of knowledge you need help.

Re: Customizing user forum?

Posted: Wed Apr 17, 2019 11:19 am
by Echo Dino
AmigoJack wrote:
Wed Apr 17, 2019 6:55 am
  1. What have you tried so far?
  2. What did you expect?
  3. What happened instead?
The questions will show at which part/level of knowledge you need help.
I still can't find the file for it.

Re: Customizing user forum?

Posted: Wed Apr 17, 2019 12:25 pm
by mrgoldy
In your style find the content.css: styles/prosilver/theme/content.css

Around line 700

Code: Select all

/* Poster profile block
----------------------------------------*/
.postprofile {
Directly after, add: text-align: center;

Re: Customizing user forum?

Posted: Wed Apr 17, 2019 12:26 pm
by AmigoJack
Stop full quoting my posts.

You most likely mean /styles/*/template/viewtopic_body.html and in there <dl class="postprofile" and beyond. However, I discourage from directly modifying the files - you should instead start your own style which inherits from prosilver and make your changes there.

Re: Customizing user forum?

Posted: Thu Apr 18, 2019 7:39 am
by Echo Dino
thank you all! :mrgreen:

being intro is hard

Re: Customizing user forum?

Posted: Thu Apr 18, 2019 7:46 am
by Echo Dino
but how about the avatar?

Re: Customizing user forum?

Posted: Thu Apr 18, 2019 8:16 am
by AmigoJack
The definition of .postprofile .avatar needs to be modified:
  • delete float: left;
  • add padding-left: auto; padding-right: auto;

Re: Customizing user forum?

Posted: Thu Apr 18, 2019 9:44 am
by Echo Dino
I was wondering what is that code i had seen in css file. Thank you! :D