1
satrebil
Problem using the decorator MODULE in mymenus 1.1
  • 2011/2/4 9:30

  • satrebil

  • Just popping in

  • Posts: 15

  • Since: 2009/5/3 2


Hello,

I have installed the module mymenus in XOOPS 2.45. and XOOPS 2.5 and in both I have the same problem.

I managed to place the block to show on the theme menu, but using the decorator {MODULE|NEWS} gives errors and does not load the language files so it assumes the name of the variable.

The errors given are of the type:
Quote:
Warning: Use of undefined constant _MI_NEWS_NAME - assumed '_MI_NEWS_NAME'
in file /modules/news/xoops_version.php


and drop-down menu instead of displaying the options menu displays the name of the variable.

For example in the News-down menu appears:
Quote:
_MI_NEWS_SMNAME2
_MI_NEWS_SMNAME1
_MI_NEWS_TOPICS_DIRECTORY


I tried to see where the error occurs but I have not found.

Thanks in advance
Carlos

PD: Sorry for my bad English

2
trabis
Re: Problem using the decorator MODULE in mymenus 1.1
  • 2011/2/4 13:51

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Hi satebril,

Thanks for using mymenus module!

Please open file mymenus/plugins/dynamic/dynamic.php

Around line 61 add this:
$path "modules/{$module}";
        
$file $GLOBALS['xoops']->path("{$path}/xoops_version.php");

        if (!
file_exists($file)) {
            return 
$ret;
        }
        
        
//add this line
        
xoops_loadLanguage('modinfo'$module);
        
//end

        
$force true;
        
$overwrite false;


Not tested, please let me know if it works.

3
satrebil
Re: Problem using the decorator MODULE in mymenus 1.1
  • 2011/2/4 14:23

  • satrebil

  • Just popping in

  • Posts: 15

  • Since: 2009/5/3 2


Hello Trabis,

I added the code you suggested in the previous post, and now the decorator MODULE works fine.

Thank you very much.

Mymenus is a great module.

Best regards

Carlos

Login

Who's Online

310 user(s) are online (263 user(s) are browsing Support Forums)


Members: 0


Guests: 310


more...

Donat-O-Meter

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

Latest GitHub Commits