Active
Project:
phpFreeChat integration
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Apr 2009 at 15:02 UTC
Updated:
19 Dec 2010 at 22:22 UTC
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
Comment #1
stoltoguzzi commentedI deinstalled the module an reinstalled it:
http://drupal.org/node/420610
now it is ok
Comment #2
cigotete commentedunfortunately 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)
Comment #3
mogop commentedmy image tag has wrong src path , currently it's looking like this:
when it MUST be:
any ideas?