Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Bulakbol on August 04, 2008, 06:44:30 PM

Title: Super Admin
Post by: Bulakbol on August 04, 2008, 06:44:30 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1306)

Author: JohnyB    Mod Name: ZuperAdmin    Version: 1.4
Tested: Freshly installed SMF 1.1.7 and SMF 2.0 Beta 4

Zuper Admin

Spy members are:

Spy Profile:

Bonus

Note:

I thank you.

SuperAdmin117_UOT.zip

SuperAdmin.zip

December 13, 2008

January 8, 2009

February 18, 2009
Title: Re: Super Admin
Post by: ccbtimewiz on August 04, 2008, 07:10:49 PM
Great mod, but one tiny problem. What if someone whom is admin (and not root admin) were to uninstall this package? How can you prevent them from doing so without deleting the package and/or preventing them from adding packages?
Title: Re: Super Admin
Post by: Adish - (F.L.A.M.E.R) on August 04, 2008, 07:24:02 PM
This is a very good mod. But the problem is like, I bought the site when i had a different user number, Hence i am not like the number 1 admin. So how shall I change the permissions to keep me safe rather than the profile 1 ?

I am sorry to disrupt your free time, but it would be great if you can help.

Thank you.
Title: Re: Super Admin
Post by: edi67 on August 05, 2008, 04:20:58 AM
great
Title: Re: Super Admin
Post by: Nathaniel on August 05, 2008, 04:25:19 AM
Very nice mod, It will come in handy when I need to add some more admin to my website! :)

Thank you!
Title: Re: Super Admin
Post by: Adish - (F.L.A.M.E.R) on August 05, 2008, 08:04:51 AM
Quote from: Kylezz on August 04, 2008, 11:30:55 PM
Quote from: F.L.A.M.E.R on August 04, 2008, 07:24:02 PM
This is a very good mod. But the problem is like, I bought the site when i had a different user number, Hence i am not like the number 1 admin. So how shall I change the permissions to keep me safe rather than the profile 1 ?

I am sorry to disrupt your free time, but it would be great if you can help.

Thank you.
Well, you can try the button that says 'HELP' Or just Click 'HOME' press CTRL F and find the word: Help

Ahh.. what am suppose to do with the "Help" Option ? How will that help me ?
Title: Re: Super Admin
Post by: Eliana Tamerin on August 05, 2008, 12:47:30 PM
Quote from: F.L.A.M.E.R on August 04, 2008, 07:24:02 PM
This is a very good mod. But the problem is like, I bought the site when i had a different user number, Hence i am not like the number 1 admin. So how shall I change the permissions to keep me safe rather than the profile 1 ?

I am sorry to disrupt your free time, but it would be great if you can help.

Thank you.

That's not hard. Just change all the instances of 1 to $yourid (where $yourid is, well, your ID):

NOTE: I'm assuming you use SMF 1.1.5!

Open Load.php:
Code (Find this) Select
mem.usertitle' : '');
$select_tables = "
LEFT JOIN {$db_prefix}log_online AS lo ON (lo.ID_MEMBER = mem.ID_MEMBER)
" . ($ID_MEMBER != 1 ? " AND mem.spy != 1" : '') . "


Code (Replace with) Select
mem.usertitle' : '');
$select_tables = "
LEFT JOIN {$db_prefix}log_online AS lo ON (lo.ID_MEMBER = mem.ID_MEMBER)
" . ($ID_MEMBER != $yourid ? " AND mem.spy != $yourid" : '') . "


Code (Find this) Select
IF(mem.ID_GROUP = 0 OR mg.stars = '', pg.stars, mg.stars) AS stars, mem.passwordSalt";
$select_tables = "
LEFT JOIN {$db_prefix}log_online AS lo ON (lo.ID_MEMBER = mem.ID_MEMBER)
" . ($ID_MEMBER != 1 ? " AND mem.spy != 1" : '') . "


Code (Replace with) Select
IF(mem.ID_GROUP = 0 OR mg.stars = '', pg.stars, mg.stars) AS stars, mem.passwordSalt";
$select_tables = "
LEFT JOIN {$db_prefix}log_online AS lo ON (lo.ID_MEMBER = mem.ID_MEMBER)
" . ($ID_MEMBER != $yourid ? " AND mem.spy != $yourid" : '') . "


Open Profile.php:
Code (Find this) Select
if (($context['user']['is_owner'] && allowedTo('profile_identity_own') && $memID == 1) || allowedTo(array('profile_identity_any', 'manage_membergroups')) && $memID != 1)

Code (Replace with) Select
if (($context['user']['is_owner'] && allowedTo('profile_identity_own') && $memID == $yourid) || allowedTo(array('profile_identity_any', 'manage_membergroups')) && $memID != $yourid)


Code (Find this) Select
if (($context['user']['is_owner'] && allowedTo('profile_remove_own') && $memID != 1) || allowedTo('profile_remove_any') && $memID != 1)

Code (Replace with) Select
if (($context['user']['is_owner'] && allowedTo('profile_remove_own') && $memID != $yourid) || allowedTo('profile_remove_any') && $memID != $yourid)


Open BoardIndex.php:
Code (Find this) Select
if (!empty($row['spy']) && $context['user']['id'] != 1)
{
$context['num_spy']++;
continue;
}
elseif (empty($row['realName']))


Code (Replace with) Select
if (!empty($row['spy']) && $context['user']['id'] != $yourid)
{
$context['num_spy']++;
continue;
}
elseif (empty($row['realName']))



Code (Find this) Select
if ($row['spy'] == 1)
$link = $link . $txt['spy_stat'];

$is_buddy = in_array($row['ID_MEMBER'], $user_info['buddies']);


Code (Replace with) Select
if ($row['spy'] == $yourid)
$link = $link . $txt['spy_stat'];

$is_buddy = in_array($row['ID_MEMBER'], $user_info['buddies']);




Open Memberlist.template.php:
Code (Find this) Select
<td class="windowbg" align="left">', $member['link'], ' ', ($context['user']['id'] == '1' && $member['spy']) ? $txt['spy_stat'] : '', '</td>

Code (Replace with) Select
<td class="windowbg" align="left">', $member['link'], ' ', ($context['user']['id'] == '$yourid' && $member['spy']) ? $txt['spy_stat'] : '', '</td>



Open ManageBoards.template.php:
Code (Find this) Select
if (!$board['admin1'] || $context['user']['id'] == 1)

Code (Replace with) Select
if (!$board['admin1'] || $context['user']['id'] == $yourid)


Code (Find this) Select
if ($context['user']['id'] == 1)
echo '
<tr>
<td>
<b>', $txt['admin1_only'], '</b><br />
', $txt['admin1_desc'], '<br /><br />
</td>
<td valign="top" align="right">
<input type="checkbox" name="admin1" ', $context['board']['admin1'] ? ' checked="checked"' : '', ' class="check" />
</td>
</tr>';


Code (Replace with) Select
if ($context['user']['id'] == $yourid)
echo '
<tr>
<td>
<b>', $txt['admin1_only'], '</b><br />
', $txt['admin1_desc'], '<br /><br />
</td>
<td valign="top" align="right">
<input type="checkbox" name="admin1" ', $context['board']['admin1'] ? ' checked="checked"' : '', ' class="check" />
</td>
</tr>';




Open Profile.template.php:
Code (Find this) Select
<td>', $context['member']['name'], ' ',
$context['user']['is_admin'] ? '(' . $context['member']['id'] . ')' : '',
($context['user']['id'] == $yourid && $context['member']['spy'] == $yourid) ? $txt['spy_stat'] : '', '
</td>



Code (Find this) Select
<td>', $context['member']['spy'] == 1 && $context['user']['id'] != 1 ? $txt['never'] : $context['member']['last_login'], '</td>

Code (Replace with) Select
<td>', $context['member']['spy'] == $yourid && $context['user']['id'] != $yourid ? $txt['never'] : $context['member']['last_login'], '</td>


Code (Find this) Select
// Some more information.
echo '
</td>
</tr>';
if (!empty($context['member']['website']['url']))
echo '
<tr>
<td><b>', $txt[96], ': </b></td>
<td><a href="', $context['member']['website']['url'], '" target="_blank">', $context['member']['website']['title'], '</a></td>
</tr>';
echo '
<tr>
<td><b>', $txt[113], ' </b></td>
<td>';
if ($context['user']['id'] != 1 && $context['member']['spy'] == 1)
echo '<i>', $context['can_send_pm'] ? '<a href="' . $context['member']['online']['href'] . '" title="' . $context['member']['online']['label'] . '">' : '', $settings['use_image_buttons'] ? '<img src="' . $settings['default_images_url'] . '/useroff.gif' . '" alt="' . $txt['online3'] . '" align="middle" />' : $txt['online3'], $context['can_send_pm'] ? '</a>' : '', $settings['use_image_buttons'] ? '<span class="smalltext"> ' . $txt['online3'] . '</span>' : '', '</i>';
else
echo '<i>', $context['can_send_pm'] ? '<a href="' . $context['member']['online']['href'] . '" title="' . $context['member']['online']['label'] . '">' : '', $settings['use_image_buttons'] ? '<img src="' . $context['member']['online']['image_href'] . '" alt="' . $context['member']['online']['text'] . '" align="middle" />' : $context['member']['online']['text'], $context['can_send_pm'] ? '</a>' : '', $settings['use_image_buttons'] ? '<span class="smalltext"> ' . $context['member']['online']['text'] . '</span>' : '', '</i>';


Code (Replace with) Select
// Some more information.
echo '
</td>
</tr>';
if (!empty($context['member']['website']['url']))
echo '
<tr>
<td><b>', $txt[96], ': </b></td>
<td><a href="', $context['member']['website']['url'], '" target="_blank">', $context['member']['website']['title'], '</a></td>
</tr>';
echo '
<tr>
<td><b>', $txt[113], ' </b></td>
<td>';
if ($context['user']['id'] != $yourid && $context['member']['spy'] == $yourid)
echo '<i>', $context['can_send_pm'] ? '<a href="' . $context['member']['online']['href'] . '" title="' . $context['member']['online']['label'] . '">' : '', $settings['use_image_buttons'] ? '<img src="' . $settings['default_images_url'] . '/useroff.gif' . '" alt="' . $txt['online3'] . '" align="middle" />' : $txt['online3'], $context['can_send_pm'] ? '</a>' : '', $settings['use_image_buttons'] ? '<span class="smalltext"> ' . $txt['online3'] . '</span>' : '', '</i>';
else
echo '<i>', $context['can_send_pm'] ? '<a href="' . $context['member']['online']['href'] . '" title="' . $context['member']['online']['label'] . '">' : '', $settings['use_image_buttons'] ? '<img src="' . $context['member']['online']['image_href'] . '" alt="' . $context['member']['online']['text'] . '" align="middle" />' : $context['member']['online']['text'], $context['can_send_pm'] ? '</a>' : '', $settings['use_image_buttons'] ? '<span class="smalltext"> ' . $context['member']['online']['text'] . '</span>' : '', '</i>';



Code (Find this) Select
if ($context['member']['id'] == 1 && $context['user']['id'] != 1)
fatal_error($txt['no_way']);

// The main containing header.
echo '
<form action="', $scripturl, '?action=profile2" method="post" accept-charset="', $context['character_set'], '" name="creator" id="creator" onsubmit="return checkProfileSubmit();">


Code (Replace with) Select
if ($context['member']['id'] == $yourid && $context['user']['id'] != $yourid)
fatal_error($txt['no_way']);

// The main containing header.
echo '
<form action="', $scripturl, '?action=profile2" method="post" accept-charset="', $context['character_set'], '" name="creator" id="creator" onsubmit="return checkProfileSubmit();">



Code (Find this) Select
if (($context['allow_edit_membergroups'] && $context['user']['is_owner'] && $context['member']['group'] == 1) && $context['member']['id'] != 1)

Code (Replace with) Select
if (($context['allow_edit_membergroups'] && $context['user']['is_owner'] && $context['member']['group'] == $yourid) && $context['member']['id'] != $yourid)


Code (Find this) Select
// If deleting another account give them a lovely info box.
if ($context['member']['id'] == 1 && $context['user']['id'] != 1)
fatal_error($txt['no_way']);


Code (Replace with) Select
// If deleting another account give them a lovely info box.
if ($context['member']['id'] == $yourid && $context['user']['id'] != $yourid)
fatal_error($txt['no_way']);




Open Who.template.php:
Code (Find this) Select
if (!$member['spy'] || $context['user']['id'] == 1)

Code (Replace with) Select
if (!$member['spy'] || $context['user']['id'] == $yourid)



If you want you can alter the language files.
Title: Re: Super Admin
Post by: N3RVE on August 05, 2008, 01:39:24 PM
Nice mod Johny ;)
Great work Eliana :)

-[n3rve]
Title: Re: Super Admin
Post by: Adish - (F.L.A.M.E.R) on August 05, 2008, 08:24:38 PM
@ Eliana Tamerin

I did all the edits you told me to do, but yet the option doesnt show up in Account Related Settings.

Any file that you might have missed which I have to edit ?

I have also checked that the number 1 account has been deleted. I mean the admin account who owned the site long back.

So any way to make myself the user 1 ? I am at the moment the user 9

Thank you for your time to help me out.
Title: Re: Super Admin
Post by: Eliana Tamerin on August 05, 2008, 09:22:05 PM
LOL, you could have said that! Just change your user ID in the database.
Title: Re: Super Admin
Post by: Adish - (F.L.A.M.E.R) on August 05, 2008, 09:27:02 PM
oh seriously.. was that it ? If i would have changed my user ID in database, everything yould have worked well ?
Title: Re: Super Admin
Post by: ccbtimewiz on August 05, 2008, 09:31:33 PM
Quote from: Eliana Tamerin on August 05, 2008, 09:22:05 PM
LOL, you could have said that! Just change your user ID in the database.

Bad idea. It would be hell to have to update every single table to preappend his new ID.
Title: Re: Super Admin
Post by: Eliana Tamerin on August 05, 2008, 09:33:44 PM
Oh, true. But i dunno. The mod was made for User Numero Uno. Guess JB will have to put his head to it.
Title: Re: Super Admin
Post by: Adish - (F.L.A.M.E.R) on August 05, 2008, 09:37:38 PM
So well.. No new ideas as such ? That can change the user ID ? I changed all the "1" to "9" in all the edits you asked me.

Actually it is not that important as i have set permissions that users can delete their own account only. Only me as the owner a.k.a admin of the site can delete other accounts. But yet securing other accounts is somewhat a good idea.

Why do these type of problems come to me..!! :(

Tell me if anything is possible.

Thank you.
Title: Re: Super Admin
Post by: Nathaniel on August 05, 2008, 09:39:46 PM
Just remember that you will probably need to alter most other tables in smf, because there are a lot of tables that use the 'ID_MEMBER' column. You will have to have those values for every table that uses that column, or there will be major errors.

Queries like this will work (for SMF 1.1.5, use id_member for SMF 2 Beta):
QuoteUPDATE {$db_prefix}table
SET ID_MEMBER = '1'
WHERE ID_MEMBER = '9'

You will have to run that query, quite a few times. ;)
Title: Re: Super Admin
Post by: Eliana Tamerin on August 05, 2008, 09:41:46 PM
I can think of a few, like messages, boards, topics, PM, PM recipients, members, log_*, etc.
Title: Re: Super Admin
Post by: Nathaniel on August 05, 2008, 09:45:55 PM
Indeed, you will have to run these other queries as well, for specific tables:
QuoteUPDATE {$db_prefix}topics
SET ID_MEMBER_STARTED = '1'
WHERE ID_MEMBER_STARTED = '9'
QuoteUPDATE {$db_prefix}topics
SET ID_MEMBER_UPDATED = '1'
WHERE ID_MEMBER_UPDATED = '9'
QuoteUPDATE {$db_prefix}personal_messages
SET ID_MEMBER_FROM= '1'
WHERE ID_MEMBER_FROM = '9'

They are the only extra queries apart from the 'ID_MEMBER' ones that I could find for SMF 1.1.5.
Title: Re: Super Admin
Post by: Adish - (F.L.A.M.E.R) on August 05, 2008, 09:51:00 PM
Everything is going bumper.. Isnt there a easy way out ?
Title: Re: Super Admin
Post by: butchs on August 05, 2008, 09:51:49 PM
Nice mod!  Love it...
8)
Title: Re: Super Admin
Post by: christicehurst on August 05, 2008, 11:58:21 PM
A great mod that evens the odds with other forum software. Great work!
Title: Re: Super Admin
Post by: Bulakbol on August 06, 2008, 07:28:58 PM
Wow, I was off for a day and here's what I got. Lots of messages.

@F.L.A.I.M.E.R.
  Just create another account and change the ID to 1 to make that account the Super Admin.

I thanks you guys for the kind words and help.
ccbtimewiz
edit67
LHVWB
Eliana Tamerin
[n3rve]
christiehurst

Title: Re: Super Admin
Post by: Adish - (F.L.A.M.E.R) on August 06, 2008, 07:31:58 PM
Quote from: JohnyB on August 06, 2008, 07:28:58 PM
@F.L.A.I.M.E.R.
  Just create another account and change the ID to 1 to make that account the Super Admin.


Yep sure, but how ? From database ? Thats where the complications come up. I was searching for a easier way out. Thought there might be some solution. Well, as you are the Mod maker, you maybe having some ideas ? Please share up to make life easy.

Thank you.
Title: Re: Super Admin
Post by: Bulakbol on August 06, 2008, 08:10:20 PM
Register a new account and then change the ID_MEMBER to 1 from database.
Title: Re: Super Admin
Post by: Adish - (F.L.A.M.E.R) on August 06, 2008, 09:02:21 PM
*cough* *cough* after checking it 3 times i got to know that i didnt edit one of the line in profile.template.php which Eliana Tamerin gave me. If not then, I rechecked everything up with the package parser but didnt compare it here. About 2-3 numbers to be edited where not given up here. (Wasnt bothered to check).

Well, Finally worked.. Cheers to all... Party at my house... :D
Title: Re: Super Admin
Post by: Bulakbol on August 06, 2008, 10:08:38 PM
Congratz! Let's have a drink. Cheers. :)
Title: Re: Super Admin
Post by: Bulakbol on August 07, 2008, 01:53:46 AM
Quote from: ccbtimewiz on August 04, 2008, 07:10:49 PM
Great mod, but one tiny problem. What if someone whom is admin (and not root admin) were to uninstall this package? How can you prevent them from doing so without deleting the package and/or preventing them from adding packages?

You can delete the package so it won't show up in the list of installed mods.
Title: Re: Super Admin
Post by: edi67 on August 07, 2008, 02:26:13 AM
One little problem jonhy: my Global Moderator CANNOT edit mermbers profile, the mod give them errors, so they cannot for example, change usergroup to each user.
Title: Re: Super Admin
Post by: Bulakbol on August 07, 2008, 02:42:17 AM
Can you elaborate more edi67. Like what part of the members profile are they trying to modify? The mod is only for admin#1 and has nothing to do with any other membergroups permissions.
Title: Re: Super Admin
Post by: edi67 on August 07, 2008, 03:10:26 AM
Quote from: JohnyB on August 07, 2008, 02:42:17 AM
Can you elaborate more edi67. Like what part of the members profile are they trying to modify? The mod is only for admin#1 and has nothing to do with any other membergroups permissions.

part that my global mods want elaborate is ACCOUNT SETTINGS of user profile appear this error:

An Error Has Occurred!

