• 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

All of My pictures do not display

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

Post a reply
16 posts • Page 1 of 2 • 1, 2

Postby quutoo » Sat Jun 11, 2011 1:52 pm

Thank you very much for your great free chat scripts.
But there are some problems in my site http://www.quutoo.com/chat/
Please check it for me.
all of the pictures do not display.
I do not know what is the matter.

Can you help me?
Where should I edit?
I am using the WINDOWS 2003 SERVER + IIS system.
I found the pictures url is http://www.quutoo.com/chat/datapublic/t ... _smile.png in my site.
but It should be http://www.quutoo.com/chat/themes/defau ... _smile.png

I do not find the way to solve this problem in the forum.
Please help me.
DAI
quutoo
Member
 
Posts: 12
Joined: Sat Jun 11, 2011 1:40 pm
Top

Postby re*s.t.a.r.s.*2 » Sat Jun 11, 2011 3:48 pm

Hi,

I think you just need to "/rehash".

if that doesn't work then delete the content of "/chat/data/private/cache".

if still doesn't work paste your index.php code here, between the code tags.

regards.
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top

Postby quutoo » Sun Jun 12, 2011 12:21 am

Hi:
Thank you very much for your reply.
I installed the original scripts in my website and did not edit any scripts,
but all of the pictures did not display.
the index.php as following.
------------------------------------------------
<?php

require_once dirname(__FILE__)."/src/phpfreechat.class.php";
$params = array();
$params["title"] = "Quick chat";
$params["nick"] = "guest".rand(1,1000); // setup the intitial nickname
$params['firstisadmin'] = true;
//$params["isadmin"] = true; // makes everybody admin: do not use it on production servers ;)
$params["serverid"] = md5(__FILE__); // calculate a unique id for this chat
$params["debug"] = false;
$chat = new phpFreeChat( $params );

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>phpFreeChat- Sources Index</title>
<link rel="stylesheet" title="classic" type="text/css" href="style/generic.css" />
<link rel="stylesheet" title="classic" type="text/css" href="style/header.css" />
<link rel="stylesheet" title="classic" type="text/css" href="style/footer.css" />
<link rel="stylesheet" title="classic" type="text/css" href="style/menu.css" />
<link rel="stylesheet" title="classic" type="text/css" href="style/content.css" />
</head>
<body>

<div class="header">
<img alt="phpFreeChat" src="style/logo.gif" class="logo2" />
</div>

<div class="menu">
<ul>
<li class="sub title">General</li>
<li>
<ul class="sub">
<li class="item">
<a href="demo/">Demos</a>
</li>
<?php if (file_exists(dirname(__FILE__)."/checkmd5.php")) { ?>
<li>
<a href="checkmd5.php">Check md5</a>
</li>
<?php } ?>
<!--
<li class="item">
<a href="admin/">Administration</a>
</li>
-->
</ul>
</li>
<li class="sub title">Documentation</li>
<li>
<ul>
<li class="item">
<a href="http://www.phpfreechat.net/overview">Overview</a>
</li>
<li class="item">
<a href="http://www.phpfreechat.net/quickstart">Quickstart</a>
</li>
<li class="item">
<a href="http://www.phpfreechat.net/parameters">Parameters list</a>
</li>
<li class="item">
<a href="http://www.phpfreechat.net/faq">FAQ</a>
</li>
<li class="item">
<a href="http://www.phpfreechat.net/advanced-configuration">Advanced configuration</a>
</li>
<li class="item">
<a href="http://www.phpfreechat.net/customize">Customize</a>
</li>
</ul>
</li>
</ul>
<p class="partner">
<a href="http://www.phpfreechat.net"><img alt="phpfreechat.net" src="style/logo_88x31.gif" /></a><br/>
</p>
</div>

<div class="content">
<?php $chat->printChat(); ?>
<?php if (isset($params["isadmin"]) && $params["isadmin"]) { ?>
<p style="color:red;font-weight:bold;">Warning: because of "isadmin" parameter, everybody is admin. Please modify this script before using it on production servers !</p>
<?php } ?>
</div>

<div class="footer">
<span class="partners">phpFreeChat partners:</span>
<a href="http://www.jeu-gratuit.net">jeux gratuits</a> |
<a href="http://jeux-flash.jeu-gratuit.net">jeux flash</a> |
<a href="http://www.pronofun.com">pronofun</a> |
<a href="http://areno.jeu-gratuit.net">areno</a> |
<a href="http://www.micropolia.com">micropolia</a> |
<a href="http://www.zeitoun.net">zeitoun</a> |
<a href="http://federation.jeu-gratuit.net">federation</a>
</div>

</body></html>
----------------------------------------
Please help me,which scripts should I edit?
quutoo
Member
 
Posts: 12
Joined: Sat Jun 11, 2011 1:40 pm
Top

Postby re*s.t.a.r.s.*2 » Sun Jun 12, 2011 2:07 am

Question did you rehashed?

your installation is missing a forward slash in you theme parameter.

can you try $params['theme_default_path']= dirname(__FILE__).'..themes';

and then rehash the chat...

if an error came up put the comment slashes before the //dirname(__FILE__).'/../themes';
in this parameter I try to fix your path but if you just want to overwrite it then use

$params['theme_path']= "./data/public/themes/";

please user rehash command see if that work for your ISS6 since is windows and windows path are a bit different that UNIX paths..

note: reading again you statement that the theme folder path should be "/themes/default"
its totally wrong , PFC copy the default theme to the data public folder for cache purpose..
so it should be "./data/public/themes/".
regards.
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top

