1
Joey79
xoops_version.php variables
  • 2005/7/28 13:26

  • Joey79

  • Just popping in

  • Posts: 39

  • Since: 2005/7/28


How can I display the name of the module that I have inserted in xoops_version.php?
Thanks!

2
Ronaldus
Re: xoops_version.php variables
  • 2005/7/28 14:17

  • Ronaldus

  • Friend of XOOPS

  • Posts: 389

  • Since: 2004/5/8 1


You mean in the main menu?
Define the link as described in the FAQ section of this site.
Go to admin section, modules and give your module the name you want. This will display in the main menu.

Suc6,

3
Joey79
Re: xoops_version.php variables
  • 2005/7/28 15:36

  • Joey79

  • Just popping in

  • Posts: 39

  • Since: 2005/7/28


No, not in the main menĂ¹. I mean diplaying it on a page. For example I have made a module and in the index.php page of this module I would like to display at the top the name of the module (as for example FAQ for the FAQ module).

4
ackbarr
Re: xoops_version.php variables

//Wrap any $xoopsModule calls in an if block if your code 
//will be utilized in a block
if ($xoopsModule) {
  echo(
$xoopsModule->getVar('name')); //output module name
  
echo($xoopsModule->getVar('dirname')); //output module directory
}
Site Hosting - PlanetXoops

5
Joey79
Re: xoops_version.php variables
  • 2005/7/28 18:54

  • Joey79

  • Just popping in

  • Posts: 39

  • Since: 2005/7/28


Thanks! This is what I was trying to do

Login

Who's Online

179 user(s) are online (107 user(s) are browsing Support Forums)


Members: 0


Guests: 179


more...

Donat-O-Meter

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

Latest GitHub Commits