JoomlaXplorer URL for File includes http:// but not domain

Discuss the development and implementation of Joomla! components here.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
User avatar
brett.hooker
Joomla! Apprentice
Joomla! Apprentice
Posts: 27
Joined: Sun Oct 02, 2005 12:03 pm

JoomlaXplorer URL for File includes http:// but not domain

Post by brett.hooker » Wed Dec 14, 2005 12:28 pm

When navigating directories in JoomlaXplorer, each of the file names is available as a link so that you can view the file (I'm guessing that the point of the link).

In my environment, the URL looks like this:

http://public_html/images/apply_f2.png

The domain is missing, and hence when you click on the filename you get an error.

Any tips as to why the filename URL might be incorrect?

User avatar
jenscski
Joomla! Ace
Joomla! Ace
Posts: 1468
Joined: Thu Aug 18, 2005 6:58 am
Location: Tønsberg, Norway

Re: JoomlaXplorer URL for File includes http:// but not domain

Post by jenscski » Sat Jan 07, 2006 4:41 pm

I'll guess that this is the same bugg that I experienced, and the fix for me was to change the file
administrator/components/com_joomlaxplorer/.config/conf.php

Locate the following code

Code: Select all

$dir_above = substr( $mosConfig_absolute_path, 0, strrpos( $mosConfig_absolute_path, $GLOBALS["separator"] ));
if( !is_readable($dir_above)) {
   $GLOBALS["home_dir"] = $mosConfig_absolute_path;
   // the url corresponding with the home directory: (no trailing '/')
   $GLOBALS["home_url"] = $mosConfig_live_site;
}
 else {
   $GLOBALS["home_dir"] = $dir_above;
   // the url corresponding with the home directory: (no trailing '/')
   $GLOBALS["home_url"] = substr( $mosConfig_live_site, 0, strrpos($mosConfig_live_site, '/'));
}
And replace with

Code: Select all

$GLOBALS["home_dir"] = $mosConfig_absolute_path;
$GLOBALS["home_url"] = $mosConfig_live_site;
Jens-Christian Skibakk
MMS Blog - http://mms.pipp.no/
Joomla! i Norge / Joomla! in Norway - http://www.joomlainorge.no/


Locked

Return to “Components”