Images not showing on Wordpress
- ale
- User w
- Posts: 16
- Joined: Sun Jul 22, 2018 9:43 pm
Re: Images not showing on Wordpress
Yes, but it is old code I did not take a look into by years now. As I will be in place later, the related file (that can also be customized as more like) will be checked and I will be in reply here.
-
- User w
- Posts: 9
- Joined: Sat Jul 06, 2024 10:54 am
Re: Images not showing on Wordpress
Thank you, you guys are really great!
I have another wish; I would like to make the list of recent topics a bit more compact.
Like in this example; So I would like to hide the date/time and author. Is there a simple option for that? Or do I have to dive into the code?
Sorry for all my questions, but thank you very much in advance!
I have another wish; I would like to make the list of recent topics a bit more compact.
Like in this example; So I would like to hide the date/time and author. Is there a simple option for that? Or do I have to dive into the code?
Sorry for all my questions, but thank you very much in advance!
- axew3
- w3all User
- Posts: 2887
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
Re: Images not showing on Wordpress
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>
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>
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.
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 optionI have another wish; I would like to make the list of recent topics a bit more compact.
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?
- Attachments
-
- phpbb_last_topics_withimage_output_shortcode.zip
- (2.09 KiB) Downloaded 22 times
- axew3
- w3all User
- Posts: 2887
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
Re: Images not showing on Wordpress
Into this example, i did yesterday on fly, the text and image link etc appear on bottom, not on the right.
Into this test example file, you can see that it have been added a var that will be option into next plugin 2.8.8.
Display RIGHT or BOTTOM.
It seem a good param to be added.
It also have the js injected so to center the image into the popup (you'll see the image move to the center as it have been loaded).
But i figured out that there is another way to do the trick, i will complete the code asap, in the while, it is an "indecently fixed" version that work ok. In this case, testing it into a very little screen, it simply return a nice result, or the css require a good rewrite to make it display elements as they need to be on more complex and sophisticated ways
Into this test example file, you can see that it have been added a var that will be option into next plugin 2.8.8.
Display RIGHT or BOTTOM.
It seem a good param to be added.
It also have the js injected so to center the image into the popup (you'll see the image move to the center as it have been loaded).
But i figured out that there is another way to do the trick, i will complete the code asap, in the while, it is an "indecently fixed" version that work ok. In this case, testing it into a very little screen, it simply return a nice result, or the css require a good rewrite to make it display elements as they need to be on more complex and sophisticated ways
- Attachments
-
- phpbb_last_topics_withimage_output_shortcode.zip
- (2.22 KiB) Downloaded 32 times
-
- User w
- Posts: 9
- Joined: Sat Jul 06, 2024 10:54 am
Re: Images not showing on Wordpress
Thanks for all help! It works!
1 other question.
I build now phpBB in a Iframe.
If i click a link i see the URL is the original one.
But when opens, the URL change to a code.
Is are a possibility to use the original URL?
1 other question.
I build now phpBB in a Iframe.
If i click a link i see the URL is the original one.
But when opens, the URL change to a code.
Is are a possibility to use the original URL?
- axew3
- w3all User
- Posts: 2887
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
Re: Images not showing on Wordpress
You mean some like
in place of
phpBB URLs vars contains reserved wordpress terms
https://codex.wordpress.org/Reserved_Terms
so that you cannot use it and this is the reason of the base64 part of the url.
Keep in mind that the address bar you see is the one of WP not phpBB: phpBB is into the iframe, inside a WP page.
I am by long time thinking on how to fix some aspect about, and we'll see.
The involved implications are many and a complete answer would require a very but very long reply.
If any question more just post then!
Code: Select all
https://www.axew3.com/w3/forum/viewtopic.php?t=1889
Code: Select all
https://www.axew3.com/w3/forum/?coding=aW5kZXgucGhwP21hcmtfbm90aWZpY2F0aW9uPTEyMzQ4Jmhhc2g9NGUxNjVlNTQ=
phpBB URLs vars contains reserved wordpress terms
https://codex.wordpress.org/Reserved_Terms
so that you cannot use it and this is the reason of the base64 part of the url.
Keep in mind that the address bar you see is the one of WP not phpBB: phpBB is into the iframe, inside a WP page.
I am by long time thinking on how to fix some aspect about, and we'll see.
The involved implications are many and a complete answer would require a very but very long reply.
If any question more just post then!