Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
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.

meta property jomsocial frontpage

9 years 3 months ago
Licenses:
JomSocial Expired

hi, how can i change/define what is used for meta proberty in Jomsocial Frontpage? Jomsocial is on my site the Default Menu/Hompage but this values in meta property are not very usefull!?

<meta property="og:type" content="website"/>
<meta property="og:url" content="http://www.my-domain.com/"/>
<meta property="og:title" content="Willkommen bei my-domain.com"/>
<meta property="og:see_also" content="http://www.my-domain.com/index.php?option=com_community&view=frontpage&Itemid=113"/>
<meta property="og:see_also" content="http://www.my-domain.com/index.php?option=com_community&view=groups&task=display&Itemid=113"/>
<meta property="og:see_also" content="http://www.my-domain.com/index.php?option=com_community&view=photos&task=display&Itemid=113"/>
<meta property="og:see_also" content="http://www.my-domain.com/index.php?option=com_community&view=videos&task=display&Itemid=113"/>
<meta property="og:see_also" content="http://www.my-domain.com/index.php?option=com_community&view=events&task=display&Itemid=113"/>
<meta property="og:site_name" content="My Domain"/>

9 years 3 months ago
Licenses:

Hi Testcouch,

we using general function for that:
/components/com_community/helpers/head.php at line at line 83, setType function

/components/com_community/views/frontpage/view.html.php line 39

CHeadHelper::setType('website', JText::sprintf('COM_COMMUNITY_FRONTPAGE_TITLE', $config->get('sitename')));

as you can see, jomsocial hardcoded all that links. what kind of Opengraph do you like? but the customization must be done at core file.

Regards

9 years 2 months ago
Licenses:
JomSocial Expired

hi Albertus, thanks for your explanation. i have fixed some parts with changing language strings for COM_COMMUNITY_FRONTPAGE_TITLE and settings in sh404sef - Home Page Metas - social networking. but i can't change the og:see_also parts:

<meta property="og:see_also" content="http://www.my-domain.com/index.php?option=com_community&view=frontpage&Itemid=113"/>
<meta property="og:see_also" content="http://www.my-domain.com/index.php?option=com_community&view=groups&task=display&Itemid=113"/>
<meta property="og:see_also" content="http://www.my-domain.com/index.php?option=com_community&view=photos&task=display&Itemid=113"/>
<meta property="og:see_also" content="http://www.my-domain.com/index.php?option=com_community&view=videos&task=display&Itemid=113"/>
<meta property="og:see_also" content="http://www.my-domain.com/index.php?option=com_community&view=events&task=display&Itemid=113"/>

9 years 2 months ago
Licenses:

Hi Testcouch,

you can changing it by edit:
/components/com_community/helpers/head.php at line at line 134, you can see this code

case 'website':
    self::addOpengraph('og:see_also', CRoute::_(JURI::root().'index.php?option=com_community&view=frontpage'), true);
    self::addOpengraph('og:see_also', CRoute::_(JURI::root().'index.php?option=com_community&view=groups&task=display'), true);
    self::addOpengraph('og:see_also', CRoute::_(JURI::root().'index.php?option=com_community&view=photos&task=display'), true);
    self::addOpengraph('og:see_also', CRoute::_(JURI::root().'index.php?option=com_community&view=videos&task=display'), true);
    self::addOpengraph('og:see_also', CRoute::_(JURI::root().'index.php?option=com_community&view=events&task=display'), true);
    self::addOpengraph('og:site_name', JFactory::getConfig()->get('sitename'));
    break;
you can changing that URL, but no need to put itemid. item ID will automatically injected by joomla.
e.g: you only need changing
index.php?option=com_community&view=frontpage
to something else

Regards

9 years 2 months ago
Licenses:
JomSocial Expired

hi Albertus,

thanks fot your pointing to correct lines. can i add here also Urls wich point to other installed Components? i ask because all currently added jomsocial Urls for og:see_also only viewable for logged in User!

can you explain in general what's the purpose of the og:see_also Urls? for me it's not clear because in facebook debug tools it's not showed anything about this additional see also Urls.

Edit: Facebook debuger shows also a warning:
The 'og:image' property should be explicitly provided, even if a value can be inferred from other tags.

How can i define a og:image in head.php?

9 years 2 months ago
Licenses:

Hi,

1)
yes you can. if turned off joomla SEF and visit any component page at frontend or if you going to menu item detail at joomla menu manager. you can see the link like:
index.php?option=[something...]&[something...]
use that link at opengraph.

2)
about og:see_also is too technical, here the link that may explain it in better:
stackoverflow.com/questions/24157235/ope...rameter-using-method

3)
for og:image you can put new line code at there:

self::addOpengraph('og:see_also', [put your image URL at here], true);

Regards

9 years 2 months ago
Licenses:
JomSocial Expired

Albertus wrote: Hi,
3)
for og:image you can put new line code at there:

self::addOpengraph('og:see_also', [put your image URL at here], true);

Regards


hi Albertus, i get a blank white page on frontend if i add the following in head.php:
self::addOpengraph('og:type', $type);
          self::addOpengraph('og:url', JURI::getInstance()->toString());
          self::addOpengraph('og:title', $title);
	  self::addOpengraph('og:see_also', [http://www.my-domain.de/images/content/logos/opengraph.jpg], true);

9 years 2 months ago
Licenses:

Hi,

the code must be like this:

self::addOpengraph('og:type', $type);
self::addOpengraph('og:url', JURI::getInstance()->toString());
self::addOpengraph('og:title', $title);
self::addOpengraph('og:see_also', 'http://www.my-domain.de/images/content/logos/opengraph.jpg', true);

Regards

9 years 2 months ago
Licenses:
JomSocial Expired

i tried with:

self::addOpengraph('og:image', 'http://www.my-domain.de/images/content/logos/opengraph.jpg', true);

but FB Open Graph Object Debugger shows still:
og:image could not be downloaded or is too small

opengraph.jpg is 274x220

9 years 2 months ago
Licenses:

Hi Testcouch,

that facebook issue:
1. try using this developers.facebook.com/tools/debug/
2. or stackoverflow.com/questions/15134090/fb-...n-though-it-is-large
put any random number at the end of URL eg: self::addOpengraph('og:image', ' www.my-domain.de/images/content/logos/opengraph.jpg?t=12345 ', true);

Regards

The following user(s) said Thank You: testcouch
9 years 2 months ago
Licenses:
JomSocial Expired

Albertus wrote: Hi Testcouch,

that facebook issue:
1. try using this developers.facebook.com/tools/debug/
2. or stackoverflow.com/questions/15134090/fb-...n-though-it-is-large
put any random number at the end of URL eg: self::addOpengraph('og:image', ' www.my-domain.de/images/content/logos/opengraph.jpg?t=12345 ', true);

Regards


hi Albertus, thanks for your links but the random number was not needed. today it works..but i have a additional question. i have seen that in my sh404SEF Home Page Meta are much more Social Network settings!

But if i enable also sh404sef opengraph settings i get some opengraph double. Can you show me wich lines i have to remove/comment from head.php ore other file to disable JS OpenGraph on Frontpage?

9 years 2 months ago
Licenses:

Hi,

you can remove all code start with

self::addOpengraph

at head.php

Regards

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW