Announcement

Collapse
No announcement yet.

Max size in profile picture?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Max size in profile picture?

    Hello all!
    I want "to control" the max size of the profile picture, but only in one style. Everybody can upload a 300 x 400 px profilepic from the groups settings, but i need this picture to 200 x 200 px only for one specific style in the profile.

    I tried the 'blog_sidebar_user' tamplate on the 'memberinfo' template, but doesn't work:


    PHP Code:
    <a href="member.php?$session[sessionurl]u=$userinfo[userid]"><img src="$userinfo[profilepicurl]$userinfo[ppwidth$userinfo[ppheightalt="<phrase 1="$userinfo[username]">$vbphrase[xs_profilepic]</phrase>" border="0" class="alt2" style="<if condition="$userinfo['ppwidthpx'] > 200">max-width:200px; height:auto; width:auto !important; width:200px<else />display:inline</if>" /></a

    Please, somebody?

  • #2
    Admin CP > Usergroups > Usergroup Manager > (Select Group) Edit Usergroup -> Picture Uploading Permissions

    Comment


    • #3
      I'm sorry, but ... did you read my question?

      Comment


      • #4
        #template: memberinfo_block_profilepicture
        #replace with height="???" width="???" attributes

        Code:
        <img src="$prepared[profilepicurl]" $prepared[profilepicsize] alt="<phrase 1="$prepared[username]">$vbphrase[xs_picture]</phrase>" />
        Just read title as it was easier to read....

        Comment


        • #5
          Cool, was perfect! Thanks alot man ... you're the man!

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...
          X