1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Avatars - Big & Tall

Enables large-sized avatars in posts with tall aspect ratio, good for portraits.

  1. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Jake Bunce submitted a new resource:

    Avatars - Big & Tall - Enables large-sized avatars in posts with tall aspect ratio, good for portraits.

    Read more about this resource...
     
    Bob and DRE like this.
  2. DRE

    DRE Well-Known Member

    Great now I can revert changes since I had edited the core files for mine.
     
  3. yavuz

    yavuz Well-Known Member

    Can please someone make a TMS version of this? :) (y)
     
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    I just changed the instructions to use all EXTRA.css instead of having to edit the style properties as well. So now it's just EXTRA.css and message_user_info.
     
    Kaynil and Shelley like this.
  5. Shelley

    Shelley Well-Known Member

    J_borg.png

    Excellent work Jake will be trying this one out later.
     
    Andrej and Adam Howard like this.
  6. Luxus

    Luxus Well-Known Member

    You only have to edit core files if you want to change the original sizes of m, l and s avatars, created with GD library or ImageMagick. Or use an add-on.
     
  7. DRE

    DRE Well-Known Member

    I changed m.
     
  8. topcat

    topcat Well-Known Member

    done this already immediately after porting from vbulletin, I use 150 x 250 avatars in postbit and vistor panel
     
  9. JABRONI

    JABRONI Well-Known Member

    I can't get this to work for some reason. I put the code in the Extra.css & changed the Message User Info code bit.

    I am using m instead of l for my avatars. I changed my m to 150px. I don't know if that is the problem or not, but it could be. Do I have to use l?

    Edit: Apparently, I do need to use l.
     
  10. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Yeah, use the large version of the image. Medium avatars are only 96x96 and up-scaling kind of sucks. Rather than up-scaling the medium avatar these instructions use the large avatar and then downsize it.
     
  11. kingston

    kingston Well-Known Member

  12. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    In EXTRA.css, add the additional code in red:

    Code:
    .thread_view .messageList a.avatar img,
    .thread_view .quickReply a.avatar img,
    .conversation_view .messageList a.avatar img,
    .conversation_view .quickReply a.avatar img,
    .sfreview_view .messageList a.avatar img
    {
    	width: 142px;
    	height: auto;
    }
    
    .messageUserInfo
    {
    	width: 170px !important;
    }
    
    .message .messageInfo,
    #QuickReply
    {
    	margin-left: 186px !important;
    }
    
     
    kingston likes this.
  13. kingston

    kingston Well-Known Member


    Thank you!
     
  14. Gucabe

    Gucabe Member

    Is there a reason that i always get a server not responding on time error ? this happens while changing the message_user_info template
     
  15. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Possibly too many styles installed. Delete any excess styles.

    And check the log for a detailed error message:

    Admin CP -> Tools -> Server Error Log
     
  16. Gucabe

    Gucabe Member

    i see.. i have like 16 styles
     
  17. Gucabe

    Gucabe Member

    Mysqli statement execute error : Duplicate entry 'message_user_info-7' for key 'title_style_id'
    1. Zend_Db_Statement_Mysqli->_execute() in Zend/Db/Statement.php at line 297
    2. Zend_Db_Statement->execute() in Zend/Db/Adapter/Abstract.php at line 479
    3. Zend_Db_Adapter_Abstract->query() in Zend/Db/Adapter/Abstract.php at line 574
    4. Zend_Db_Adapter_Abstract->insert() in XenForo/DataWriter.php at line 1591
    5. XenForo_DataWriter->_insert() in XenForo/DataWriter.php at line 1580
    6. XenForo_DataWriter->_save() in XenForo/DataWriter.php at line 1381
    7. XenForo_DataWriter->save() in XenForo/ControllerAdmin/Template.php at line 358
    8. XenForo_ControllerAdmin_Template->actionSaveMultiple() in XenForo/FrontController.php at line 310
    9. XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
    10. XenForo_FrontController->run() in /home2/skullgar/public_html/foro/admin.php at line 13
     
  18. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Hmm. That may be a problem with your template data. Try running this query to remove the record:

    Code:
    DELETE
    FROM xf_template
    WHERE title = 'message_user_info'
    AND style_id = 7;
    
    And you should probably run /install after this to rebuild the master data.
     
  19. Gucabe

    Gucabe Member

    Ok ill try it thanks.
     
  20. kingston

    kingston Well-Known Member

    I just noticed that the user avatar in the message to post is still oversized. Any idea what that would be? Screen Shot 2013-04-25 at 11.33.55 AM.png
     

Share This Page