A very primitive MyBB plugin for showing Open Graph metas in forum/thread/etc. modules.
- Output Open Graph metas for various forum modules. Read the Open Graph protocol: https://ogp.me/.
- No template editing requires.
- Search-engine-friendly-URLs-aware
og:url
. - Customizable fallback description for
og:description
, now via file editing. - Customizable fallback image for
og:image
, now via file editing. - Customizable
og:image
for threads/posts, now via file editing. - Supported modules:
- Forums:
og:description
: the forum's description or fallback description.og:image
: fallback image or current viewer's theme logo.
- Threads in linear view mode:
og:description
: the message content of the first post in current viewing page.og:image
(selectable via file editing):- images attached to posts in thread, attachments;
- (*) images embedded in posts in thread, using [img] tag;
- the avatar of the first post author's;
- fallback image.
- Posts / Threads in threaded view mode:
og:description
: the message content of current post.og:image
(selectable via file editing):- images attached to current post, attachments;
- (*) images embedded in current post, using [img] tag;
- current post author's avatar;
- fallback image.
- Member profiles:
og:description
: the member's signature, if applicable.og:image
: the member's avatar.
- Other pages not fully supported:
- Portal
- Member list
- Search
- Calendar
- Help
- Forums:
- (*) features not implemented yet.
- Images that use attachments/thumnails for threads and posts are served by using MyBB's attachment script, which are not static files.
- MyBB 1.8.x
- Download & unzip.
- Upload files under
Upload/
folder, please maintain the folder structure. - Turn to MyBB's AdminCP > Configuration > Plugins, find Open Graph Metas and activate it.
- Turn to MyBB's AdminCP > Configuration > Plugins, find Open Graph Metas and deactivate it.
- Remove file
./inc/plugins/open_graph_metas.php
from your server.
- This plugin tends to get changed before its stable release. Please use with caution.
- Plugin name may be changed to Social Integrations or sort of, if more related social integrations for information sharing, for example Twitter Card Tags, have been added.
- Folder structure may change during version upgrades.