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

Login with username, password and session length
  Home    Forum    Help    Search    Login    Register  
*
News : November 21, 2008, 05:56:57 am
+  RSGallery2 Support Forums
|-+  RSgallery2 support forums
| |-+  RSgallery2 bugs & problems (Moderators: Jonah, Tomislav Ribicic, Daniel Tulp, Ronald Smit)
| | |-+  [solved] images urls questions
Advanced search
  « previous next »
Pages 1
Author
Topic: [solved] images urls questions  (Read 1701 times)
« on: August 14, 2008, 11:52:58 am »
schlogo Offline
Jr. Member
**
Posts: 54

View Profile Email

I am running for now 2 sites with rsgallery svn 839 on joomla 1.5.6. Here s a question regarding the urls. Some urls i simply uploaded in the gallery admin, I see this kind of urls

http://www.domain.com//images/rsgallery/display/pocatiere.jpg.jpg

the question is why do i get // between the domain name and the images directory and why do they get named jp.jpg ?

any idea?
« Last Edit: August 26, 2008, 03:58:25 pm by schlogo » Logged
 
Reply #1
« on: August 21, 2008, 06:20:57 am »
schlogo Offline
Jr. Member
**
Posts: 54

View Profile Email

can someone check on its website, if runnong build 829, that they have the same paths  construction ?
Logged
 
Reply #2
« on: August 24, 2008, 06:03:03 pm »
schlogo Offline
Jr. Member
**
Posts: 54

View Profile Email

so, I ve checked the entire site, rsgallery is the only part having those urls with many slashes

here s the code that displays the url.

 src="<?php echo $thumb->url(); ?>" />

Can someone tell if there s another way to build it?

Tks
Logged
 
Reply #3
« on: August 26, 2008, 05:59:31 am »
schlogo Offline
Jr. Member
**
Posts: 54

View Profile Email

i ve tried to move the site to a different server, different version of php. Still I get the same urls with many slashes  in it , in the images paths and only in rsgallery, any idea?any help would be really welcome.
Logged
 
Reply #4
« on: August 26, 2008, 03:57:43 pm »
schlogo Offline
Jr. Member
**
Posts: 54

View Profile Email

Helllo

got someone to ix this problem, here s the modifications he has done :


I did 2 changes in components admin folder

/// ****In administrator\components\com_rsgallery2\includes\items\image.php

Code:
$thumb = $rsgConfig->get('imgPath_thumb') . $gallery_path . "/" . imgUtils::getImgNameThumb( $this->name );
$display = $rsgConfig->get('imgPath_display') . $gallery_path . "/" . imgUtils::getImgNameDisplay( $this->name );
$original = $rsgConfig->get('imgPath_original') . $gallery_path . "/" . $this->name;

replaced with

/// ****In administrator\components\com_rsgallery2\includes\items\image.php

Code:
$thumb = $rsgConfig->get('imgPath_thumb') . $gallery_path . "" . imgUtils::getImgNameThumb( $this->name );
$display = $rsgConfig->get('imgPath_display') . $gallery_path . "" . imgUtils::getImgNameDisplay( $this->name );
$original = $rsgConfig->get('imgPath_original') . $gallery_path . "" . $this->name;


Second was ugly hack... but i could not found another way to do this (of course we can do this with joomla core code.... but it's 5-6 lines code Sad )



/// ****In C:\wamp\www\joomla1.5\administrator\components\com_rsgallery2\init.rsgallery2.php

Code:
define('JURI_SITE', $app->isSite() ? JURI::base() : $mainframe->getSiteURL());


replaced with

Code:
/// ****In C:\wamp\www\joomla1.5\administrator\components\com_rsgallery2\init.rsgallery2.php

define('JURI_SITE', $app->isSite() ? "http://www.vincentlecuyer.com" : $mainframe->getSiteURL());

Hope this helps

« Last Edit: August 26, 2008, 03:59:33 pm by schlogo » Logged
 
Print  Pages 1
« previous next »
Jump to: