Icy Phoenix

     
 


Post new topic  Reply to topic 
Page 2 of 2
Goto page Previous  1, 2
 
Reply with quote Download Post 
Post Re: Php121 Instant Messenger 
 
Kas,

I removed my old php121config.php file and replaced it with the one you provided.  I replaced all the files you provided, deleted the old php121 block and created it again.  Everything worked great!

I do have a problem, but it was a problem that you had nothing to do with.  I'm not sure if I didn't perform the SQL actions properly but it seems my chat doesn't want to refresh.  I'm talking about the main window that shows who is online in the chat.  I've logged into my main account with Internet Explorer and logged into the "test" account with Firefox.  I am not able to see "test" come online after I logged that account in.  Something is wrong with the AJAX or something.

I was reading:

http://forums.php121.com/viewtopic.php?t=1168
http://forums.php121.com/viewtopic.php?t=1357
http://forums.php121.com/viewtopic.php?t=1354

I found out there are three possible things wrong:

[*]You have blank lines at the bottom of your php121config.php file.
[*]MySQL 5 is in STRICT mode.
[*]You need to hash out a line in mysql5 my.ini.

I've checked and I don't have any blank lines at the bottom of my php121config.php file.  I tried running this in SQL:

Code: [Download] [Hide] [Select]
SET @@global.sql_mode='MYSQL40'


but I have to have "super" priveleges to run that code.  I contacted my hosting company and they said that since I am running on a shared server, I could not have "super" priveleges.  If I had my own dedicated server, I could run that code.  So that is a major problem for me, specifically.  The last step, which involves hashing out a line of code, I cannot access because I don't have "super" priveleges through my database.

So I found a "hack" that will force the main window to refresh every 20-30 seconds automatically, since AJAX in this modification is apparently not working for me.

OPEN php121im.php
FIND
Code: [Download] [Hide] [Select]
</font>
</body>
</html>

IN-LINE AFTER
Code: [Download] [Hide] [Select]
</font>
, ADD
Code: [Download] [Hide] [Select]
<meta http-equiv="refresh" content="30">


I now have this at the bottom of my php121im.php file:

Code: [Download] [Hide] [Select]
</font><meta http-equiv="refresh" content="30">
</body>
</html>


This shouldn't have to be edited like this, but I had to since there was no other way AJAX was going to update itself on my website.

I was wondering if you are hosting your test site on a dedicated server or if it is shared.  If it is shared and php121's AJAX is updating itself only when it needs to, I have done something wrong on my end.  If you are on a shared server and php121's AJAX is NOT updating, the code above will "fix" it.

If you are on a shared server and it's actually updating only when a user comes online or sends you a chat request, let me know exactly how you did it, please!

Thanks and good work Kas!

*Edit* - I think I am going to remove all php121 SQL entries and re-enter them.
 




____________
| Icy Phoenix ColorizeIt! |
Bipolar Disorder - Not good for you and definitely not good for everyone else.
 
Chaotic - View user's profileSend private messageVisit poster's websiteView user's personal gallery 
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: Php121 Instant Messenger 
 
I fixed the AJAX problem.  I deleted all php121 SQL and manually added each, block by block.  Everything is refreshing now, only when it needs to, which is the way it's supposed to work.

I wonder how the security is with this mod?  Do you think an .htaccess file should be added to the php121 directory?

You've done a great job Kas and this modification is worthy to be moved into the IP Customizations forum.  I can already see this modification being downloaded 1000 times!  

Thanks again
 




____________
| Icy Phoenix ColorizeIt! |
Bipolar Disorder - Not good for you and definitely not good for everyone else.
 
Chaotic - View user's profileSend private messageVisit poster's websiteView user's personal gallery 
Back to topPage bottom
Reply with quote Download Post 
Post Re: Php121 Instant Messenger 
 
I think htaccess is not neccesary. I'll add a package in customizations with some more security. You'll have to upload it adn overwrite files.

Greets!
 




____________
Gabriel Anca
 
KasLimon - View user's profileSend private messageVisit poster's website 
Back to topPage bottom
Reply with quote Download Post 
Post Re: Php121 Instant Messenger 
 
http://www.icyphoenix.com/viewtopic.php?f=21&t=3889
 




____________
Gabriel Anca
 
KasLimon - View user's profileSend private messageVisit poster's website 
Back to topPage bottom
Reply with quote Download Post 
Post Re: Php121 Instant Messenger 
 
Kas,

Should I download the mod again and overwrite all my old files?  I'm asking because you said you'd add a package with more security.

Thanks!
 




____________
| Icy Phoenix ColorizeIt! |
Bipolar Disorder - Not good for you and definitely not good for everyone else.
 
Chaotic - View user's profileSend private messageVisit poster's websiteView user's personal gallery 
Back to topPage bottom
Reply with quote Download Post 
Post Re: Php121 Instant Messenger 
 
Update only php121 folder (if you upload all it will be the same)
It will add some index.html to avoid people entering directly to that folder.

Greets!
 




____________
Gabriel Anca
 
KasLimon - View user's profileSend private messageVisit poster's website 
Back to topPage bottom
Reply with quote Download Post 
Post Re: Php121 Instant Messenger 
 
Thanks!
 




____________
| Icy Phoenix ColorizeIt! |
Bipolar Disorder - Not good for you and definitely not good for everyone else.
 
Chaotic - View user's profileSend private messageVisit poster's websiteView user's personal gallery 
Back to topPage bottom
Post new topic  Reply to topic  Page 2 of 2
Goto page Previous  1, 2


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events
  

 

cron