Your Ads Here
Advertise with Western Studios.
www.westernstudios.net

PHP Nuke Services
Need work done on your site? View our services for the best in phpnuke services.
www.westernstudios.net

Theme Shop
Get the best in phpnuke themes, stock photos, icons from Western Studios themes shop.
shop.westernstudios.net

PHP Nuke Downloads
The latest and best in php nuke downloads.
www.westernstudios.net

Live Tutorials
PHP, Photoshop, flash, illustrator tutorials.
www.live-tutorials.com


Advertise Here


Western Studios :: View topic - show block based on module page
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups     ProfileProfile   Log inLog in 


show block based on module page



 
Post new topic   Reply to topicprinter friendly version    Western Studios Forum Index -> Blocks
Western Studios

Beta Tester
Beta Tester
~PHP Nuke User~

Platinum Subscriber

Posts: 224
Staff
Next Group: 276 posts
newuser wrote:

Is there a way that I can only show the Block based on the module page that Im on?

I want to limit my block to only show up when the user clicks on a specific module pages. For Inst ace the forums only showing a block for new forum posts.

Posted: Mon Apr 28, 2008 3:13 pm

Western Studios

Site Admin
Site Admin
~PHP Nuke User~

Platinum Subscriber

Posts: 3230
Staff
Next Group: 1770 posts
admin(Mark) wrote:

There are two ways this can be achieved. The first can be an hard coded mod that would be inside the mainfile.php blocks functions. You will need to get the module name using the global $name function then use a basic if statement to display the block if it is at the current module.
The next option would be to create a full mod that would give the option inside the blocks admin to choose which module the block should be displayed.
I supposed a simpler method could also be achieved inside the theme.php file. I will do a test and see how it turns out.

Posted: Mon Apr 28, 2008 5:07 pm

Western Studios

Beta Tester
Beta Tester
~PHP Nuke User~

Platinum Subscriber

Posts: 224
Staff
Next Group: 276 posts
newuser wrote:

Thanks mark. I really appreciate it.

Posted: Mon Apr 28, 2008 5:37 pm

Western Studios

Site Admin
Site Admin
~PHP Nuke User~

Platinum Subscriber

Posts: 3230
Staff
Next Group: 1770 posts
admin(Mark) wrote:

This tutorial should do the trick. Let me know if it works the way you wanted.

http://www.westernstudios.net/tutorial-block-per-module

Posted: Tue Apr 29, 2008 1:29 pm

Western Studios

Beta Tester
Beta Tester
~PHP Nuke User~

Platinum Subscriber

Posts: 224
Staff
Next Group: 276 posts
newuser wrote:

wohoo!! Works perfectly. Simple and easy. Thanks again mark.

Posted: Tue Apr 29, 2008 2:25 pm

Post new topic   Reply to topic    Western Studios Forum Index -> Blocks All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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


Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts Forums module? 4 Valejo 429 Tue Dec 06, 2005 6:36 pm
admin View latest post
No new posts New Forums 0 admin 412 Tue Nov 29, 2005 4:51 pm
admin View latest post
No new posts Forums dont work 1 Guest 414 Sun Oct 02, 2005 8:05 am
admin View latest post
No new posts PHP-Nuke and integrated forums 2 Guest 571 Sat Apr 23, 2005 7:05 am
admin View latest post
No new posts Search forums 0 admin 446 Thu Apr 07, 2005 2:30 pm
admin View latest post
 
Forums ©