Comendator Posted May 1, 2017 Share Posted May 1, 2017 (edited) Change Avatar Style Preview Modifie in CSS: Select the skin you want to modify, then go to Core >> front >> custom> custom.css and add this code: .cAuthorPane_photo img{ max-width: 170px; } Modifie in Template Go to Forums >> front >> topic >> postconainer and search for: <li class='cAuthorPane_photo'> {template="userPhoto" app="core" group="global" params="$comment->author(), 'large', $comment->warningRef()"} </li> Change: <li class='cAuthorPane_photo'> {{if $comment->author()->pp_main_photo}} <span class='ipsUserPhoto ipsUserPhoto_variable'> <img src="{setting="base_url"}uploads/{$comment->author()->pp_main_photo}" /> </span> {{else}} <span class='ipsUserPhoto ipsUserPhoto_variable'> <img src="<Path_to>/default_photo.png" /> </span> {{endif}} </li> Once done, save everything, and now go to the Groups. Click edit and go to the Social tab, search for: Maximum profile photo width/height Place 300 and go, save it and you're done. New size of the Avatars of your Forum will be 170x300, to change: Here changes the Length Maximum profile photo width/height And here the Width .cAuthorPane_photo img{ max-width: 170px; } Edited October 10, 2017 by Comendator 2 2 1 Quote Link to comment Share on other sites More sharing options...
Stormie Posted May 1, 2017 Share Posted May 1, 2017 Cool, cool. I like small avatars though probably wouldn't be my choice of style Quote Link to comment Share on other sites More sharing options...
Crizalid Posted May 12, 2017 Share Posted May 12, 2017 You saved my day mate thank you. Quote Link to comment Share on other sites More sharing options...
xViniciusz Posted July 6, 2017 Share Posted July 6, 2017 thanks Quote Link to comment Share on other sites More sharing options...
fuuur Posted July 10, 2017 Share Posted July 10, 2017 Do you know how to make avatar style to one that this forum using? I cant find it nowhere :/ Quote Link to comment Share on other sites More sharing options...
Isabel Posted July 14, 2017 Share Posted July 14, 2017 @Comendator Thank you so much for sharing this turorial. I have a question (my code knowledge is equal to zero): after performing this procedure, is it mandatory to use a rectangular avatar or who can still insert, for example, a square avatar? Quote Link to comment Share on other sites More sharing options...
thomas20012 Posted July 14, 2017 Share Posted July 14, 2017 Thank you for this tutorial it helped me alot Quote Link to comment Share on other sites More sharing options...
Cookie Monster Posted July 14, 2017 Share Posted July 14, 2017 On 7/10/2017 at 10:59 AM, fuuur said: Do you know how to make avatar style to one that this forum using? I cant find it nowhere :/ You use css to circle it 1 Quote Liked what i posted remember to feed me a cookie ->Or you can add a cookie to my Link to comment Share on other sites More sharing options...
Comendator Posted September 10, 2017 Author Share Posted September 10, 2017 On 14/07/2017 at 11:51 AM, Isabel said: @Comendator Thank you so much for sharing this turorial. I have a question (my code knowledge is equal to zero): after performing this procedure, is it mandatory to use a rectangular avatar or who can still insert, for example, a square avatar? You can use any avatar, however as you specified a size in the code, it is advisable to use avatars with the maximum measures imposed by you. 1 Quote Link to comment Share on other sites More sharing options...
xodiak Posted March 15, 2018 Share Posted March 15, 2018 doenst worked for me never changed . On 1.5.2017 at 11:12 PM, Comendator said: Change Avatar Style Preview Modifie in CSS: Select the skin you want to modify, then go to Core >> front >> custom> custom.css and add this code: .cAuthorPane_photo img{ max-width: 170px; } Modifie in Template Go to Forums >> front >> topic >> postconainer and search for: <li class='cAuthorPane_photo'> {template="userPhoto" app="core" group="global" params="$comment->author(), 'large', $comment->warningRef()"} </li> Change: <li class='cAuthorPane_photo'> {{if $comment->author()->pp_main_photo}} <span class='ipsUserPhoto ipsUserPhoto_variable'> <img src="{setting="base_url"}uploads/{$comment->author()->pp_main_photo}" /> </span> {{else}} <span class='ipsUserPhoto ipsUserPhoto_variable'> <img src="<Path_to>/default_photo.png" /> </span> {{endif}} </li> Once done, save everything, and now go to the Groups. Click edit and go to the Social tab, search for: Maximum profile photo width/height Place 300 and go, save it and you're done. New size of the Avatars of your Forum will be 170x300, to change: Here changes the Length Maximum profile photo width/height And here the Width .cAuthorPane_photo img{ max-width: 170px; } hey dude i do that, but it only show it me if iam in designer mode but not if i leave the mod ? Can you say something? 4.2.8 iam using. And its not like the preview screenshot . Quote Link to comment Share on other sites More sharing options...
xodiak Posted March 15, 2018 Share Posted March 15, 2018 (edited) 22 hours ago, xodiak said: doenst worked for me never changed . hey dude i do that, but it only show it me if iam in designer mode but not if i leave the mod ? Can you say something? 4.2.8 iam using. And its not like the preview screenshot . okey now its just the problem that the changes dont come without designer mode if i disable designer mode it comes the old avatar size somebody can help me? edit : problem solved Edited March 16, 2018 by xodiak edit : problem solved Quote Link to comment Share on other sites More sharing options...
xVladuTzx Posted March 19, 2018 Share Posted March 19, 2018 nice Quote Link to comment Share on other sites More sharing options...
Guest lol12345 Posted April 11, 2018 Share Posted April 11, 2018 Thank you, but when someone is hovering above someone's profile photo it should open up a panel with a preview of that person's profile. It does not. Quote Link to comment Share on other sites More sharing options...
Cookie Monster Posted April 11, 2018 Share Posted April 11, 2018 7 hours ago, lol12345 said: Thank you, but when someone is hovering above someone's profile photo it should open up a panel with a preview of that person's profile. It does not. Check the console (f12 in chrome) for errors i would guess your having a javascript error Quote Liked what i posted remember to feed me a cookie ->Or you can add a cookie to my Link to comment Share on other sites More sharing options...
Guest lol12345 Posted April 12, 2018 Share Posted April 12, 2018 (edited) problem solved. Edited April 12, 2018 by lol12345 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.