without mod everything work.
Title: Re: Super Admin
Post by: Bulakbol on August 07, 2008, 04:08:15 AM
Leave it uninstalled for now. I will check the 2.0 b3 version. Thanks for letting me know.

<edit>
Sources/Profile.php, find
'any' => array('profile_identity_any', 'manage_membergroups') && $memID != 1,
and replace with
'any' => array('profile_identity_any', 'manage_membergroups'),
'enabled' => $memID != 1,


OR download the new updated package. Thanks.
</edit>
Title: Re: Super Admin
Post by: edi67 on August 07, 2008, 04:44:20 AM
Quote from: JohnyB on August 07, 2008, 04:08:15 AM
OR download the new updated package. Thanks.
</edit>


excellent your last package seems to work without errors, BRAVO johnny ;)
Title: Re: Super Admin
Post by: Bulakbol on August 07, 2008, 04:57:10 AM
Thanks. I hope others who downloaded earlier copy will redownload the version for SMF 2.0 Beta 3.1 package again.
Title: Re: Super Admin
Post by: hawaii on August 09, 2008, 06:27:35 PM
hi this is a mod i would really like but unfortunatly im having problems :(

im running smf1.15

this is the error message i get when i have dowloaded it and before i have applied mod supermod115_UOT


Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
Installation Readme
Author: JohnyB    Mod Name: SuperAdmin    Version: 1.0
Tested: Freshly installed SMF 1.1.5 and SMF 2.0 Beta 3.1

--------------------------------------------------------------------------------
This will install SuperAdmin mod version 1.0

Super Admin

Protect admin#1 from deletion of himself or by other admins.
No other admins can ban or post warn admin#1.
Hide important information of admin#1 from other admins.
A board switch that if enabled (checked), other admins can see the board in board index
but cannot modify permissions etcetera. Only admin#1 can.
Assign members as spies including himself as a superspy by going to
Profile => Account Related Settings. You won't miss it.
See who are online spies.

Spy members are:

Invisible and cannot be seen by members or other admins.
Cannot see theirselves.

Spy Profile:

Never logged-in.
Always offline.

Bunos

SMF 1.1.5: In Profile summary, hide icq, msn, website etc. if they are empty.

Note:

I have no more time to do the edits for you so please do not ask.

I thank you.

SuperAdmin115_UOT.zip

Contains installation codes for those who installed "Users Online Today" mod.
It's for version SMF 1.1.5 only.

SuperAdmin.zip

For version SMF 2.0 Beta 3.1 with or without "User Online Today" mod installed.
It is also for version SMF 1.1.5 without "Users Online Today" mod installed.



Install Actions
Installations actions for "Super Admin with UOT":
Installing this package will perform the following actions:  Type Action Description
1. Execute Code SuperAdminDB115.php 
2. Execute Modification ./Sources/Load.php Test successful
3. Execute Modification ./Sources/Subs-Boards.php Test successful
4. Execute Modification ./Sources/ManageBoards.php Test successful
5. Execute Modification ./Sources/Profile.php Test successful
6. Execute Modification ./Sources/BoardIndex.php Test failed
7. Execute Modification ./Sources/Who.php Test successful
8. Execute Modification ./Themes/default/Memberlist.template.php Test successful
9. Execute Modification ./Themes/default/ManageBoards.template.php Test failed
10. Execute Modification ./Themes/default/Profile.template.php Test failed
11. Execute Modification ./Themes/default/Who.template.php Test successful
12. Execute Modification ./Themes/default/languages/index.english.php Test successful
13. Execute Modification ./Themes/default/languages/index.english-utf8.php Test successful
14. Execute Modification ./Themes/default/languages/ManageBoards.english.php Test successful
15. Execute Modification ./Themes/default/languages/ManageBoards.english-utf8.php Test successful





would apprecaite any help

thanks.
Title: Re: Super Admin
Post by: Adish - (F.L.A.M.E.R) on August 09, 2008, 06:30:34 PM
@ hawaii
Do you have user online today mod installed ?

If yes then do the edits manually for the files, the test has failed.

If no then use another version of this mod as it is for the people who havnt got user online today mod installed.

Hope that helps you out.
Title: Re: Super Admin
Post by: hawaii on August 09, 2008, 06:48:26 PM
thankyou will check that out now.
Title: Re: Super Admin
Post by: Bulakbol on August 10, 2008, 09:19:36 PM
Thanks guys. The mod is temporary unavailable because of a bug. Please uninstall the mod. I'll let you know when the bug is dead.

Bug fixed. The mod is up again. Thanks.

Only the version for SMF 2.0 Beta 3 that has bug. The one for version 1.1.5 is bug-free.
Title: Re: Super Admin
Post by: Adish - (F.L.A.M.E.R) on August 11, 2008, 06:31:03 AM
what what..?? What was the bug.? Anything major ?
Title: Re: Super Admin
Post by: Eliana Tamerin on August 11, 2008, 08:31:31 AM
Nothing major if you upgrade.
Title: Re: Super Admin
Post by: Bulakbol on August 11, 2008, 11:20:09 AM
Yes, Eliana is right. Grab the latest upgrade. Thanks Eliana.
Title: Re: Super Admin
Post by: hawaii on August 13, 2008, 11:47:51 AM
hi, sorry im still having the same probs, i have the users online today ive installed both packages and im getting the same probs with both.

Sorry to sound abit dim but im usless with this type of thing but i really do need this package and would be gratefull for any help

many thanks.
Title: Re: Super Admin
Post by: Bulakbol on August 13, 2008, 11:34:44 PM
@hawaii
Have you tried installing the mod manually? Any success?
Title: Re: Super Admin
Post by: Bulakbol on August 16, 2008, 04:47:26 AM
Update:
Post group members cannot access/edit their Account Settings because of a misplaced round bracket.  I apologize. It's the package for SMF 1.1.5 that was affected.

edit
For those who don't want to uninstall/reinstall the mod and want to edit the code, Sources/Profile.php.
Code (find) Select
if (($context['user']['is_owner'] && allowedTo('profile_identity_own') && $memID == 1) || allowedTo(array('profile_identity_any', 'manage_membergroups')) && $memID != 1)
Code (replace) Select
if (($context['user']['is_owner'] && allowedTo('profile_identity_own' && $memID == 1)) || allowedTo(array('profile_identity_any', 'manage_membergroups')) && $memID != 1)
Title: Re: Super Admin
Post by: Basie on August 16, 2008, 12:20:13 PM
'spy mode' does not work with tiny portal.

A spy user is still displayed in the TP "users online" block.
Title: Re: Super Admin
Post by: Bulakbol on August 16, 2008, 09:15:23 PM
Ah, I forgot about Tiny Portal. I'll update the package for version 1.1.5 then. Thanks Basie.
Title: Re: Super Admin
Post by: Basie on August 16, 2008, 11:40:26 PM
Awesome, thanks JohnyB. Great mod btw. Very useful feature. :)
Title: Re: Super Admin
Post by: Bulakbol on August 17, 2008, 11:47:54 PM
Thanks Basie. The package is already updated. I forgot to post about the update.
Title: Re: Super Admin
Post by: masternewbie on August 18, 2008, 12:57:26 AM
I have a question about installation using the package manager.

I have SMF 115 and TP installed. Do you think that it is because of the TP I get this one error on file #9?
I am running the default core theme that is a little bit tweaked. http://www.luckie8.com/forum (http://www.luckie8.com/forum) if you want to see it.

This is the error I get for the one file #9:
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Code    SuperAdminDB115.php    
2.    Execute Modification    ./Sources/Load.php             Test successful
3.    Execute Modification    ./Sources/Subs-Boards.php    Test successful
4.    Execute Modification    ./Sources/ManageBoards.php    Test successful
5.    Execute Modification    ./Sources/Profile.php            Test successful
6.    Execute Modification    ./Sources/BoardIndex.php    Test successful
7.    Execute Modification    ./Sources/Who.php                    Test successful
8.    Execute Modification    ./Themes/default/Memberlist.template.php            Test successful
9.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test failed
10.    Execute Modification    ./Themes/default/Profile.template.php                    Test successful
11.    Execute Modification    ./Themes/default/Who.template.php                    Test successful
12.    Execute Modification    ./Themes/default/languages/index.english.php    Test successful
13.    Execute Modification    ./Themes/default/languages/ManageBoards.english.php            Test successful
14.    Execute Modification    ./Themes/default/languages/index.english-utf8.php                    Skipping file
15.    Execute Modification    ./Themes/default/languages/ManageBoards.english-utf8.php    Skipping file
16.    Execute Modification    ./SSI.php                                                                                     Test successful

Can I just install it and then do a manual edit of the ManageBoards.template.php file as specified by the manual install directions?

More information about my forum. I have these mods installed.
Mod Name                             Version     
1.    Global Headers Footers    1.3
2.    Treasury    2.12    
3.    SMF Arcade    2.0.14    
4.    FontandSizeDropdown_1.2    1.3    
5.    RemovePM    1.1.4    
6.       
7.    Colorize Boards    2.0    
8.    Limit A Guests Daily PageViews Mod    1.0    
9.    Avatar Under Membergroups Rank    1.1b    
10.    Password Protect Boards    0.2    
11.    
12.    Are You Human? Anti-Bot Registration Check    1.1    
13.    Previous and Next Links for Page Index    1.0    
14.    Auto Embed Video Clips    2.1.1    
15.    EmailFlash    2.0    
16.    Integrate Lightbox    1.4    
17.    Admin member list registration date    1.0    
18.    MessagePreviewOnHover    1.5    
19.    AddThis Social Bookmarks    1.0    
20.    SMFbuy    1.3    
21.    Sarcasmics smiley set    1.1    
22.    SMF 1.0.13 / 1.1.5 / 2.0 b3.1 Update    1.0    
23.    Bookmarks    1.1    
24.    Prevent Adding Signature Images And Links

I tried to install a couple of mods today through the package manager (ImageOn board, Super Admin) and they both were affected this way.
Thanks!
Any help would be appreciated.
Title: Re: Super Admin
Post by: Bulakbol on August 18, 2008, 01:13:06 AM
Tiny Portal uses SSI.php so TP has nothing to do with other files. You can manually edit the file that failed the test by using the parser. Find the ManageBoards.template.php  and do the neccessary edits.

http://custom.simplemachines.org/mods/index.php?action=parse;mod=1306;attach=65141;smf_version=1.1.5
Title: Re: Super Admin
Post by: masternewbie on August 18, 2008, 01:26:27 AM
Johny,

Thanks for the quick reply. I will do as instructed.

Thanks a lot!
Title: Re: Super Admin
Post by: Mr_Lon on October 08, 2008, 05:10:19 PM
It sounds like a great mod but I'm using SMF version 1.1.6 and it don't like that version and see that it states that it is for 1.1.5 only?
I get 4 not compatible messages with V1.1.6 when I try to install it.

I get this message:
Error in Package Installation
3. Execute Modification ./Sources/Subs-Boards.php Test failed
6. Execute Modification ./Sources/BoardIndex.php Test failed
9. Execute Modification ./Themes/default/ManageBoards.template.php Test failed
10. Execute Modification ./Themes/default/Profile.template.php Test failed

Is there an updates version in the works? Or something that I can do?

Title: Re: Super Admin
Post by: Bulakbol on October 09, 2008, 08:17:34 PM
You have to install the mod manually Mr_Lon. There must be lots of mods installed.  The first three files are only few lines with one line each to edit. The Profile.template.php is the biggest one. I will help you with the last one if you'll do the first three. Attach your Profile.template.php if you want me to edit it.
Title: Re: Super Admin
Post by: machmanx on October 12, 2008, 10:58:25 PM
There is a flaw in the mod, the forum still keeps track of when user was last active, including time.  So it's not a perfect spy mod unless that issue is solved.  Besides that, the mod is great ;)
Title: Re: Super Admin
Post by: Bulakbol on October 14, 2008, 12:40:23 AM
@machmanx
I don't know if you can call it a flaw. I'll listen to any suggestion.
Title: Re: Super Admin
Post by: SpectroPro on October 14, 2008, 05:32:54 AM
Johny,

I am wondering if mine didn't install properly..  You fixed my error I posted before but now I get this one:

'label' => $txt['hide_from_list'],

Rather, the error is that line. 

I looked in the install.english.php file and it isn't in there..  Can you please tell me what to add?

Thanks.
- Greg
Title: Re: Super Admin
Post by: Bulakbol on October 14, 2008, 05:52:34 AM
You didn't mention what error you got. Anyway, if "undefined index", then you have to add
$txt['hide_from_list'] = 'Hide Super Admin from list of installed packages?';

to your default/languages/index.english.php. Mahe sure the
$txt['no_way'] = 'Sorry, You are not allowed to access this section.';
is also there.
Title: Re: Super Admin
Post by: SpectroPro on October 14, 2008, 06:07:44 AM
Added those 2 along with the first one you gave me..  Those seem fixed...

Thank you!!  LOVE this mod.  (came in handy just this last week when I fired an admin, and she went on a spree..tried to delete my account..  I installed this just the day before (just in case...lol).)

Title: Re: Super Admin
Post by: Bulakbol on October 14, 2008, 10:31:10 PM
@SpectroPro
Good to know it's working now. That's the purpose of this mod, in case other admin get mad at you.  :D

@Mr_Lon
Here's your edited Profile.template.php. Use this file after installing this mod. Don't forget to make a backup.
Title: Re: Super Admin
Post by: machmanx on October 16, 2008, 10:39:02 PM
Quote from: JohnyB on August 04, 2008, 06:44:30 PM


Super Admin


  • Hide important information of admin#1 from other admins.


Spy members are:


  • Invisible and cannot be seen by members or other admins.


Spy Profile:

  • Never logged-in.



To be a complete spy, there should be no revealing info on Admin #1 being there.  Yet they are "logged" by the "Last Active" feature of the forum profile.  If members see the "Last Active" time still counting, it does get suspicious, especially for angry admins ;) 

Anyway, I'm just giving you a tip on how to further the "Spy" feature of this mod better.
Title: Re: Super Admin
Post by: Bulakbol on October 17, 2008, 12:20:28 AM
Quote from: machmanx on October 16, 2008, 10:39:02 PM

To be a complete spy, there should be no revealing info on Admin #1 being there.  Yet they are "logged" by the "Last Active" feature of the forum profile.  If members see the "Last Active" time still counting, it does get suspicious, especially for angry admins ;) 

Anyway, I'm just giving you a tip on how to further the "Spy" feature of this mod better.

If you stay as spy, the "Last active" will be "never".  I didn't hide lots of info because other admins might get suspicious. You can create another account as admin for yourself and keep the Admin#1 as spy if you want. That's what I did.

Maybe an option to hide admin#1's profile from everyone will be better. And that only admin#1 can enable/disable the option. Thanks for your suggestion.
Title: Re: Super Admin
Post by: Adalla on October 18, 2008, 01:43:05 AM
Hi I would like to install this mod but I get failed tests on Subs_boards.php, profile.template.php and settings.template.php

I understand in such cases one is to manually install the mod for those files.

Question is how? Do I follow the .xml instructions? I have done so before I believe. Also, can I install the mod and then modify the failed files? Or will I have to install everything manually?

Thanx
Title: Re: Super Admin
Post by: SpectroPro on October 18, 2008, 03:54:39 AM
I personally edit the failed files before I install the mod..

So on the screen that shows you the errors, just click the page icon on the left and open the failed file information.  It shows you what it is looking for and what it wants to change it to. 

Now, open that file in your editor. 

If it failed, it couldn't find what it was looking for.  So, just do a search for the first line or couple lines of code.. NOT all of it.  MOST likely, the culprit is another mod moved something that this mod was looking for at the start or end.  So, not a big deal...

When you manually find the code it was looking for, verify it is all there. (what is in your file is what you see in the little pop up window showing you what the mod wants...)

Now, copy the code from the bottom part of the pop up window, which is your new code, and replace the original with it. 

Save your file.

Repeat for any other files that failed. 

Once you have changed ONLY the failed files manually, go ahead and click the install button.  It will do the rest of the files normally and your mod should now be installed and working as intended.  :)

I hope that helps..  I have done this soooo many times, I find this to be the easiest way.  The same goes for when you uninstall a file and get failures..  Just fix the failed files first, then click uninstall. 

Again, 99% (probably 100%) of the problems are literally just an added line space, or different line at the end of the code it is searching for. 



----------------
Greg is currently listening to: Molly Hatchet - Flirtin' with Disaster (http://www.foxytunes.com/artist/molly+hatchet/track/flirtin+with+disaster)
via FoxyTunes (http://www.foxytunes.com/signatunes/)
Title: Re: Super Admin
Post by: machmanx on October 18, 2008, 04:18:06 PM
I see.  I don't always stay as "Spy", I just do it when I actually want to spy.  I guess I didn't explain myself right, I just wanted the "Last Active" counter to stop counting when I go into spy mode, that way it will give the illusion that I've logged out of the forums.
Title: Re: Super Admin
Post by: Bulakbol on October 18, 2008, 10:30:13 PM
@Adalla
Yes, you have to follow the xml install file. Or you can use the in-built parser.
http://custom.simplemachines.org/mods/index.php?action=parse;mod=1306;attach=68228;smf_version=1.1.5

@machmanx
While you are in spy mode, your "Last Active" will display "never" but when you get out of spy mode,  it will display the time you logged-in/out.  That's why I suggested to create another account and leave the Admin#1 always in spy mode.
Title: Re: Super Admin
Post by: Adalla on October 21, 2008, 02:26:27 AM
Thanx, just installed some other mods manually using XML, I'll get to it sometime.

I installed it on another forum that has fewer mods, and it worked, except it's on TP so I havnt checked yet, but I guess the spy feature wont work as I hard someone say it will be displayed in TP's user online.

Also, I dont see a "hide package' option under 'current theme' for the Babylon theme...and if I try to delete the package it gives me a warning that i might not be able to uninstall the package if I delete it.
Title: Re: Super Admin
Post by: Sudhakar Arjunan on October 21, 2008, 01:03:58 PM
I was waiting to install the super admin mod in new smf 2.0.4 though earlier i was using 1.1.6.

Now i had a small prob. May be relevant to the super admin mod.

Whenever i as a Admin = 1 = post new message or reply. It shows the post needs to be moderated by an moderator.

Then i have to click approve button to post the message.

Will there be any issue due to super admin mod.

Thanks a lot for Johny B for developing this useful mod.
Title: Re: Super Admin
Post by: Bulakbol on October 22, 2008, 03:19:26 AM
@Adalla
You have to manually edit your custom theme's Settings.template.php.
Code (look for) Select
'description' => $txt['hide_post_group_desc'],
),
);

Code (replace) Select
'description' => $txt['hide_post_group_desc'],
),
);
if ($context['user']['id'] == 1)
$context['theme_settings'] = array_merge($context['theme_settings'],array(
array(
'id' => 'hide_from_list',
'label' => $txt['hide_from_list'],
)
)
);


@asudhakar
I don't think this mod has something to do with your issue. It seems someone has warned you already before you installed this mod. :)
Title: Re: Super Admin
Post by: Sudhakar Arjunan on October 22, 2008, 03:32:04 AM
Quote from: JohnyB on October 22, 2008, 03:19:26 AM

@asudhakar
I don't think this mod has something to do with your issue. It seems someone has warned you already before you installed this mod. :)

Hi Johny B,
Am not sure what you have mentioned.
Could you please tell me what i have to do to over come this issue.
Title: Re: Super Admin
Post by: Bulakbol on October 22, 2008, 03:39:16 AM
What I mean is one of your admins might had issued you a warning.
Title: Re: Super Admin
Post by: Sudhakar Arjunan on October 22, 2008, 06:54:45 AM
Sir, i got it.

Am the olny administrator and other two were only global moderators in side my forum.
Title: Re: Super Admin
Post by: Trinny on October 22, 2008, 06:30:18 PM
I used this mod on 1.1.6 with no errors, GREAT mod. However, on the mod download page, it states that this is compatible with 2.0b4, yet when I try to apply the mod, it says: Installations actions for "Super Admin with UOT":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

So yeah, the board is heavily modded, but it's generally fewer mods than I was running on 1.1.6

I'm perplexed. Is the current 115_UOT version supposed to work on beta 4 as indicated?
Title: Re: Super Admin
Post by: Bulakbol on October 23, 2008, 09:50:46 PM
@asudhakar
Uninstall the mod and see if it is the cause of your issue.



@Trinny
SuperAdmin115_UOT.zip
SuperAdmin.zip
Title: Re: Super Admin
Post by: Trinny on October 24, 2008, 06:23:56 AM
Quote from: JohnyB on October 23, 2008, 09:50:46 PM
@asudhakar
Uninstall the mod and see if it is the cause of your issue.



@Trinny
SuperAdmin115_UOT.zip

  • Contains installation codes for those who installed "Users Online Today" mod.
  • It's for version SMF 1.1.5 only.
SuperAdmin.zip

  • For version SMF 2.0 Beta 3.1 with or without "User Online Today" mod installed.
  • It is also for version SMF 1.1.5 without "Users Online Today" mod installed.

Sweet, cheers :D
Title: Re: Super Admin
Post by: HateFlavor on October 24, 2008, 03:00:47 PM
So I needed to backtrack some mods and find out what's happened to my stats page, and am having a really hard time removing this one. I did the manual install but never really got around to editing my theme for it, It was never really causing a problem nor did I ever notice it working... no harm no foul. Since my Stats page is wacky and getting an error and I think that it's the UOT MOD but it's not cooperating on uninstall either.

Parse error: syntax error, unexpected ';' in /usr/local/etc/httpd/htdocs/SMF/Sources/Stats.php on line 198
I can't seem to uninstall the superadmin mod or The UOT mod I was wondering if maybe some one here could help me out.
Title: Re: Super Admin
Post by: BCK on October 25, 2008, 01:43:44 PM
i have smf 1.1.6  and  a different theme not default...can this be installed still..it sounds great..sure hope so..and im fairly new at code etc...will it install thru acp or do i have to have edits in themes???thx in advance....
Title: Re: Super Admin
Post by: RustyBarnacle on October 25, 2008, 01:50:31 PM
I have a suggestion for the next version for older forums like mine.

We no longer have a #1 user anymore.  Rather than go through the stuff surrounding changing someone to #1 that I saw mentioned, can you add the option to assign someone as the super admin?
Title: Re: Super Admin
Post by: edi67 on October 25, 2008, 02:31:11 PM
QuoteHide important information of admin#1 from other admins.

How i can do that?? others account admins in my forum can view my details (IP, EMAIL ecc ECC) my Globa ìl Mod too can view them.

Which information must be hidden ? and how
thx for reply johnny
Title: Re: Super Admin
Post by: Bulakbol on October 28, 2008, 03:04:50 AM
@HateFlavor
This mod didn't touch the Stats.php. The only help I can do is to check your Stats.php and try to fix the error. You can attach the file if you want.

@BCK
If it installed without error, I don't think you need to edit any files.

@RustyBarnacle
Who would you like to assign a Super Admin?

@edi67
This mod hides important information of admin #1. The other Admins cannot access the admin #1's "Account Related Settings". Like Real name and display name, membergroups, email address, password etc. No one can delete super admin's account even the super admin. :)

Title: Re: Super Admin
Post by: RustyBarnacle on October 28, 2008, 11:35:24 AM
Myself.  We have 3 admins now but I'm by far the most active one.  I'm user #34.
Title: Re: Super Admin
Post by: BCK on October 28, 2008, 07:12:04 PM
thx for your responce...wasnt sure im pretty new at this..awesome can be done thru acp...thx again

just installed..no problems or errors..awesome thanks ..great mod..
Title: Re: Super Admin
Post by: Bulakbol on October 29, 2008, 10:09:38 PM
Quote from: RustyBarnacle on October 28, 2008, 11:35:24 AM
Myself.  We have 3 admins now but I'm by far the most active one.  I'm user #34.

Well, we have to change #1 to #34 from the package before installing this mod.


@BCK
Thanks too for using or trying this mod.
Title: Re: Super Admin
Post by: RustyBarnacle on October 29, 2008, 11:17:49 PM
Hehe, well if its that easy thats great.  :)

Thanks
Title: Re: Super Admin
Post by: Anticipation on November 10, 2008, 04:48:26 PM
Hi,

I just installed this mod, and now get a Database Error when i visit my forum.

Quote
SQL logic error or missing database
no such column: mem.spy
File: /www/110mb.com/a/n/t/i/c/i/p/a/anticipation/htdocs/forum/Sources/Subs-MembersOnline.php
Line: 96

Any help would really be appreciated.
Thanks.
Title: Re: Super Admin
Post by: Bulakbol on November 11, 2008, 07:16:37 PM
@RustyBarnacle
Can't you use member #1 account as the Super admin?


@Anticipation
Are there any files failed the test when you installed this mod? Please unimstall the mod and then reinstall it. See if that will get rid of the error. The spy field was not added to the database I think. Let me know how things goes.
Title: Re: Super Admin
Post by: Trinny on November 11, 2008, 07:21:38 PM
Quote from: JohnyB on October 28, 2008, 03:04:50 AM


@edi67
This mod hides important information of admin #1. The other Admins cannot access the admin #1's "Account Related Settings". Like Real name and display name, membergroups, email address, password etc. No one can delete super admin's account even the super admin. :)



while using this mod, one of the other admins was able to change my member group (done as a test).

Additionally, when a theme setting is set to show the users names who are viewing the thread, Spies are visible to everyone while viewing any thread. I've skirted this by turning off the option to show who is viewing a thread, but it's a band aid, not a cure.
Title: Re: Super Admin
Post by: Bulakbol on November 11, 2008, 07:29:35 PM
@Trinny
Which version? The 1.1.7 or the one for 2.0 Beta 4? The other admins should have no access to member #1's account.  Are you using member #1's account?
Title: Re: Super Admin
Post by: Trinny on November 11, 2008, 07:33:08 PM
Quote from: JohnyB on November 11, 2008, 07:29:35 PM
@Trinny
Which version? The 1.1.7 or the one for 2.0 Beta 4? The other admins should have no access to member #1's account.  Are you using member #1's account?
2.0b4 and yes, I'm user 1. There were no failed tests when I installed, and the mod itself is throwing no errors in the log. I was in spy mode one moment, and the next moment, had no access to administrate forumside. My usergroup had been easily changed by another admin.
Title: Re: Super Admin
Post by: Bulakbol on November 11, 2008, 07:41:31 PM
Not sure Trinny but the mod works in my test forum. I'll look at the codes again. Meanwhile, uninstall this mod if it is not working for you.
Title: Re: Super Admin
Post by: RustyBarnacle on November 11, 2008, 08:13:45 PM
I'll try changing the mod to my user number as this is a very old forum and I've only been on a few years.

The number one user has been deleted and so we don't have one anymore.
Title: Re: Super Admin
Post by: Bulakbol on November 11, 2008, 09:21:28 PM
I suggest to create a new account and by using PhpMyAdmin, change the new account number to #1. I am not comfortable making a revised version because I don't want other admins using it without admin #1 knowing. I don't want other admins to use this mod against admin #1. I hope you understand.
Title: Re: Super Admin
Post by: RustyBarnacle on November 11, 2008, 09:24:06 PM
Totally.
Title: Re: Super Admin
Post by: Anticipation on November 12, 2008, 12:34:30 PM
Quote from: JohnyB on November 11, 2008, 07:16:37 PM
@Anticipation
Are there any files failed the test when you installed this mod? Please unimstall the mod and then reinstall it. See if that will get rid of the error. The spy field was not added to the database I think. Let me know how things goes.

None of the files failed the test.

Also, i uninstalled the mod; It's not listed the Browse Packages section, anymore. It didn't help.

If it matters, the forum is SMF 2 beta 4, and the database is sqlite.

Thanks.
Title: Re: Super Admin
Post by: Bulakbol on November 12, 2008, 05:58:49 PM
Sorry about that. I'll make changes to the code and see if it will work for you.
Title: Re: Super Admin
Post by: Pinball Wizard on November 20, 2008, 09:29:02 AM
I installed this mod, no problems at all, it shows on the admin panel that it was successfully installed and everything...but How can I make someone a superadmin? I have on specific user that I want to promote to superadmin, but I can't seem to find this option on member's control...
Title: Re: Super Admin
Post by: ENRESINADO on November 23, 2008, 04:44:50 PM
Hi,

I have smf 1.1.7 and this mods gives me an error when trying to install it.

The error appear to be in the Subs-Boards.php file. I've edit the file myself and the string b.boardOrder, b.countPosts, b.memberGroups, b.ID_THEME, b.override_theme, isn't there...

Could this be the problem?

My default language is not English.

Some weeks ago, when I've start to installed the forum, this mod installed successfully, although it didn't worked very well, because I was the admin #1 and when making a test with another admin, I was able to delete myself...

All help will be appreciated.

Thanks in advance.

Best regards,
ENRESINADO
Title: Re: Super Admin
Post by: Bulakbol on November 23, 2008, 10:01:34 PM
@Pinball Wizard
You can't. Super admin is only admin#1. Super admin can assign spy tho. That's all.

@ENRESINADO
Another mod added something in that line I guess. You can add it yourself manually though. In Subs-Boards.php, find
function getBoardTree()
and about 8 lines below, you can find at least the "b.boardOrder". Add " b.admin1, " (no quotes) before or after it and you'll be fine assuming it's the only issue you have.
Title: Re: Super Admin
Post by: ENRESINADO on November 24, 2008, 07:23:01 AM
Thanks JohnyB, I'll try it and give you feedback after.
Title: Re: Super Admin
Post by: Bulakbol on November 25, 2008, 08:23:09 AM
Did it work ENRESINADO? If you want me to do it for you, attach the file to be edited to your post.
Title: Re: Super Admin
Post by: romper on November 28, 2008, 07:14:04 PM
I get failed test at load.php..any quick fixes? THX!
Title: Re: Super Admin
Post by: nguirado on December 02, 2008, 02:42:27 AM
Man, I need this! I'm running 1.17

I get this error:

Quote1.     Execute Code     SuperAdminDB117.php     
2.    Execute Modification    ./Sources/Load.php    Test successful
3.    Execute Modification    ./Sources/Subs-Boards.php    Test successful
4.    Execute Modification    ./Sources/ManageBoards.php    Test successful
5.    Execute Modification    ./Sources/Profile.php    Test successful
6.    Execute Modification    ./Sources/BoardIndex.php    Test successful
7.    Execute Modification    ./Sources/ManageMembers.php    Test successful
8.    Execute Modification    ./Sources/Who.php    Test successful
9.    Execute Modification    ./Sources/Modlog.php    Test successful
10.    Execute Modification    ./Sources/Subs-Package.php    Test successful
11.    Execute Modification    ./Themes/default/Modlog.template.php    Test successful
12.    Execute Modification    ./Themes/default/Memberlist.template.php    Test successful
13.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test successful
14.    Execute Modification    ./Themes/default/Profile.template.php    Test successful
15.    Execute Modification    ./Themes/default/Who.template.php    Test successful
16.    Execute Modification    ./Themes/default/Packages.template.php    Test successful
17.    Execute Modification    ./Themes/default/Settings.template.php    Test successful
18.    Execute Modification    ./Themes/default/languages/index.english.php    Test successful
19.    Execute Modification    ./Themes/default/languages/ManageBoards.english.php    Test successful
20.    Execute Modification    ./Themes/default/languages/index.english-utf8.php    Test successful
21.    Execute Modification    ./Themes/default/languages/ManageBoards.english-utf8.php    Test successful
22.    Execute Modification    ./SSI.php    Test failed

Here are the mods I have:

Quote1.     Global Headers Footers      1.4.1       [ Uninstall ]  [ List Files ]  [ Delete ]
2.    Super Admin    1.3    [ Apply Mod ] [ List Files ] [ Delete ]
3.    SMF File Manager    2.1.3    [ Uninstall ] [ List Files ] [ Delete ]
4.    Googlebot & Spiders Mod    2.0.4    [ Uninstall ] [ List Files ] [ Delete ]
5.    YouTube BBCode    2.4    [ Uninstall ] [ List Files ] [ Delete ]
6.    Search Topic    1.01    [ Uninstall ] [ List Files ] [ Delete ]
7.    Gender On Registration    1.0    [ Uninstall ] [ List Files ] [ Delete ]
8.    Social Bookmarks    1.1    [ Uninstall ] [ List Files ] [ Delete ]
9.    User Email System    1.3    [ Uninstall ] [ List Files ] [ Delete ]
10.    Smf Logo Clickable    1.0    [ Uninstall ] [ List Files ] [ Delete ]
11.    Anti-Bot Registration Puzzles    1.2    [ Uninstall ] [ List Files ] [ Delete ]
12.    Popular icons under signature    1.0    [ Uninstall ] [ List Files ] [ Delete ]
13.    Drafts (for 1.1.x)    1.08    [ Uninstall ] [ List Files ] [ Delete ]
14.    EarnFromAmazonLinksMod    1.0    [ Uninstall ] [ List Files ] [ Delete ]
15.    Last Topics of Person    1.0    [ Uninstall ] [ List Files ] [ Delete ]
16.    Karma On Memberlist    1.0    [ Uninstall ] [ List Files ] [ Delete ]
17.    SearchResultsMod    1.0    [ Uninstall ] [ List Files ] [ Delete ]
18.    Super Admin with UOT    1.3    [ Apply Mod ] [ List Files ] [ Delete ]
19.    Contact Page    1.1    [ Uninstall ] [ List Files ] [ Delete ]

Title: Re: Super Admin
Post by: nguirado on December 02, 2008, 02:50:18 AM
Never mind. It was the Googlebot mod.
Title: Re: Super Admin
Post by: Bulakbol on December 02, 2008, 06:42:51 PM
Glad you found out yourself. :)
Title: Re: Super Admin
Post by: pinoypetfinder on December 03, 2008, 01:51:26 AM
i need this too, i'll appreciate any help :)

i'm got this 2 errors -
5.     Execute Modification     ./Themes/default/Who.template.php     Test failed
22.     Execute Modification     ./SSI.php     Test failed

i also have Googlebot & Spiders Mod.. nguirado, what did you do to fix the SSI.php file?
attached is my who.template.php too, incase anyone can would like to check.
Title: Re: Super Admin
Post by: pinoypetfinder on December 03, 2008, 02:53:18 AM
nevermind. i was able to fixed it too. modified the 2 files above manually. :)

great mod! ;) ;D
Title: Re: Super Admin
Post by: Bulakbol on December 04, 2008, 07:44:03 PM
@pinoypetfinder
I know you can fix it.  :D  If you need assistance, let me know.
Title: Re: Super Admin
Post by: a3des on December 12, 2008, 04:03:01 AM
Configuration: SMF2.0 beta4 + SP 2.1.1. + Super Admin mod (1.3)

I tested the Super admin mod in SMF+TinyPortal configuration and the Stats Box, wich shows the users online, will hidde the super admin from other users and admins, displaying the Admin(spy) name only for yourself.

But the SimplePortal Who's Online block will show the Super admin to the other users and admin, diplaying the regular Admin name in list.

What should I look for to modify to make this "hidde Super admin from others" mod working properly with Simple Portal?
Title: Re: Super Admin
Post by: Bulakbol on December 13, 2008, 04:13:28 PM
@a3des
You need to add five lines of code to Simple Portal. I will update the package to support SimplePortal and ezPortal. Download the new package and reinstall the mod.
Title: Re: Super Admin
Post by: GorGon on December 13, 2008, 08:21:34 PM
Great mod!!! SuperAdmin117_UOT.

But I've got .... some failed  >:(

15.     Execute Modification     ./Themes/default/Profile.template.php     Test failed
16.    Execute Modification    ./Themes/default/Who.template.php    Test failed
18.    Execute Modification    ./Themes/default/Settings.template.php    Test failed

:-[

What should i do? I need this mod .. please help  :'(

thanks  8)
Title: Re: Super Admin
Post by: Bulakbol on December 13, 2008, 09:06:04 PM
@GorGon
Those files were maybe edited by other mods you installed. Attach those files to your post and I'll edit them when I have a chance.
Title: Re: Super Admin
Post by: a3des on December 14, 2008, 02:22:10 PM
Great work Bulakbol, it's  working fine, I reinstalled the new package and tested it.
Thank you for your time and the effort to make this working on SP.
Title: Re: Super Admin
Post by: taha116 on December 14, 2008, 04:38:12 PM
Really really want this mod but i need help with instilation because of one small failed test

Execution 16 on     ./Themes/default/Profile.template.php I get test failed 4 its 2 parts


Part one find and replace
Find
<td>', $context['member']['name'], '</td>

Replace with

<td>', $context['member']['name'], ' ',
$context['user']['is_admin'] ? '(' . $context['member']['id'] . ')' : '',
($context['user']['id'] == 1 && $context['member']['spy'] == 1) ? $txt['spy_stat'] : '', '
</td>


Part 2

Find
<td>', $context['member']['last_login'], '</td>

Replace with
<td>', $context['member']['spy'] == 1 && $context['user']['id'] != 1 ? $txt['never'] : $context['member']['last_login'], '</td>

My packages are

   Mod Name     Version     
1.    SMF Affiliates    1.0    [ Uninstall ] [ List Files ] [ Delete ]
2.    Aeva ~ Auto-Embed Video & Audio    5.0.18    [ Uninstall ] [ List Files ] [ Delete ]
3.    Irritate lurkers with 0 posts    0.1    [ Uninstall ] [ List Files ] [ Delete ]
4.    Excellent Smileys    1.0    [ Uninstall ] [ List Files ] [ Delete ]
5.    Order Stickied Topics    1.01    [ Uninstall ] [ List Files ] [ Delete ]
6.    Spoiler Tag    0.6    [ Uninstall ] [ List Files ] [ Delete ]
7.    Member Color Link    3.0.5a    [ Uninstall ] [ List Files ] [ Delete ]
8.    SMF Staff Page    1.6    [ Uninstall ] [ List Files ] [ Delete ]
9.    Social Bookmarks for SMF 2    1.1    [ Uninstall ] [ List Files ] [ Delete ]
10.    Yarex 2 smiley set    2.0.0.1    [ Uninstall ] [ List Files ] [ Delete ]
11.    No More Ugly Avatar Scrollbars    1.0    [ Uninstall ] [ List Files ] [ Delete ]
12.    Auto Merge Double Post    1.1    [ Uninstall ] [ List Files ] [ Delete ]
13.    Referrals Mod    2.1.1    [ Uninstall ] [ List Files ] [ Delete ]
14.    BoardHover Mod    1.3.1    [ Apply Mod ] [ List Files ] [ Delete ]
15.    Rateit in Topics    1.0    [ Uninstall ] [ List Files ] [ Delete ]
16.    Super Admin    1.4    [ Apply Mod ] [ List Files ] [ Delete ]
17.    Permissions_Info    1.2    [ Uninstall ] [ List Files ] [ Delete ]
18.    SMF Media Gallery    1.5    [ Uninstall ] [ List Files ] [ Delete ]
19.    Hide SMF Version    1.0.3a    [ Uninstall ] [ List Files ] [ Delete ]
20.    Registration redirection    0.1    [ Uninstall ] [ List Files ] [ Delete ]
21.    BBC [you]    1.2    [ Uninstall ] [ List Files ] [ Delete ]
22.    script.js Jump Fix    1.0    [ Uninstall ] [ List Files ] [ Delete ]
23.    The Rules    1.2    [ Uninstall ] [ List Files ] [ Delete ]
24.    PM to New Members    1.0    [ Uninstall ] [ List Files ] [ Delete ]

My theme is

Midnight Sun 2b4
Title: Re: Super Admin
Post by: Bulakbol on December 17, 2008, 12:57:21 AM
@a3des
You are welcome. Thank you too for using or trying this mod.  8)

@taha116
You can attach your Profile.template.php and I'll edit it for you if you don't know. The line is probably modified by another mod you installed.
Title: Re: Super Admin
Post by: taha116 on December 18, 2008, 07:52:00 PM
Quote from: Bulakbol on December 17, 2008, 12:57:21 AM
@a3des
You are welcome. Thank you too for using or trying this mod.  8)

@taha116
You can attach your Profile.template.php and I'll edit it for you if you don't know. The line is probably modified by another mod you installed.

Thats what i expected do you want me to attach it before or after i attempt instilation again?
Title: Re: Super Admin
Post by: Bulakbol on December 20, 2008, 08:06:28 PM
@taha116
Attach a copy of your Profile.template.php and I'll edit it. Use it after installation.
Title: Re: Super Admin
Post by: romper on December 23, 2008, 12:16:45 PM
I get: 2.     Execute Modification     ./Sources/Load.php     Test failed

What do I need to modify?
Title: Re: Super Admin
Post by: taha116 on December 23, 2008, 09:12:14 PM
THer is one thing that is bothering me... I dont use the defualt theme but for the isntialtion why foes it give the path to my defult theme, anyways i got that file from defult, here it is
Title: Re: Super Admin
Post by: Bulakbol on December 24, 2008, 08:28:47 PM
@romper
Attach your Load,php and I'll see what I can do after the holiday.

@taha116
I'll see what I can do after the holiday.
Title: Re: Super Admin
Post by: romper on December 25, 2008, 08:58:41 PM
Here it is...no rush!
Happy holiday all!
Title: Re: Super Admin
Post by: taha116 on December 29, 2008, 12:13:12 AM
Quote@taha116
I'll see what I can do after the holiday

No problem just let me know when its ready with a PM please
Title: Re: Super Admin
Post by: Bulakbol on December 30, 2008, 09:23:52 PM
@romper
Your Load.php is now modified. Not tested so let me know if there's a problem.

@taha116
Your Profile.template.php is herer. Not also tested. Try it.
Title: Re: Super Admin
Post by: taha116 on December 30, 2008, 10:15:14 PM
Quote from: Bulakbol on December 30, 2008, 09:23:52 PM
@romper
Your Load.php is now modified. Not tested so let me know if there's a problem.

@taha116
Your Profile.template.php is herer. Not also tested. Try it.

herer?? Well Ill try it out ASAP aand post bak tomoro
Title: Re: Super Admin
Post by: Bulakbol on December 31, 2008, 12:16:41 AM
heh my keyboard is overused. It is typing more than needed characters.  :P
Title: Re: Super Admin
Post by: taha116 on December 31, 2008, 11:45:10 AM
Quote from: Bulakbol on December 31, 2008, 12:16:41 AM
heh my keyboard is overused. It is typing more than needed characters.  :P

Lol ok
Title: Re: Super Admin
Post by: romper on January 02, 2009, 08:57:05 PM
Quote from: Bulakbol on December 30, 2008, 09:23:52 PM
@romper
Your Load.php is now modified. Not tested so let me know if there's a problem.

@taha116
Your Profile.template.php is herer. Not also tested. Try it.

THX, unfortunately it still shows error on .source/load.php
Title: Re: Super Admin
Post by: Bulakbol on January 03, 2009, 04:55:30 PM
@romper
What was the error? I just added the lines that were required.
Title: Re: Super Admin
Post by: panzz on January 03, 2009, 09:56:12 PM
Hi sorry to bother, but I am facing some problems, I keep getting these errors filled up in my error log

8: Undefined index: spy
File: /home/letstalk/public_html/Themes/default/languages/Who.english.php (main sub template - eval?)
Line: 24

I also could not edit my Load.php, after manually editing it I am unable to display my entire site. >:(

Title: Re: Super Admin
Post by: pinoypetfinder on January 05, 2009, 11:21:04 PM
hi again bulakbol, i don't know why but the mod stopped working on profile. probably because of one of the mods that i just recently installed?

- ultimateprofile (i believe it's using a different profile template, could this be the reason?)
link to ultimateprofile : http://www.simplemachines.org/community/index.php?topic=183574.0

i also installed the following mods last night -
SMF Arcade, SMF Media Gallery and Profile Visitor.

i also attached my ultimateprofile.template.php incase you wanna take a look :)
Title: Re: Super Admin
Post by: romper on January 06, 2009, 09:49:44 AM
Quote from: Bulakbol on January 03, 2009, 04:55:30 PM
@romper
What was the error? I just added the lines that were required.

This is the full line:
1.     Execute Code     SuperAdminDB117.php     
2.    Execute Modification    ./Sources/Load.php    Test failed
3.    Execute Modification    ./Sources/Subs-Boards.php    Test successful
4.    Execute Modification    ./Sources/ManageMembergroups.php    Test successful
5.    Execute Modification    ./Sources/ManageBoards.php    Test successful
6.    Execute Modification    ./Sources/Profile.php    Test successful
7.    Execute Modification    ./Sources/BoardIndex.php    Test successful
8.    Execute Modification    ./Sources/ManageMembers.php    Test successful
9.    Execute Modification    ./Sources/Who.php    Test successful
10.    Execute Modification    ./Sources/Modlog.php    Test successful
11.    Execute Modification    ./Sources/Subs-Package.php    Test successful
12.    Execute Modification    ./Themes/default/Modlog.template.php    Test successful
13.    Execute Modification    ./Themes/default/Memberlist.template.php    Test successful
14.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test successful
15.    Execute Modification    ./Themes/default/Profile.template.php    Test successful
16.    Execute Modification    ./Themes/default/Who.template.php    Test successful
17.    Execute Modification    ./Themes/default/Packages.template.php    Test successful
18.    Execute Modification    ./Themes/default/Settings.template.php    Test successful
19.    Execute Modification    ./Themes/default/languages/index.english.php    Test successful
20.    Execute Modification    ./Themes/default/languages/ManageBoards.english.php    Test successful
21.    Execute Modification    ./Themes/default/languages/index.english-utf8.php    Skipping file
22.    Execute Modification    ./Themes/default/languages/ManageBoards.english-utf8.php    Skipping file
23.    Execute Modification    ./SSI.php    Test successful
24.    Execute Modification    ./Sources/SPortal1-1.php    Skipping file
25.    Execute Modification    ./Sources/Subs-ezPortalMain.php    Skipping file

I'm using dilberMc theme, with these mods:
1.     SMF Media Gallery      1.5.2       [ Uninstall ]  [ List Files ]  [ Delete ]
2.    Look But No Read    1.2    [ Uninstall ] [ List Files ] [ Delete ]
3.    Board Notes    1.0.7    [ Uninstall ] [ List Files ] [ Delete ]
4.    Profil Moderator Managment    1.0.0    [ Uninstall ] [ List Files ] [ Delete ]
5.    SMF 1.0.15 / 1.1.7 Update    1.0    [ Uninstall ] [ List Files ] [ Delete ]
6.    MCLegendII.2    3.0    [ Uninstall ] [ List Files ] [ Delete ]
7.    No More Ugly Avatar Scrollbars    1.0    [ Uninstall ] [ List Files ] [ Delete ]
8.    Who Voted What?    1.1.3    [ Uninstall ] [ List Files ] [ Delete ]
9.    AvatarOnBoard    2.1    [ Uninstall ] [ List Files ] [ Delete ]
10.    Recent posts user preference    3.00    [ List Files ] [ Delete ]
11.    E-Arcade    2.5.0    [ List Files ] [ Delete ]
12.    Post_and_Change_as_Alternate_User    1.0    [ Apply Mod ] [ List Files ] [ Delete ]
13.    Advanced Login Form    1.0    [ Uninstall ] [ List Files ] [ Delete ]
14.    Static Topics    1.0    [ Uninstall ] [ List Files ] [ Delete ]
15.    Google Verification META Tag    1.0    [ Uninstall ] [ List Files ] [ Delete ]
16.    RSS Feed Icon    1.1    [ Uninstall ] [ List Files ] [ Delete ]
17.    Custom Profile Field Mod    3.19    [ Uninstall ] [ List Files ] [ Delete ]
18.    SMF 1.0.14 / 1.1.6 Update    1.0    [ List Files ] [ Delete ]
19.    Favicon    1.2    [ Uninstall ] [ List Files ] [ Delete ]
20.    Profile_Visitors    3.0    [ Uninstall ] [ List Files ] [ Delete ]
21.    Custom_Greeting_Depending_on_Time    0.4    [ Uninstall ] [ List Files ] [ Delete ]
22.    Irritate lurkers with 0 posts    0.1    [ Uninstall ] [ List Files ] [ Delete ]
23.    TinyPortal
Title: Re: Super Admin
Post by: minos on January 07, 2009, 01:17:49 AM
hi great  mod but there a bug or has not this function

when i turn on  Show who is viewing the board index and posts function..  super admin is shown as hide user in any topic

can you fix that? 

thanks
Title: Re: Super Admin
Post by: mrtrc266 on January 07, 2009, 02:50:25 PM
I keep getting this error when anyone views the portal

http://monsters-mansion.com/index.php
Apply Filter: Only show the errors with the same message
8: Undefined index: spy
/home/xxxxxx/public_html/Sources/Load.php
487


SMF 1.1.7 / SP 2.1.1 / www.monsters-mansion.com

Thanks in advance for any help.

Title: Re: Super Admin
Post by: Bulakbol on January 08, 2009, 09:27:56 PM
@panzz
There might be a problem with your Load.php. Did you install the mod manually? Attach your Sources/Load.php and I'll take a look.

@pinoypetfinder
I'll take a look at the ultimate profile file when I have time. I'll see what I can do.

@romper
Attach your Sources/Load.php too and I'll see what I can do.

@minos
Sorry about that. I'll fix it. Wait for the next update sometimes tomorrow. It will be version 1.5

@mrtrc266
Attach your Sources/Load.php. Your Load.php probably failed the test and the parser didn't add the code.
Title: Re: Super Admin
Post by: panzz on January 09, 2009, 03:34:11 AM
Here is my Load.php, I have installed it manually a few times(failed the test probably due to my other mods) myself by following the steps over and over again, once I am done with that and uploaded it to the server, the entire site simply failed to display.

Anyway, really appreciate your time and effort for taking a look at this problem.
Thanks.
Title: Re: Super Admin
Post by: romper on January 09, 2009, 03:13:32 PM
Here is my load.php
THX.
Title: Re: Super Admin
Post by: minos on January 09, 2009, 07:33:58 PM
maybe you can add  a function to hide status in mkportal?

much of use use this as a smf portal 
Title: Re: Super Admin
Post by: Bulakbol on January 12, 2009, 07:42:02 PM
@romper
You guys should learn to edit manually.  Your edited Load.php is attached. Use this file after installation.

@minos
Sorry, I don't use mkportal.
Title: Re: Super Admin
Post by: Bulakbol on January 12, 2009, 07:43:37 PM
@panzz
You should also learn how to edit files manually as I don't have anymore time. This could be the last edit I am making for this mod. Load.php attached.
Title: Re: Super Admin
Post by: panzz on January 12, 2009, 07:50:13 PM
Quote from: Bulakbol on January 12, 2009, 07:43:37 PM
@panzz
You should also learn how to edit files manually as I don't have anymore time. This could be the last edit I am making for this mod. Load.php attached.


yes, will do. Thank you very much once again.
Title: Re: Super Admin
Post by: pinoypetfinder on January 12, 2009, 08:34:03 PM
i updated my super admin mod with the newest version, but i noticed that even the "forum admin" can no longer see the member they assiged me to be a spy?

[and yeah, pls take a look at the ultimate profile :P i really want this mod hehe]
Title: Re: Super Admin
Post by: Bulakbol on January 12, 2009, 08:56:47 PM
@pinoypetfinder
Only admin#1 can see spies. Other admins cannot see spies even theirselves if assigned as spy. Sorry about the ultimate profile. No time for it.
Title: Re: Super Admin
Post by: pinoypetfinder on January 12, 2009, 10:56:56 PM
ooh okay. because on the previous version that i installed, i was able to see the other spies on the "Users Logged In Today" [i can see them if they're online through that]. then i installed this

SuperAdmin117_UOT.zip

    * Contains installation codes for those who installed "Users Online Today" mod.
    * It's for version SMF 1.1.7 only.


i can no longer see the spies even on the "Users Logged In Today".


and another thing we noticed just now (a member just told me this) that on the "who's online" page, the Guest and Registered members are now in the same table. is this really supposed to happen? [because i had them seperated before, Members/Guest/Spiders]
*EDIT : fixed this already. when i tried to install the mod, i had a test failed on who.template.php so i modified it manually using the package parser. the package parser says i need to replace a line with a code that have something like "foreach ([$context] $members as $member)" ; i did. and my who's online list got messed up. i looked on my other files, and found this "foreach ($members as $member)" i changed it back to that one and it all got fixed. i'm not sure but i think that "$context" is the one that caused errors.
Title: Re: Super Admin
Post by: Bulakbol on January 17, 2009, 04:10:23 PM
What the mod does is only add a line of code
if (!$member['spy'] || $context['user']['id'] == 1)
after the
foreach ($context['members'] as $member)
statement. Maybe there's a conflict between that code and with the edits you made. Not sure. Can you attach your Who.template.php file?
Title: Re: Super Admin
Post by: ke4obt on January 24, 2009, 11:33:12 PM
I am trying to get the Skype Ventrilo mod to work on my test site. It seems to install fine with the exception of profile.php, profile.template.php and load.php. I did the manual install on those 3 files as per the parser. The problem I'm having is getting the other messengers from the Skype Ventrilo mod added in the profile.template.php.
I tried to add the coding like it shows the other "default" messengers, but all I got was an error starting on line 286, I think, when I try to go into a profile.
We seriously have NO clue what we're doing, but we're trying to muddle through with coding. The forums have been a great help and teaching aid, but we've gotten stuck here.
If anyone can help us get our heads on straight and figure this out, I'm hoping we can figure out how to re-package the Skype Ventrilo mod to release it as an upgrade so other people can use it with 1.1.7. The credit will stay with the original author.

Any and all help is always appreciated.

Thanks in advance,
Flip

ps - running SMF 1.1.7 with Super Admin and about 100 or so other mods installed on a test server that is not accessible from the web. However, if someone needed to check it out, we can put it up on a  live server, just would take a little time for that - like a couple of hours because of upload speed and I'm blind and don't get around on the computer as fast as others. Thanks, Flip
Title: Re: Super Admin
Post by: Kat-2 on January 25, 2009, 01:36:59 AM
I am totally confused over this mod. I am not interested in using it as a spy, but to prevent moderators from being able to ban me..the sole owner and Admin of my site.

I got Super Admin  installed just fine. (am doing this on my test site right now). I am user #1.

So I get a friend to help me test. I set up a 2nd Admin account, and had them use that to see if they could ban me.
They could.

So am I in err in thinking this will prevent me from being banned by my mods and or other Admin?
Title: Re: Super Admin
Post by: Bulakbol on January 25, 2009, 08:19:32 PM
@ke4obt
Sorry but I have no idea what Skype Ventrilo mod is. I'm afraid I can't help you.

@Kat-2
My understanding is that no one can ban group#1 (Admins) that's why this mod didn't touch that ban part. If your admin tried to ban another admin, they should get this error.
Quote$txt['no_ban_admin'] = 'You may not ban an admin - You must demote them first!';
Title: Re: Super Admin
Post by: Kat-2 on January 25, 2009, 09:40:29 PM
Quote from: Bulakbol on January 25, 2009, 08:19:32 PM
@ke4obt
Sorry but I have no idea what Skype Ventrilo mod is. I'm afraid I can't help you.

@Kat-2
My understanding is that no one can ban group#1 (Admins) that's why this mod didn't touch that ban part. If your admin tried to ban another admin, they should get this error.
Quote$txt['no_ban_admin'] = 'You may not ban an admin - You must demote them first!';


I don't get what is wrong then. I had the person I set as Admin to test again to see if he could ban me, and he could.
Then I had him make a Global Moderator account and log on to see if he could ban me as #1 Admin, and he could.

What am I missing? Is there something I need to do after I have the Super Admin mod installed?
Title: Re: Super Admin
Post by: Bulakbol on January 25, 2009, 10:18:52 PM
Were you actually banned?
Title: Re: Super Admin
Post by: Kat-2 on January 25, 2009, 10:24:47 PM
Quote from: Bulakbol on January 25, 2009, 10:18:52 PM
Were you actually banned?

Yes

When I tried to login I got a message saying  ''Sorry Guest, you are banned from using this forum!'' 
Title: Re: Super Admin
Post by: Bulakbol on January 25, 2009, 10:57:05 PM
I am not sure about the banning. This mod as I said before has nothing to do with bans. All I know about ban is that SMF does not allow Admins to be banned by email address or by name. Not sure about banning by IP and by Host name. If you think this mod is causing ban issue, try uninstalling this mod and test again. 
Title: Re: Super Admin
Post by: Kat-2 on January 25, 2009, 11:13:30 PM
Quote from: Bulakbol on January 25, 2009, 10:57:05 PM
I am not sure about the banning. This mod as I said before has nothing to do with bans. All I know about ban is that SMF does not allow Admins to be banned by email address or by name. Not sure about banning by IP and by Host name. If you think this mod is causing ban issue, try uninstalling this mod and test again. 



Oh no. The mod itself is not causing a ban issue.

When I first started my smf forum, moderators could ban me as Admin. I tested that with one of my moderators right after I started it.....so I am not sure what you mean by ''SMF does not allow Admins to be banned by email address or by name'', because I know they can be...since I tested.

That is what I thought Super Admin would prevent.  As it is now, I just do not allow any of my moderators have banning powers, when actually I would like to..but not about to allow someone to get mad at me and ban me.  kwim??

I am now guessing Super Admin does not prevent Admin #1 from being banned...though I thought it said it did.

I thank you for the help.
Title: Re: Super Admin
Post by: Bulakbol on January 25, 2009, 11:20:04 PM
I took a quick look at ManageBans.php and found this so I thought no one can ban admins.
Quoteelseif ($_POST['bantype'] == 'user_ban')
      {
         $_POST['user'] = $func['htmlspecialchars']($_POST['user'], ENT_QUOTES);

         $request = db_query("
            SELECT ID_MEMBER, (ID_GROUP = 1 OR FIND_IN_SET(1, additionalGroups)) AS isAdmin
            FROM {$db_prefix}members
            WHERE memberName = '$_POST[user]' OR realName = '$_POST[user]'
            LIMIT 1", __FILE__, __LINE__);
         if (mysql_num_rows($request) == 0)
            fatal_lang_error('invalid_username', false);
         list ($memberid, $isAdmin) = mysql_fetch_row($request);
         mysql_free_result($request);

         if ($isAdmin)
            fatal_lang_error('no_ban_admin');
Title: Re: Super Admin
Post by: Kat-2 on January 25, 2009, 11:29:48 PM
Quote from: Bulakbol on January 25, 2009, 11:20:04 PM
I took a quick look at ManageBans.php and found this so I thought no one can ban admins.
Quoteelseif ($_POST['bantype'] == 'user_ban')
      {
         $_POST['user'] = $func['htmlspecialchars']($_POST['user'], ENT_QUOTES);

         $request = db_query("
            SELECT ID_MEMBER, (ID_GROUP = 1 OR FIND_IN_SET(1, additionalGroups)) AS isAdmin
            FROM {$db_prefix}members
            WHERE memberName = '$_POST[user]' OR realName = '$_POST[user]'
            LIMIT 1", __FILE__, __LINE__);
         if (mysql_num_rows($request) == 0)
            fatal_lang_error('invalid_username', false);
         list ($memberid, $isAdmin) = mysql_fetch_row($request);
         mysql_free_result($request);

         if ($isAdmin)
            fatal_lang_error('no_ban_admin');



I wish that were the case, but is not on my test or main forum. :(
Title: Re: Super Admin
Post by: Bulakbol on January 26, 2009, 03:13:03 PM
I tried banning the Admin.

Triggers: Ban on username

name: Admin

Here's what I got after clicking on "Add" button.
An Error Has Occurred!
You may not ban an admin - You must demote them first! 
Title: Re: Super Admin
Post by: Kat-2 on January 26, 2009, 03:18:59 PM
Quote from: Bulakbol on January 26, 2009, 03:13:03 PM
I tried banning the Admin.

Triggers: Ban on username

name: Admin






Here's what I got after clicking on "Add" button.
An Error Has Occurred!
You may not ban an admin - You must demote them first! 



Did you try to ban the Admin IP???
Title: Re: Super Admin
Post by: Bulakbol on January 26, 2009, 03:44:30 PM
No, I didn't try it locally. I will try it when I have time.
Title: Re: Super Admin
Post by: pinoypetfinder on February 01, 2009, 09:23:05 AM
Quote from: Bulakbol on January 17, 2009, 04:10:23 PM
What the mod does is only add a line of code
if (!$member['spy'] || $context['user']['id'] == 1)
after the
foreach ($context['members'] as $member)
statement. Maybe there's a conflict between that code and with the edits you made. Not sure. Can you attach your Who.template.php file?

hi bulakbol,
sorry just now. took some time off hehe.

anyways, here's my who.template.php file
*i think i removed the spy mode settings here because now we (the other spies) can see what each others are doing.

thanks in advance for looking :)

Title: Re: Super Admin
Post by: Bulakbol on February 01, 2009, 09:56:53 PM
Sorry pinoypetfinder. Your Who.template.php is not the original one. I'm afraid I can't help you with this one.
Title: Re: Super Admin
Post by: Sudhakar Arjunan on February 02, 2009, 02:51:08 AM
Quote from: Bulakbol on October 23, 2008, 09:50:46 PM
@asudhakar
Uninstall the mod and see if it is the cause of your issue.


I have got a solution for this issue,

Mod conflicted and reason for this issue - Post Unapproval mod.
Title: Re: Super Admin
Post by: pinoypetfinder on February 02, 2009, 03:53:36 AM
Quote from: Bulakbol on February 01, 2009, 09:56:53 PM
Sorry pinoypetfinder. Your Who.template.php is not the original one. I'm afraid I can't help you with this one.

hi, can you recheck this one?
i have this on my theme directory and labeled as "whoDEFAULT" - so im thinking maybe this is the default one.

also, the one I previously attached, i think it only has the spider/guest/members separator?

Title: Re: Super Admin
Post by: Bulakbol on February 02, 2009, 08:55:58 PM
@pinoypetfinder
Yes, that's the default Who.template.php. I attached the edited file. The first file is a custom Who.template.php that separate spiders and guests.
Title: Re: Super Admin
Post by: pinoypetfinder on February 03, 2009, 07:57:53 AM
thanks bulakbol.

also, is it possible to install the super admin mod together with the spider guest separator mod? i thought the updated super admin version does that :P
Title: Re: Super Admin
Post by: Bulakbol on February 06, 2009, 02:06:33 AM
Sorry. Customizations only edit the default files. I don't use custom Who.template.php so I can't help you.
Title: Re: Super Admin
Post by: Teal on February 08, 2009, 06:24:19 PM
I'm getting a couple of errors when I try and install this mod. I just upgraded from 1.1.7 to 1.1.8
Can someone have a  look at them and suggest what I might need to do to sort them out.

Thanks
Title: Re: Super Admin
Post by: Bulakbol on February 09, 2009, 09:35:54 PM
@Teal
There should be a conflict with other mods you installed. You have to manually edit the files in question.
Title: Re: Super Admin
Post by: Teal on February 10, 2009, 08:01:52 AM
What am I looking for in particular withing these files?

Thanks
Title: Re: Super Admin
Post by: edi67 on February 12, 2009, 11:29:18 AM
i hope to see soon this mod for 2.0 RC1 thx bulak
Title: Re: Super Admin
Post by: X3mE on February 12, 2009, 10:41:36 PM
Quote from: edi67 on February 12, 2009, 11:29:18 AM
i hope to see soon this mod for 2.0 RC1 thx bulak

Me too :)
Title: Re: Super Admin
Post by: KahneFan on February 13, 2009, 06:35:35 PM
Quote from: X3mE on February 12, 2009, 10:41:36 PM
Quote from: edi67 on February 12, 2009, 11:29:18 AM
i hope to see soon this mod for 2.0 RC1 thx bulak

Me too :)

Me three :) :)
Title: Re: Super Admin
Post by: Bulakbol on February 17, 2009, 04:18:13 PM
Sorry guys. I got sick but got better. I will update my mods soon.


edit:
  It is now updated for version 2.0 RC1 only.
Title: Re: Super Admin
Post by: edi67 on February 19, 2009, 11:07:16 AM
Quote from: Bulakbol on February 17, 2009, 04:18:13 PM
Sorry guys. I got sick but got better. I will update my mods soon.


edit:
  It is now updated for version 2.0 RC1 only.

thx bula i want notice one little error in package:

modification in Profile.php, line to replace   deleteAccount array msut have lowercase and not uppercase deleteaccount
Title: Re: Super Admin
Post by: Bulakbol on February 26, 2009, 01:25:44 AM
@edi67
In Profile.php
- SMF 2.0 Beta 4 (camelCase)
Quote'deleteAccount' => array(
   'own' => array('profile_remove_any', 'profile_remove_own'),
   'any' => array('profile_remove_any'),
   'sc' => 'post',
   'password' => true,
),

- SMF 2.0 RC1 (lowercase)
Quote'deleteaccount' => array(
   'label' => $txt['deleteAccount'],
   'file' => 'Profile-Actions.php',
   'function' => 'deleteAccount',
   'sc' => 'post',
   'password' => true,
   'permission' => array(
      'own' => array('profile_remove_any', 'profile_remove_own'),
      'any' => array('profile_remove_any'),
   ),
),

Not sure which one you are referring to.
Title: Re: Super Admin
Post by: ManilaGurL on February 26, 2009, 01:40:43 AM
Wow, this is a great mod... I like it, too... but I am too shy to ask for help now.. Maybe some other time. Btw, your mods are really good! :)
Title: Re: Super Admin
Post by: Bulakbol on March 02, 2009, 10:18:53 PM
Thanks ManilaGurl. You can install this mod as long as all files pass the test. :)
Title: Re: Super Admin
Post by: eric1234 on March 09, 2009, 09:34:22 AM
Hi, does that mods has the function with will er...make other admin cant see and cant access some mods in their admin panel as those mods don't really existed??
Title: Re: Super Admin
Post by: Stigmartyr on March 14, 2009, 05:35:43 AM
Quote from: christicehurst on August 05, 2008, 11:58:21 PM
A great mod that evens the odds with other forum software. Great work!

