RSGallery2 Support Forums
Welcome, Guest. Please login or register.

Login with username, password and session length
  Home    Forum    Help    Search    Login    Register  
*
News : December 04, 2008, 10:47:41 pm
+  RSGallery2 Support Forums
|-+  RSgallery2 support forums
| |-+  RSgallery2 bugs & problems
| | |-+  Resolved Issues (Moderators: Jonah, Daniel Tulp, Ronald Smit)
| | | |-+  [FIXED]Absolute path in HEAD
Advanced search
  « previous next »
Pages 1
Author
Topic: [FIXED]Absolute path in HEAD  (Read 5219 times)
« on: November 18, 2007, 03:43:15 pm »
Felix Lauda Offline
Newbie
*
Posts: 6



Why the paths in the HEAD section in page are defined as Server absolute paths (/data/html/webpage/www/components/...) not the Live site path (http://www.webpage.tld/components/...)?
How can I fix it? The comments, Highslide and etc. isn't functional.
Joomla 1.0.13 and RSGallery 2 1.14.0 SVN 410.
« Last Edit: November 19, 2007, 03:23:15 am by Ronald Smit » Logged
 
Reply #1
« on: November 18, 2007, 04:21:49 pm »
Ronald Smit Offline
Administrator
Hero Member
*****
Posts: 1219

WWW

Felix,

Can you specify which paths you mean, and possibly post a code sample from a browser source?

Cheers,
Logged

Ronald Smit
RSGallery2 Developer
FAQ|Known issues
 
Reply #2
« on: November 19, 2007, 03:01:00 am »
Felix Lauda Offline
Newbie
*
Posts: 6



Code:
...
<meta name="robots" content="index, follow" />
<script type="text/javascript" src="/components/com_rsgallery2/lib/j15backport/includes/media/system/js/mootools.js"></script>
<script type="text/javascript">window.addEvent('domready', function(){ var JTooltips = new Tips($$('.hasTip'), { maxTitleChars: 50, fixed: false}); });</script>
<link rel="stylesheet" type="text/css" href="/data/html/webpage/www/components/com_rsgallery2/js_highslide/highslide.css"></link>
<script type="text/javascript" src="/data/html/webpage/www/components/com_rsgallery2/js_highslide/highslide.js"></script>
<link rel="shortcut icon" href="http://www.atletika.lovosice.net/images/favicon.ico" />
...
Logged
 
Reply #3
« on: November 19, 2007, 03:22:50 am »
Ronald Smit Offline
Administrator
Hero Member
*****
Posts: 1219

WWW

You are correct.
They are mistakenly rewritten as server paths.
I will correct them and they will be part of the following Nightly Build.

If you cannot wait that long, here is the trick:
- Open up com_rsgallery2/templates/semantic/display.class.php
- Find lines 298 and 299, they look like this:
Code:
$doc->addStyleSheet(JPATH_BASE."/components/com_rsgallery2/js_highslide/highslide.css");
$doc->addScript(JPATH_BASE."/components/com_rsgallery2/js_highslide/highslide.js");

- Replace that with this:
Code:
$doc->addStyleSheet($mosConfig_live_site."/components/com_rsgallery2/js_highslide/highslide.css");
$doc->addScript($mosConfig_live_site."/components/com_rsgallery2/js_highslide/highslide.js");

(just replace JPATH_BASE with $mosConfig_live_site)

That should do the trick.

I don't see however why this would affect commenting, so perhaps that is another error.
Let me know if that is also fixed with these changes.

Cheers,

« Last Edit: November 19, 2007, 05:32:19 am by Ronald Smit » Logged

Ronald Smit
RSGallery2 Developer
FAQ|Known issues
 
Reply #4
« on: November 19, 2007, 02:08:08 pm »
Felix Lauda Offline
Newbie
*
Posts: 6



Yes, it solved my problem. But the same comes with the Comments on.
Code:
<script type="text/javascript" src="/data/html/webpage/www/components/com_rsgallery2/lib/rsgcomments/js/client.js"></script>
<link rel="stylesheet" type="text/css" href="/data/html/webpage/www/components/com_rsgallery2/lib/rsgcomments/rsgcomments.css"></link>
Logged
 
Reply #5
« on: November 19, 2007, 02:37:30 pm »
Ronald Smit Offline
Administrator
Hero Member
*****
Posts: 1219

WWW

Yep,

Found that one as well.
Also fixed in next Nightly Build.

Many thanks,

Logged

Ronald Smit
RSGallery2 Developer
FAQ|Known issues
 
Print  Pages 1
« previous next »
Jump to: