X7 Chat Support Board
Welcome, Guest. Please login or register.
September 06, 2010, 11:03:11 AM

Login with username, password and session length
Search:     Advanced search
X7 Chat Version 3.0.0 Alpha 2 is now available (http://x7chat.com/support_forum/index.php?topic=3198.msg11497#new).
13106 Posts in 3801 Topics by 73828 Members
Latest Member: bobanovermeer
* Home Help Search Login Register
+  X7 Chat Support Board
|-+  X7 Chat General
| |-+  Feature Requests
| | |-+  Exit button
« previous next »
Pages: [1] Reply Send this topic Print
Author Topic: Exit button  (Read 1447 times)
Athos
Member
*
Offline Offline

Posts: 1


View Profile
« on: December 02, 2006, 05:27:00 PM »
Reply with quote

I would like to add an 'Exit Room' button in my chat rooms. The only way I see for someone to exit the room is to either close the browser window or logout... Which in most cases is the same thing.

I would like to ad a web page where people can go to see a list every room and who is each one. Any suggestions how I might do this? I am fairly proficient with php.

Report to moderator   Logged
Plaka
Member
*
Offline Offline

Posts: 55


View Profile
« Reply #1 on: December 02, 2006, 06:33:25 PM »
Reply with quote

Admin CP/Settings/Logout Page: define that page to whatever/wherever you want Wink
Report to moderator   Logged
E-Oreo
Administrator
Member
*****
Offline Offline

Posts: 3710


View Profile Email
« Reply #2 on: December 02, 2006, 11:13:46 PM »
Reply with quote

Quote
I would like to add an 'Exit Room' button in my chat rooms. The only way I see for someone to exit the room is to either close the browser window or logout... Which in most cases is the same thing.
I'm not sure exactly what you want the exit room button to do but you could add a button which just links back to the roomlist page.  The button code is in sources/frame.php.

Quote
I would like to ad a web page where people can go to see a list every room and who is each one. Any suggestions how I might do this? I am fairly proficient with php.
To get the list of rooms you can just select it out of the rooms table in the database.  Make sure the type of the room is 1 (2 means it's private) and make sure the time field is either 0 or greater than the current timestamp minus an expiration value (like 500).  To get a list of users in the room you can select the data from the online table doing the same thing for time and also make sure invisible isn't set to 1.  Use the room field to find out which room they are in.
Report to moderator   Logged
Pages: [1] Reply Send this topic Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.071 seconds with 17 queries.