Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
4 + 7 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re:Getting current module name
by marcan on 2004/10/17 11:18:13

Hi reynaldom try this code :
le="color: #000000"><?php Global $xoopsModule; $moduleName = $xoopsModule->getVar('name'); $dirName = $xoopsModule->getVar('dirname');

The $moduleName variable now holds the name of the module, ie the name defined in System Admin > Modules for the specific module where the user is currently in.

The $dirname variable holds the name of the folder of the module, ie in http://www.yoursite.com/modules/$moduleName

Hope it helps !

Cheers !
Getting current module name
by reynaldo on 2004/10/17 9:29:30

Hello,

I don't know if this is the appropriated forum for this question: how can I get the current module name?
for example, let’s say I want to code a block which display current module name.
How can I get it to display it using XOOPS API and without having to resort to cheap tricks like extracting it from the current URL? Is this possible? I read XOOPS API documentation but couldn’t find anything related.

Thanks for your help.

Who's Online

838 user(s) are online (759 user(s) are browsing Support Forums)


Members: 0


Guests: 838


more...

Donat-O-Meter

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

Latest GitHub Commits