collapse

* User Info

 
 
Welcome, Guest. Please login or register.

* Recent Posts

Forum closed by whazzup
[September 25, 2021, 02:56:14 PM]


How do i replace an image file with another image file by Malu
[December 16, 2020, 03:17:02 PM]


Can't get RSG "Show My Galleries" to work by Dampfnudel
[February 25, 2019, 11:01:55 AM]


Change the order of uploaded images in the gallery by whazzup
[February 19, 2019, 10:37:29 PM]


Upload timeout for large galleries (500 images each) by whazzup
[February 11, 2019, 10:07:25 PM]


Greetings from Ronald Smit by whazzup
[January 06, 2019, 03:39:22 PM]


Pluign and module by whazzup
[June 08, 2018, 11:57:13 PM]


Version 4.4.1 released by whazzup
[May 31, 2018, 04:31:16 PM]

Author Topic: [FIXED]Absolute path in HEAD  (Read 7930 times)

Offline Felix Lauda

  • Newbie
  • *
  • Posts: 6
[FIXED]Absolute path in HEAD
« on: November 18, 2007, 09:43:15 PM »
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, 09:23:15 AM by Ronald Smit »

Offline Ronald Smit

  • Retired from Dev Team
  • Hero Member
  • ****
  • Posts: 1.215
    • RSDevelopment
Re: Absolute path in HEAD
« Reply #1 on: November 18, 2007, 10:21:49 PM »
Felix,

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

Cheers,
Ronald Smit
Retired RSGallery2 Developer
Creator of the original RSGallery component
FAQ|Known issues

Offline Felix Lauda

  • Newbie
  • *
  • Posts: 6
Re: Absolute path in HEAD
« Reply #2 on: November 19, 2007, 09:01:00 AM »
Code: [Select]
...
<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" />
...

Offline Ronald Smit

  • Retired from Dev Team
  • Hero Member
  • ****
  • Posts: 1.215
    • RSDevelopment
Re: Absolute path in HEAD
« Reply #3 on: November 19, 2007, 09:22:50 AM »
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: [Select]
$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: [Select]
$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, 11:32:19 AM by Ronald Smit »
Ronald Smit
Retired RSGallery2 Developer
Creator of the original RSGallery component
FAQ|Known issues

Offline Felix Lauda

  • Newbie
  • *
  • Posts: 6
Re: [FIXED]Absolute path in HEAD
« Reply #4 on: November 19, 2007, 08:08:08 PM »
Yes, it solved my problem. But the same comes with the Comments on.
Code: [Select]
<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>

Offline Ronald Smit

  • Retired from Dev Team
  • Hero Member
  • ****
  • Posts: 1.215
    • RSDevelopment
Re: [FIXED]Absolute path in HEAD
« Reply #5 on: November 19, 2007, 08:37:30 PM »
Yep,

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

Many thanks,

Ronald Smit
Retired RSGallery2 Developer
Creator of the original RSGallery component
FAQ|Known issues