3.3.x Extensions Database 3.2 / 3.3Topic Image

<span class="qte-attr qte_32_33-qte">3.2.x & 3.3.x</span>
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

medic
Users
Users
Status: Offline
User theme: Dark
Posts: 31
Joined: May 29th, '21, 19:52
    Android Chrome

Re: Topic Image

Post by medic »

Grabbing images server error request time out
I set search to 100 topics with 5000 msec
I see this error



Topic image folder empty

Most of my forums image are uploaded to imgur server

I tested one image uploaded with extension img-uplod same problem

I don't see any topic image in index :???:
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

medic
Users
Users
Status: Offline
User theme: Dark
Posts: 31
Joined: May 29th, '21, 19:52
    Windows 10 Chrome

Re: Topic Image

Post by medic »

Perhaps the problem is in my topics bbcode

The extension alt image change the code of the image this why I can't use this extension

Code: Select all

[img alt="amis-med]image link[/img]
Is there a way how to fix it plz

this is how my topics are set

Code: Select all

[table][tr][td]
[align=center][img]https://i.postimg.cc/PJfJWqHp/entete-amis-med.png[/img]
[b]
[color=red][size=150]Titre du sujet[/size][/color]

[img alt="amis-med publications"]Lien de l'image du livre[/img]

[img alt=téléchargement"]https://i.imgur.com/dRNvKxI.png[/img]


[/b]
[img]https://i.postimg.cc/Dw4ZdD9g/footer-amis-med.png[/img][/align]

 [/td][/tr][/table]
 
Thank you

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Sniper_E
VIP
VIP
Status: Offline
User theme: Dark
Posts: 1160
Joined: Oct 14th, '14, 17:01
    Windows 10 Firefox

Re: Topic Image

Post by Sniper_E »

This line is not using a image url between the [url tags
[im g alt="amis-med publications"]Lien de l'image du livre[/img]

This line has a missing " after the alt=
[im g alt=téléchargement"]https://i.imgur.com/dRNvKxI.png[/img]

And I have no idea what your question is.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

medic
Users
Users
Status: Offline
User theme: Dark
Posts: 31
Joined: May 29th, '21, 19:52
    Android Chrome

Re: Topic Image

Post by medic »

My English is not that good thanks for the answer

Topic image extension to work need to grab image from topics

After I grab images I check imagetopic folder is umpty and no image show in the index so I thought the problem maybe from my BB code of topics

Here is an example of topic recently posted

Code: Select all

[table][tr][td]
[align=center][img]https://i.postimg.cc/PJfJWqHp/entete-amis-med.png[/img]
[b]
[color=red][size=150][b]Cecil Médicine Cancérologie[/b][/size][/color]

[img]https://i.imgur.com/4PqYGRU.jpg[/img]

[img alt="téléchargement"]https://i.imgur.com/dRNvKxI.png[/img]

https://www.gulf-up.com/qmlu9i05z91g

ou 

https://mega.nz/file/gJYiHLIR#7f7JKC1VUC92s4oDJAPm8qoBDvnTgt1idbqtGZDf5Yc
[/b]
[img]https://i.postimg.cc/Dw4ZdD9g/footer-amis-med.png[/img][/align]

 [/td][/tr][/table]
The question why image the big one didn't show in the extension

Is it because the table code ?!

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

medic
Users
Users
Status: Offline
User theme: Dark
Posts: 31
Joined: May 29th, '21, 19:52
    Android Chrome

Re: Topic Image

Post by medic »

Up plz

I need this extension plz help me fix it

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Topic Author
dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6483
Joined: Jan 13th, '14, 20:45
    Windows 10 Chrome

Re: Topic Image

Post by dmzx »

medic wrote: Jun 17th, '21, 08:20 My English is not that good thanks for the answer

Topic image extension to work need to grab image from topics

After I grab images I check imagetopic folder is umpty and no image show in the index so I thought the problem maybe from my BB code of topics

Here is an example of topic recently posted

Code: Select all

[table][tr][td]
[align=center][img]https://i.postimg.cc/PJfJWqHp/entete-amis-med.png[/img]
[b]
[color=red][size=150][b]Cecil Médicine Cancérologie[/b][/size][/color]

[img]https://i.imgur.com/4PqYGRU.jpg[/img]

[img alt="téléchargement"]https://i.imgur.com/dRNvKxI.png[/img]

https://www.gulf-up.com/qmlu9i05z91g

ou 

https://mega.nz/file/gJYiHLIR#7f7JKC1VUC92s4oDJAPm8qoBDvnTgt1idbqtGZDf5Yc
[/b]
[img]https://i.postimg.cc/Dw4ZdD9g/footer-amis-med.png[/img][/align]

 [/td][/tr][/table]
The question why image the big one didn't show in the extension

Is it because the table code ?!
If the images are on a small size it will not be taken to thumbnail.
Try to set the Set size in ACP to 60 and grab the images again to see if they are taken.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

medic
Users
Users
Status: Offline
User theme: Dark
Posts: 31
Joined: May 29th, '21, 19:52
    Android Chrome

Re: Topic Image

Post by medic »

Tx for reply I set for 60 it didn't grab anything

the images i want grab it's the big one the book image
Like the one in the attachment

I fix topics to 100 to avoid error request timeout

Imgur thambnail set to 160*160 px

Most of images are over 200*200 px
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

medic
Users
Users
Status: Offline
User theme: Dark
Posts: 31
Joined: May 29th, '21, 19:52
    Android Chrome

Re: Topic Image

Post by medic »

Plz any solution for my problem

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Topic Author
dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6483
Joined: Jan 13th, '14, 20:45
    Windows 10 Chrome

Re: Topic Image

Post by dmzx »

medic wrote: Jun 22nd, '21, 13:25 Plz any solution for my problem
In below code what is the real image?

Code: Select all

[table][tr][td]
[align=center][img]https://i.postimg.cc/PJfJWqHp/entete-amis-med.png[/img]
[b]
[color=red][size=150][b]Cecil Médicine Cancérologie[/b][/size][/color]

[img]https://i.imgur.com/4PqYGRU.jpg[/img]

[img alt="téléchargement"]https://i.imgur.com/dRNvKxI.png[/img]

https://www.gulf-up.com/qmlu9i05z91g

ou 

https://mega.nz/file/gJYiHLIR#7f7JKC1VUC92s4oDJAPm8qoBDvnTgt1idbqtGZDf5Yc
[/b]
[img]https://i.postimg.cc/Dw4ZdD9g/footer-amis-med.png[/img][/align]

 [/td][/tr][/table]
The extension looks at the first [img] so if that is small it will not take it.

Make a test topic with only 1 [img] file and test it.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

medic
Users
Users
Status: Offline
User theme: Dark
Posts: 31
Joined: May 29th, '21, 19:52
    Android Chrome

Re: Topic Image

Post by medic »

Tx for answer

The second one in my code the second picture that I want to be used is there a way to change from picture one to the second when grabbing

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

medic
Users
Users
Status: Offline
User theme: Dark
Posts: 31
Joined: May 29th, '21, 19:52
    Windows 10 Chrome

Re: Topic Image

Post by medic »

Plz i use this set oderer for most all topics
1-image header
2-title
3-image the big one i need to be show in the index
4- texte
5- image as footer

so is there a way to grab the second image its always the big one

thank you

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

clight77
Donator
Donator
Status: Offline
User theme: Dark
Posts: 504
Joined: Sep 24th, '15, 14:23
    Windows 10 Chrome

Re: Topic Image

Post by clight77 »

Try this ext with Topic Image.
It is Topic Image Preview and you can select 1st or 2nd image I believe, this ext shows your selected images in forum posts.
If you choose 2nd image it may force Topic Image ext to use that choice.

Worth a try.
https://github.com/iMattPro/TopicImagePreview

Sample
Image

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

medic
Users
Users
Status: Offline
User theme: Dark
Posts: 31
Joined: May 29th, '21, 19:52
    Windows 10 Chrome

Re: Topic Image

Post by medic »

Tx for your reply i tried the extesion topicimagepreview you can just shoose the number of images u can show u cant choose wich one you show

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

clight77
Donator
Donator
Status: Offline
User theme: Dark
Posts: 504
Joined: Sep 24th, '15, 14:23
    Windows 10 Chrome

Re: Topic Image

Post by clight77 »

medic wrote: Jun 29th, '21, 21:51 tx for your reply i tried the extesion topicimagepreview you can just shoose the number of images u can show u cant choose wich one you show
Ah, sorry, it must have been the old version that allowed you to select that.. :(

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

clight77
Donator
Donator
Status: Offline
User theme: Dark
Posts: 504
Joined: Sep 24th, '15, 14:23
    Windows 10 Chrome

Re: Topic Image

Post by clight77 »

What exactly do you put in the subject area when you make a new post? Topic Image picks out the 1st image no matter the order.. Least it does for me.
Your index and footer should not have anything to do with images in any post.