Blogs and forums aren't providing the same contents. A blog has articles, whith head picture and text (chapo) and content (article), when a forum has only threads (article).
It could be possible to add a "thread head picture" in a thread, with a plugin, but you have to ask it in the good section an have a reflexion on how you want to make it working: first picture in the thread or a custom MyCode like [headimg]...[/headimg] ?
thanks for reply
I can't find any plugin or code for it
I want to use first image in thread as features image for social media share
thanks
Hi,
what I use it's a default image (of my forum's brand).
Just add it in your
headerinclude template:
<meta property="og:image" content="https://your.forum/images/forum-logo.png" />
<meta property="og:image:secure_url" content="https://your.forum/images/forum-logo.png" />
This image will not change, but it's better than nothing
(2019-05-05, 07:27 AM)faran Wrote: [ -> ]thanks for reply
I can't find any plugin or code for it
I want to use first image in thread as features image for social media share
thanks
So you need a plugin (I know, it doesn't exist yet) because the meta property must be in the header of the page. And I'm not sure it's really easy to do that: the image is in a post (postbit), so not directly accessible by the page's hooks.
(2019-05-05, 01:58 PM)faran Wrote: [ -> ]I have find one https://mods.mybb.com/view/facebook-open...-meta-tags
but its not for 1.8
hopefully it will be update for new mybb
thanks
Did you change
"compatibility" => "14*,16*" into:
"compatibility" => "18*" in the pbmeta.php file on line 39?
return array(
"name" => $lang->fbmeta,
"description" => $donate_button.$lang->fbmeta_description,
"website" => "",
"author" => "Aries-Belgium",
"authorsite" => "http://community.mybb.com/user-3840.html",
"version" => "1.1",
"guid" => "9ba1f4b99c389cc43a1886408eaa3acc",
"compatibility" => "14*,16*"