Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.5
Author Message
mvillamizar
Regular
Regular



Joined: Nov 02, 2004
Posts: 54
Location: Colombia

PostPosted: Tue Nov 09, 2004 8:38 am Reply with quote

Hi,

I've got the following problem, I need to change some blocks and images depending on wich module the user is using. How can I do that? Is there any global variable in phpnuke to know the name of the module?

I really apreciate your help,

Thanks
 
View user's profile Send private message Visit poster's website
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6437

PostPosted: Tue Nov 09, 2004 4:49 pm Reply with quote

I've seen this approach:
Code:
$module_name = basename(dirname(__FILE__));

get_lang($module_name);


Also, there are some addons that allow you to control which blocks are displayed on which modules. Two that come to mind are PAL Conditional Blocks and WB Blocks Manager for Nuke. I'm sure if you search you can find them.

_________________
I search, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.5

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©