Author |
Topic  |
|
gibsongk55
Starting Member
Thailand
33 Posts |
Posted - 28 November 2006 : 23:05:20
|
Hi,
I would like to show users online for x7chat below the forum logo on the top left of the forum page. I have the code in a php file. How would i add it there without causing a mess? I know nothing about php and asp.
Thanks |
|
pdrg
Support Moderator
    
United Kingdom
2897 Posts |
Posted - 29 November 2006 : 07:13:13
|
eek! php and asp are managed by 2 different handlers - to work with snitz (all asp) you'd need to translate the php code to asp. they won't work together - explanation below...
your webserver knows how to treat each file it's asked for by the extension (eg .htm, .asp, .php, etc). In IIS an ISAPI filter is invoked for the appropriate file type (.htm passes straight through, .asp invokes the ASP ISAPI parser, etc). As your file will have extension .asp (all snitz files have), the ASP parser is invoked, and it doesn't speak PHP. If you changed the filename to PHP, the PHP parser won't understand the ASP. Either way, it ain't gonna work unless you get both bits of code in the same language (I suggest ASP if you want the page to work with the rest of snitz!)
hth |
 |
|
gibsongk55
Starting Member
Thailand
33 Posts |
Posted - 29 November 2006 : 18:48:35
|
Thanks for the info. So do you know of any open source chat programs that will work with this situation? Or better yet one that can interface with snitz forums to also update new members into the chat database? Or should i make a new post of this?
Thanks,
Bill |
 |
|
Jezmeister
Senior Member
   
United Kingdom
1141 Posts |
Posted - 29 November 2006 : 19:36:32
|
with your existing chat scripts: one way to do it would be to record who's online in your chat room in your forum database through php then find out who's online on the forum page in ASP by calling the information from the database.
otherwise have a search of the mod w/code forum and www.snitzbitz.com i'm sure i've seen some chat room add-ons floating around. |
 |
|
pdrg
Support Moderator
    
United Kingdom
2897 Posts |
Posted - 30 November 2006 : 11:36:21
|
Oh and Bill, could youpost back letting us know how you got on, whether you found something that did the trick?
Cheers :) |
 |
|
|
Topic  |
|