Topic-icon need help

Active Subscriptions:

None
9 years 11 months ago #44049 by canadareic
need help was created by canadareic
hello Unfortunately I would like to ask you for help. with the post

www.sourcecoast.com/forums/non-commercia...-in-default-location

our physical files are located in

/home/username/subdomains/master/public_html/

and in /home/username/public_html we use only simlinks

I tried to solve this issue with your suggestions from previous post ( above) Unfortunately I'm not Php developer

NetworkError: 404 Not Found - www.domain.com/home/username/subdomains/.../sclogin/default.css"
and also missing www.domain.com/home/username/subdomains/...ogin/sourcecoast.css

Thank you very much
The topic has been locked.
Support Specialist
9 years 11 months ago #44057 by alzander
Replied by alzander on topic need help
Looking at your issue and what I posted before, I'd recommend updating the /modules/mod_sclogin/mod_sclogin.php file as mentioned before. Around line 91, you'll see the following block, which is what I had you modify before:
$paths = array();
$paths[] = JPATH_ROOT . '/templates/' . JFactory::getApplication()->getTemplate() . '/html/mod_sclogin/themes/';
$paths[] = JPATH_ROOT . '/media/sourcecoast/themes/sclogin/';
$theme = $params->get('theme', 'default.css');
$file = JPath::find($paths, $theme);
$file = str_replace(JPATH_SITE, '', $file);
$file = str_replace('\\', "/", $file); //Windows support for file separators
$document->addStyleSheet(JURI::base(true) . $file);

What you'll want to do is declare a new variable that we'll use instead of JPATH_ROOT, since it sounds like your Joomla root is different than what it would normally be. To do that, try:
$paths = array();
$physicalPath = '/home/username/subdomains/master/public_html/';
$paths[] = $physicalPath . '/templates/' . JFactory::getApplication()->getTemplate() . '/html/mod_sclogin/themes/';
$paths[] = $physicalPath . '/media/sourcecoast/themes/sclogin/';
$theme = $params->get('theme', 'default.css');
$file = JPath::find($paths, $theme);
$file = str_replace($physicalPath, '', $file);
$file = str_replace('\\', "/", $file); //Windows support for file separators
$document->addStyleSheet(JURI::base(true) . $file);

I'm honestly not sure why the symlinks doesn't work with the original code we have as it should, but hopefully the above fix gets you going.

Keep me posted, and good luck!
Alex
The topic has been locked.
Active Subscriptions:

None
9 years 11 months ago #44061 by canadareic
Replied by canadareic on topic need help
Thank you very much

I dont see any more error :)
The topic has been locked.
Support Specialist
9 years 11 months ago #44064 by alzander
Replied by alzander on topic need help
Awesome! Glad to hear that helped get you going. If you run into anything else, just let me know.

Thanks,
Alex
The topic has been locked.