Customizing SMF > Portals, Bridges, and Integrations

New tools to help integrating SMF with something else

<< < (22/27) > >>

nathanmc:
Hi Kindred,

Thank you for your reply.

However, the Register button is still shown in the menu, even when Registration is disabled. This I believe, is an oversight that should perhaps be rectified in a future release.

Additionally, I've found instruction on other posts regarding deleting out the menu array for Login, Logout, Register in the Subs.php file. However, even if this has been done, this is ignored. And all of these options are still shown.

Something that people should be aware of, even if you perform the above action, the cache will hold onto these options (via cache? or cookies? or?) and you won't see the effect. Only today, after a PC restart do I see the removed buttons.

Thank you.

Kindred:
Nathan,

1... In my unmodified forum, register does not show if disabled.
2... Deleting the login, logout and register buttons from the menu array in subs.php removes the buttons. No other files Ned to be modified, but you could comment out the logout and login actions in index.php if you want to be thorough.


So, if these actions do not work for you, then you have other issues with our installation. Possibly a theme which does not respect the menu array.

Arantor:

--- Code: --- 'register' => array(
'title' => $txt['register'],
'href' => $scripturl . '?action=register',
'show' => $user_info['is_guest'],
'sub_buttons' => array(
),
'is_last' => !$context['right_to_left'],
),
--- End code ---

Either you're imagining it or it's not a fresh install: the register button STILL SHOWS even if registration is disabled.

On top of that there's still several language strings that needed to be changed to fix this (as I had to do in Wedge a bit back for this very reason)

The cache will only be held in the event of cache level being 2 or higher, as per:

--- Code: --- if (!empty($modSettings['cache_enable']) && $modSettings['cache_enable'] >= 2)
cache_put_data('menu_buttons-' . implode('_', $user_info['groups']) . '-' . $user_info['language'], $menu_buttons, $cacheTime);

--- End code ---

SMF does not install to level 2 on default. So other things could also be at play.

nathanmc:
Hi Arantor.

I'm not imagining it. The SMF is a fresh install, I'm still setting it up and modifying minor elements of the default theme (copied to another name). 

The cache level is the default install, so that won't be an issue as I never modified (I double checked).

It is doing the same thing with other file modifications as well. E.g. I'm attempting to modify the Script.js (as directed by Oldiesmann on another post) to set the default for all of the boards to be collapsed.

Perhaps it's a server issue with the cache? I refresh using Ctrl F5 in Firefox, so I don't believe it's a browser issue....

Any suggestions?

Thanks

Kindred:
I think the imagination comment was directed at me...  And he's apparently correct. For some reason, the logic seems to ave gotten lost.

However, removing the registration men item, same as logout and login will still work.

If editing the menu array in subs.php is not shoeing, then either your sever cache is not refreshed or your theme is not using the enu array.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version