Postby quutoo » Sun Jun 12, 2011 4:22 pm

I have rehashed it by delete the “data/private/cache/” directory content.

It still did not work.
You said: try $params['theme_default_path']= dirname(__FILE__).'..themes';
Which file should I edit?
Doese it in pfcglobalconfig.class.php?
Following is the some codes of pfcglobalconfig.class.php
Should I edit these codes?
--------------------------------------------------
var $theme_default_path = '';

--------------------------------------------------------
How to edit it?
Please help me.
Thank you very much.
Last edited by quutoo on Sun Jun 12, 2011 4:34 pm, edited 1 time in total.
quutoo
Member
 
Posts: 12
Joined: Sat Jun 11, 2011 1:40 pm
Top

Postby quutoo » Sun Jun 12, 2011 4:26 pm

It seems the scripts have some bugs in WINDOWS2003+IIS.
Anyone else run it on IIS?
quutoo
Member
 
Posts: 12
Joined: Sat Jun 11, 2011 1:40 pm
Top

Postby quutoo » Sun Jun 12, 2011 4:56 pm

re*s.t.a.r.s.*2 wrote:Question did you rehashed?

your installation is missing a forward slash in you theme parameter.

try $params['theme_default_path']= dirname(__FILE__).'..themes';

$params['theme_path']= "./data/public/themes/";

Sure,my path is missing a forward slash in the theme parameter.
How to correct it?

$params['theme_default_path']= dirname(__FILE__).'..themes';

$params['theme_path']= "./data/public/themes/";

Where to edit?
Please details.
Thanks.
quutoo
Member
 
Posts: 12
Joined: Sat Jun 11, 2011 1:40 pm
Top

Postby re*s.t.a.r.s.*2 » Sun Jun 12, 2011 5:10 pm

Hi,

that parameters goes in the index.php of the chat...

please do so and let us know..

regards.
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top

Postby quutoo » Sun Jun 12, 2011 5:24 pm

HI:
When I add $params['theme_default_path']= dirname(__FILE__).'..themes';
in index.php and rehash it, the pictures still did not display.

Then I add $params['theme_path']= "./data/public/themes/";
in index.php and rehash it, the index page does not run,it always shows: Chat loading ...Please wait.

If I add $params['theme_path']= "/data/public/themes/";
in index.php run but the pictures still did not dispay.

Please help me.
Last edited by quutoo on Sun Jun 12, 2011 5:31 pm, edited 1 time in total.
quutoo
Member
 
Posts: 12
Joined: Sat Jun 11, 2011 1:40 pm
Top

Postby re*s.t.a.r.s.*2 » Sun Jun 12, 2011 6:04 pm

Hi,

Long ago I had ISS6 and played with pfc, had same issue I don't recall what I exactly did, but I remember that these two parameters would be the key to fix the issue..
Do you have any error en your error log?

I am at your chat right now..

Turn cache off after the
<?php tag..
Code: Select all
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");

I seem the same image that you have loading for all the imgs, weird stuff must be cache going on there.

also try this parameter, delete the previous one.
put the absolute path of your installation, like example your chat is in
"c://htmldoc/chat/data/public/";
Code: Select all
$params["data_public_path"] = "c://htmldoc/chat/data/public/";

if don't wok keep playing with the path..

I will be at your chat to meet you..
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top

Postby quutoo » Mon Jun 13, 2011 12:51 am

HI:
I put the absolute path of chat/data/public/ in index.php
It still did not work.
OMG
What should I do?
Anyone else use PFC in IIS??
quutoo
Member
 
Posts: 12
Joined: Sat Jun 11, 2011 1:40 pm
Top

Postby quutoo » Mon Jun 13, 2011 12:55 am

There must be big bugs in PFC, all pictures did not display in windows2003+IIS.
quutoo
Member
 
Posts: 12
Joined: Sat Jun 11, 2011 1:40 pm
Top

Postby re*s.t.a.r.s.*2 » Mon Jun 13, 2011 12:59 am

quutoo wrote:HI:
I put the absolute path of chat/data/public/ in index.php
It still did not work.
OMG
What should I do?
Anyone else use PFC in IIS??

Well,

that's not the absolute path of PFC...
please follow instructions or you will be alone..

regards.
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top

Postby quutoo » Mon Jun 13, 2011 4:25 am

re*s.t.a.r.s.*2 wrote:
quutoo wrote:HI:
I put the absolute path of chat/data/public/ in index.php
It still did not work.
OMG
What should I do?
Anyone else use PFC in IIS??

Well,

that's not the absolute path of PFC...
please follow instructions or you will be alone..

regards.

I put the absolute path
$params["data_public_path"] = "C:/webs/quutoo/chat/data/public/";
For security reason,I rename them.

It still did not work.
Last edited by quutoo on Mon Jun 13, 2011 4:26 am, edited 1 time in total.
quutoo
Member
 
Posts: 12
Joined: Sat Jun 11, 2011 1:40 pm
Top

Postby asakpke » Sat Dec 17, 2011 5:32 am

I did a simple solution :) BUT this is not a valid solution :(

1. Just copy the public folder (phpfreechatdatapublic)
2. Paste it on your phpfreechat folder
3. And rename it to datapublic ;P

Regards
Aamir Shahzad
asakpke
New member
 
Posts: 1
Joined: Sat Dec 17, 2011 5:12 am
Top

Next

Post a reply
16 posts • Page 1 of 2 • 1, 2

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 7 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