IDK about you but SMF blows other forum software out of the water.  Fin.
Title: Re: Super Admin
Post by: - Lawrence - on March 16, 2009, 02:02:43 PM
I have a question about this, it may have already been answered but oh well...

If the package isn't hidden from other admins, can they remove it or not?
Title: Re: Super Admin
Post by: AlenNS on March 18, 2009, 09:27:58 AM
I can't install this mod because I have errors on this files:

    3.     Add Before     ./Sources/Subs-Boards.php     Test failed

     3.     Replace     ./Sources/MessageIndex.php     Test failed

    3.     Replace     ./Sources/Display.php     Test failed

     1.     Replace     ./Themes/default/Profile.template.php     Test failed

Can you help me please?
Title: Re: Super Admin
Post by: Bulakbol on March 28, 2009, 02:48:53 PM
@Stigmartyr and Lawrence
Other admins can uninstall this mod if they can see it. Admin #1 should hide it. If you are admin #1, go to  Admin => Current Theme and enable (tick) the check box for "Hide Super Admin from list of installed packages?".


@AlenNS
I'll see what I can do when I have time.
Title: Re: Super Admin
Post by: edi67 on March 28, 2009, 08:00:13 PM
Quote from: Bulakbol on February 26, 2009, 01:25:44 AM
@edi67
In Profile.php
- SMF 2.0 Beta 4 (camelCase)
Quote'deleteAccount' => array(
   'own' => array('profile_remove_any', 'profile_remove_own'),
   'any' => array('profile_remove_any'),
   'sc' => 'post',
   'password' => true,
),

- SMF 2.0 RC1 (lowercase)
Quote'deleteaccount' => array(
   'label' => $txt['deleteAccount'],
   'file' => 'Profile-Actions.php',
   'function' => 'deleteAccount',
   'sc' => 'post',
   'password' => true,
   'permission' => array(
      'own' => array('profile_remove_any', 'profile_remove_own'),
      'any' => array('profile_remove_any'),
   ),
),

Not sure which one you are referring to.

i refer to second case
Title: Re: Super Admin
Post by: Bulakbol on March 31, 2009, 08:05:38 PM
@edi67
Download the package for RC1 and check the files. I believe I used lowercase. No camelCase.
Title: Re: Super Admin
Post by: mlw4428 on April 07, 2009, 10:56:22 PM
mmm...I was able to delete my admin #1 account inside of my own account (I know stupid...but I thought it was to protect against deletion). Had to manually reset the userID on my test account from #2 to #1 and change around some stuff.

I was able to delete myself by going into Admin>Members>Members then placing a check next to my name and clicking on remove selected member.

How can I disable that ability for everyone (including myself)? Thanks!
Title: Re: Super Admin
Post by: Mechanical Karasu on April 19, 2009, 09:25:48 PM
5.     Execute Modification     ./Sources/ManageBoards.php     Test failed

Got this error. What do I do?
Title: Re: Super Admin
Post by: heavyccasey on April 20, 2009, 10:20:35 PM
Hi, is there/could there be a version of this mod without the spy user functionality? I just don't want that extra bulk. Thanks in advance.
Title: Re: Super Admin
Post by: Bulakbol on April 21, 2009, 12:47:56 AM
@mlw4428
I'll look into it but no promises. Too busy atm.

@Mechanical Karasu
Quote from: Mechanical Karasu on April 19, 2009, 09:25:48 PM
5.     Execute Modification     ./Sources/ManageBoards.php     Test failed
You have to edit your ManageBoards.php manually. It is only 3 lines.

@mlw4428
I'm sorry. Removing that functionality is like making another mod. But if you want to remove the spy prompt from profile, comment-out or delete snippet of code. For version 1.1.8, edit default/Profile.template.php.
Code (find and remove) Select
if ($context['user']['id'] == 1)
{
echo '
<tr>
<td width="40%"><b>', $txt['spy_prompt'], '</b></td>
<td><input type="hidden" name="spy" value="0" /><input type="checkbox" name="spy"', $context['member']['spy'] ? ' checked="checked"' : '', ' value="1" class="check" /></td>
</tr>';
}


For version 2.0, edit Sources/Profile-Modify.php.
Code (find and remove) Select
'spy' => array(
'type' => 'check',
'label' => $txt['spy_prompt'],
'permission' => 'profile_identity',
'enabled' => $user_info['id'] == 1,
),
Title: Re: Super Admin
Post by: Mechanical Karasu on April 23, 2009, 10:19:35 PM
What do I have to edit, and how?  :)
Title: Re: Super Admin
Post by: Bulakbol on April 25, 2009, 11:08:56 PM
@Mechanical Karasu
Edit the file that failed the search test. The ManageBoards.php. It is only two lines for version 2.0 RC1 and three lines for version 1.1.8. What version of SMF anyway?
Title: Re: Super Admin
Post by: kota069 on April 26, 2009, 10:09:14 PM
Updated v1.1.8
Installing 1.1.7 w/ UOT

RE:  (ManageBoards.php)
<operation><!-- 430 -->

I do NOT have:
<search position="before"><![CDATA['permission_mode' => 'normal',]]></search>

Instead, I have:
if (empty($modSettings['permission_enable_by_board']))
{
$boardOptions['permission_mode'] = (int) $_POST['permission_mode'];
$boardOptions['inherit_permissions'] = false;
}


The only (2) instances of permission_mode in the file.


I'm not quite sure how to add
'admin1' => 0,
into that.

Thanks....
Title: Re: Super Admin
Post by: Bulakbol on April 27, 2009, 11:17:39 AM
@kota069
If you can't find
'permission_mode' => 'normal',
then look for
'no_children' => true,
than add the
'admin1' => 0,
either before or after.
Title: Re: Super Admin
Post by: kota069 on April 27, 2009, 01:06:16 PM
Quote from: Bulakbol on April 27, 2009, 11:17:39 AM
@kota069
If you can't find
'permission_mode' => 'normal',
then look for
'no_children' => true,
than add the
'admin1' => 0,
either before or after.

Got it.

Thank you !!
Title: Re: Super Admin
Post by: Mechanical Karasu on April 28, 2009, 12:33:17 PM
Quote from: Bulakbol on April 25, 2009, 11:08:56 PM
@Mechanical Karasu
Edit the file that failed the search test. The ManageBoards.php. It is only two lines for version 2.0 RC1 and three lines for version 1.1.8. What version of SMF anyway?

But in what way should I edit it? Where in the file, and how should that be edited? You'll have to excuse me, I'm pretty dense with this stuff. ^_^;;

I'm currently using 1.1.8
Title: Re: Super Admin
Post by: Bulakbol on April 29, 2009, 10:30:21 PM
@kota069
You're welcome.  8)


@Mechanical Karasu
You have to use FTP program such as FileZilla to download files from your server to your PC. Then use text editor such as Notpad++ to edit the file and then upload it again to your server after. Make sure to make a backup before editing your file in case you make mistake.
Title: Re: Super Admin
Post by: Jessikard on April 30, 2009, 04:46:55 PM
is it possible to run it for 2 admins ?

thx Jessi
Title: Re: Super Admin
Post by: Lamarck on May 01, 2009, 10:56:37 AM
Installed and is working fine (2.0 RC1).Only one thing,I think

8: Undefined index: spy_prompt
Aplicar filtro: Mostrar sólo los errores de este archivo
Archivo: /home/silvanos/public_html/Sources/Profile-Modify.php
Línea: 693

I get this again and again on my error log,usually when a user update their profile,etc.

691: 





'spy' => array(
692:







'type' => 'check',
==>693:







'label' => $txt['spy_prompt'],
694:







'permission' => 'profile_identity',
695:







'enabled' => $user_info['id'] == 2,
696:





),

Title: Re: Super Admin
Post by: Bulakbol on May 02, 2009, 07:23:54 PM
@Jessikard
You can probably do it but you have to do a lot of edit.

@Lamarck
Are you using language other than English? In default/languages/index.your_language.php, add this line.
$txt['spy_prompt'] = '<span style="color: red;">Do you want this member to be a spy?</span>';

Title: Re: Super Admin
Post by: mattchewone on May 04, 2009, 02:21:55 PM
How can you uninstall this? I checked the tickbox for hiding the package but, how do i uninstall it as i cant find it??
Title: Re: Super Admin
Post by: Bulakbol on May 05, 2009, 10:33:51 PM
Quote from: mattchewone on May 04, 2009, 02:21:55 PM
How can you uninstall this? I checked the tickbox for hiding the package but, how do i uninstall it as i cant find it??

Go back to Admin => Current Theme, then untick the checkbox for Hide Super Admin from list of installed packages?. The name of the mod should appear in the list of installed mod. Uninstall.
Title: Re: Super Admin
Post by: mattchewone on May 06, 2009, 05:39:46 AM
Quote from: Bulakbol on May 05, 2009, 10:33:51 PM
Quote from: mattchewone on May 04, 2009, 02:21:55 PM
How can you uninstall this? I checked the tickbox for hiding the package but, how do i uninstall it as i cant find it??

Go back to Admin => Current Theme, then untick the checkbox for Hide Super Admin from list of installed packages?. The name of the mod should appear in the list of installed mod. Uninstall.

Its not there which is why im stumped! Not sure what to do.
Title: Re: Super Admin
Post by: Bulakbol on May 08, 2009, 11:44:20 PM
Don't forget, you must be Admin #1 to see the checkbox.
Title: Re: Super Admin
Post by: candidosa2 on May 09, 2009, 07:44:31 AM
update portuguese

<!-- default/languages/index.portuguese_pt.php -->
<file name="$languagedir/index.portuguese_pt.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[$txt['spy_stat'] = '<span style="cor: vermelho;">(Spy)</span>';
$txt['spy_prompt'] = '<span style="color: red;">Voc&ecirc; quer este membro a ser um espi&atilde;o?</span>';
$txt['hide_from_list'] = 'Ocultar Superadministrador da lista de pacotes instalados?';
]]></add>
</operation>
</file>
<!-- default/languages/index.portuguese_brazilian.php -->
<file name="$languagedir/index.portuguese_brazilian.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[$txt['spy_stat'] = '<span style="cor: vermelho;">(Spy)</span>';
$txt['spy_prompt'] = '<span style="color: red;">Voc&ecirc; quer este membro a ser um espi&atilde;o?</span>';
$txt['hide_from_list'] = 'Ocultar Superadministrador da lista de pacotes instalados?';
]]></add>
</operation>
</file>
<!-- default/languages/index.portuguese_pt-utf8.php -->
<file name="$languagedir/index.portuguese_brazilian-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[$txt['spy_stat'] = '<span style="cor: vermelho;">(Spy)</span>';
$txt['spy_prompt'] = '<span style="color: red;">Voc&ecirc; quer este membro a ser um espi&atilde;o?</span>';
$txt['hide_from_list'] = 'Ocultar Superadministrador da lista de pacotes instalados?';
]]></add>
</operation>
</file>
<!-- default/languages/index.portuguese_pt-utf8.php -->
<file name="$languagedir/index.portuguese_pt-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[$txt['spy_stat'] = '<span style="cor: vermelho;">(Spy)</span>';
$txt['spy_prompt'] = '<span style="color: red;">Voc&ecirc; quer este membro a ser um espi&atilde;o?</span>';
$txt['hide_from_list'] = 'Ocultar Superadministrador da lista de pacotes instalados?';
]]></add>
</operation>
</file>
Title: Re: Super Admin
Post by: mattchewone on May 09, 2009, 07:55:18 AM
Quote from: Bulakbol on May 08, 2009, 11:44:20 PM
Don't forget, you must be Admin #1 to see the checkbox.

