News:

Wondering if this will always be free?  See why free is better.

Main Menu

Super Admin

Started by Bulakbol, August 04, 2008, 06:44:30 PM

Previous topic - Next topic

ke4obt

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
Thanks Much

Flip - KE4OBT
     The Blind Ham
Helping other blind hams
get on the air!


Yes I am really a BLIND user!

So, if a mod doesn't install properly, and I can't get help from your part of the forum,
I will come begging for YOUR help since you wrote it and know how it works
um, uh, well,
At least I would really, really hope you do!
HEE-HEE-HEE

Kat-2

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?

Bulakbol

@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!';
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Kat-2

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?

Bulakbol

Were you actually banned?
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Kat-2

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!'' 

Bulakbol

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. 
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Kat-2

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.

Bulakbol

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');
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Kat-2

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. :(

Bulakbol

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! 
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Kat-2

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???

Bulakbol

No, I didn't try it locally. I will try it when I have time.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

pinoypetfinder

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 :)


Bulakbol

Sorry pinoypetfinder. Your Who.template.php is not the original one. I'm afraid I can't help you with this one.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Sudhakar Arjunan

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.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

pinoypetfinder

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?


Bulakbol

@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.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

pinoypetfinder

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

Bulakbol

Sorry. Customizations only edit the default files. I don't use custom Who.template.php so I can't help you.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Advertisement: