News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Add or Remove buttons

Started by live627, July 23, 2010, 10:11:58 PM

Previous topic - Next topic

live627

Link to Mod

This mod will add options to remove or display the buttons of your choice

The current buttons supported are as follows
Home
Help
Search
Profile
Personal Messages
Calendar


Version 0.4.
Fixed the other buttons, they had the same errors as the home button
nobody probably noticed since the buttons were not their to click
if a member stumbles on an action where you have disabled the button
for that action, it will not attempt to select that button as its
disabled.
Added a lot more default to home actions, this mod should be completely
bug free now.

Version 0.3
The Home button bug is fixed, no more errors when disabling the home button.
I didn't add Admin or Moderate for obvious reasons.

I have not added any support for portals.

gbsothere

Congratulations, John.  It looks great!   :)
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

ɔɔɔɔɔɔuɥoɾ

Wow, this was approved without any warnings from the Customization team, that's a 1st :)

Your welcome, Enjoy :)


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

Afro

Looks good John. Weldone. I needed something like this but i had to remove buttons manually all the time.
This will be helpful when RC4 Comes out.

tRu3_sKiTz0

How would you suggest rtemoving the tniy portal button from the main menu?

Afro

check the Sources/subs.php file for the related code.

SN

if you remove a button... can you add it back?

say if somone removes the wrong button by mistake... if you know what i mean

ɔɔɔɔɔɔuɥoɾ

Quote from: tRu3_sKiTz0 on July 24, 2010, 09:46:58 AM
How would you suggest rtemoving the tniy portal button from the main menu?


I will be updating the mod with different versions, they will be called "portal" versions, those versions will have the additional options for adding or removing the portal created buttons.

Quote from: SN on July 24, 2010, 10:47:56 AM
if you remove a button... can you add it back?

say if somone removes the wrong button by mistake... if you know what i mean

Yes, you can add or remove buttons as you please, just check to disable, un-check will bring it back


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

ɔɔɔɔɔɔuɥoɾ

Bug found;

When removing the "Home" button, all default current actions result in an empty button on the right side at the end, I'm working on a fix for this at the moment, for now, just leave your home buttons on.


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

tRu3_sKiTz0

Keep up the good work! I can't wait till the remove all portal buttons!

ɔɔɔɔɔɔuɥoɾ

I'm still waiting for portal support requests, I cant just guess which portal you use lol :)

However, I think I will start a Simple Portal supported version 1st, depends on the demand


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

tRu3_sKiTz0

Well tiny portal is the one that has a button in the main menu and I would loev to get rid of that. I only keep TP installed because it kind hods my forum together in a nice way but I dont use it so I wanna lose the button for it.

ɔɔɔɔɔɔuɥoɾ

Quote from: tRu3_sKiTz0 on July 24, 2010, 11:37:12 PM
Well tiny portal is the one that has a button in the main menu and I would loev to get rid of that. I only keep TP installed because it kind hods my forum together in a nice way but I dont use it so I wanna lose the button for it.

Added to the to do list then :)


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

SN

Tiny portal would be the one i would want too :P

~DS~

Why? It's easier to comment out with // in the Subs.php or you can do this:

'show' => true, $context['allow_view_contact'],

To:
'show' => false, $context['allow_view_contact'],

Just replace true to false to hide the menu, if true is not there then add false.
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

ɔɔɔɔɔɔuɥoɾ

Quote from: Delita on July 25, 2010, 05:01:20 AM
Why? It's easier to comment out with // in the Subs.php or you can do this:

'show' => true, $context['allow_view_contact'],

To:
'show' => false, $context['allow_view_contact'],

Just replace true to false to hide the menu, if true is not there then add false.

You cannot use false, you replace

true,

with
'',


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

~DS~

That's not what I heard...
"There is no god, and that's the simple truth. If every trace of any single religion were wiped out and nothing were passed on, it would never be created exactly that way again. There might be some other nonsense in its place, but not that exact nonsense. If all of science were wiped out, it would still be true and someone would find a way to figure it all out again."
~Penn Jillette – God, NO! – 2011

Joker™

Quote from: ♪ JohnCcCcCc ♫ on July 25, 2010, 01:06:02 PM
You cannot use false, you replace

true,

with
'',

have you tried using false yet ?
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

ɔɔɔɔɔɔuɥoɾ

Quote from: Joker™ on July 25, 2010, 01:46:31 PM
Quote from: ♪ JohnCcCcCc ♫ on July 25, 2010, 01:06:02 PM
You cannot use false, you replace

true,

with
'',

have you tried using false yet ?

How do you think I discovered it lol, I naturally assumed false would be it, seems if you add anything their it shows the button.
I discovered this while making this mod.


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

Joker™

Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

Advertisement: