Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 05 Apr 2018, 01:55
shibby2 shibby2 is offline
 
Join Date: Jul 2005
Resizing avatars in postbit?

Hey guys, I'm making a mobile skin and would like to display the poster's avatar next to their name in postbit_legacy. I added the bit of code to do this, but since it's a mobile skin, the avatars are way too big.

How would I go about to make them smaller, just for that skin? Don't know exactly what size I would want just yet, guess it will take some testing, but they have to definitely be smaller.

Any help would be awesome, thanks!

--------------- Added 05 Apr 2018 at 02:23 ---------------

I actually figured it out.. somewhat. This is my code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.



Only thing is, some of the avatars come out as rectangles (tall and thin). Is there a way to make them perfectly square instead of rectangle?

Last edited by shibby2; 05 Apr 2018 at 02:24.
Reply With Quote
  #2  
Old 07 Apr 2018, 01:12
shibby2 shibby2 is offline
 
Join Date: Jul 2005
Anyone? It seems with the code above, the height changes to 40px, but the width can vary.

Any way around this?

Thanks!
Reply With Quote
  #3  
Old 07 Apr 2018, 01:23
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
Try using the "style" attribute instead to introduce inline CSS...like:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #4  
Old 08 Apr 2018, 22:30
shibby2 shibby2 is offline
 
Join Date: Jul 2005
Hmm, for some reason that made the avatars bigger, and some of them are still rectangles rather than squares.
Reply With Quote
  #5  
Old 08 Apr 2018, 23:35
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
You must have CSS elsewhere taking precedence. Try:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #6  
Old 09 Apr 2018, 00:20
shibby2 shibby2 is offline
 
Join Date: Jul 2005
That did the same.
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto resizing of avatars Dmitriy vBulletin 2.x Full Releases 28 09 Feb 2004 17:05



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 11:40.

Layout Options | Width: Wide Color: