Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved How to get avatars to set like this in post bit?
#1
Not Solved
Hi there. I am creating a forum with MyBB Software and have come across a question. How can I make the postbit avatar set to how it shows below: 

http://imgur.com/a/MhEhO

Basically, have it have a set width, but have the height fit perfectly, if that makes sense.

My board url is: http://tunerheat.com/
Reply
#2
Not Solved
In ACP under profile options, you can try to set the dimensions like this:

40|

leaving the height blank, that way the browser will resize accordingly. Not sure if that will work. Alternatively, you edit the postbit_avatar template and change

<div class="author_avatar"><a href="{$post['profilelink_plain']}"><img src="{$useravatar['image']}" alt="" {$useravatar['width_height']} /></a></div>

to something like

<div class="author_avatar"><a href="{$post['profilelink_plain']}"><img src="{$useravatar['image']}" alt="" width="40" /></a></div>

again leaving the height attribute blank.
What goes around comes around
Reply
#3
Not Solved
(2016-10-02, 12:27 AM)Ashley1 Wrote: In ACP under profile options, you can try to set the dimensions like this:

40|

leaving the height blank, that way the browser will resize accordingly. Not sure if that will work. Alternatively, you edit the postbit_avatar template and change

<div class="author_avatar"><a href="{$post['profilelink_plain']}"><img src="{$useravatar['image']}" alt="" {$useravatar['width_height']} /></a></div>

to something like

<div class="author_avatar"><a href="{$post['profilelink_plain']}"><img src="{$useravatar['image']}" alt="" width="40" /></a></div>

again leaving the height attribute blank.

I think that may have worked. Unsure http://tunerheat.com/showthread.php?tid=2&pid=2#pid2
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)