Image sizes

stigzler
User w
User w
Posts: 10
Joined: Wed Sep 12, 2018 6:29 am

Image sizes

Post by stigzler » Thu Mar 28, 2019 10:54 am

Hi.

I have WP-phpbb working nicely - thank you!

However, the avatar images in the forums (i understand these are essentially hotlinks to files in the WP installation) are sized at 50x50. How does this work - what determines this size? Can we choose a different size?

thanks!

User avatar
axew3
w3all User
w3all User
Posts: 1627
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: Image sizes

Post by axew3 » Thu Mar 28, 2019 9:07 pm

hello!
There is option into plugin admin
Last Forums Topics Widget avatar's dimension
change into a value you want.

the custom wild way:
assuming you're using widget last topics, then you'll open the file
/wp-content/plugins/wp-w3all-phpbb-integration/views/phpbb_last_topics.php
or any of the files within this folder, if using any other to output shortcodes etc.

search for these lines of code (and may read inline hints):

Code: Select all

get_avatar(0, $w3all_last_t_avatar_dim);
for example change into

Code: Select all

get_avatar(0, 100);
if you want 100px img output.

If you like to customize these files inside the folder
/wp-content/plugins/wp-w3all-phpbb-integration/views/
then may consider to use custom files, as suggested on admin plugin option:
Use custom files to display Last Topics Widgets, Login Widget or Last Topics Shortcode content
All files customized and placed on custom folder as suggested will not be overwritten on plugin update.
Consider that all these files will be updated presumably before 2.0.0 plugin release.
Do not copy/paste the config.php file into the custom folder.

Post Reply