hi.
Sorry to be a nuisance again.
I'm doing pretty well so far customising MyChat but i'm stuck.
I want to remove the drop down boxes 'public rooms created by users' and 'create your own'
I just want a list of 'default' rooms they can enter.
default rooms created by admin.
Is this possible ? Hope so.
Mick
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-10-30
I hope the following helps. Before I get to it though, I would like to ask for a huge favor if you know, or figure out, how to change the default title of firstname and lastname on the registration window. I want to change them on mine so that they say parrotname or some such. :) The hugh favor... just please, let me know how to do it. LOL!! :) :) :)
Okay, this is how to fix the problem you are having right now. :)
You want to look for :
public_html/chat/chat/lib/index.lib.php3
This is where you can get rid of the drop down menus. Find this string (but be aware that (C_Version = =2) is on this page in several places, so you want to make sure you have the right one this is why I have included so much of the surrounding code. Okay, once again, Find this string:
The part that says if (C_Version = = 2) Change the value 2 to the value of 0. This will take away the drop down menus.
The reason for this is that this file:
public_html/chat/chat/config/config.lib.php3
gives the values for how users can access the rooms. Note from the following string that the value of 2 gives access to all rooms and the ability to create new ones, but the value of 0 only gives access to the first room. Thinking about it, depending on what you are wanting, you may want to change the value to 1.
The string from theis file that shows the values:
Available rooms : users can access...
// 0 : only the first room within the public default ones
// 1 : all the public default rooms but not create a room
// 2 : all the rooms and create new ones
You can also add text to your log-in screen on the file: public_html/chat/chat/lib/index.lib.php3
You can see on mine that I added a note about Registration, stating that they do not have to put their real names in the fields.
Here is the note with the surrounding code.
MAXLENGTH=16 CLASS="ChatBox">
<?php if (!C_REQUIRE_REGISTER) echo(" <U>".L_REG_1r."</U>"); ?>
</TD>
</TR>
REGISTERING: Please note, you DO NOT have to provide your First Name and Last Name, but you do have to put something in the fields. I think it would be neat if we all put our caiques name/s in those fields. It allows spaces and "&" signs and other characters. When I figure out how to chage the feild names I will change it to "caiquenames".
<TR CLASS="ChatCell"><TD CLASS="ChatCell"> </TD></TR>
Hope this all works out for you. Please let me know if it did. :) I tested it before writing this up, so it should go well for you. :)
Regeth
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-10-31
Mick, when I gove the link to my PHPMyChat I was doing so so that you could see an example of the text I had written. Not an example that the changes work to get rid of the ability for visitors to creat new rooms. Mine is set up so that vistors can create new rooms. However, I did test out the instructions I gave you and they worked and got rid of all but the default room dropdown window. I just changed it back to what it was before I did the test. :)
Let me know how it goes for you.
Regeth
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hi.
Sorry to be a nuisance again.
I'm doing pretty well so far customising MyChat but i'm stuck.
I want to remove the drop down boxes 'public rooms created by users' and 'create your own'
I just want a list of 'default' rooms they can enter.
default rooms created by admin.
Is this possible ? Hope so.
Mick
I hope the following helps. Before I get to it though, I would like to ask for a huge favor if you know, or figure out, how to change the default title of firstname and lastname on the registration window. I want to change them on mine so that they say parrotname or some such. :) The hugh favor... just please, let me know how to do it. LOL!! :) :) :)
Okay, this is how to fix the problem you are having right now. :)
You want to look for :
public_html/chat/chat/lib/index.lib.php3
This is where you can get rid of the drop down menus. Find this string (but be aware that (C_Version = =2) is on this page in several places, so you want to make sure you have the right one this is why I have included so much of the surrounding code. Okay, once again, Find this string:
$DefaultRoomFound = 1;
}
echo(">".$tmpRoom."</OPTION>");
}
?>
</SELECT>
</TD>
</TR>
<?php
}
if (C_VERSION == 2)
{
?>
<TR CLASS="ChatCell">
<TD ALIGN="<?php echo($CellAlign); ?>" VALIGN="TOP" CLASS="ChatCell" NOWRAP><?php echo(L_SET_8); ?> :</TD>
The part that says if (C_Version = = 2) Change the value 2 to the value of 0. This will take away the drop down menus.
The reason for this is that this file:
public_html/chat/chat/config/config.lib.php3
gives the values for how users can access the rooms. Note from the following string that the value of 2 gives access to all rooms and the ability to create new ones, but the value of 0 only gives access to the first room. Thinking about it, depending on what you are wanting, you may want to change the value to 1.
The string from theis file that shows the values:
Available rooms : users can access...
// 0 : only the first room within the public default ones
// 1 : all the public default rooms but not create a room
// 2 : all the rooms and create new ones
You can also add text to your log-in screen on the file: public_html/chat/chat/lib/index.lib.php3
You can see on mine that I added a note about Registration, stating that they do not have to put their real names in the fields.
Here is the note with the surrounding code.
MAXLENGTH=16 CLASS="ChatBox">
<?php if (!C_REQUIRE_REGISTER) echo(" <U>".L_REG_1r."</U>"); ?>
</TD>
</TR>
REGISTERING: Please note, you DO NOT have to provide your First Name and Last Name, but you do have to put something in the fields. I think it would be neat if we all put our caiques name/s in those fields. It allows spaces and "&" signs and other characters. When I figure out how to chage the feild names I will change it to "caiquenames".
<TR CLASS="ChatCell"><TD CLASS="ChatCell"> </TD></TR>
<TR CLASS="ChatCell">
<TH COLSPAN=2 CLASS="ChatTabTitle"><?php echo(L_REG_2); ?></TH>
Mick, You can see it here: http://cleos-corner.com/chat/phpMyChat.php3
Hope this all works out for you. Please let me know if it did. :) I tested it before writing this up, so it should go well for you. :)
Regeth
Mick, when I gove the link to my PHPMyChat I was doing so so that you could see an example of the text I had written. Not an example that the changes work to get rid of the ability for visitors to creat new rooms. Mine is set up so that vistors can create new rooms. However, I did test out the instructions I gave you and they worked and got rid of all but the default room dropdown window. I just changed it back to what it was before I did the test. :)
Let me know how it goes for you.
Regeth