News:

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

Main Menu

Group Moderators 1.4

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

Previous topic - Next topic

s_m_f_forumuser

Quote from: Dannii on October 31, 2009, 11:50:47 PM
Are you using the default theme?

Yes: SMF Default Theme - Core
SMF 1.1.10
Neither Group Moderators 1.4 nor Group Moderators 1.5 works

Dannii

Which membergroup are you trying to add moderators for?
"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."

s_m_f_forumuser

A member group that I created myself and that is "based off of" Regular Members. The installation of the mod went well according to SMF but I can see no difference whatsoever in the SMF interface.

Dannii

Can you check that the changes were made to ManageMembergroups.template.php correctly?
"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."

s_m_f_forumuser

I m not sure how to see if those changes were made. I have attached the file /Themes/default/ManageMembergroups.template.php

SMF said the installation went well anyway?

s_m_f_forumuser

When I know try to uninstall

Group_Manager_1_5.tar.gz

from my SMF-forum I get the following error messages:
------------
Installing this package will perform the following actions:    Type   Action   Description
1.   Execute Modification   ./index.php   Test failed
2.   Execute Modification   ./Sources/ManageMembergroups.php   Test failed
3.   Execute Modification   ./Sources/ManagePermissions.php   Test failed
4.   Execute Modification   ./Themes/default/index.template.php   Test failed
5.   Execute Modification   ./Themes/default/../babylon/index.template.php   Test failed
6.   Execute Modification   ./Themes/default/ManageMembergroups.template.php   Test failed
7.   Execute Modification   ./Themes/default/languages/Modifications.english.php   Test failed
8.   Execute Modification   ./Themes/default/languages/Modifications.swedish.php   Test failed
9.   Execute Modification   ./Themes/default/languages/Modifications.german.php   Skipping file
10.   Execute Modification   ./Themes/default/languages/Help.english.php   Test failed
11.   Execute Modification   ./Themes/default/languages/Help.swedish.php   Test failed
12.   Execute Modification   ./Themes/default/languages/Help.german.php   Skipping file
13.   Delete File   ./Sources/Groups.php   
14.   Delete File   ./Themes/default/Groups.template.php   
15.   Delete File   ./Themes/default/languages/Groups.english.php   
16.   Delete File   ./Themes/default/languages/Groups.german.php   
17.   Delete File   ./Themes/default/languages/Groups.swedish.php   
18.   Delete File   ./Themes/default/../babylon/images/english/groups.gif   
19.   Delete File   ./Themes/default/../babylon/images/german/groups.gif   
20.   Delete File   ./Themes/default/../babylon/images/swedish/groups.gif   
--------------
When I did the installation before it said however that everything went well. However before that I had done an installation and uninstallation of

smfgroups_1_4.tar.gz

which should be the previous version according to the information in this discussion thread as well as on other places. I have no idea whether that can have anything to do with it?

s_m_f_forumuser

Do I need to make certain files writable manually before the installation?

Dannii

If all those files are getting errors it's likely they were never modified in the first place.

Yes, make everything writeable.
"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."

s_m_f_forumuser

Make every file in the whole forum writable?

What shall I do with the uninstallation? Should I uninstall anyway despite SMFs strong recommendation not to?

Dannii

Yes every file. If you want you can always change them back after...

Well as the files haven't been modified nothing should happen to them when you uninstall it. Alternatively, you could delete the mod and upload it again.
"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."

s_m_f_forumuser

Are there any security issues with having all files in the forum writabe all the time? Otherwise that seems easiest.

Dannii

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

s_m_f_forumuser

I uninstalled it, checked every file listed above and they were already 777 all of them actually. Then I reinstalled it with the following successful testresult according to SMF before I went through with the installation:

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 successful
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/Modifications.swedish.php   Test successful
9.   Execute Modification   ./Themes/default/languages/Modifications.german.php   Skipping file
10.   Execute Modification   ./Themes/default/languages/Help.english.php   Test successful
11.   Execute Modification   ./Themes/default/languages/Help.swedish.php   Test successful
12.   Execute Modification   ./Themes/default/languages/Help.german.php   Skipping file
13.   Extract File   ./Sources/Groups.php   
14.   Extract File   ./Themes/default/Groups.template.php   
15.   Extract File   ./Themes/default/languages/Groups.english.php   
16.   Extract File   ./Themes/default/languages/Groups.german.php   
17.   Extract File   ./Themes/default/languages/Groups.swedish.php   
18.   Extract Tree   ./Themes/default/../babylon/images   
19.   Execute Code   GroupMods_install.php   

Then I compared the file

ManageMembergroups.template.php

with the one I had in the previous nonworking installation and it is exactly the same content as in the file I attached about. However I'm not sure what changes to look for so I cannot say for sure whether this installation have made any changes in that file or not. Perhaps someone who knows what to look for can have a look?


Dannii

You'll have to just manually install it I guess.
"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."

s_m_f_forumuser

Is there some kind of guide for doing that manual install? Where do I look for what changes to make? I'm not very good at this kind of coding. But sometimes I have installed mods with a manual description in in phpBB.

Dannii

Yes, the mod page has a "Manual Install Instructions for SMF" box you can use.
"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."

s_m_f_forumuser

Now I have done these changes manually in all the PHP files. However in the first
SQL query I get the following error message:

Error

SQL query:

CREATE TABLE IF NOT EXISTS {$db_prefix}groupmods(
`ID_GROUP` smallint( 5 ) unsigned NOT NULL default '0',
`ID_MEMBER` mediumint( 8 ) unsigned NOT NULL default '0',
PRIMARY KEY ( `ID_GROUP` , `ID_MEMBER` )
)

MySQL said: 
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '{$db_prefix}groupmods (
`ID_GROUP` smallint(5) unsigned NOT NULL default '0',
' at line 1


And I have no idea regarding the syntax :-(.

s_m_f_forumuser

I thought I had figured it out when I saw that

db_prefix

should probably be replaced with my own database prefix so I changed it as below but I still get the same error message as before.

CREATE TABLE IF NOT EXISTS {$smf1_}groupmods (
`ID_GROUP` smallint(5) unsigned NOT NULL default '0',
`ID_MEMBER` mediumint(8) unsigned NOT NULL default '0',
PRIMARY KEY ( `ID_GROUP` , `ID_MEMBER` )
)

s_m_f_forumuser

now it worked! :-). I finally figured out to change the code like this :-)

CREATE TABLE IF NOT EXISTS smf1_groupmods (
`ID_GROUP` smallint(5) unsigned NOT NULL default '0',
`ID_MEMBER` mediumint(8) unsigned NOT NULL default '0',
PRIMARY KEY ( `ID_GROUP` , `ID_MEMBER` )
)

s_m_f_forumuser

Now it is up and running and seems to work well except for one thing. It works to add a group moderator but after the moderator is added there is no way for the administrator to see who are group moderators and for which groups as far as I can see? And as a result I can find no way to remove someone from being a group moderator.

Advertisement: