Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.
Getting Group Discussion compatable with Open Graph
So when you share a "group discussion", the big social websites detect the author's avatar as the thumbnail using open graph. I'm trying to inclue the right tags so it grabs the image from the discussion itself.
I'm thinking in template/default//groups.viewdiscussions.php to include along the lines:
$discussion->message; doesn't contain authors avatar.
Additionally just adding <meta property="og:image" content="<?php echo $discussion->message; ?>" /> will not work as it will be displayed in BODY of page... so it will be ignored. Meta tags need to be displayed in HEAD of the document.
And on discussion pages there are already meta tags like this... so if you add them in head (using some php code) they will be duplicated so robots may consider it as a spam or code mistake...
To achieve what you need in here you'll have to hack core files to display other values for meta tags on discussions pages. Core hacks are not recommended nor supported as they may not working with future JomSocial releases and/or cause issues that will be not supported. Users with core files hack refuse to upgrade their installation to keep those hacks and they are stuck with outdated and unsupported versions.
- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.
- Use the "Thank You" feature on any post that helped you