Latest Posts



· WS Games v2 Theme Released
· Plug in Writers
· v4 on PHP 5
· New Western Studios Marketplace Website!
· Best free antivirus software
· Best Free Zip Software
· Would you like to post your news on WS?



Radio Free Texas
The best and largest Texas/Red Dirt/Americana Music station on the web.
www.radiofreetexas.org

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

Comic Monsters
Comic Monsters News
www.comicmonsters.com

PHP Nuke Subscription
The #1 php nuke subscription module.
www.westernstudios.net

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


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

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

Platinum Subscriber

Posts: 3174
Staff
Next Group: 1826 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

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

Platinum Subscriber

Posts: 3174
Staff
Next Group: 1826 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

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 388 Tue Dec 06, 2005 6:36 pm
admin View latest post
No new posts New Forums 0 admin 366 Tue Nov 29, 2005 4:51 pm
admin View latest post
No new posts Forums dont work 1 Guest 371 Sun Oct 02, 2005 8:05 am
admin View latest post
No new posts PHP-Nuke and integrated forums 2 Guest 498 Sat Apr 23, 2005 7:05 am
admin View latest post
No new posts Search forums 0 admin 411 Thu Apr 07, 2005 2:30 pm
admin View latest post
 
Forums ©