• 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

What should some params be set to?

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

Post a reply
12 posts • Page 1 of 1

Postby bashmyex » Tue Feb 05, 2008 5:26 pm

If I install this chat with the below setup:

here is a public url for the chat, which will only be public until I can get the chat working:
http://bashmyex.com/index.php?mod=chat

Install Folder:
/modules/chat/index.php

Called By:
/ (index.php?mod=chat)


what should I set these params to be?

$params["server_script_path"] = ;
$params["data_public_path"] = ;
$params["data_public_url"] = ;
$params["data_private_path"] = ;
$params["client_script_path"] = ;

I have read these forums for the past couple hours, and have tried all suggestions yet I am still stuck on the chat loading screen.
Last edited by bashmyex on Tue Feb 05, 2008 7:34 pm, edited 1 time in total.
bashmyex
New member
 
Posts: 7
Joined: Tue Feb 05, 2008 6:03 am
Top

Postby OldWolf » Wed Feb 06, 2008 12:02 am

First, a big thank you to you for both reading through the forum and adding the debug code. That will shorten the time it takes to get the problem resolved. :)

I also should apologize, because I've been meaning to write some error checking code and update the SVN, but I haven't had time.

Now, onto your problem. At the moment, you have an error with your data_public_url (I can tell by the way the errors are producing).
If that's the case, try setting it to:
Code: Select all
$params["data_public_url"] = "./modules/chat/data/public";

Make sure you do a manu rehash as well (I assume you know what that is since you've read through the forum).

While we're at it, I believe your server_script_url is also wrong.
Code: Select all
$params["server_script_url"] = "http://bashmyex.com/index.php?mod=chat"

All other parameters should be left off unless they cause problems... the chat is fairly intelligent setting them on it's own. Make sure you do a manual rehash after each change.

Also, if your problem isn't resolved and you need more help, would you be so kind as to turn off your source code locking script. It's sort of a pain to shut off js refresh, view source, turn on js refresh compare. :P

One other thing. The php printchat function should be in your body. It's currently above your header, which is going to cause other strange problems. Keep the params and the chat creating functions in the header, but move the actual printchat function below it. :)
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 bashmyex » Wed Feb 06, 2008 12:23 am

Thanks for your help so far.

I made the changes to the params you mentioned and removed the others, rehashed, still only showing loading screen.

As for a Source Code Locking Script, I dont have such a thing on the website and when I view Source from my IE7 it shows fine... not sure what the problem could be there.

Also, not sure as to even why the chat or debug code is showing above everything else, since my Mod System always calls all mods from within the body after the header.(this was something I was going to look into once I can get it working.)
bashmyex
New member
 
Posts: 7
Joined: Tue Feb 05, 2008 6:03 am
Top

Postby OldWolf » Wed Feb 06, 2008 3:59 am

Ok, now your paramters look right, assuming your JS folder is located at
http://bashmyex.com/modules/chat/data/public/js/
which it should be according to your description.

If that's the correct adress, you need to remove the htaccess restrictions you have set for your website, for the entire "public" folder. The reason that folder is called public is because it has to be directly accessed by browsers, and thus can't be htaccess locked.

Incidentally, I can view source with no issues. Must have been a glitch in IE or my editing software (don't ask me why shutting off my JS worked to reset it, perhaps it was the refresh, though I thought I tried that). My mistake, sorry about that. :)
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 bashmyex » Wed Feb 06, 2008 4:21 am

I removed the htaccess restrictions that I had on the mod folder, yet the loading screen still shows.

Thought I would mention this...
If I access a file named chat.php(which is the default index in the chat zip folder) and access it directly from
http://bashmyex.com/modules/chat/chat.php
It works perfectly with same directory structure.

I am starting to think something in my module code might be conflicting, and if this is the case I can make a bad hack for the chat to work by including it in an Iframe. I hope to not go that route but will if needed since this is the best chat script I have found for my needs.
Last edited by bashmyex on Wed Feb 06, 2008 4:23 am, edited 1 time in total.
bashmyex
New member
 
Posts: 7
Joined: Tue Feb 05, 2008 6:03 am
Top

Postby bashmyex » Wed Feb 06, 2008 4:36 am

Thanks for the help!

I got it to work perfectly within an IFrame so no more worries on my end. :)
bashmyex
New member
 
Posts: 7
Joined: Tue Feb 05, 2008 6:03 am
Top

Postby OldWolf » Wed Feb 06, 2008 4:43 am

You don't need to IFRAME it... it's likely we're close to doing it the other way. If you prefer that way, that's fine. :)
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 bashmyex » Wed Feb 06, 2008 4:45 am

I honestly prefer to not IFRAME it.

If we can get it to work that would be the best solution. I guess I'm just somewhat satisfied now knowing if all else fails I can still use this chat script :)
bashmyex
New member
 
Posts: 7
Joined: Tue Feb 05, 2008 6:03 am
Top

Postby bashmyex » Wed Feb 06, 2008 4:59 am

WoW!

I just checked redid the chat mod code, and it now works perfectly as it should.

Maybe it was a browser issue after the last fix?
either way it is now working without IFRAMEs.

Thank You OldWolf!
bashmyex
New member
 
Posts: 7
Joined: Tue Feb 05, 2008 6:03 am
Top

Postby bashmyex » Wed Feb 06, 2008 5:22 am

I just found out what the problem was.
Turns out, some of my DOMTT Javascript was conflicting, but thats not a matter for chat as Its not needed.

Either way, thanks for the advice since I was using more Params then was needed :)
bashmyex
New member
 
Posts: 7
Joined: Tue Feb 05, 2008 6:03 am
Top

Postby OldWolf » Wed Feb 06, 2008 8:41 am

Not a problem, glad I could help. :)
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 hervesz » Fri Feb 22, 2008 9:24 pm

I've the same problem, here,
http://www.technologies-biomedicales.co ... hpfreechat

The chat is always loading

Install Folder:
/modules/phpfreechat/index.php

Called By:
/ (index.php?mod=phpfreechat)

I tried the answers up, but I did'nt find the solution ...

If you have any idea...

Sorry for my english
hervesz
New member
 
Posts: 1
Joined: Fri Feb 22, 2008 8:04 pm
Top


Post a reply
12 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 31 guests

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