Posted by stoltoguzzi on April 30, 2009 at 3:02pm
Jump to:
| Project: | phpfreechat |
| Version: | 6.x-1.1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
the base_url is set to
http://www.myweb.ch
when the chat starts there are no icons only text, the rest seems to work.
if I have a look using firebug the path to images looks like:
http://www.www.myweb.ch/sites/default/files/phpfreechat/public/themes/de...
why www.www ??
Comments
#1
I deinstalled the module an reinstalled it:
http://drupal.org/node/420610
now it is ok
#2
unfortunately I can not find the reason of the problem, but if is still useful to somebody here is my solution (drupal 6 phpfreechat 1.3):
in phpfreechat directory find pfcglobalconfig.class.php and change this function:
function getFileUrlFromTheme($file)
{
if (file_exists($this->theme_path.'/'.$this->theme.'/'.$file))
return $this->theme_url.'/'.$this->theme.'/'.$file;
else
if (file_exists($this->theme_default_path.'/default/'.$file))
return $this->theme_default_url.'/default/'.$file;
else
return 'notfound';
}
for this function
function getFileUrlFromTheme($file)
{
if (file_exists($this->theme_path.'/'.$this->theme.'/'.$file))
return str_replace("www.www", "www", $this->theme_url.'/'.$this->theme.'/'.$file);
else
if (file_exists($this->theme_default_path.'/default/'.$file))
return str_replace("www.www", "www", $this->theme_default_url.'/default/'.$file);
else
return 'notfound';
}
this issue was resolved using regular expression (php replace function).
my 2 cents.
(sorry about my english)
#3
my image tag has wrong src path , currently it's looking like this:
<img src="http://www.localhostTest-site/sites/default/files/phpfreechat/public/themes/default/images/ch.gif" />when it MUST be:
<img src="http://localhost/Test-site/sites/default/files/phpfreechat/public/themes/default/images/ch.gif" />any ideas?