I'm using the jomsocial as a intranet.
The jomsocial don't has the ACL control to specific a group of use to see the menu (jconfig params)
After you do the login in backend, go to link
www.cagece.com.br/social/administrator/i...option=com_community
to access the jomsocial
To see the front-end, there is a bug in jomsocial
I use the proxy reverse to put this in my domain, but the jomsocial alway try to get the files from the original URL, not the actual URL, like all the others components from joomla.
For exemple, the original server is 172.25.131.107, but I'm accessing the jomscial in another server, using the address
www.cagece.com.br/social
In firebug we can see the networking request to local ip and not to proxy server. It's happen because the jomsocial uses the absolute urls and not the relative urls.
Hi Otavio,
Can you try check Joomla configuration.php and check this var $live_site, make sure the value is "
www.cagece.com.br/
"
thank you
The var $live_site is empty. I need put this? In other sites I always use this with empty value.
The server that has the jomsocial should be accessible by the internet e intranet.
But I put the value and the same happens.
Just some files don't load correctly, like:
Avatars
Css e js from com_comunity/assets
font from com_comunity/templates
this files always use the absolute url.
my $live_site is now "
www.cagece.com.br/social
"
I'm using the joomla 3.3
I have another problem from jomsocial. The component injects this in my homepage:
/*<![CDATA[*/
var jax_live_site = '
cagece.com.br/social/index.php
';
var jax_token_var='a5b83957fd586110296b2e5177c9dc6e';
/*]]>*/
but the url is wrong. It's coming without the "www"
I don't know the why of jomsocial don't works well using the proxy server (apache function), but I created some temporary code to fix it.
It isn't the best way to do it, but I hope that you guys can give me a better solution.
My solutions is put this code above in index.php of the template.
if (array_key_exists('HTTP_X_FORWARDED_HOST', $_SERVER)) {
$doc->_links = array('http://'.$_SERVER['HTTP_X_FORWARDED_HOST'].'/social/' => $doc->_links['http://'.$_SERVER['HTTP_HOST'].'/social/']);
$doc->base = str_replace($_SERVER['HTTP_HOST'], $_SERVER['HTTP_X_FORWARDED_HOST'], $doc->base);
$temp = array();
foreach($doc->_custom as $k => $d) {
$pos = strpos($d, 'http://');
if ($pos && substr($d, $pos, 8) != 'http://w') {
$d = str_replace('http://', 'http://www.', $d);
}
$d = str_replace($_SERVER['HTTP_HOST'], $_SERVER['HTTP_X_FORWARDED_HOST'], $d);
$temp[$k] = $d;
}
$doc->_custom = $temp;
}
Hi Otavio,
I am not sure this issue caused by Jomsocial itself or from Joomla, because we are using route method from Joomla itself JRoute function, are you use this issue only happens on jomsocial and doesnt happen on another component?
I also check your site last week, and I even cant access your site because (Joomla pages not Jomsocial)
thank you
For time being I suggest you use your own solution, we still cant find the issue on jomsocial route, since jomsocial is using route from Joomla Route itself.