Want to add another admin but can only select SuperUser as admin

Begonnen von JesterSupreme, 11 Dezember 2004, 19:58:08

⏪ vorheriges - nächstes ⏩

0 Mitglieder und 3 Gäste betrachten dieses Thema.

JesterSupreme

Hi all.  First let me apologize if this has already been posted.  I did my best to search through here, but I only speak English and babelfish just wasn't working with me.

My problem is that I'd like to add another admin to the kalendar.  However, when I try to select which types of admins can work on the kalendar I am only able to select superadmin.  How do I change this so that I'm able to add other types of admins like news admins, and others?

The config.php has this if it is helpeful at all

$calconf['AdminEditAll']    = '1';
$calconf['AdminMenu']       = '0';
$calconf['AdminType']       = 'radminsuper';

Biker

#1
Hi,

you´ve to go to http://www.yourdomain.de/admin.php?op=mod_authors

now you see this, where you can add another Admin without being an superadmin!

Do it like this for the "calendar-admin", and as the same for each other by making the hook in the field you wish to give him the rights for!



I hope that´s the answer to your question!?


Detektei Martin - wir bringen Licht ins Dunkle!

JesterSupreme

Thank you for your suggestion, but I do not have that checkbox in my new admin area.

My new admin area appears like this.



Also, here is a screenshot of my kalender config page

http://www.ravesf.com/kalenderconfiguration.jpg

I have kalender installed on phpnuke 7.5 but I heard that it should work.  Any more help?

dochogan

The Kalender module/option does not appear in my AdminsCP (mod_authors) either.

jubilee

Hmmm ....
phpNuke... thats the problem....
2 ways to solve this.
1. modify the authors-module to show the missing options and write them  to the database.
2. write the modifikation directly to the database (phpMyAdmin etc...), = add on field in the authors-table and insert data
   
Here is the SQL-Dump for use with phpMyAdmin:
ZitatALTER TABLE `XXXX_authors` ADD `radmincalendar` TINYINT( 2 ) DEFAULT '0' NOT NULL
Alter the XXXX to your Database-Prefix
After that you have to modify the dataset (in the authors-table) of the Admin that should manage the Kalender.
Alter for this admin the '0' in the radmincalendar-field to '1'
greetings
jubilee

dochogan

#5
Wierdness with PHP-Nuke v7.5+ (I'm using 7.6)

nuke_authors is *not* where module permissions are kept (at least anymore).  nuke_authors only holds the 'radminsuperuser' setting.

Modules admin information is now, apparently, held in the nuke_modules table, in the 'admins' field.  Even stranger is that it doesn't seem to use the users uid.  It looks like it uses the user's REAL name, with each authorized admin seperated by commas.  It should be possible, though, to set admin permission through the standard AdminCP>>EditAdmins

The table nuke_modules also has a 'mod_group' field, which may be useful, but I don't see how it's used with the system. (all modules in my table have this field set to '0' (zero) )

This is *really* a strange change to the nuke system, and makes fixing KalenderMX admin permissions a lot harder.  KalenderMX *does* show up in the nuke_modules list, as 'Kalender'', so it's a start, anyway.

Hope this helps in coming up with a workaround.  Please keep me updated!  I need to get this fixed myself.


dochogan

FIXED!  FIXED!  FIXED!  FIXED!  FIXED! 

100% fix.

Yay, me!   :D

Okay, this is *stupid*, but it WORKS!  *AND* it should help you fix Edit Admins administration for other missing modules, too.

The Fix:
in the folder 'modules/Kalender/admin/' create the following files:
  • index.php
  • case.php
  • links.php
There doesn't have to be *anything* in these files, they just have to exist.

That's it!  All there is to it.

Why does this work?  (or, better yet, why wasnt it working before?)
In the file 'admin/modules/authors.php' the displayadmins() function sets up the list of modules.  When it goes to set them up, it uses this condition:if (file_exists("modules/$row[title]/admin/index.php") AND file_exists("modules/$row[title]/admin/links.php") AND file_exists("modules/$row[title]/admin/case.php")) {
which looks for those 3 files in the module's admin folder.  If all 3 are there, the module is admin assignable.  If any 1 of the files is missing, it doesn't show up in the list.

dochogan

Never mind :mad:

Yes, that fix gets the module to show up in Edit Admins (and works with other missing modules).

However, it appears that KalenderMX requires Globals to be on in PHP when checking for admin permissions *other* than radminsuperuser.  This makes it very difficult (for me, anyway) to find a way to authenticate a user defined in nuke_authors (which is semi-hardcoded into KalenderMX...another bad thing for us nukers) or in nuke_modules.

So, where it stands: I *really* think KalenderMX is awesome; perhaps *the* best calendar out there.  It's definitely does exactly what I want, functionally.  If you run a Nuke portal and require to delegate admin duties, however, KalenderMX simply isn't up to it.

This is *really* too bad.  I have a feeling I'm going to have to use a different calendar for my nuke site.  There are simply too many small issues to make up for the one or two main benefits.

:'( :'( :'(

jubilee

Howdi !
ZitatGlobals to be on in PHP when checking for admin permissions *other* than radminsuperuser
That should be easy to fix

ZitatThis is *really* too bad.  I have a feeling I'm going to have to use a different calendar for my nuke site.  There are simply too many small issues to make up for the one or two main benefits
Just wait for Tora (coder of the Calendar) and see what he have planned for the next release of the
Calendar.

greetings
jubilee

NoviceScotty

Zitat von: dochogan am 27 Dezember 2004, 09:56:14
Okay, this is *stupid*, but it WORKS!  *AND* it should help you fix Edit Admins administration for other missing modules, too.

Unfortunately this doesn't work for me on phpNuke 7.4 - all the stuff is hard coded!
I don't have any clue about MySQL, but just adding radmincalendar everywhere radminency (the Encyclopaedia admin) appeared in authors.php
seemed to work. (Stuff like  $radmincalendar, $add_radmincalendar, $chng_radmincalendar ...)

Admitedly I haven't got the Calendar administration working - although the info is entered in the table nuke_authors, and the calendar admin icon  shows up on the second administrators admin page, I get a message "Sorry, You are not authorized to remove or edit entries!" which I need to solve.

Anyway - excellent Calendar program, with the advantage of forcing me to learn something about mySQL and php  :)

great job :thumbup:



NoviceScotty

OK, I think it works for me now, but I've found out something interesting in the process!
Firstly, I have phpNuke 7.4 and KalendarMx 1.4

OK, so I added in my $radmincalendar in Kalendar/includes/functions.php as follows:
$result = sql_query("select aid, pwd, ".$calconf['AdminType'].",radmincalendar, radminsuper from ".CAL_TABLE_MX_AUTHORS." where aid='".$xaid."'", $dbi);
list($aid, $pwd, $CalendarAdmin,$radmincalendar, $radminsuper) = sql_fetch_row($result, $dbi);
$admintest = (($pwd == $xpwd && $pwd != "") && (($CalendarAdmin==1) || ($radmincalendar==1) || ($radminsuper==1))) ? $aid : 0;

and it seems to work.

BUT :o :o :o NOTICE the  $CalendarAdmin==1

$CalendarAdmin is $calconf['AdminType'], and this is defined in kalendar/config/config.php as radminsurvey,
which is the standard admin permission field for the survey block.

So, if you allocate your additional administrator rights for administering the Survey block he gets calendar admin rights too!
(Or whichever of the other of the standard blocks you define)

I tried this and it seemd to work. So it looks like I spent hours trying to solve a problem that was already solved
(in my version of phNuke7.4 and KalendarMX 1.4)

Next on my list of problems to solve - why can registered users not edit their own entries?




lamiss

hi

i have this great Kalendar and i have the same pb that dochogan
i would like to had another admin for this module and i can't because of my phpnuke 7.6
somebody can help ?

Andi

Hi :)

ZitatNext on my list of problems to solve - why can registered users not edit their own entries?
Sorry, but this feature is not included in Version 1.4.x. Maybe in the next...

Zitatand i can't because of my phpnuke 7.6
In nuke 7.5 the administration feature has changed by FB.
Sorry, but CalendarMx doesn't support phpNuke >= 7.5 for 100%.
schön´s Grüssle, Andi

llecaroz

Zitat von: Andi am 13 April 2005, 22:43:02
Hi :)

ZitatNext on my list of problems to solve - why can registered users not edit their own entries?
Sorry, but this feature is not included in Version 1.4.x. Maybe in the next...

Zitatand i can't because of my phpnuke 7.6
In nuke 7.5 the administration feature has changed by FB.
Sorry, but CalendarMx doesn't support phpNuke >= 7.5 for 100%.

Hum..... Maybe Yes, maybe no.... ;) , It could now support phpNuke >=7.5. That's now depending of the PragmaMx team ;) look in this forum under the 1.5 unofficial build ;)