News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Group Moderators 1.4

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

Previous topic - Next topic

Dannii

So after it comes up with that lovely list and you click install, it does nothing? I really don't know why it wouldn't be installing.
"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."

Ruth

I almost threw my monitor out the window /cry

So I uninstalled the other two mods (which, as I said, were just making extra fields in the profile) and tried again. Nothing. I rechecked all the CHMOD settings for the files listed. Nothing. Then I uninstalled the message board, deleted left over files (saving Settings.php) reuploaded and reinstalled, then uploaded the package (fresh download), redid the CHMOD, tried again and nothing.

I have no idea what I'm doing wrong!

But any time I try to click "proceed" it just reloads this page:
http://forums.packspirit.com/index.php?action=packages;sa=install;package=el_groupmods_13_r111.tar.gz
(which is the page it was on to begin with)

Is it because it's not a zip file? the mods that were zips worked fine.

How do I go about manually installing this mod? it's the one mod I've wanted for SMF (And YaBBSE) since I started using the forum. I've had too many clients choose PHPBB over SMF because of a lack of this mod and I really like SMF more than PHPBB. Help! Please! lol

Ruth

Update:

I uninstalled 1.0.5 and installed 1.1 RC2
I uploaded the package via the Package manager and I get this error when I "apply mod":

"The package you are trying to download or install is either corrupt or not compatible with this version of SMF. "

This is listed right where the list of files use to be listed when I tried installing on 1.0.5.

Did I miss a post in this thread about it not being compatible with RC2? If so, I apologize.

Dannii

Yes it isn't 1.1 RC2 compatible yet sorry. I'll get to work on that soon.
If when i've done that, and you still can't install it, if you give me a temp admin account I'll see if I can find the problem.
"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."

Ruth

Eep, sorry!

I will keep an eye out for the update (remember, offline life comes first, don't kill yourself over it). Thank you very much for your help.

Dannii

Version 1.3b has been released
el_groupmods_13b_r12.tar.gz
changelog.txt

This should be 1.1 RC2 compatible now. I haven't tested it though. Let me know if you have any problems.
"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."

Snape

Quick question- Does each group that you enable this for have to be updated with the individual names of the people you want to moderate it?  Or could you create something like a local moderators group and then make that group the group moderator for the other groups?

Let's say UserA, UserB, and UserC are your desired group moderators for boards News, Announcements, and Enhancements.  Could you create a membergroup called 'Mods', put UserA, UserB, and UserC in that group, then set 'Mods' as the group moderator for those three boards?  Then you can just add people at will to 'Mods' and don't need to update News, Announcements, and Enhancements to add/delete individuals.

Let me know if I didn't explain this well enough.  :)

Dannii

You have to set the individual users. I may add more functions later, depending on how much time I have and how hard it will be.

But i think you might miss understand what the mod is for. This doesn't have anything to do with boards. You can do what you were saying already if you use custom board permissions.
"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."

Snape

Quote from: eldacar on January 19, 2006, 10:02:34 PM
You have to set the individual users. I may add more functions later, depending on how much time I have and how hard it will be.

But i think you might miss understand what the mod is for. This doesn't have anything to do with boards. You can do what you were saying already if you use custom board permissions.
Sorry...I meant to reference groups instead of boards.  So basically, I'm looking for a group to manage select other groups.

Snape

Also- slight mod question: How could Groups.php be tweaked to allow the primary group to be overwritten if the 'allow primary' checkbox is checked for the group?

Dannii

I'm not sure... it isn't done that way anywhere is SMF and all I basically did was to borrow code. this is the code that adds them: // Verify that they are not already a member - and add them to our array.
if ($row['ID_GROUP'] != $_REQUEST['id'] && !in_array($_REQUEST['id'], explode(',', $row['additionalGroups'])))
$memberQuery[$row['ID_GROUP'] == 0 && substr_count($context['group']['options'], 'P') == 1 ? 'main_group' : 'additional'][] = $row['ID_MEMBER'];
What you'll want to do is change the current primary group to a secondary first. I'm not sure how to do that, but I might be able to have a better try tomorrow. Or if not you could try, or ask for help in the coding board. ;)
"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."

Ohmer

Hello,

When I install the SMF 1.0.6 update, I don't see anymore the "uninstall" link in the package manager for this mod.  If I remove the update, I see again the "uninstall" link.  Also, if I install the update before the group moderators mod, I cannot install the mod, because I don't see the "install" link :(.

Anyone have the same bug ?  It only happen with this mod.

Snape

Quote from: eldacar on January 20, 2006, 11:07:56 PM
I'm not sure... it isn't done that way anywhere is SMF and all I basically did was to borrow code. this is the code that adds them: // Verify that they are not already a member - and add them to our array.
if ($row['ID_GROUP'] != $_REQUEST['id'] && !in_array($_REQUEST['id'], explode(',', $row['additionalGroups'])))
$memberQuery[$row['ID_GROUP'] == 0 && substr_count($context['group']['options'], 'P') == 1 ? 'main_group' : 'additional'][] = $row['ID_MEMBER'];
What you'll want to do is change the current primary group to a secondary first. I'm not sure how to do that, but I might be able to have a better try tomorrow. Or if not you could try, or ask for help in the coding board. ;)
The thing is, I don't need to keep the original primary group.  So I'm fine with the new group replacing whatever was there before as long as the 'primary group' checkbox has been checked.

Dannii

Ohmer, it was released before 1.0.6 so that is why. If you really need to uninstall it, open the package-info.xml file and change install for="1.0.5" to "1.0.5, 1.0.6"

Sometime I'll update it properly.
"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."

Ohmer

YOur mod is not MySQL 5.0 compatible :(

This query canot be executed with MySQL 5.0:
$query = db_query("


SELECT mg.ID_GROUP, mg.groupName, mg.minPosts, mg.onlineColor, mg.stars, COUNT(mem.ID_MEMBER) AS num_members


FROM {$db_prefix}membergroups AS mg, {$db_prefix}groupmods as mods


LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_GROUP = mg.ID_GROUP OR FIND_IN_SET(mg.ID_GROUP, mem.additionalGroups) OR mg.ID_GROUP = mem.ID_POST_GROUP)


WHERE mg.ID_GROUP = mods.ID_GROUP AND mods.ID_MEMBER = $ID_MEMBER


GROUP BY mg.ID_GROUP


ORDER BY mg.minPosts, IF(mg.ID_GROUP < 4, mg.ID_GROUP, 4), mg.groupName", __FILE__, __LINE__);


The error message is:
Unknown column 'mg.ID_GROUP' in 'on clause'
Fichier: /var/www/sites/forums/Sources/Groups.php
Ligne: 41


What should I modify ?

Thanks.

Dannii

FROM {$db_prefix}membergroups AS mg, {$db_prefix}groupmods as mods

to

FROM ({$db_prefix}membergroups AS mg, {$db_prefix}groupmods as mods)

Will hopefully fix it. I'll update the mod soon.
"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."

Ohmer


ArkServer

is it possibel that anyoen can sign up for the group but the moderators of the group can accept or reject them?

Dannii

Not yet. Although they could always PM the group owner.
"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."

FairyPrincess

Eldacar, thanks for the neat mod! I'm excited to try it out. Are you considering adding the feature mentioned above to this mod that would allow members to request membership in a group allow the mod to approve or deny their request? That would be absolutely awesome if you do! Thanks again for all your hard work so far! You're a gem!

That which we persist in doing becomes easier, not that the task itself has become easier, but that our ability to perform it has improved.
   -Ralph Waldo Emerson

Advertisement: