Hi there,
OK i will explain a little about what im trying to achieve.
I have a website template that shows one thing to people who haven't registered and shows something different when they have registered
in the template i use php code to see if the user is logged in or not
i want to place a chat box in both areas
when a guest is visiting they can only chat in the guest area
when a member is logged in they can chat in the guest area and in the members area
Guests can only chat in the Guest Room
Members can chat in BOTH the Guest Room and Members Area
What i have done so far:
I have used the php to display the chat room (using two different codes)
basically the guests chat is "guest.php" and the members is "members.php"
i have changed the parameters in each file from
$params["serverid"] = md5(__FILE__);
to
$params["serverid"] = md5(1);
this now shows the same on both the guest page and members page
in the "guest.php" i have
$params["channels"] = array("Guest Room");
in the "members.php" i have
$params["channels"] = array("Guest Room", "Members Room");
Now when i load the page as a guest i can only see the Guest Room (this is perfect and just what i want them to see)
but when i login i still only see the Guest Room
How can i change this?
if the user IS NOT logged in they see a chat room on the page with just one room "Guest Room"
if the user IS logged in they see a chat room on the page with two rooms "Guest Room" and "Members Area"
Any help will be greatly appreciated
Thank You