1
carnuke
Changing module name in a block?
  • 2003/12/3 13:34

  • carnuke

  • Home away from home

  • Posts: 1955

  • Since: 2003/11/5


Had a good look around the forums for this and other sites. Still puzzled

How do you change the name of a module when it shows in a block?

I know you can hide modules and simply create a menu item that calls a particular url or id, but thats no use for something like the 'counter blocks' that need to show by default.

Many thanks, Richard (still crossing my hands & looking at the pedals!)


2
CBlue
Re: Changing module name in a block?

To simply change the name of a module so that it shows the name you want it to for the main menu, go to system admin, click on modules admin and then change the name of your module where it has the original name written. Click the submit button at the bottom of the list of modules.

If you want to change the name on the module's own pages and for links to the module from other page's, you will have to go to the language folder of the module and edit any php files you have there to edit the name of the module and anything else you want to edit for that module's language.

3
carnuke
Re: Changing module name in a block?
  • 2003/12/3 15:31

  • carnuke

  • Home away from home

  • Posts: 1955

  • Since: 2003/11/5


Thanks for the above; The control panel rename is straightforward, but it does not work for all modules. I have 'simple counter' and 'random quote' modules. I have changed the names in admin>modules etc. and in the language files 'modinfo.php' as follows

// // Names of blocks for this module (Not all module has blocks)
define("_RQ_BNAME","Random quote"); //used to be //
define("_RQ_BDESC","Shows a random quote");

//
and in simple counter file modinfo.php
//

define('_MI_SIMPLECOUNTER_NAME''VisitorCounter');
define('_MI_SIMPLECOUNTER_DESC''Visitor counter'); //used to be //


The counter block still shows as 'Simple Counter' and the quote block still shows as 'The quote'

Browser cache is clear... any other ideas?

Thanks Richard

4
hsalazar
Re: Changing module name in a block?
  • 2003/12/3 16:10

  • hsalazar

  • Just popping in

  • Posts: 78

  • Since: 2003/2/6 1


Richard:

Follow the logic in this thread:

https://xoops.org/modules/newbb/viewtopic.php?topic_id=13199&forum=4#forumpost52832

You'll probably be able to assign a different value to the variable... But I don't think that's what you really need. I'd like to take a look at these modules to see where in the blocks they retrieve the module names... I'll get to you later.

Cheers.

5
CBlue
Re: Changing module name in a block?

Richard, to change the name of any block, go to blocks admin and click the edit link to the far right of any block you want to rename. Put in the name you want and save the block.

6
carnuke
Re: Changing module name in a block?
  • 2003/12/3 19:14

  • carnuke

  • Home away from home

  • Posts: 1955

  • Since: 2003/11/5


YES, that's the one! Thanks CBlue Names changed correctly and as expected.

Richard

7
CBlue
Re: Changing module name in a block?

You're welcome, Richard!

Login

Who's Online

308 user(s) are online (185 user(s) are browsing Support Forums)


Members: 0


Guests: 308


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