I am admin 1, still cannot find it.
Title: Re: Super Admin
Post by: Bulakbol on May 10, 2009, 06:46:22 PM
@candidosa2
Thanks for the language. I will add it to the next update. I am thinking about merging the two packages.


@mattchewone
Use the default theme, go to Admin => Current Theme and see if you can find it there. Let me know you can't still find it. Are you using custom theme?
Title: Re: Super Admin
Post by: mattchewone on May 11, 2009, 01:20:34 PM
No i am using Default theme and cannot find it still.
Title: Re: Super Admin
Post by: Bulakbol on May 13, 2009, 06:09:58 PM
Quote from: mattchewone on May 11, 2009, 01:20:34 PM
No i am using Default theme and cannot find it still.

If you are admin#1 but can not still see it, then the installation was not complete. Are you using 2.0 RC1?
Title: Re: Super Admin
Post by: mattchewone on May 14, 2009, 03:42:20 AM
Quote from: Bulakbol on May 13, 2009, 06:09:58 PM
Quote from: mattchewone on May 11, 2009, 01:20:34 PM
No i am using Default theme and cannot find it still.

If you are admin#1 but can not still see it, then the installation was not complete. Are you using 2.0 RC1?

Yes i am using RC1 and i am admin#1.
Title: Re: Super Admin
Post by: Mechanical Karasu on May 15, 2009, 09:56:15 PM
Quote from: Bulakbol on April 29, 2009, 10:30:21 PM
@Mechanical Karasu
You have to use FTP program such as FileZilla to download files from your server to your PC. Then use text editor such as Notpad++ to edit the file and then upload it again to your server after. Make sure to make a backup before editing your file in case you make mistake.

Was away on vacation -- sorry for the late reply.

Again, I'm sorry, but I don't know what to edit. You're telling me to open up the file and edit it, of which I understand that much, but in what way should it be edited? What text in the file ManagBoards.php needs to be edited, and in what way?
Title: Re: Super Admin
Post by: Bulakbol on May 17, 2009, 02:33:22 AM
@mattchewone
Open up default/Settings.template.php and find
'description' => $txt['hide_post_group_desc'],
),
);

and below that, you should find
if ($context['user']['id'] == 1)
$context['theme_settings'] = array_merge($context['theme_settings'],array(
array(
'id' => 'hide_from_list',
'label' => $txt['hide_from_list'],
)
)
);

If it is not there, you have to add it yourself.


@Mechanical Karasu
In Sources/ManageBoards.php, look for
'description' => &$boards[$boardid]['description'],
add after
'admin1' => &$boards[$boardid]['admin1'],
then find
'permission_mode' => 'normal',
Code (add after) Select
'admin1' => 0,
Code (find) Select
$boardOptions['posts_count'] = isset($_POST['count']);
Code (add after) Select
$boardOptions['admin1'] = isset($_POST['admin1']);
That's all
Title: Re: Super Admin
Post by: Phlipp on May 27, 2009, 11:13:52 PM
I just tried to install this on a 1.1.9 server. The install checks failed for files

./Sources/Load.php
./Themes/default/ManageBoards.template.php
./Themes/default/Profile.template.php
./Themes/default/Packages.template.php

any plans for an update for 1.1.9?
Title: Re: Super Admin
Post by: Bulakbol on May 29, 2009, 02:58:24 AM
It is compatible with 1.1.9.  There should be a conflict with other mods you have installed. You have to manually install the mod.
Title: Re: Super Admin
Post by: Robin1989 on May 31, 2009, 01:55:39 PM
i was wondering if it is possible to use this for someone other than the root admin no.1 as i was a member on a site and worked my way up to admin until i then bought the entire site from the origional and was wondering if i could use this for my acount which is member 1058 but the origional owner is still on the site and an admin
Title: Re: Super Admin
Post by: Bulakbol on June 02, 2009, 02:05:02 AM
I'm sorry Robin1989. It is possible but aside from so many changes to do, it defies the real purpose. The mod is designed only for admin #1. The real one.
Title: Re: Super Admin
Post by: djkmmo on June 02, 2009, 09:53:26 AM
Hi!

I thought I would install this mod, but I run in to some problems when applying the changes to ./Sources/SPortal1-1.php and ./Sources/BoardIndex.php. I have searched the files manually and her are my findings (the "my code" parts are parts that to some extent are similar to the strings I was supposed to search for):

ZuperAdmin
./Sources/BoardIndex.php

mem.ID_MEMBER, mem.lastLogin, mem.realName, mem.memberName, mem.showOnline,
Replace With:
mem.ID_MEMBER, mem.lastLogin, mem.realName, mem.memberName, mem.showOnline, mem.spy,

My code
        // Load the users online right now.
        $result = db_query("
                SELECT
                        lo.ID_MEMBER, lo.logTime, mem.realName, mem.memberName, mem.showOnline,
                        mg.onlineColor, mg.ID_GROUP, mg.groupName
                FROM {$db_prefix}log_online AS lo
                        LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = lo.ID_MEMBER)
                        LEFT JOIN {$db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(mem.ID_GROUP = 0, mem.ID_POST_GROUP, mem.ID_GROUP))", __FILE__, __LINE__);

        $context['users_online'] = array();
        $context['list_users_online'] = array();
        $context['online_groups'] = array();



Find:
   while ($row = mysql_fetch_assoc($result))
   {
      if (empty($row['showOnline']))

Replace With
   $context['num_spy'] = 0;

   while ($row = mysql_fetch_assoc($result))
   {
      if (!empty($row['spy']) && $context['user']['id'] != 1)
      {
         $context['num_spy']++;
         continue;
      }
      if (empty($row['showOnline']))


My code

       while ($row = mysql_fetch_assoc($result))
        {
                if (empty($row['realName']))
                {
                        $context['num_guests']++;
                        continue;
                }
                elseif (empty($row['showOnline']) && !allowedTo('moderate_forum'))
                {
                        $context['num_users_hidden']++;
                        continue;
                }

                // Some basic color coding...


Find
$context['users_online_today'][$row['lastLogin'] . $row['memberName']] = array(
Replace With
if ($row['spy'] == 1)
         $link = $link . $txt['spy_stat'];
         
      $context['users_online_today'][$row['lastLogin'] . $row['memberName']] = array(


./Sources/SPortal1-1.php

Couldn't find anything that even remotely looks like the strings I was supposed to search for. Which functions should be updated? I use SP 2.2.1 (the latest release).
Title: Re: Super Admin
Post by: Bulakbol on June 02, 2009, 11:18:56 PM
@djkmmo
May I know please where you downloaded that package from? Please compare your post here.
http://custom.simplemachines.org/mods/index.php?action=parse;mod=1306;attach=82023;smf_version=1.1.8
Title: Re: Super Admin
Post by: djkmmo on June 03, 2009, 06:56:08 AM
Quote from: Bulakbol on June 02, 2009, 11:18:56 PM
@djkmmo
May I know please where you downloaded that package from? Please compare your post here.
http://custom.simplemachines.org/mods/index.php?action=parse;mod=1306;attach=82023;smf_version=1.1.8
From here: http://custom.simplemachines.org/mods/index.php?mod=1306

It's those instructions I have compaired with, but I've just listed the strings that I cant find in my files.
Title: Re: Super Admin
Post by: Bulakbol on June 05, 2009, 03:50:57 AM
You can't find them because they aren't in the package file. That's why I asked you to compare.
Title: Re: Super Admin
Post by: djkmmo on June 05, 2009, 07:04:54 AM
Quote from: Bulakbol on June 05, 2009, 03:50:57 AM
You can't find them because they aren't in the package file. That's why I asked you to compare.
I've have parsed the package against 1.1.19 (http://custom.simplemachines.org/mods/index.php?action=parse;mod=1306;attach=82024;smf_version=1.1.9 (http://custom.simplemachines.org/mods/index.php?action=parse;mod=1306;attach=82024;smf_version=1.1.9)) and those strings are shown when you do that. Does that mean that it's not compatible with 1.1.19?
Title: Re: Super Admin
Post by: Bulakbol on June 06, 2009, 03:56:53 PM
When you tried installing this mod, Is it only BoardIndex.php failed the search test? If a file failed the test, it doesn't mean it is not compatible. It means that the file in question was already altered by another mod and the line is now different. If you need help, attach your BoardIndex.php file and I'll edit it for you when I have time. This mod btw is compatible with 1.1.9 and 2.0 RC1-1.
Title: Re: Super Admin
Post by: djkmmo on June 07, 2009, 04:43:26 AM
Quote from: Bulakbol on June 06, 2009, 03:56:53 PM
When you tried installing this mod, Is it only BoardIndex.php failed the search test? If a file failed the test, it doesn't mean it is not compatible. It means that the file in question was already altered by another mod and the line is now different. If you need help, attach your BoardIndex.php file and I'll edit it for you when I have time. This mod btw is compatible with 1.1.9 and 2.0 RC1-1.
BoardIndex.php and SPortal1-1.php. I can't find anything remotely similar to the strings that should be altered in SPortal1-1.php.

You don't have to manually edit the files; I don't care to much for manually edited files, it just mess things up. We just have to wait and dream for a package manager that can parse mods, not only on for a clean install, but also taking changes made by previously installed mods into account. :).
Title: Re: Super Admin
Post by: Bulakbol on June 07, 2009, 03:18:49 PM
@djkmmo
I have your files. I'll get back to you after looking at them.
Title: Re: Super Admin
Post by: Boomshot on June 13, 2009, 08:47:45 PM
Two things...

1.) Is it possible to change the "You may not ban an Admin - You most demote them first!

2.) What if another admin demotes you, is their a way to prevent this?
Title: Re: Super Admin
Post by: Bulakbol on June 13, 2009, 09:06:37 PM
@djkmmo
Sorry. Your version of SimplePortal is not yet supported by this mod. It support only the old version. Here's your BoardIndex.php. Use this before you install this mod if you want it to install.

@Boomshot
1. If you want to change the language string, it is in default/languages/Errors.english.php. Look for
$txt['no_ban_admin'] = 'You may not ban an admin - You must demote them first!';
2. The other admins cannot demote admin #1 if you installed this mod.
Title: Re: Super Admin
Post by: Rowdy on June 29, 2009, 11:23:04 AM
Would love to install this on SMF2RC1-1. I get error on install in ./Sources/ManageBoards.php:

This code does not seem to be in there:

$boardOptions['posts_count'] = isset($_POST['count']);

I am supposed to add this code after it according to install instructions:

$boardOptions['admin1'] = isset($_POST['admin1']);

Thanks. Very excited to use this mod.
Title: Re: Super Admin
Post by: Bulakbol on June 29, 2009, 06:57:39 PM
@RowdyMusician
// Checkboxes....
$boardOptions['posts_count'] = isset($_POST['count']);
$boardOptions['override_theme'] = isset($_POST['override_theme']);
$boardOptions['board_theme'] = (int) $_POST['boardtheme'];
$boardOptions['access_groups'] = array();

Try searching any on the line above from Sources/ManageBoards.php and add the code after or before. It should work.
Title: Re: Super Admin
Post by: Rowdy on June 29, 2009, 07:55:27 PM
Strange. Installed the mod and see no evidence of it whatsoever. None of the settings are there for either of the two admin account. I am using utf language. Could that be the problem?

Thanks very much
Title: Re: Super Admin
Post by: Bulakbol on June 29, 2009, 07:59:23 PM
You must be admin #1. If not, then it is not for you.
Title: Re: Super Admin
Post by: Rowdy on June 29, 2009, 08:02:56 PM
Both the admin accounts are mine. How do I tell if its #1?

Thanks
Title: Re: Super Admin
Post by: Bulakbol on June 29, 2009, 08:21:06 PM
lol. Of course your account number is 1. Go to Admin => Members => View All Members. If your ID is not 1, then you're out of luck. :)
Title: Re: Super Admin
Post by: Rowdy on June 29, 2009, 10:01:53 PM
All I really need is to have the admins invisible in the whos online list to moderators. Could you tell me how to do this by chance?

Thanks
Title: Re: Super Admin
Post by: machmanx on July 01, 2009, 10:48:18 PM
Hmm, before the mod used to show a "(spy)" next to my name, but no longer does...is that normal?
Title: Re: Super Admin
Post by: Bulakbol on July 04, 2009, 01:06:43 PM
@RowdyMusician
Don't give your global moderators permission to "Moderate forum members". Admin => Permissions => Permissions by Membergroups. Modify "Global Moderators" and under "Member Administration" heading, untick the checkbox for "Moderate forum members".

@machmanx
It should show if you are a spy. Add the language string if it does not exist in default/languages/index.english.php.
$txt['spy_stat'] = '<span style="color: red;">(Spy)</span>';
Title: Re: Super Admin
Post by: Rowdy on July 04, 2009, 01:11:06 PM
LOL. Well, that was easy. Thanks!
Title: Re: Super Admin
Post by: mizantrop on November 08, 2009, 11:32:33 AM
I am using SMF 1.1.10 and I want to know if it is compatible with mod you are discusing here.

Second question is about ID. I am one of admins, and have ID 14, but forum doesn't have ID's from 1 to 13 (they're deleted), so I am the first on the list. Can I become SuperAdmin with this condition?
Title: Re: Super Admin
Post by: Calcricho on November 16, 2009, 03:18:38 AM
I used this mod in 2.0 rc1 now update version 2.0 RC2 wing and does not work any suggestions.

or no more update?

Thanks
Title: Re: Super Admin
Post by: Robbo_ on December 03, 2009, 09:40:55 PM
Are you planning on updating this to 2.0 RC2 anytime soon? If not please say so and I will update it for you...
Title: Re: Super Admin
Post by: » мιsтєя мιsғιт « on December 03, 2009, 10:07:19 PM
Quote from: Robbo_ on December 03, 2009, 09:40:55 PM
Are you planning on updating this to 2.0 RC2 anytime soon? If not please say so and I will update it for you...

Please do! Seems everytime I come to install this mod I have the wrong version of SMF  ;D
Title: Re: Super Admin
Post by: Robbo_ on December 10, 2009, 02:55:32 AM
I have updated this mod to 2.0 RC2. Feel free to use it if you don't want to update it yourself.

Package is attached.
Title: Re: Super Admin
Post by: » мιsтєя мιsғιт « on December 10, 2009, 03:37:35 AM
Thanks!
Title: Re: Super Admin
Post by: Speedy_Luck on December 27, 2009, 06:06:19 PM
I'm sorry but I have installed well th package but how can I put someone Super Admin :p?
Title: Re: Super Admin
Post by: Powerbob on December 27, 2009, 11:59:53 PM
Hi,

Mod installed ok, or so it seems but I get the following error when I go to current theme in the admin section!

Title: Re: Super Admin
Post by: ~DS~ on December 28, 2009, 12:13:50 AM
Getting a error here:

Template Parse Error!

There was a problem loading the /Themes/default/Settings.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.

Parse error: syntax error, unexpected T_IF, expecting ')' in .../Themes/default/Settings.template.php on line 273
264:    '',
265:       array(
266:          'id' => 'show_bbc',
267:          'label' => $txt['admin_bbc'],
268:       ),
269:       array(
270:          'id' => 'additional_options_collapsable',
271:          
272:
273:    if ($context['user']['id'] == 1)
274:       $context['theme_settings'] = array_merge($context['theme_settings'],array(
275:          array(
276:             'id' => 'hide_from_list',
277:             'label' => $txt['hide_from_list'],
Title: Re: Super Admin
Post by: Kays on December 28, 2009, 11:23:52 AM
You both seem to have the same error.

Which version of the mod are you trying to install to which version SMF?
Title: Re: Super Admin
Post by: ~DS~ on December 28, 2009, 11:37:51 AM
Quote from: Kays on December 28, 2009, 11:23:52 AM
You both seem to have the same error.

Which version of the mod are you trying to install to which version SMF?
The lasest mod version 1.5 on 2.0 RC2, I guess it's not compatible with RC2 yet.
Title: Re: Super Admin
Post by: Kays on December 28, 2009, 11:47:51 AM
Is that the one posted by Robbo a few relies up the page?
Title: Re: Super Admin
Post by: ~DS~ on December 28, 2009, 12:04:34 PM
Quote from: Kays on December 28, 2009, 11:47:51 AM
Is that the one posted by Robbo a few relies up the page?
Yep. Maybe I should follow the instructions on how to parse?
Title: Re: Super Admin
Post by: Kays on December 28, 2009, 01:23:37 PM
Here, I fixed it. It was doing a replace rather than adding after.

Also updated the version number to 1.6 and added the option to remove the database entries during uninstall.
Title: Re: Super Admin
Post by: ~DS~ on December 28, 2009, 01:42:12 PM
Quote from: Kays on December 28, 2009, 01:23:37 PM
Here, I fixed it. It was doing a replace rather than adding after.

Also updated the version number to 1.6 and added the option to remove the database entries during uninstall.
Thank you, it works now. What is the complete feature of this lastest mod? Any chances made or added?
Title: Re: Super Admin
Post by: Kays on December 28, 2009, 01:50:55 PM
That hasn't been touched. All of the features remain the same.

I just corrected the error and made a small change in the package-info.xml file
Title: Re: Super Admin
Post by: ~DS~ on December 28, 2009, 01:57:51 PM
Quote from: Kays on December 28, 2009, 01:50:55 PM
That hasn't been touched. All of the features remain the same.

I just corrected the error and made a small change in the package-info.xml file
Thanks kudos to you. Wonder the creator hadn't update the mod...
Title: Re: Super Admin
Post by: Kays on December 28, 2009, 02:02:15 PM
I suspect that real life caught up to him.

It happens all too often.
Title: Re: Super Admin
Post by: Robbo_ on December 28, 2009, 06:30:28 PM
Lol oops, thanks Kays.
Title: Re: Super Admin
Post by: Kays on December 28, 2009, 06:55:32 PM
No, problem. :)
Title: Re: Super Admin
Post by: Enders on January 09, 2010, 01:48:40 PM
~Request~
-Prevent other admins from editing/deleting super admins post
-Prevent admin from editing a certain section in the admin panel (ex: features and options and user groups where u can assign global mods and stuff). Only super admin can edit that


Title: Re: Super Admin
Post by: YogiBear on January 15, 2010, 01:31:37 PM
This is a great mod, Bulakbol.

Kays, here's one very grateful bear for the v2.0 RC2 tweak.
Title: Re: Super Admin
Post by: David Starr on January 30, 2010, 06:29:24 PM

This looks like an awesome mod, but I am running SMF 1.1.11. Is it compatible?
I am also running Simple Portal 2.3.1. Even if that is not supported in this mod, will the mod still work on everything else?

Title: Re: Super Admin
Post by: live627 on January 30, 2010, 06:36:32 PM
Even though the mod author didn't test for 1.1.11, it may still work. Holler if you have any prob
Title: Re: Super Admin
Post by: David Starr on January 30, 2010, 06:54:43 PM
Thanks Live. I tried the reg zip file, and also tried the one for Users Online Today, since I have that mod installed. Both of them gave me the same two errors:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi231.photobucket.com%2Falbums%2Fee37%2Fdavid_starr%2Fsuperadmininstallfailed.jpg&hash=f9401dfc7558777105a3db359ef4d9dc3259d898)

As I'm an SMF noobie, I appreciate any help you can offer.   :)

Title: Re: Super Admin
Post by: waruna on February 18, 2010, 06:40:46 AM
No updates for RC2?
Title: Re: Super Admin
Post by: YogiBear on February 18, 2010, 07:51:44 AM
Only a few posts up the page, waruna...


http://www.simplemachines.org/community/index.php?topic=253702.msg2425605#msg2425605
Title: Re: Super Admin
Post by: YogiBear on February 18, 2010, 07:56:40 AM
Enders, there is a workaround for that : create another group based on Global Moderator, call it General Administrator and allocate a special colour, then add the admin permissions you want them to have whilst leaving out those you don't.

As for no one else being able to edit a Super Admin's posts there is already a mod for that. I'll take a look around to see if I can find it.
Title: Re: Super Admin
Post by: waruna on February 18, 2010, 02:29:41 PM
Oopss, sorry. Didn't notice Kays's post :D. Thanks a lot Kays, Yogibear. ;)
Title: Re: Super Admin
Post by: waruna on February 18, 2010, 02:41:52 PM
Oops. Seems like an error coming out:

QuoteError in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

11.   Execute Modification   ./Sources/MessageIndex.php   Test failed
   1.   Replace   ./Sources/MessageIndex.php   Test successful
   2.   Replace   ./Sources/MessageIndex.php   Test successful
   3.   Replace   ./Sources/MessageIndex.php   Test failed
   4.   Replace   ./Sources/MessageIndex.php   Test successful

12.   Execute Modification   ./Sources/Display.php   Test failed
   1.   Replace   ./Sources/Display.php   Test successful
   2.   Replace   ./Sources/Display.php   Test successful
   3.   Replace   ./Sources/Display.php   Test failed
   4.   Replace   ./Sources/Display.php   Test successful

18.   Execute Modification   ./Themes/default/Profile.template.php   Test failed
   1.   Replace   ./Themes/default/Profile.template.php   Test failed
   2.   Replace   ./Themes/default/Profile.template.php   Test successful


What should I do then?  :(
Title: Re: Super Admin
Post by: Sabre™ on March 14, 2010, 03:48:27 AM
Quote from: Kays on December 28, 2009, 01:23:37 PM
Here, I fixed it. It was doing a replace rather than adding after.

Also updated the version number to 1.6 and added the option to remove the database entries during uninstall.

lol  I just spent the best part of 30 mins converting the rc1 version to rc2 n rc3 lol
Thats why it pays to check the support boards ::)
Title: Re: Super Admin
Post by: tanshin on March 15, 2010, 10:12:46 AM
Quote from: waruna on February 18, 2010, 02:41:52 PM
Oops. Seems like an error coming out:

QuoteError in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

11.   Execute Modification   ./Sources/MessageIndex.php   Test failed
   1.   Replace   ./Sources/MessageIndex.php   Test successful
   2.   Replace   ./Sources/MessageIndex.php   Test successful
   3.   Replace   ./Sources/MessageIndex.php   Test failed
   4.   Replace   ./Sources/MessageIndex.php   Test successful

12.   Execute Modification   ./Sources/Display.php   Test failed
   1.   Replace   ./Sources/Display.php   Test successful
   2.   Replace   ./Sources/Display.php   Test successful
   3.   Replace   ./Sources/Display.php   Test failed
   4.   Replace   ./Sources/Display.php   Test successful

18.   Execute Modification   ./Themes/default/Profile.template.php   Test failed
   1.   Replace   ./Themes/default/Profile.template.php   Test failed
   2.   Replace   ./Themes/default/Profile.template.php   Test successful


What should I do then?  :(

I'm having the same issues here (Kays' version).

Using RC2.

Also, what is the compatibility with RC3 on this?
Title: Re: Super Admin
Post by: distante on March 19, 2010, 07:59:15 PM
This Is Working on Rc3 ?
Title: Re: Super Admin
Post by: flapjack on March 19, 2010, 08:03:41 PM
I can only say it is working with 1.1.11
Title: Re: Super Admin
Post by: distante on March 20, 2010, 02:07:58 AM
I have it in a RC2 forum, but I don't know if there are changes in the DB o so for use in RC3 :-\
Title: Re: Super Admin
Post by: Sabre™ on March 23, 2010, 11:16:09 PM
I'm unsure if your existing version for RC2 will work for RC3, but the attached package will.

{removed}
Title: Re: Super Admin
Post by: Calcricho on March 25, 2010, 03:22:51 AM
Very good and thanks sabre

The only thing different is that you encounter any other admin can change the account settings in the admin 1

Thanks
Title: Re: Super Admin
Post by: Sabre™ on March 26, 2010, 09:07:34 PM
Oh yep, I hadn't checked that as I am only ever the only Admin.
I'm going to remove the attachment, and fix that when I have time to.
Cheers for the update champ :)
Title: Re: Super Admin
Post by: YogiBear on April 06, 2010, 12:34:47 PM
Here's one bear looking forward to your RC3 version, Sabre.
Title: Re: Super Admin
Post by: romper on April 13, 2010, 06:59:10 PM
It works with 1.1.11, but I have one question:
everything works as described, I was #1 member so had no troubles checking me as super admin, I tried with other, "normal" admins to either ban super admin but that option now doesn't exsist as well account setings, so that part is good, but what stops other admins from openin admin panel-membergroups-administrator group in which super admin is and check: remove from a group? Then he is just a regular member?
Title: Re: Super Admin
Post by: flapjack on April 13, 2010, 07:09:58 PM
it's not a group setting. only the user with ID=1 is protected, it has nothing to do with individual permissions.
for example on my forum, protected user is different than #1, just in case ;)
Title: Re: Super Admin
Post by: romper on April 14, 2010, 06:57:44 PM
I didn't understand the answer, I'll try to be more precise:

My admins (2) have all options, they can see or do everything, I'm only superadmin, and I see thy can't ban me or delete me on my profil settings. I tried and those options are gone.
But they can go to admin panel, see me (superadmin) in group admin, remove me from that group and then everything is gone for me, is that normal?
Title: Re: Super Admin
Post by: flapjack on April 14, 2010, 07:01:11 PM
normally when this mod is installed, nobody can change your group. they just won't see the option to do it
Title: Re: Super Admin
Post by: romper on April 15, 2010, 01:21:13 PM
Crap, then it doesn't work properly...don't know why, because I had no erorrs instaling it?

This is what i see with "normal" admin, and "Q" is super admin:
http://img695.imageshack.us/i/19363643.jpg/
Title: Re: Super Admin
Post by: genius09 on April 24, 2010, 03:28:39 PM
hey, i am using smf version 1.1.11 and tried installing this mod.

i'm getting 'test failed' in 3 files; sources/manageboards.php, themes/default/profiletemplate.php and .ssi.php

i tried installing it manually but i'm getting an error with some lines saying they dont exist.

can someone assist me with this please?

thanks
Title: Re: Super Admin
Post by: YogiBear on May 16, 2010, 07:44:50 AM
Any news on progress for this mod, folks?  :)
Title: Re: Super Admin
Post by: !RFAN on May 16, 2010, 08:51:42 AM
i need dis for sm2 rc3
Title: Re: Super Admin
Post by: YogiBear on May 19, 2010, 07:23:14 PM
(Sniffle) Unashamed bump, if this mod can be updated for RC3 I promise not to steal any pic-a-nic baskets for a week.

Seriously though, it's so important not only to prevent others with admin access from deleting the main admin but also to prevent accidents.

Simulation of RC2 doesn't seem to work.
Title: Re: Super Admin
Post by: Quexinos on May 24, 2010, 05:23:42 AM
I was looking at the install and such... and the xml... if I just replaced all the =1 with =3 will that change it so it effects user 3 instead?  That's kinda what i need
Title: Re: Super Admin
Post by: YogiBear on May 24, 2010, 07:38:02 PM
It has to be asked but is this mod still being supported? It'd be a shame if not as it's probably one of the most important security measures which can be installed.
Title: Re: Super Admin
Post by: Sabre™ on May 24, 2010, 11:30:40 PM
Forgot about this mod.
Title: Re: Super Admin
Post by: YogiBear on May 25, 2010, 05:52:11 AM
Hi Sabre, good to see you back.  :)
Title: Re: Super Admin
Post by: Sabre™ on May 25, 2010, 07:19:41 AM
If I recall correct, there was a problem with the package I attached in which other admins could edit admin1's details, everything else worked fine.
I haven't looked at it since then, as I'm only ever the only admin so it doesn't bother me, but without re-writing anything or searching for the 'perfect' string, I suppose a rough hack would do the job.
Possibly one string would do it, or even one string in a couple places to be extra saucy.
Just how to handle it is the problem, do we want attempts to be shown in the error log? do we want only a "not authorised" message to display? Or should we just remove all visual access to admin 1's 'back room'?
Title: Re: Super Admin
Post by: YogiBear on May 25, 2010, 07:39:09 AM
QuoteJust how to handle it is the problem, do we want attempts to be shown in the error log? do we want only a "not authorised" message to display? Or should we just remove all visual access to admin 1's 'back room'?

Any of those should be fine...

QuoteOr should we just remove all visual access to admin 1's 'back room'?

...probably the easiest?
Title: Re: Super Admin
Post by: Robbo_ on May 25, 2010, 07:42:26 AM
From what I remember this mod was just... 'wrong' with some things it did. If I ever get time I will make a new one with similar functionality. (that's a BIG if)
Title: Re: Super Admin
Post by: Sabre™ on May 25, 2010, 07:54:27 AM
I'd look forward to that if you do Robbo.
Out of curiosity, what did you think was wrong with the mod? Function, code etc ?
Off hand all I recall it doing is setting board(s) to admin1 only editable boards, and the spy mode hiding you from certain areas.
Oh, and the fact that you could not be deleted. All which I find useful if desired.
Title: Re: Super Admin
Post by: Robbo_ on May 25, 2010, 08:20:35 AM
Well, if I remember correctly, it would make the member with the ID of 1 the super admin. That is very wrong. If it doesn't then... well it isn't wrong.
Title: Re: Super Admin
Post by: Sabre™ on May 25, 2010, 08:37:23 AM
Yeah it does.
u=1 is the person which created the site, so is "usually" the owner, so imo, should be the super admin. no?
Being the owner of the site, why would it be wrong to disallow other admins from deleting you?
Title: Re: Super Admin
Post by: YogiBear on May 25, 2010, 08:57:21 AM
Quote from: Sabre™ on May 25, 2010, 07:54:27 AM
...
Off hand all I recall it doing is setting board(s) to admin1 only editable boards, and the spy mode hiding you from certain areas.
Oh, and the fact that you could not be deleted. All which I find useful if desired.

The problem with the later mod was it was still possible for another admin to change the membership status of admin #1 (invariably the forum owner).

The original mod worked fine on RC2 but needs updating to work on RC3.
Title: Re: Super Admin
Post by: Sabre™ on May 25, 2010, 09:01:44 AM
Yeah, we're not chatting about that package, but the original mod.
Rob doesn't agree with its function
Title: Re: Super Admin
Post by: YogiBear on May 25, 2010, 09:04:33 AM
Hmm, odd that, Sabre, cos the primary function of the original mod was to protect admin #1 though I believe it can be recoded before installation if admin #1 is no longer the forum owner.
Title: Re: Super Admin
Post by: Robbo_ on May 25, 2010, 09:10:40 AM
My problem is, that it should not have to be re-coded. And that having only one 'super admin' is a big limitation. It should give the person who installs the mod the option to select who is the super admin and allow for more then one.
Title: Re: Super Admin
Post by: YogiBear on May 25, 2010, 09:26:01 AM
I see a potential problem there, Robbo. Supposing an admin other than the forum owner were to install the mod and set it for themselves thus effectively hijacking the forum from its owner.
Title: Re: Super Admin
Post by: Sabre™ on May 25, 2010, 09:36:59 AM
Quote from: YogiBear on May 25, 2010, 09:26:01 AM
I see a potential problem there, Robbo. Supposing an admin other than the forum owner were to install the mod and set it for themselves thus effectively hijacking the forum from its owner.
Yeah that could be a problem, but as long as you have access to your db, they are only being set to be punished. ;)

I guess I don't see the point of multiple super admins, as Im the only owner to my ventures, unless I hand the reigns over to another.
But then I usually have db access anyway, so even an account isn't important.

Quote from: Robbo_ on May 25, 2010, 09:10:40 AM
It should give the person who installs the mod the option to select who is the super admin and allow for more then one.
"Too many chiefs, not enough Indians" comes to mind lol ;)
If you need multiple accounts protected by this mod, then you need to re-evaluate the people of power on your site. Trust..
I see it as a 'fun' mod, rather than a necessary one. My opinion only of course :)
Title: Re: Super Admin
Post by: YogiBear on May 25, 2010, 09:42:55 AM
I see the biggest plus point of this mod is to guard against accidents. Before I owned my own gaff I worked as an admin on another site and one day almost deleted myself instead of sending a PM.  :o

