1
Hostile
Xoops Chat, funny link titles
  • 2003/8/12 15:11

  • Hostile

  • Just popping in

  • Posts: 14

  • Since: 2002/12/12


I just installed the XoopsChat Version 1 and all the menus are screwed up.

In the main menu the link is titled _MI_XOOPSCHAT_NAME.

When I click on it the chat appears to be working correctly though.

Also in Administration when I hover the XOOPS Chat icon on the left the links are all the same, and I have no idea what they do unless I click on them, the titles are messed up:

The pop-up menu is titled _MI_XOOPSCHAT_NAME
and the 3 selectable options are:
_MI_XOOPSCHAT_ADMENU1
_MI_XOOPSCHAT_ADMENU2
_MI_XOOPSCHAT_ADMENU3

and the description shows
_MI_XOOPSCHAT_DESC

Anyone have any ideas?

I'm running XOOPS 2.0.3 and I downloaded the module from here - http://modules.xoops2.com/modules/mydownloads/viewcat.php?cid=1

2
hsalazar
Re: Xoops Chat, funny link titles
  • 2003/8/12 15:36

  • hsalazar

  • Just popping in

  • Posts: 78

  • Since: 2003/2/6 1


Hostile:

In the file constants.php within the language directory, you need to change all the underscores that go after "_MI_XOOPSCHAT" for double underscores, for that's the way it's coded in the module...

Either that, or change the code in the module so instead of double underscores you have single underscores when calling the language constants.

Cheers.

3
Hostile
Re: Xoops Chat, funny link titles
  • 2003/8/12 16:21

  • Hostile

  • Just popping in

  • Posts: 14

  • Since: 2002/12/12


Here is the constants.php from the english language folder in the xoopschat folder:

// ------------------------------------------------------------------------- //
// Original Author: Pietro Lascari
// Modified for Xoops: Marko "Predator" Schmuck and frankblack
// Licence Type   : Public GNU/GPL
// ------------------------------------------------------------------------- //

// The name of this module
define("_MI_XOOPSCHAT_NAME","Xoops Chat");

// A brief description of this module
define("_MI_XOOPSCHAT_DESC","A chat module for XOOPS 2.0.x");

// Names of admin menu items
define("_MI_XOOPSCHAT_ADMENU1","Rooms manager");
define("_MI_XOOPSCHAT_ADMENU2","Messages manager");
define("_MI_XOOPSCHAT_ADMENU3","Users banishment");

define("_MI_XOOPSCHAT_AD1""rooms.php");
define("_MI_XOOPSCHAT_AD2""messages.php");
define("_MI_XOOPSCHAT_AD3""banusers.php");

define("_MI_XOOPSCHAT_D1""To create or modify an existing room.");
define("_MI_XOOPSCHAT_D2""To search, delete one or all messages in the database.");
define("_MI_XOOPSCHAT_D3""To ban a user from the chat for the selected time period.");

?>


It is already coded with a single _ .

I changed them all to double _ and it just showed up with the extra _ in the names:

// ------------------------------------------------------------------------- //
// Original Author: Pietro Lascari
// Modified for Xoops: Marko "Predator" Schmuck and frankblack
// Licence Type   : Public GNU/GPL
// ------------------------------------------------------------------------- //

// The name of this module
define("_MI_XOOPSCHAT__NAME","Xoops Chat");

// A brief description of this module
define("_MI_XOOPSCHAT__DESC","A chat module for XOOPS 2.0.x");

// Names of admin menu items
define("_MI_XOOPSCHAT__ADMENU1","Rooms manager");
define("_MI_XOOPSCHAT__ADMENU2","Messages manager");
define("_MI_XOOPSCHAT__ADMENU3","Users banishment");

define("_MI_XOOPSCHAT__AD1""rooms.php");
define("_MI_XOOPSCHAT__AD2""messages.php");
define("_MI_XOOPSCHAT__AD3""banusers.php");

define("_MI_XOOPSCHAT__D1""To create or modify an existing room.");
define("_MI_XOOPSCHAT__D2""To search, delete one or all messages in the database.");
define("_MI_XOOPSCHAT__D3""To ban a user from the chat for the selected time period.");

?>




Maybe I'm not understanding you.

4
Mithrandir
Re: Xoops Chat, funny link titles

not
define("_MI_XOOPSCHAT__AD1""rooms.php");
but
define("__MI_XOOPSCHAT_AD1""rooms.php");
(I think) Maybe check in the module files and see how they are called? (it could also be _MI__XOOPSCHAT_AD1 - I'm just guessing here)

5
Hostile
Re: Xoops Chat, funny link titles
  • 2003/8/12 17:07

  • Hostile

  • Just popping in

  • Posts: 14

  • Since: 2002/12/12


I found the following in the admin folder of the module in a file called banusers.php

"._MI_XOOPSCHAT__ADMENU3."


It shows a double underscore after _MI_XOOPSCHAT, just like hsalazar said.

I've modified the constants.php with the double underscore but it still doesn't work. Is there something I need to update after making the change? I tried to update the Module in the Module Administration but it didn't make a difference.

FYI - I'm only modifying the english language constant.php since I have other languages turned off.

6
hsalazar
Re: Xoops Chat, funny link titles
  • 2003/8/12 17:30

  • hsalazar

  • Just popping in

  • Posts: 78

  • Since: 2003/2/6 1


Hostile:

Since the site's templates are stored in the database and then cached, try accessing your site via FTP and then deleting all the files in the templates_c folder. Please notice the _c part, as this points to the cached files folder.

7
Hostile
Re: Xoops Chat, funny link titles
  • 2003/8/12 17:52

  • Hostile

  • Just popping in

  • Posts: 14

  • Since: 2002/12/12


I removed all the files in templates_c and it still didn't fix it.

I've also given the anonymous group access to the module so you should be able to view it.

http://www.hostileterritory.org/st

8
Xend
Re: Xoops Chat, funny link titles
  • 2003/8/12 19:04

  • Xend

  • Friend of XOOPS

  • Posts: 37

  • Since: 2001/12/13


Go into Administrator and update the module..

9
Hostile
Re: Xoops Chat, funny link titles
  • 2003/8/12 19:07

  • Hostile

  • Just popping in

  • Posts: 14

  • Since: 2002/12/12


I did that already, didn't work. Tried it again just to be safe, didn't work.

10
Anonymous
Re: Xoops Chat, funny link titles
  • 2003/8/12 19:18

  • Anonymous

  • Posts: 0

  • Since:


This was a known Bug and fixed in the CVS files:

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/xmdt/xoopschat/

If been 2 Weeks in Hospital so there is no newer Version, but with the lastest CVS files this Bug is fixed, the further developing of the Chat Project will start next week.

Greetz Predator

Login

Who's Online

143 user(s) are online (60 user(s) are browsing Support Forums)


Members: 0


Guests: 143


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Dec 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits