News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Group Moderators 1.4

Started by Dannii, July 25, 2005, 04:24:08 PM

Previous topic - Next topic

MadPax

Had to go into my template and write the menu in myself.

No problem.

The thing is I just wanted it to show up for group moderators only but my check for that didn't work;

if ($context['is_moderator']) {.show menu here.}

Dannii

Instead do
// View Groups Interface... [groups]
if (allowedTo('view_groups'))
{ echo 'menu button'; }
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

MadPax

Great eldacar, /* humbly bows beneath the great god */

Thnks for the hint. ;D

Pax


geraintw1uk

hi all,

there seems to be an error with this mod when used with the tiny portal mod, it says test failed on

Installing this package will perform the following actions:  Type Action Description
1. Execute Modification ./index.php Test successful
2. Execute Modification ./Sources/ManageMembergroups.php Test successful
3. Execute Modification ./Sources/ManagePermissions.php Test failed
4. Execute Modification ./Themes/default/index.template.php Test successful
5. Execute Modification ./Themes/default/../babylon/index.template.php Test successful
6. Execute Modification ./Themes/default/ManageMembergroups.template.php Test successful
7. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
8. Execute Modification ./Themes/default/languages/Help.english.php Test successful
9. Extract File ./Sources/Groups.php 
10. Extract File ./Themes/default/Groups.template.php 
11. Extract File ./Themes/default/languages/Groups.english.php 
12. Extract File ./Themes/default/../babylon/images/english/groups.gif 
13. Execute Code GroupMods_install.php 


i have only got the tiny portal mod and the latest patch for rc2 installed on my forum.

is there any way to fix this or a patch available...

www.cyber-star.co.uk

thanks 

geraint

Dannii

Install the mod like that, and then manually make these changes to ManagePermissions.php

<operation>
<search position="before"><![CDATA[
// Restrictive - ie. guests.
$groupLevels['global']['restrict'] = array(
]]></search>
<add><![CDATA[
'view_groups',
]]></add>
</operation>

<operation>
<search position="replace"><![CDATA[
)
),
'board' => array(
'general_board' => array(
'moderate_board' => false,
]]></search>
<add><![CDATA[
),
'view_groups_group' => array(
'view_groups' => false,
)
),
'board' => array(
'general_board' => array(
'moderate_board' => false,
]]></add>
</operation>
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

mieserwicht

Quote from: eldacar on March 27, 2006, 10:01:25 PM
// View Groups Interface... [groups]
if (allowedTo('view_groups'))
{ echo 'menu button'; }


This Code does not work in my forum. It was correctly added by the mod installer. But even a Guest can see the Groups menu. hxxp:dirk.quirm.de/idf/index.php?action=groups [nonactive]

I am using SMF 1.1 RC2 with the new offical bug fix and Group Moderators 1.3c (with slight modifications for use in a german forum).
The active template is the new default template Core.

Dannii

Guests must have that permission then.
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

mieserwicht

Quote from: eldacar on March 31, 2006, 09:38:47 AM
Guests must have that permission then.

Oh... I didn't notice that there was a special group-permission added.
I did not see the reason for this permission. Everyone without group-moderator-status sees nothing on this page (not even the administrator). Thatswhy it would be usefull if the button is per default hidden to all users exept group-moderators. Isn't it?

Dannii

No the button is linked to the permission. Eventually non mods will be able to do stuff at the groups page.
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

MadPax


mieserwicht

Quote from: eldacar on March 31, 2006, 08:23:15 PM
No the button is linked to the permission.

Yes. The Permission to view the groups. But there are no groups listet to users execpt group-moderators.

Quote from: eldacar on March 31, 2006, 08:23:15 PM
Eventually non mods will be able to do stuff at the groups page.

There are group-moderators, who have the permission to manage the groups. And they have the groups, they may manage, listed correctly. But no other groups are shown here.

There is one function provided by your mod: To gave the permission to single users to manage the members of single groups.
But there are to permission levels:
1. To view the groups (where only the groups are listet, where you have the second permission on)
2. To manage the members of single groups (which is only usaable if you have the first permission)

Is there a function or option in your mod I am missing? Or is the functionality like I listed above?


Besides that little problem. This is a great and very usefull mod :)

Dannii

There isn't anything more yet, but I plan to add more. Eventually group mods will be able to write a group description and set some other settings. Non-mods will be able to view the group descriptions and member lists, if they have the permission to and if the group mod wants that. An example of this will be for a team page - the admins and mods will be listed with a brief description ;)
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

geraintw1uk

Hi,
Still trying to edit the files for this, i am stuck as i have to files nearly the same i have "managepermissions.php" and "managepermissions.php~" which on do i change.

If i PM or email these files to someone could you do the alterations and send them back as i am really stuck now and this would be a great help.

Also i have noticed that on the permissions page for "administrator" it says that the permissions are allowed 1 and denied none and it cant be modified, is this correct and if not how do i fix it.... thanks for everyones help

Geraint


Dannii

Admin can do everything so ignore that.

.php~ files are Backups. edit the .php file
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

akmaetakta

#154
hi again
i have TP 0.86 and SMF1.1Rc2 installed.
Today i had install this mod, and because i'am running TP after the installation it was required to edit manually the file ManagePermissions.php wich i had done and seems to be ok..

and now its seems something is missing cuz i can't see any button called "something groups" (lol) :|
and when i try to acess to hxxp:portaldafisica.net/smf/index.php?action-groups [nonactive]
its empty... what's up? any ideas?

also

can someone tellme step by step how to add buttons...  :-\

(sorry this bad english)

geraintw1uk

Hi All,

I have also managed to get this working with TP, I found that if you uninstall TP then install Group Moderators then reinstall TP it works fine without you editing anything manually, but i am using this with a few different themes, helios tp and enterprise mainly but they do not have the groups button for this i need to swap back to smf default theme can anyone tell me how to add the button to the themes and would it be the same method to add it to all themes, i mainly want it added to helios tp and enterprise.... 

Thanks for all your help

Geraint

Dannii

#156
Try http://portaldafisica.net/smf/index.php?action=groups
i think you'll need to translate it.

As for buttons, many of bloc's themes have a online button maker you can use.

I'm also considering updating this mod to try and remove the incompatibilities. If you have it installed you won't have to update though.
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

corrigan

I tried to install this on my new 1.0.7 install and it said it wasn't for this version (or something like that).  I went into the "package-info.xml" file and added 1.0.7 into the "install for" line.

Now I'm getting the same error that people had with the 1.0.6 version where it just doesn't seem to install correctly and it asks me to ftp to fix the permissions.

Is there a 1.0.7 update coming soon?
Thanks

btw this mod sounds great.

Dannii

I'll update it for 1.0.7 soon, but it shouldn't require anything more than just adding 1.0.7 to the install for line.
If you're getting ftp errors that is a problem with your server and package manager, and not related to this mod.
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

Dannii

Version 1.3d has been released
el_groupmods_13d_r14.tar.gz
changelog.txt

This should be 1.0.7. I haven't tested it though. Let me know if you have any problems.
This should also (hopefully) install with no problems on TinyPortal SMF's.
"Never imagine yourself not to be otherwise than what it might appear to others that what you were or might have been was not otherwise than what you had been would have appeared to them to be otherwise."

Advertisement: