292231
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)



292232
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:

<?php
// ------------------------------------------------------------------------- //
// 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:

<?php
// ------------------------------------------------------------------------- //
// 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.



292233
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.



292234
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



292235
Hostile
Site Name and Slogan won't take.
  • 2003/8/12 14:31

  • Hostile

  • Just popping in

  • Posts: 14

  • Since: 2002/12/12


In Site Preferences -> General Settings the "Site Name" and "Slogan for your site" are not keeping their values. I enter text (alpha characters only) and when I submit I am returned to the form and the fields are blank again.

All other fields on the form update properly.

Anyone have any ideas?

TIA



292236
Hostile
Re: XOOPS2 NewBB: Give moderators right to edit and delete posts
  • 2003/8/12 14:05

  • Hostile

  • Just popping in

  • Posts: 14

  • Since: 2002/12/12


Great hack, I just made the change and it works beautifully!

Like you I don't want to give Moderators full admin access. That is why there is a difference between moderators and administrators.

Cheers!
Iain



292237
Lance95
Re: Any Malaysia Xoops there?
  • 2003/8/11 14:39

  • Lance95

  • Just popping in

  • Posts: 14

  • Since: 2003/5/9 2


yeah here here !! *waves*




292238
knight
Any Malaysia Xoops there?
  • 2003/8/11 13:43

  • knight

  • Just popping in

  • Posts: 29

  • Since: 2002/12/29


maybe we can work together form a malaysia XOOPS site?



292239
jwhite
Re: Bug in mailusers.php - re: sending mail only to users who request it
  • 2003/8/11 7:07

  • jwhite

  • Just popping in

  • Posts: 2

  • Since: 2003/8/11


Yeah, that makes sense. If I'd spent more time figuring out how the code was supposed to work, I probably would have tried that.

Thanks!

Jared



292240
mvandam
Re: Bug in mailusers.php - re: sending mail only to users who request it
  • 2003/8/11 6:09

  • mvandam

  • Quite a regular

  • Posts: 253

  • Since: 2003/2/7 2


Thanks, nice observation. I've fixed this in CVS. Instead of $mail_start = 0, use:

$mail_start = !empty($HTTP_POST_VARS['mail_start']) ? $HTTP_POST_VARS['mail_start'] : 0;

Otherwise you *will* break something if you are mailing more than 100 users.

Thanks again!







Login

Who's Online

285 user(s) are online (182 user(s) are browsing Support Forums)


Members: 0


Guests: 285


more...

Donat-O-Meter

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

Latest GitHub Commits