SimplePortal
Customization => Custom Coding => Topic started by: grafitus on September 26, 2009, 05:39:52 AM
-
Open {Your_SMF_Directory}/index.php (http://i33.tinypic.com/mh9hg0.png) (http://i34.tinypic.com/5682s.png)
sportal_init();
$GLOBALS['sportal_version'] = '';
If you make this change, anywhere "SimplePortal Version" is blank.
-
That would work, but there is little point in hiding your portal version number.
Also, some of the code in certain areas (like the general admin information area) rely on that variable which is set to nothing. ;)
-
if (!empty($_GET['action']) && ($_GET['action'] !== 'admin') && $context['user']['is_admin'])
$GLOBALS['sportal_version'] = '';
-
Administrating SP does not require being an admin. You should be checking the permission to admin SP, rather than if they're an admin.
-
Administrating SP does not require being an admin. You should be checking the permission to admin SP, rather than if they're an admin.
$context['user']['is_admin'] will return true if the user has any administrative permissions, iirc. That would include admining SP.
If not, simply change to isAllowedTo('admin_forum') or whatever the relevant permission is.
-
Open {Your_SMF_Directory}/index.php (http://i33.tinypic.com/mh9hg0.png) (http://i34.tinypic.com/5682s.png) sportal_init();
$GLOBALS['sportal_version'] = '';
If you make this change, anywhere "SimplePortal Version" is blank.
Confirmed not working on Simple Portal 2.3.3 on SMF 1.1.xx, as of May 13 2011... :(