• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

Slash missing in image-url

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
5 posts • Page 1 of 1

Postby Look » Fri Jan 04, 2008 1:00 am

There are no images displayed after installing my PFC. Reason is a missing slash between "data" and "public".

So the minimize-icon has the following (wrong) url for example:

http://server/dir/phpchat/datapublic/th ... nimize.gif

I'm using Win 2000 / IIS / PHP5

Ah, and your link on the "Required Configurations"-page is dead ("Don't hesitate to post on the forum... ")


Look
Look
New member
 
Posts: 4
Joined: Fri Jan 04, 2008 12:57 am
Top

Postby OldWolf » Fri Jan 04, 2008 1:55 am

That's likely an issue with your parameter settings. Have a look at the parameter list, specifically the data public parameter.
http://www.phpfreechat.net/parameters-list.en.html
Signature:
Read before Posting: Forum Rules
Note: I am unable to offer support through PM/e-mail at this time.
OldWolf
Site Admin
 
Posts: 1918
Joined: Sun Sep 23, 2007 5:48 am
Top

Postby Look » Thu Jan 10, 2008 5:13 pm

Sure, that'll work. Nevertheless I think it's a bug, because my default-installation should at least show the demos properly - without modifying each listing before trying it.

I'm no php-programmer, but I found out that on MY system, cleanpath returns backslashes instead of slashes. Consequence: The pfc_RelativePath in pfctools.php returns "datapublic" (with backslash). Now that seems to be interpreted as some kind of escape-sequence, so the seperator is missing.

I looked up some documentation - but it only mentions slashes to be returned by realpath ... well, my systems seem to be special ;) I guess it has sth to do with windows-systems. (Special, indeed!)

So I added the following line in the function 'pfc_RelativePath' just before the value is returned:

$res= str_replace("\", "/", $res);

And now it works.

Look
Look
New member
 
Posts: 4
Joined: Fri Jan 04, 2008 12:57 am
Top

Postby OldWolf » Sat Jan 12, 2008 9:40 pm

Good solution, thanks for posting it for others. :)
Signature:
Read before Posting: Forum Rules
Note: I am unable to offer support through PM/e-mail at this time.
OldWolf
Site Admin
 
Posts: 1918
Joined: Sun Sep 23, 2007 5:48 am
Top

Postby Look » Mon Jan 14, 2008 11:28 am

Still: Your Link "Don't hesitate to post on the forum to complete/correct these informations." under "Required Configuration" is dead.

Look
Look
New member
 
Posts: 4
Joined: Fri Jan 04, 2008 12:57 am
Top


Post a reply
5 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 4 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub