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

Yep.

Okay, it must have gotten removed somehow. you can add it fairly easily.

Find in ManagePermissions.php
// This is just a helpful array of permissions guests... cannot have.
Add before:
$permissionList['membergroup']['view_groups_group'] = array('view_groups' => false);
"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."

DangerGirl

Perrrfect. You rock, thanks! :D

SleePy

Hey,
Im having some problems.
Some reason when a group mod (even myself) adds a person who is not in a group they dont get that group set ast their primary group.
I checked the group and I do have checked to allow it to go to primary group. and Checked my mysql database for that group and GroupModOptions is set to 1.
I got no clue why It isn't working. It worked before I think. But for some reason I cant get it to work.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

sbclansite.com

#183
Quote from: eldacar on May 29, 2006, 10:39:05 PM
Yep.

Okay, it must have gotten removed somehow. you can add it fairly easily.

Find in ManagePermissions.php
// This is just a helpful array of permissions guests... cannot have.
Add before:
$permissionList['membergroup']['view_groups_group'] = array('view_groups' => false);

Strange guests can still view the Group Button. Shouldnt only members and others be allowed to see that group button?
The Mod , Modifier :). For Mods/Scripts/GameServer Installations contact me via http://www.forums.sbclansite.com <<Free Image hosting, Free WebHosting and Free Featured Listing available also.
Webhosting @ 1.55$ : http://www.a1whs.com
Free Seo Friendly Directory : http://www.sbclansite.com

Dannii

SleePy: hmmm.. I'll have a look at my code again and test it some more, but I don't know how that would be happening.

SeoFriendly, well have you given guests the view_groups permission?
"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."

SkyFlyer

I'm having a bit of a problem getting the button to show up on my custom theme... I've hammered away for about 3 or 4 hours now... I just can't seem to get it. I usually have no problem installing mods to my extra themes.... maybe its because its 4am. :(

Here is the code for the other buttons:

<td><a href="', $scripturl, '" onmouseover="titlebar.src=\'' . $settings['images_url'] . '/' . $context['user']['language'] . '/titlebar_member_home.gif\'" onmouseout="titlebar.src=\'' . $settings['images_url'] . '/blank.gif\'"><img border="0" src="' . $settings['images_url'] . '/menu/home.gif" width="40" height="40" alt="home" /></a></td>
<td><a href="', $scripturl, '?action=help" target="_blank" onmouseover="titlebar.src=\'' . $settings['images_url'] . '/' . $context['user']['language'] . '/titlebar_member_help.gif\'" onmouseout="titlebar.src=\'' . $settings['images_url'] . '/blank.gif\'"><img border="0" src="' . $settings['images_url'] . '/menu/help.gif" width="40" height="40" alt="help" /></a></td>
<td><a href="', $scripturl, '?action=search" onmouseover="titlebar.src=\'' . $settings['images_url'] . '/' . $context['user']['language'] . '/titlebar_member_search.gif\'" onmouseout="titlebar.src=\'' . $settings['images_url'] . '/blank.gif\'"><img border="0" src="' . $settings['images_url'] . '/menu/search.gif" width="40" height="40" alt="search" /></a></td>';
if ($context['allow_calendar']) {
echo ' <td><a href="', $scripturl, '?action=calendar" onmouseover="titlebar.src=\'' . $settings['images_url'] . '/' . $context['user']['language'] . '/titlebar_member_calendar.gif\'" onmouseout="titlebar.src=\'' . $settings['images_url'] . '/blank.gif\'"><img border="0" src="' . $settings['images_url'] . '/menu/calendar.gif" width="40" height="40" alt="calendar" /></a></td>';
} else
echo ' <td><a href="', $scripturl, '?action=stats" onmouseover="titlebar.src=\'' . $settings['images_url'] . '/' . $context['user']['language'] . '/titlebar_member_stats.gif\'" onmouseout="titlebar.src=\'' . $settings['images_url'] . '/blank.gif\'"><img border="0" src="' . $settings['images_url'] . '/menu/stats.gif" width="40" height="40" alt="stats" /></a></td>
<td><a href="', $scripturl, '?action=who" onmouseover="titlebar.src=\'' . $settings['images_url'] . '/' . $context['user']['language'] . '/titlebar_member_who.gif\'" onmouseout="titlebar.src=\'' . $settings['images_url'] . '/blank.gif\'"><img border="0" src="' . $settings['images_url'] . '/menu/who.gif" width="40" height="40" alt="who" /></a></td>
<td><a href="', $scripturl, '?action=mlist" onmouseover="titlebar.src=\'' . $settings['images_url'] . '/' . $context['user']['language'] . '/titlebar_member_mlist.gif\'" onmouseout="titlebar.src=\'' . $settings['images_url'] . '/blank.gif\'"><img border="0" src="' . $settings['images_url'] . '/menu/mlist.gif" width="40" height="40" alt="member list" /></a></td>';
if ($context['allow_edit_profile']) {
echo ' <td><a href="', $scripturl, '?action=profile" onmouseover="titlebar.src=\'' . $settings['images_url'] . '/' . $context['user']['language'] . '/titlebar_member_profile.gif\'" onmouseout="titlebar.src=\'' . $settings['images_url'] . '/blank.gif\'"><img border="0" src="' . $settings['images_url'] . '/menu/profile.gif" width="40" height="40" alt="profile" /></a></td>';
} else {
echo ' <td><a href="', $scripturl, '?action=profile" onmouseover="titlebar.src=\'' . $settings['images_url'] . '/' . $context['user']['language'] . '/titlebar_member_profile_off.gif\'" onmouseout="titlebar.src=\'' . $settings['images_url'] . '/blank.gif\'"><img border="0" src="' . $settings['images_url'] . '/menu/profile.gif" width="40" height="40" alt="profile" /></a></td>';
}
echo ' <td><a href="', $scripturl, '?action=logout;sesc='.$context['session_id'].'" onmouseover="titlebar.src=\'' . $settings['images_url'] . '/' . $context['user']['language'] . '/titlebar_member_logout.gif\'" onmouseout="titlebar.src=\'' . $settings['images_url'] . '/blank.gif\'"><img border="0" alt="" src="' . $settings['images_url'] . '/menu/logout.gif" width="40" height="40" alt="logout" /></a></td>


