Menu

Want to remove country links from enter page

Help
Anonymous
2002-10-21
2012-09-14
  • Anonymous

    Anonymous - 2002-10-21

    Hi,

    I'm looking to remove most of the bits and pieces from the main page - leaving me with just the

    "there are currently () users in chat"

    and the user name section. I also only want one available chat room.

    Can someone help me? Also, I don't really know what to do, so if you can tell me exactly *what* to edit in whichever file, that'd be great :D

    Rach
    xx

     
    • Anonymous

      Anonymous - 2002-10-22

      Ok, first of all, if you're using 0.14 these instructions will work, if you're using 0.15 refer below for further detail. You need to open the file chat/lib/index.lib.php3. Once this file is opened, you can edit out the things you don't want. Move close to the end of this file, and you'll see code like this -
      <P CLASS="ChatP1">
      <?php echo(L_WEL_1." ".C_MSG_DEL." ".L_WEL_2." ".C_USR_DEL." ".L_WEL_3); ?>
      </P>
      Remove this code and save the file. look at your site now and you'll notice the "Messages are deleted after 96 hours and inactive usernames after 10 minutes" is no longer viewable. You can make other changes in this area by removing the proper code, I'm not sure what other codes you really want to remove, it's hard to explain every bit you have to delete since I can't remember off hand and would have to search myself. 

      Now, as for the chat room list of being reduced to one, you would have to open the file chat/config/config.lib.php3 and you'll notice a line of code like so -
      // Proposed (default) rooms and reserved names for private rooms
      $DefaultChatRooms = array('Default', 'MyRoom1', 'MyRoom2');

      Remove this part of the code:   , 'MyRoom1', 'MyRoom2'
      Than replace Default with the name of the room you want listed if you haven't already done that.

      Now, if you're using 0.15 you should open the file chat/lib/index_lib/main_index.lib.php3 and make the changes I mentioned above. The default room list is in the same place as 0.14.

      Hope this helps...

           Tim

       
    • Anonymous

      Anonymous - 2002-10-22

      Almost forgot the actual post topic.

      If you reopen chat/lib/index.lib.php3 and move to the bottom of the game again, I think if you remove this code -

      <?php
              // Display flags if necessary
              if (C_MULTI_LANG == 1)
              {
              ?>
              <TR CLASS="ChatCell">
                  <TD COLSPAN=2 ALIGN="CENTER" CLASS="ChatCell">
                      <SPAN CLASS="ChatFlags">
                      <?php
                      asort($AvailableLanguages);
                      reset($AvailableLanguages);
                      $i = 0;
                      while(list($key, $name) = each($AvailableLanguages))
                      {
                          $i++;
                          echo("<A HREF=\&quot;$Action?L=${name}\&quot;>");
                          echo("<IMG SRC=\&quot;${ChatPath}localization/${name}/flag.gif\&quot; BORDER=0 WIDTH=24 HEIGHT=16 ALT=\&quot;".ucfirst(str_replace("_"," ",$name))."\&quot;></A>&nbsp;");
                          if ($i % 15 == 0) echo ("<BR>");
                      };
                      unset($AvailableLanguages);
                      ?>
                      </SPAN>
                  </TD>
              </TR>

      It should remove the flag from the main page, I think...lol  Just let me know if it doesn't and I'll find the right code for ya.

          Tim

       
    • Anonymous

      Anonymous - 2002-10-22

      I managed to remove the "Messages are deleted after 96 hours and inactive usernames after 10 minutes" part, but when I tried to remove the section you showed me for the flags, it did a fatal error, so I put it back to the way it was!

      Also, I've added some smilies, would it be possible to put a link on the main page that will open up the available smilies in a new window?

      Rach
      xx

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.