Peerke wrote: ↑Sat Jul 06, 2024 3:13 pm
Another question;
Is there a solution to automatic resize the images when display the post with images? (w3allastopicswithimage)
So i just looked into the file
/wp-content/plugins/wp-w3all-phpbb-integration/views/phpbb_last_topics_withimage_output_shortcode.php
i maybe understand the reason of your question about image dimension because as it was, images are very big, and going outside the screen?
I just fixed it as you can see here, with a more decent result:
https://www.axew3.com/w3/phpbb-grid-lis ... tachments/
To fix it like this, i just changed this line
Code: Select all
echo '<a style="border:0;margin:0;text-decoration:none;color:transparent" href="'.$w3all_url_to_cms.'/download/file.php?id='.$w3topic->attach_id.'&TB_iframe=true" class="thickbox"><img alt="'.$w3topic->topic_title.'" src="'.$w3all_url_to_cms.'/download/file.php?id='.$w3topic->attach_id.'" /></a>
into this:
Code: Select all
echo '<a style="border:0;margin:0;text-decoration:none;color:transparent" href="'.$w3all_url_to_cms.'/download/file.php?id='.$w3topic->attach_id.'&TB_iframe=true" class="thickbox"><img style="width:100%" alt="'.$w3topic->topic_title.'" src="'.$w3all_url_to_cms.'/download/file.php?id='.$w3topic->attach_id.'" /></a>
so substantially adding
style="width:100%" to the
img tag.
Without this, i seen that images were too big. The result is the above now into gutenberg or common themes.
Bug:
I also see that the addition of the shortcode on posts or pages, when we try to add it and the phpBB posts to be retrieved are not found into the specified phpBB cat, the page/post update on WP fall into a JSON error (and even if the shortcode is added and the page created, the error come out). It has been fixed, and 2.8.8 is coming probably within tomorrow fixed about this.
It is a big mess this file
/wp-content/plugins/wp-w3all-phpbb-integration/views/phpbb_last_topics_withimage_output_shortcode.php
that works very well, but i understand that to be customized maybe is not so easy, especially because full of unwanted things on it.
It will be soon cleaned and improved.
I have another wish; I would like to make the list of recent topics a bit more compact.
all files into the views folder can be customized as more like, and to not loose changes when the plugin will update, you should activate the option
Use custom files to display Last Topics Widgets, Login Widget and Shortcodes
and read inline hints.
Which last topics are you using? The block on gutenberg, the shortcode or the widget?