SimplePortal

Customization => Custom Coding => Topic started by: Saviour on November 23, 2008, 09:11:58 PM

Title: Need help customizing a PHP block...
Post by: Saviour on November 23, 2008, 09:11:58 PM
I currently use the latest version of this portal mod...with SMF 1.1.7.

My navigation menu is packed...and what I'd like to do is remove some of these menu items and place them in a PHP block...keeping permissions intact.

If someone is not a registered member of the forum...then only certain navigation tabs are available to them.  If they're a registered user...then all of the navigation tabs are available.  What I'd like to do is have this same effect in a PHP block.

I'd like to make links in the block for my arcade, chat, profile, donations, articles and links.  A total of six links in the block.  However, if a guest views the board...the profile and chat link will not be viewable in the block, but the others will.  Is this possible?

If it is...then I can remove those tabs from the navigation menu...making it look less cluttered.

Thanks, in advance, for all your help...
Title: Re: Need help customizing a PHP block...
Post by: ???1031 on November 24, 2008, 12:52:58 AM
I currently use the latest version of this portal mod...with SMF 1.1.7.

My navigation menu is packed...and what I'd like to do is remove some of these menu items and place them in a PHP block...keeping permissions intact.

If someone is not a registered member of the forum...then only certain navigation tabs are available to them.  If they're a registered user...then all of the navigation tabs are available.  What I'd like to do is have this same effect in a PHP block.

I'd like to make links in the block for my arcade, chat, profile, donations, articles and links.  A total of six links in the block.  However, if a guest views the board...the profile and chat link will not be viewable in the block, but the others will.  Is this possible?

If it is...then I can remove those tabs from the navigation menu...making it look less cluttered.

Thanks, in advance, for all your help...
Yes it's possible.

Look into the function index.template.php there should be a the function template_menu. In this function you find the way how smf detect the correct menue for the right premission. You can use this without any problem in an php block.

Bye
DIN1031
Title: Re: Need help customizing a PHP block...
Post by: Saviour on November 24, 2008, 01:29:37 AM
Yes it's possible.

Look into the function index.template.php there should be a the function template_menu. In this function you find the way how smf detect the correct menue for the right premission. You can use this without any problem in an php block.

Bye
DIN1031

Thanks for the reply...and if I were anything other than a "newbie coder", I might even have understood that.  However, I'm still just sitting here staring at your reply.

Thanks, anyway...
SimplePortal 2.3.8 © 2008-2024, SimplePortal