OK, so now I have access to a db but Super Admin would make life so much easier.  :)
Title: Re: Super Admin
Post by: Robbo_ on May 25, 2010, 09:44:39 AM
That problem currently exists. And I can't think of any way to bypass it. Actually I can think of one, make it so the super admin has to be set after mod installation by modifying a file after. Although, if someone can install a mod then they can do anything they want to the site anyway.

If you gave me admin to your site and I wanted to take it down I could make a package that would drop all your tables and delete every file in your forums in a matter of minutes.
Title: Re: Super Admin
Post by: Robbo_ on May 25, 2010, 09:46:36 AM
That post was meant to reply to two posts earlier ^^

I don't have use for this mod. The only reason I even know about it is for a client. This client will need it for RC3 so I will probably make a version public for you when I port it. I can see this kind of thing useful but only when it is done by default on forum installation.
Title: Re: Super Admin
Post by: YogiBear on May 25, 2010, 10:25:12 AM
Thanks, Robbo.

Put it this way, guys, if it works the same/as well as the original I'll be a happy Bear.  :)
Title: Re: Super Admin
Post by: YogiBear on May 31, 2010, 11:17:36 AM
**Bear puts head around door to see if any progress**  ::)
Title: Re: Super Admin
Post by: YogiBear on June 18, 2010, 05:02:17 AM
*Bear camps out on thread.*


::)

Title: Re: Super Admin
Post by: diamondred123 on June 18, 2010, 02:14:41 PM
ok is anyone going to make it work on 2.0 RC3?
are you:
Quote from: Robbo_ on May 25, 2010, 09:46:36 AM
That post was meant to reply to two posts earlier ^^

I don't have use for this mod. The only reason I even know about it is for a client. This client will need it for RC3 so I will probably make a version public for you when I port it. I can see this kind of thing useful but only when it is done by default on forum installation.

if so when will it be done as i really need it

Thanks
Title: Re: Super Admin
Post by: Robbo_ on June 18, 2010, 11:54:11 PM
probably within the next couple of weeks
Title: Re: Super Admin
Post by: Sabre™ on June 20, 2010, 03:33:39 AM
I'm interstate until Wednesday, so will attach my rough version when I get home, until Robbo provides his.
I didnt look back here because I thought you'd already attached it for them Robbo lol
Title: Re: Super Admin
Post by: Robbo_ on June 20, 2010, 08:20:21 AM
I just have so little time lately :/
Title: Re: Super Admin
Post by: YogiBear on July 05, 2010, 06:31:15 PM
*Bear peeks in...*  ::)


Title: Re: Super Admin
Post by: KensonPlays on August 03, 2010, 06:08:43 PM
Please update this for 2 RC3! I got warned by a global mod on MY OWN forum!
Title: Re: Super Admin
Post by: Road Rash Jr. on August 03, 2010, 07:03:12 PM
You know this is built in to SMF? All you have to do is create a members group called Admin Assistant and limit their abilities. You don't need a third party mod that isn't supported anymore.
In my opinion anyone who gives a so called friend or associate total control of their forum has rocks in the head and deserves the abuse heaped on them by those not deserving of the trust placed in them.
If you got warned by a Global Mod you obviously gave this duff too much power, kick him in the pants and return him to regular member DUH!!!!
Title: Re: Super Admin
Post by: YogiBear on August 04, 2010, 12:58:34 PM
It does guard against accidents though. The support sections have a number of threads where admins have deleted themselves by accident.
Title: Re: Super Admin
Post by: Road Rash Jr. on August 04, 2010, 01:04:35 PM
Really? That's way too funny. LOL
Well then if this is such a common occurrence then the developers should build in a failsafe in the program to prevent admins from deleting themselves.
Title: Re: Super Admin
Post by: KensonPlays on August 04, 2010, 05:07:27 PM
Quote from: Road Rash on August 03, 2010, 07:03:12 PM
You know this is built in to SMF? All you have to do is create a members group called Admin Assistant and limit their abilities. You don't need a third party mod that isn't supported anymore.
In my opinion anyone who gives a so called friend or associate total control of their forum has rocks in the head and deserves the abuse heaped on them by those not deserving of the trust placed in them.
If you got warned by a Global Mod you obviously gave this duff too much power, kick him in the pants and return him to regular member DUH!!!!
A global mod did this.
Title: Re: Super Admin
Post by: GunDude on September 07, 2010, 08:58:43 PM
Weird, I installed this mod -- made myself (#1) a spy -- but then was able to delete this superadmin account from another Admin account.  I know this isn't supported by its author anymore, but anyone have any ideas?
Title: Re: Super Admin
Post by: Hj Ahmad Rasyid Hj Ismail on September 20, 2010, 01:36:12 PM
I like this mod idea but will this mod works in RC3? I really hope that there is a function or mod to create another admin with lesser power and not the same with the main (super) admin.
Title: Re: Super Admin
Post by: Oya on September 20, 2010, 03:12:48 PM
Quote from: ahrasis on September 20, 2010, 01:36:12 PM
I like this mod idea but will this mod works in RC3? I really hope that there is a function or mod to create another admin with lesser power and not the same with the main (super) admin.

how about using permissions and not giving admin permissions to ppl u dont trust
Title: Re: Super Admin
Post by: YogiBear on September 20, 2010, 03:36:00 PM
Sabre is working on updating this mod but with RC4 in sight it could be worth waiting to see if any changes need to be made so it works on that version.
Title: Re: Super Admin
Post by: Road Rash Jr. on September 20, 2010, 03:40:58 PM
Quote from: YogiBear on September 20, 2010, 03:36:00 PM
Sabre is working on updating this mod but with RC4 in sight it could be worth waiting to see if any changes need to be made so it works on that version.


RC4?? What the hell, last I heard which was months ago, Gold release was in sight.
Title: Re: Super Admin
Post by: distante on September 20, 2010, 04:02:46 PM
A little time ago I install this mod in RC2, but never install again for RC3, but allll the mods working in RC2 works in RC3, only have to make the database compatible (I know, I know, my english sucks)
Title: Re: Super Admin
Post by: Road Rash Jr. on September 20, 2010, 04:27:52 PM
I think mods are useful to give us extra functionality that isn't built into the program, but to create or use a mod to replace common sense is a concept beyond the bounds of any program or mod.  :-X
Title: Re: Super Admin
Post by: Sabre™ on September 20, 2010, 07:20:42 PM
You're speaking of only a small aspect of this mods functions.
It also performs actions which you cannot activate with "common sense"  ???
Title: Re: Super Admin
Post by: Road Rash Jr. on September 20, 2010, 07:29:33 PM
Really? And what might those be?
Title: Re: Super Admin
Post by: Sabre™ on September 20, 2010, 07:33:21 PM
Read the description, it's not there for decoration ;)
Title: Re: Super Admin
Post by: Road Rash Jr. on September 20, 2010, 07:45:37 PM
Quote from: Sabre™ on September 20, 2010, 07:33:21 PM
Read the description, it's not there for decoration ;)

Not very informative about features that can not be "activated by common sense" as you claim.

All functions that are mentioned in the description can be acomplished by common sense of not allowing anyone but the forum owner to be assigned as Admin. Everything needed for assistants can be set in priveledges which does require common sense.

So is there something else this mod does that isn't mentioned?
Title: Re: Super Admin
Post by: Sabre™ on September 20, 2010, 07:58:23 PM
It seems it isn't so common.
When you can read the code source and understand the underlining functions, come back and we'll finish this conversation.
Until then, holding your hand through explanation is not on my todo list.
The purpose of this mod is function with multiple admins, not the singular in which you think is purposeful to mention.
Title: Re: Super Admin
Post by: Road Rash Jr. on September 20, 2010, 08:16:30 PM
So you admit there are underlining functions which are not documented in the description you directed me to.
I'm sorry, I wasn't aware you are the only one who understands your source code. Strangely I understand them fine.
I'm not trying to give you a hard time here, I just see no point in a mod that duplicates functions already built in and available to the forum owner/admin to properly regulate who has what powers to assist in the day to day operations of the forum.
So unless there is something special that isn't documented, and isn't appearant in the code this mod is redundant and in my opinion gives people a false sense of security.

Title: Re: Super Admin
Post by: Hj Ahmad Rasyid Hj Ismail on September 21, 2010, 05:50:20 AM
Quote from: Oya on September 20, 2010, 03:12:48 PM
Quote from: ahrasis on September 20, 2010, 01:36:12 PM
I like this mod idea but will this mod works in RC3? I really hope that there is a function or mod to create another admin with lesser power and not the same with the main (super) admin.

how about using permissions and not giving admin permissions to ppl u dont trust

Permissions? How do we adjust permissions for the newly appointed admin? Can we really do this with this mod? How I wish it can be done...  :-\
Title: Re: Super Admin
Post by: Oya on September 21, 2010, 07:10:08 AM
why cant u just create a new group called admin and give tehm all permissions

they cant remove ppl from teh real admin group nor can they ban anyone or delete anyone in the real admin group
Title: Re: Super Admin
Post by: Hj Ahmad Rasyid Hj Ismail on September 21, 2010, 08:33:19 AM
There is no such option.
Title: Re: Super Admin
Post by: YogiBear on September 21, 2010, 08:34:58 AM
Hmm, if you give them all permissions then they'll be able to moderate membergroups and delete whom they please including the admin.
Title: Re: Super Admin
Post by: Oya on September 21, 2010, 09:05:47 AM
sigh

did u actually try it

create a new group
give them all permissions
create a test member in this group
then try removing admin from urself
u CANT it wont let u!

smf protects ppl in grp 1 from anything, u have to be grp 1 to assign grp 1 to another user, or be grp 1 to remove someone from it
try it
Title: Re: Super Admin
Post by: Road Rash Jr. on September 21, 2010, 09:21:58 AM
Quote from: Oya on September 21, 2010, 09:05:47 AM
sigh

did u actually try it

create a new group
give them all permissions
create a test member in this group
then try removing admin from urself
u CANT it wont let u!

smf protects ppl in grp 1 from anything, u have to be grp 1 to assign grp 1 to another user, or be grp 1 to remove someone from it
try it

That's exactly my point. I have a group called "Admin Assistant" or you can use the default "Global Moderator", go to permissions for that group to adjust their level of authority and you as the number 1 Admin do not loose control over the forum. It's alll built in and a mod isn't required.
Title: Re: Super Admin
Post by: Road Rash Jr. on September 21, 2010, 09:27:07 AM
Quote from: YogiBear on September 21, 2010, 08:34:58 AM
Hmm, if you give them all permissions then they'll be able to moderate membergroups and delete whom they please including the admin.

If you assign a member to Admin yeah they have equal authority to the forum owner and that is not a good thing.
Just create a group called "Admin Assistant" or use the "Global Moderator" and set permissions as needed. Number 1 Admin doesn't loose control and the assistant can do anything EXCEPT remove the number 1 Admin.
Title: Re: Super Admin
Post by: Oya on September 21, 2010, 09:56:45 AM
Quoteassistant can do anything EXCEPT remove the number 1 Admin.

cant make people into that group either
Title: Re: Super Admin
Post by: YogiBear on September 21, 2010, 10:30:05 AM
Quote from: Oya on September 21, 2010, 09:05:47 AM
sigh
did u actually try it
create a new group
give them all permissions
create a test member in this group
then try removing admin from urself
u CANT it wont let u!
smf protects ppl in grp 1 from anything, u have to be grp 1 to assign grp 1 to another user, or be grp 1 to remove someone from it
try it


Oya, could you please stop using SMS and use plain English? That way more folk will be able to understand you and remember for many here English is not their native tongue. Also, for someone relatively new, a little humility would not go amiss. Thanks.


Back to topic : one reason for some folk wanting this mod is because it can help eliminate the possibility of Admin #1 accidentally deleting himself! Yes, I know about the workarounds but prevention is better than cure and if an author is prepared to make a mod then this should be encouraged.

Title: Re: Super Admin
Post by: Road Rash Jr. on September 21, 2010, 12:59:13 PM
@ YogiBear
QuoteBack to topic : one reason for some folk wanting this mod is because it can help eliminate the possibility of Admin #1 accidentally deleting himself!

True, no one wants to be in the situation where they accidently delete the Admin #1.
From my experience with SMF2.0 RC3 of which I am the admin of 15 working on 20 forums in various configurations of stock to moderatly and heavly modified, I have been unable to delibertately delete the # 1 admin.
That being said, I conclude it is not possible to do so with a stock SMF2.0 RC3. But concede it could be possible if some mod has altered something in the code to allow this to happen though I have not been able to reproduce this on any of my modified forums.
Title: Re: Super Admin
Post by: Oya on September 21, 2010, 01:01:37 PM
Quotea little humility would not go amiss

I'd likely be more humble if I didn't have to say the same thing two or three times before people listened.
Title: Re: Super Admin
Post by: Hj Ahmad Rasyid Hj Ismail on September 21, 2010, 02:53:24 PM
So far that I know all permissions that are available by default is not (all) the administrator's permissions at all. That is the maximum global moderator's permissions only. May be I am wrong (and do enlighten me), but I know administrator can do more and the permissions are not available to be modify for newly created admin.
Title: Re: Super Admin
Post by: Oya on September 21, 2010, 03:04:15 PM
Giving admin permissions, including "administrate the forum" does not give those users a true admin role.

Group 1 still has special rules applied, notably that users have to be in group to assign others to group 1, have to be in group 1 to remove from group 1, and so on. Users in group 1 will always have every permission, while the same will not be true for those who just have everything ticked, since there is a separate check in allowedTo() for group 1.

You could always try it, of course.
Title: Re: Super Admin
Post by: Hj Ahmad Rasyid Hj Ismail on September 21, 2010, 04:03:01 PM
I surely have tried and there is no options to reduce permissions of newly appointed admin. If we are creating a new group the most that the group will have is all the permissions of a global moderator group.

I wish to have a control over a newly appointed admin like whether they can install or remove all or certain packages etc.
Title: Re: Super Admin
Post by: Oya on September 21, 2010, 04:16:25 PM
1. Create a new group.
2. Go into General Permissions. I'll assume you're using the Simple layout in 2.0 at this point.
3. Under "Carry out administrative duties", tick "Administrate forum and database"

The little help icon even says:
QuoteThis permission allows a user to:

* change forum, database and theme settings
* manage packages
* use the forum and database maintenance tools
* view the error and mod logs

Use this permission with caution, as it is very powerful.

It does not give them full admin powers, however, because they still cannot override what a true administrator does.

What more power do you want to give (or not give) than that?
Title: Re: Super Admin
Post by: Hj Ahmad Rasyid Hj Ismail on September 21, 2010, 04:21:04 PM
Thanks anyway but I know all that already. I need a more specific control for each and everything for a newly appointed admin i.e. what they are allowed or not allowed to do. The available one is too general.
Title: Re: Super Admin
Post by: YogiBear on September 21, 2010, 04:47:09 PM
That could be a case for Mod Requests as it goes beyond the aims of Super Admin although something I could well find handy in the future.

Some other points recently raised have already been covered earlier in this thread. I too can think of workarounds to some mods on the site - one of which I posted a while ago under Feedback & Discussion so as not to hijack a thread - but if an author is prepared to put in the work to make it easier for other members, particularly beginners, then this is something to be encouraged. Johnny B, the original author, left to join the armed forces and Sabre has very kindly taken this on.
Title: Re: Super Admin
Post by: Hj Ahmad Rasyid Hj Ismail on September 21, 2010, 07:02:13 PM
I think of new mod request or just features request here. I prefer this mod is upgraded to do my wish.  :P But, if the answer is no, may be I'll ask for a new mod (or find a way to create one).
Title: Re: Super Admin
Post by: qubbah on November 10, 2010, 03:14:25 AM
any update for rc3?
Title: Re: Super Admin
Post by: -=[Vyorel]=- on November 10, 2010, 05:41:47 AM
Quote from: greentooth on November 10, 2010, 03:14:25 AM
any update for rc3?
For SMF 2.0 RC4 :D
Title: Re: Super Admin
Post by: YogiBear on November 10, 2010, 06:28:46 AM
http://www.simplemachines.org/community/index.php?topic=253702.msg2791178#msg2791178 (http://www.simplemachines.org/community/index.php?topic=253702.msg2791178#msg2791178)


:)
Title: Re: Super Admin
Post by: Sabre™ on November 11, 2010, 12:14:36 AM
Hi Bear.
I've actually moved on to other software, just to further my knowledge in ... other methods.
SMF being my first ever venture, I thought I'd branch out and befriend other communities/knowledge.
I have not totally left SMF, the software ROCKS too much, but since learning other methods, my limited time is focussed elsewhere.
I'm sure somebody will update the mod sometime, with new fantastic code and ideas.
But I suspect it wont be until all of the new n old bugs are gone from the RC.
Well, that's how it should be anyway.

Cheers :)
Title: Re: Super Admin
Post by: YogiBear on November 11, 2010, 04:59:29 AM
Thanks, Buddy.  :)

Title: Re: Super Admin
Post by: Hj Ahmad Rasyid Hj Ismail on December 04, 2010, 09:37:35 AM
I always like playing with sword and sabre. But this Sabre™ is quite unique. Hope to see you helping here around whenever you are free or feel like it.  ;D Best of luck in your new endeavor.
Title: Re: Super Admin
Post by: SRich on January 20, 2011, 11:03:46 AM
Hello,

I have tested it on a newly installed forum and the spy mode and hide package works, but the admin with nr 1 can be edited and banned by other admins. Can you help me ?

thnx

SR
Title: Re: Super Admin
Post by: YogiBear on January 23, 2011, 08:10:44 AM
Welcome to SMF.  :)


This prob has been identified before. The 'solution' is either to have only one admin with full powers or wait until 2.0 final is released when Sabre may update the mod once and for all.

Meanwhile, you could try RC2 Emulation so as to install the mod.

I'll be the thousanth person to say this but do you really need anyone other than yourself with full admin powers?
Title: Re: Super Admin
Post by: Arantor on January 23, 2011, 09:37:47 AM
And really, if you can't trust them with full admin powers, why are you giving them such powers?
Title: Re: Super Admin
Post by: RustyBarnacle on January 23, 2011, 12:47:01 PM
While I don't think I'll be giving anyone admin powers anytime soon, that's because I can often take what's given here and figure things out. Some people here that needed help got burned when they gave someone admin access to help them.

And then there's always the occasional hacker that gets in as admin. Sure there's always backups, if the new guy took any.  This was always one of my favorite mods to put on other peoples boards to give them a measure of confidence when I was doing that. 
Title: Re: Super Admin
Post by: Arantor on January 23, 2011, 01:28:37 PM
The only time I've ever seen a hacker gain admin privileges is on badly configured shared hosting where there were other things able to access the database inappropriately.
Title: Re: Super Admin
Post by: marieu on March 29, 2011, 10:12:45 AM
Hi.

I get to make this mod work on SMF 2.0 RC4, but I can't make appear in the account settings the option to enable or disable.

Only works with the entire admin group would be able to individually edit the profile.

Does anyone know what takes to show this?

Thanks very much.
Title: Re: Super Admin
Post by: YogiBear on March 29, 2011, 03:50:02 PM
I can't remember exactly but configuration was done somewhere in the Features and Options in the Admin section as the mod works only for the member with ID-1 ie. the forum owner.

There is also (somewhere in the admin area) the facility to hide it from other admins.

Title: Re: Super Admin
Post by: marieu on March 29, 2011, 04:10:20 PM
Quote from: YogiBear on March 29, 2011, 03:50:02 PM
I can't remember exactly but configuration was done somewhere in the Features and Options in the Admin section as the mod works only for the member with ID-1 ie. the forum owner.

There is also (somewhere in the admin area) the facility to hide it from other admins.

This I know is working, but the original mod can change in profile like hidden member the option spy profile like this "Do you want this member to be a spy?", now working but just for all admin group, if I have 3 admins, all 3 are spy members and I want to choose the profile.

But it's ok, thanks anyway.

Title: Re: Super Admin
Post by: Calcricho on June 28, 2011, 05:04:52 PM
Any update?



Thanks in advance
Title: Re: Super Admin
Post by: Hj Ahmad Rasyid Hj Ismail on June 29, 2011, 12:00:06 PM
I don't think so...
Title: Re: Super Admin
Post by: Mr. Pirate on September 08, 2011, 11:43:14 PM
Can someone update this for SMF 2.0 please and thanks!
Title: Re: Super Admin
Post by: Branko. on September 09, 2011, 01:08:07 AM
ZuperAdminRC1, try parse and install manually.Good luck!!
Title: Re: Super Admin
Post by: Hj Ahmad Rasyid Hj Ismail on September 10, 2011, 12:40:11 PM
Quote from: Mr. Pirate on September 08, 2011, 11:43:14 PM
Can someone update this for SMF 2.0 please and thanks!
This untested and unapproved version of Zuper Admin (version 1.7) for SMF 2.0.
Title: Re: Super Admin
Post by: -=[Vyorel]=- on January 03, 2013, 08:56:05 AM
Quote from: -=[Vyorel]=- on November 10, 2010, 05:41:47 AM
Quote from: greentooth on November 10, 2010, 03:14:25 AM
any update for rc3?
For SMF 2.0 RC4 :D
Now for SMF 2.0.3 ? This mod it's Great



Thanks!
Title: Re: Super Admin
Post by: BCK on January 12, 2013, 11:26:51 AM
is it updated to 2.03????

Quote from: -=[Vyorel]=- on January 03, 2013, 08:56:05 AM
Quote from: -=[Vyorel]=- on November 10, 2010, 05:41:47 AM
Quote from: greentooth on November 10, 2010, 03:14:25 AM
any update for rc3?
For SMF 2.0 RC4 :D
Now for SMF 2.0.3 ? This mod it's Great



Thanks!
Title: Re: Super Admin
Post by: kanaka on May 02, 2013, 05:33:01 PM
But if the admin was in a different position from # 1? How should I change the mod?
Title: Re: Super Admin
Post by: YogiBear on May 12, 2013, 06:09:27 PM
That's the very point - if it were possible to make any admin besides admin ID1 the super admin then that other admin could hijack the forum. I'll have a wander back through the thread when I get a mo as this question has come up a few times.
Title: Re: Super Admin
Post by: Arantor on May 12, 2013, 06:12:41 PM
I still say you shouldn't need this mod if you don't give out full admin powers in the first place... because if they have full admin powers they could just uninstall the mod anyway... so if you don't give the power out, they can't abuse it.
Title: Re: Super Admin
Post by: YogiBear on May 12, 2013, 06:17:43 PM
Quote from: Arantor on May 12, 2013, 06:12:41 PM
I still say you shouldn't need this mod if you don't give out full admin powers in the first place... because if they have full admin powers they could just uninstall the mod anyway... so if you don't give the power out, they can't abuse it.


I did use this in the days of RC3 and it was possible for the admin ID1 to hide it from other admins (I set up a test account).

However, do take care to install this mod after any others and uninstall it before uninstalling others. I took up about a page on the Aeva support thread with an uninstall problem (so as to update it) just because I had forgotten I'd installed Super Admin and set it hidden!
Title: Re: Super Admin
Post by: Arantor on May 12, 2013, 06:29:14 PM
Huh, I didn't realise it also hid itself. But even so, it's still more than possible to confirm the mod is installed even if hidden and even if it is hidden it is still entirely possible to defeat it.

In fact, just after 10 minutes of studying the code, I think I know how any admin, not just user 1, could force it to be shown again in the package manager. In fact, the mod is actually weak on that point because it isn't actually obviously clear how you set it hidden in the first place.

(Admittedly, I'm a pro SMF user, not the average admin, so I know all about its foibles and I would be surprised if most people would know how to exploit the routes I do. But even so, it's possible - and if you don't trust your users, don't give them full admin power, simple as that.)
Title: Re: Super Admin
Post by: Mark S on August 14, 2013, 09:16:48 PM
I have had the need to take on a helper admin to administrate the active/inactive membership, which means they need to be able to delete accounts.  Now, with that permission, does that mean this member could delete ME as the only actual "admin" status?  If not, then I wouldn't need any "super" admin protection but if so, then sure, I could get back in through the host cpanel but, I don't even want the ability be deleted by another pseudo-admin with the delete member option to be available.

Could you help with explaining how this works?

If I can be deleted, then the super admin mod still can't be used since it's out of version update?

Thanks!
Title: Re: Super Admin
Post by: Arantor on August 14, 2013, 09:20:37 PM
They will only be able to delete you if they themselves are in the true admin group (group 1). If they are not in that group, just having a separate group with the manage members permission, they will not be able to delete you.

Better question: if you don't trust them not to delete your account, why did you promote them in the first place? Don't give out permissions to people you don't trust!
Title: Re: Super Admin
Post by: Mark S on August 14, 2013, 09:28:12 PM
Because I only trust anyone except my wife as far as I can throw them.  It's better to be safe than sorry, right?
Title: Re: Super Admin
Post by: Arantor on August 14, 2013, 09:29:57 PM
Exactly... and if you don't trust them, don't give them keys to your kingdom at all. If you don't trust them not to delete you, why do you trust them to delete other people?

The point stands as far as groups, if you didn't set the user up as a full admin in the first place, they can't delete you, but that doesn't mean they can't cause various damage to the site as a whole.

Better question: are you using this helper to delete spam? If so, there are much better methods (there are many, many discussions about preventing rather than cleaning up after spam)
Title: Re: Super Admin
Post by: Mark S on August 14, 2013, 11:11:24 PM
They aren't going to remove spam.  We don't have, nor ever had, any spam because I do know the better ways to handle that.  Spammers simply don't get past the registration.  Not spambots or any actual person who has tried to "buffalo" through the registration questions.

I asked if they 'could' delete an actual admin account because that isn't spelled out anywhere in the help explanation for that permission.  I don't care if the person was my own clone, I'd still want to know if they could or couldn't delete me.  Since I now know they can't, it's not an issue. 

Thank you, my question is answered.
Title: Re: Super Admin
Post by: Kosuki on April 09, 2016, 10:47:07 PM
I need to change the default super admin from user 1 to my user number. I have found the files to edit from the post on the first page, however, I am unable to find the lines of code I am told to select and edit. For example on load.php I was only able to find the first edit not the other ones... I d not want to have to uninstall this mod, however if there is no good solution, then I will uninstall it.
Title: Re: Super Admin
Post by: Mark S on May 14, 2016, 07:43:29 PM
use the "emulate" earlier version possibly?