Thank you very much.

Dannii

You should ask the theme's author how to add buttons, I've never seen any themes like that sorry.
"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."

SkyFlyer

Quote from: eldacar on June 06, 2006, 05:32:16 AM
You should ask the theme's author how to add buttons, I've never seen any themes like that sorry.

Ok. Thanks.

JohnR

Quote from: sbclansite.com on June 04, 2006, 06:53:47 PM
Strange guests can still view the Group Button. Shouldnt only members and others be allowed to see that group button?
I have that too. It may be because I modified index.template.php previously. Also, I have TinyPortal installed, which might make a difference, I gather it makes some fairly significant patches.

I'm just wondering, there must be an issue with conflicts between packages, in general?

(I'm fairly new to SMF.)

The Burning Man

I too am having the same issue. The mod is incredible, and everythin on it is working properly from what I have tested, except this minor issue. A guest can see the Groups pic and page.
Will you please hold my shovel for me while I make handprints in your kitty litter?

Dannii

Well do guests have the view_groups permission, or are they seeing it even without?
"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."

The Burning Man

Argh, my apologies. That was my issue. I am a noob among noobs at this depth of forum administration. Muwhahaha.
Will you please hold my shovel for me while I make handprints in your kitty litter?

andyevans

Hi,

I have downloaded 1.1 RC2 and installed the security update.

Clean new install using default core theme.

I then downloaded and installed the package 1.3d , which showed no errors and that it had been sucessfully installed.

It has created extra table in mysql
It has added the new files (group.php etc)
It has created backups of files to be modified

BUT it has NOT modified any files (they are all 777)

Do I have to do this manually?

Andy

Frog

I'm trying to install this file, but the packages are supposedly corrupt. Even trying to unzip them manualy.

Any suggestions?

Dannii

andyevans, hmm try 775 instead, if that still won't work then make a new support topic. That's a package manager problem (not specific to my mod) and someone that knows more will be able to help.

Frog, try downloading them again? I've unzipped them all and they always seem fine to me.
"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."

andyevans

Hi Eldacar,

I tried various permissions, even chown to nobody but with no luck.

I switched to 1.07 and package installed correctly!

I think I will wait for 1.1 (or whatever it will be called) to be released.

Thanks
Andy

tthmaz

Hi, when i modify a membergroup, there's an option where it says:

-----------------------------------
Allow primary group:
When someone is added through the Groups interface allow it to be set to Primary?
-----------------------------------

What does this option really means?

Dannii

It won't replace an existing primary group, but it will allow the group to become primary if there isn't one already.
Disabling that option will mean that anybody added through the action=groups interface will never have the new group be their primary group.
"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."

perplexed

I had this mod installed and working fine. Then I had a problem with my forum, had to back up, uninstall all the mods, and reinstall files.  I have not reinstalled this mod as it had a 'test failed' however, even though its not installed, there are tons of errors in the log on various files 'undefined index elgm4'

I cant get rid of them, any ideas how to get this gone so I can reinstall again?

Dannii

add the following to modifications.english.php$txt['elgm4'] = 'Groups';
"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: