this option allows you to set the default image via URL for Open Graph image in your threads.
{"meta_title":"","meta_description":"","meta_robots":"","open_graph":"","twitter_card":"summary","canonical_url":""}
<meta property="og:image" content="{{ snippet($category.xs_seo.open_graph|strip_tags, 200)|for_attr }}" />
Please check the version of the add-on you are usingPlease check this add-on!
Because when you save a thread, you save all the associated fields, so you won't gain anything by leaving them as they are, or not, as they may still be processed unnecessarily in the code. Also, this is to avoid errors such as "Can't read title on NULL" (title is an example) etc. To avoid this, you can indeed check if such and such a field exists, but this would add to the completion of the field for nothing.And again my question: Why is it needed to save empty values in your blob?
Code:{"meta_title":"","meta_description":"","meta_robots":"","open_graph":"","twitter_card":"summary","canonical_url":""}
Why there is no:
any content? then save only this content, not the empty fields
no content? then save []
Just some more lines, right?
Or at least a cache-job or cron-job to erase all these data?
Because at the time of the recording of a thread you record all the associated fields, you will gain nothing more to leave such as it is or not, after in the code it risks to have more useless treatment
Because when you save a thread, you save all the associated fields, so you won't gain anything by leaving them as they are, or not, as they may still be processed unnecessarily in the code. Also, this is to avoid errors such as "Can't read title on NULL" (title is an example) etc. To avoid this, you can indeed check if such and such a field exists, but this would add to the completion of the field for nothing.
I have a question for you: what difference does it make to you whether it's there or not?Sorry, this is no reason!
It needs only some lines to check if the fields are empty, if so you can save "[]"
If not you can do a cron job one time at night.
Or a cache job, so people can do it one time in a month.
Please download the latest version (2.6.3 Fix 1)Who am I to tell you how to make an add-on ...
But maybe you will start with a list first and make a concept, here is what I would like to have:
ogi = og:image
XF default ogi
xf forum list ogi
xf forum ogi per forum = could be the default ogi for all threads in this forum OR
xf forum ogi as default for all threads
threads like now, but please check if attachments are working? Maybe set a hint for 851*315 (correct size?)
xf rm overview ogi
xf rm cat ogi per cat= could be the default ogi for all resources in cat OR
xf rm cat ogi as default for all resources
Please check if attachments are working? Maybe set a hint for 851*315 (correct size?)
icon makes no sense as long small?
Perfect, but maybe overkill: Choose one attachment for threads and resources
For the XF default ogi, you have to check if it is set or not!
And maybe there is another problem!
When using an og:image with 851*315 it is correct as og:image, but if you open your browser and see the list of domains you have visited last time, then this picture is used as a quadrat, means it looks wrong. I have seen this today, while i experiment with three different forums, so I could see the icon used for them and this list in the browser, when have a 851*315 instead 800*800, it looks wrong.
I have a question for you: what difference does it make to you whether it's there or not?
On your admin panel, which version is it? It says that you've had no license since November 11, 2022.I have the latest version on a client page. All the problems I have mentioned are happened in this latest version!
You're right, these fields should be columns.I don't like it when every single thread and resource, we talk about ten thousands at client server are using bytes in their database without any need.
I can give you the question back: What is the problem with adding some lines like
is the array empty? then save "[]", else save array?
If you think bigger, then you are maybe responsible for millions of threads and resources, saving around 120 bytes without any need.
And again: because we miss some fewer lines like:
is the array empty? then save "[]", else save array?
It is your add-on, do what you want, I can add a con job for my clients to get rid of this, but somehow it feels strange that a programmer asks such a question.
Yes indeed, it's in the projects!What do you think about an upload of the og:image to a directory /og with name = title_words_connected_with as a suggested filename? It is so anoying to upload pictures somewhere, and add the url into the thread.
https://www.forum.com/https://www.forum.com/data/attachments/32/32370-cbd5be37eee42e3820f8ee6d1a1f17.jpg
Ah yes, this may pose a problem for the og:image, you may have to install this addon: https://xenforo.com/community/resources/xen-soluce-display-visitor-attachments.7602/ But given the link you gave me, it doesn't explain thisI have not tested yet:
You may, should allow showing the attachment as og:image by options when the there is no permission to view for guests?
Maybe i want to use the first picture as og:image, but dont allow guests to see any pictures in the forum itself.
We use essential cookies to make this site work, and optional cookies to enhance your experience.