Resize Avatars (avatar of poster on index and viewforum)

Support for mods released by phpbbmodders.net found at either https://github.com/phpbbmodders/ or the MODDB at http://www.phpbb.com
Forum rules
Please only request support for mods released by phpbbmodders.net found at either https://github.com/phpbbmodders/ or the MODDB at http://www.phpbb.com
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Madalin
New member
New member
Posts: 20
Joined: 12 May 2014, 17:53
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Resize Avatars (avatar of poster on index and viewforum)

Postby Madalin » 02 Oct 2014, 13:32

Hello,

How i can modify width & height of avatars in this mod: https://www.phpbb.com/customise/db/mod/avatar_of_poster_on_index_and_viewforum/ , without edit in acp avatars size.. ?

[img]http://i.imgur.com/HocOzWu.png[/img]

- i want this to be like no-avatar :D

User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Resize Avatars (avatar of poster on index and viewforum)

Postby RMcGirr83 » 02 Oct 2014, 14:30


Madalin
New member
New member
Posts: 20
Joined: 12 May 2014, 17:53
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Resize Avatars (avatar of poster on index and viewforum)

Postby Madalin » 03 Oct 2014, 05:20


User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Resize Avatars (avatar of poster on index and viewforum)

Postby RMcGirr83 » 03 Oct 2014, 09:14

I didn't provide you any code and am not sure what you mean by "I changed actually code with your code...".

Madalin
New member
New member
Posts: 20
Joined: 12 May 2014, 17:53
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Resize Avatars (avatar of poster on index and viewforum)

Postby Madalin » 03 Oct 2014, 11:14


User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Resize Avatars (avatar of poster on index and viewforum)

Postby RMcGirr83 » 04 Oct 2014, 11:35

That mod adds a new config entry called avatar_max_dimensions which is found in the ACP under the avatar settings it looks like. You just change the dimensions set there. Nothing to do with editing code.

Madalin
New member
New member
Posts: 20
Joined: 12 May 2014, 17:53
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Resize Avatars (avatar of poster on index and viewforum)

Postby Madalin » 04 Oct 2014, 18:43


User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Resize Avatars (avatar of poster on index and viewforum)

Postby RMcGirr83 » 04 Oct 2014, 19:16

You aren't understanding what I am telling you. The mod has settings that are separate from the forum settings for avatars

User avatar
Sniper_E
MOD Team
MOD Team
Posts: 591
Joined: 13 Jun 2011, 16:53
Location: Shreveport, LA
Contact:

Re: Resize Avatars (avatar of poster on index and viewforum)

Postby Sniper_E » 04 Oct 2014, 19:20

Madalin, go to ACP / General tab / Avatar settings / Avatar of Poster on Index and Viewforum (scroll down to the bottom to see this...)

The settings there will only effect the avatars of the posters in the Index and Viewforum shown in this mod
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™

Madalin
New member
New member
Posts: 20
Joined: 12 May 2014, 17:53
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Resize Avatars (avatar of poster on index and viewforum)

Postby Madalin » 04 Oct 2014, 22:14


User avatar
Sniper_E
MOD Team
MOD Team
Posts: 591
Joined: 13 Jun 2011, 16:53
Location: Shreveport, LA
Contact:

Re: Resize Avatars (avatar of poster on index and viewforum)

Postby Sniper_E » 04 Oct 2014, 23:20

The image you show in your post looks fake like wrong. The top image has more height than the bottom image.
They are not both 40px in height. There is something off there.

This mod will not let an image be more than 40px width OR more than 40px height if that is your max setting.

If a person has an avatar 90px wide by 120px high it will resize it 30px wide by 40px height.
If a person has an avatar 120px wide by 90px high it will resize it 40px wide by 30px height.
It will never exceed max width or max height but will show it proportional to it's true size.

By you wanting to make an image like that square, it will distort the image. That's just wrong.
Why not just be happy with the mod because it's fine just the way it is to me.
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™

User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Resize Avatars (avatar of poster on index and viewforum)

Postby RMcGirr83 » 05 Oct 2014, 00:25



[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “Modders MOD support”

Who is online

Users browsing this forum: No registered users and 23 guests