News:

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

Main Menu

Users mass actions

Started by emanuele, August 17, 2011, 04:49:32 PM

Previous topic - Next topic

emanuele

Link to Mod

Gives admins the possibility to execute several actions on multiple users at a time through the Manage Members interface (Admin > Members > View All Members or Search For Members).

The actions available are:

  • Delete
  • Change (or remove) primary member group
  • Change (or remove) additional member groups
  • Ban
    • by usernames
    • by email addresses
    • by usernames an email addresses
    • by IPs
The name of the ban list where the new ban are added can be configured in Admin > Configuration > Modification Settings.


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

IanF2

I have installed, and nothing is showing up. Unclear if I need to do any of the manual changes or does it totally installed automatically with the Package Manager ? SMF 2.0

I am definitely looking for some more power in Banning and monitoring members.

Any help appreciated.

emanuele

Didn't you get the changes in the admin member list like shown in the picture?

If you installed it through the package manager and you didn't get any error then the edits should be in place...
In case you don't see anything in Admin > Members > View All Members then attach your ManageMembers.php so that I can have a look and see if the edits are there.


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

IanF2

Here is the attached file, as requested.

emanuele

The edits are done properly.
You should see the options where they should be, I can't see any reason why the drop down box shouldn't be there...

It should not be relevant, but are you using the default theme?
Do you have any error in the log that could be somehow related to this?


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

IanF2

Apologies. I was looking in the wrong place, inside the general Member list and Search area, rather than inside the Admin menu.

Should have looked inside: Administration Center » Members » View All Members

Thanks for the mod. great start for the control I need over Spammers etc.  :-[

IanF2

Just a warning with this mod...

When using the search for members filters and then actioning members on the page... the next page that shows members no longer respects the original search filters. The danger is obvious, if you continue to select members thinking you are looking at the original selection you will then processing the wrong members.

Hope this is easy to fix?

emanuele

I doubt it's a problem of the mod, it simply adds few html tags...

I've never been able to keep the search parameters "stable" between different pages of the search members page in the admin area searching for example by dates: when I switch to the second page the filter is always ignored.

And I just tested this behaviour with SMF 2.0 without this mod...I think it's a bug.


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

blink2010


emanuele



Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

babyxdeja

I'm getting this error:

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


I got this for some Karma Mod too and I changed one of the files to "Install for 2.0 RC5" and it worked.. this is a tar.gz file tho, and I can't get into it to see the code... Any suggestions?

emanuele

Please use the emulate version feature (or better upgrade to SMF 2.0 final! ;)).


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

babyxdeja

SMF 2.0 is the newest version? Where do I upgrade my forum at?

babyxdeja

ok I figured it out.. thanks

Sheda

Hey, i had to do one step manually, because of the Stop Spammer Mod.
Guess i'd write it here, in case others encounter this.

That's what it looks like, now (hope it's correct).
I think the only problem is that the code "Users mass actions" replaces isn't right behind the 'additional_rows'-thing, but it has been pushed down by the other mod.

'additional_rows' => array(
!$modSettings['stopspammer_enable'] ? '' :
array(
'position' => 'below_table_data',
'value' => '
<div style="text-align: center">' . $modSettings['stopspammer_count'] . ' ' . $txt['stopspammer_count'] . '</div>',
'class' => 'titlebg',
),
!$modSettings['stopspammer_enable'] ? '' :
array(
'position' => 'below_table_data',
'value' => '
<div style="margin: auto" class="leyend_stopspammer">
<img src="' . $GLOBALS['settings']['default_images_url'] . '/icons/moreinfo.gif" alt="Icon MoreInfo" style="vertical-align: middle" /> ' . $txt['stopspammer_leyd01'] . '<br />
<img src="' . $GLOBALS['settings']['default_images_url'] . '/icons/suspect.gif" alt="Icon Suspect" style="vertical-align: middle" /> ' . $txt['stopspammer_leyd02'] . '<br />
<img src="' . $GLOBALS['settings']['default_images_url'] . '/icons/spammer.gif" alt="Icon Spammer" style="vertical-align: middle" /> ' . $txt['stopspammer_leyd03'] . '<br />
</div>',
'class' => 'titlebg',
),
!$modSettings['stopspammer_enable'] ? '' :
array(
'position' => 'below_table_data',
'value' => '
<label>' . $txt['in_stop_forum_spam'] . '</label>
<input type="submit" name="spammers_checks" value="' . $txt['spammers_checks'] . '" onclick="return confirm(\'' . $txt['confirm_spammers_checks'] . '\');" />
<input type="submit" name="spammers_report" value="' . $txt['spammers_report'] . '" onclick="return confirm(\'' . $txt['confirm_spammers_report'] . '\');" />',
'class' => 'titlebg','titlebg',
'style' => 'text-align: right;',
),
array(
'position' => 'below_table_data',
'value' => '
<select name="maction" onchange="this.form.new_membergroup.disabled = (this.options[this.selectedIndex].value != \'pgroup\' && this.options[this.selectedIndex].value != \'agroup\');">
<option value="">--------</option>
<option value="delete">' . $txt['admin_delete_members'] . '</option>
<option value="pgroup">' . $txt['admin_change_primary_membergroup'] . '</option>
<option value="agroup">' . $txt['admin_change_secondary_membergroup'] . '</option>
<option value="ban_names">' . $txt['admin_ban_usernames'] . '</option>
<option value="ban_mails">' . $txt['admin_ban_useremails'] . '</option>
<option value="ban_names_mails">' . $txt['admin_ban_usernames_and_emails'] . '</option>
<option value="ban_ips">' . $txt['admin_ban_userips'] . '</option>
</select>
<select onchange="if(this.value==-1){if(!confirm(\'' . $txt['confirm_remove_membergroup'] . '\')){this.value=0;}}" name="new_membergroup" id="new_membergroup" disabled="disabled">' .
createGroupsList() . '</select>
<input type="submit" name="maction_on_members" value="' . $txt['quick_mod_go'] . '" onclick="return confirm(\'' . $txt['quickmod_confirm'] . '\');" class="button_submit" />',
'style' => 'text-align: right;',
),
),

Kaitlyn

Server error - It may be down for maintenance or configured incorrectly, when I tried the code you posted for Users mass actions & stop spammer wondering does anyone know the code for both mods to work together

Kaitlyn

does anybody know the code that works for both mods installed Users mass actions & Stop spammer

emanuele

Exatly which one of the two edits in this mod doesn't work with stop spammer? (also please when you ask for help on a mod, would be very nice if you put the link to the mod, so that people helping don't have to go and search for something that you need ;))


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Kaitlyn

Quote from: Sheda on October 15, 2011, 03:05:52 PM
Hey, i had to do one step manually, because of the Stop Spammer Mod.
Guess i'd write it here, in case others encounter this.

That's what it looks like, now (hope it's correct).
I think the only problem is that the code "Users mass actions" replaces isn't right behind the 'additional_rows'-thing, but it has been pushed down by the other mod.

'additional_rows' => array(
!$modSettings['stopspammer_enable'] ? '' :
array(
'position' => 'below_table_data',
'value' => '
<div style="text-align: center">' . $modSettings['stopspammer_count'] . ' ' . $txt['stopspammer_count'] . '</div>',
'class' => 'titlebg',
),
!$modSettings['stopspammer_enable'] ? '' :
array(
'position' => 'below_table_data',
'value' => '
<div style="margin: auto" class="leyend_stopspammer">
<img src="' . $GLOBALS['settings']['default_images_url'] . '/icons/moreinfo.gif" alt="Icon MoreInfo" style="vertical-align: middle" /> ' . $txt['stopspammer_leyd01'] . '<br />
<img src="' . $GLOBALS['settings']['default_images_url'] . '/icons/suspect.gif" alt="Icon Suspect" style="vertical-align: middle" /> ' . $txt['stopspammer_leyd02'] . '<br />
<img src="' . $GLOBALS['settings']['default_images_url'] . '/icons/spammer.gif" alt="Icon Spammer" style="vertical-align: middle" /> ' . $txt['stopspammer_leyd03'] . '<br />
</div>',
'class' => 'titlebg',
),
!$modSettings['stopspammer_enable'] ? '' :
array(
'position' => 'below_table_data',
'value' => '
<label>' . $txt['in_stop_forum_spam'] . '</label>
<input type="submit" name="spammers_checks" value="' . $txt['spammers_checks'] . '" onclick="return confirm(\'' . $txt['confirm_spammers_checks'] . '\');" />
<input type="submit" name="spammers_report" value="' . $txt['spammers_report'] . '" onclick="return confirm(\'' . $txt['confirm_spammers_report'] . '\');" />',
'class' => 'titlebg','titlebg',
'style' => 'text-align: right;',
),
array(
'position' => 'below_table_data',
'value' => '
<select name="maction" onchange="this.form.new_membergroup.disabled = (this.options[this.selectedIndex].value != \'pgroup\' && this.options[this.selectedIndex].value != \'agroup\');">
<option value="">--------</option>
<option value="delete">' . $txt['admin_delete_members'] . '</option>
<option value="pgroup">' . $txt['admin_change_primary_membergroup'] . '</option>
<option value="agroup">' . $txt['admin_change_secondary_membergroup'] . '</option>
<option value="ban_names">' . $txt['admin_ban_usernames'] . '</option>
<option value="ban_mails">' . $txt['admin_ban_useremails'] . '</option>
<option value="ban_names_mails">' . $txt['admin_ban_usernames_and_emails'] . '</option>
<option value="ban_ips">' . $txt['admin_ban_userips'] . '</option>
</select>
<select onchange="if(this.value==-1){if(!confirm(\'' . $txt['confirm_remove_membergroup'] . '\')){this.value=0;}}" name="new_membergroup" id="new_membergroup" disabled="disabled">' .
createGroupsList() . '</select>
<input type="submit" name="maction_on_members" value="' . $txt['quick_mod_go'] . '" onclick="return confirm(\'' . $txt['quickmod_confirm'] . '\');" class="button_submit" />',
'style' => 'text-align: right;',
),
),


Sheda had posted right before my post the code for using usermass & stop spammer I used this code so I could use both mods on my forum but it doesn't work correctly

emanuele

What are you doing when you get the server error?


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Advertisement: