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

Bulakbol

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

mattchewone

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.

Mechanical Karasu

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?

Bulakbol

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

Phlipp

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?

Bulakbol

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

Robin1989

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

Bulakbol

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

djkmmo

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

Bulakbol

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

djkmmo

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.

Bulakbol

You can't find them because they aren't in the package file. That's why I asked you to compare.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

djkmmo

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) and those strings are shown when you do that. Does that mean that it's not compatible with 1.1.19?

Bulakbol

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

djkmmo

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

Bulakbol

@djkmmo
I have your files. I'll get back to you after looking at them.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Boomshot

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?

Bulakbol

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

Rowdy

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.

Bulakbol

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

Advertisement: