PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

SOLVED: users.php (admin) unusable when many custom fields

s2Member Plugin. A Membership plugin for WordPress®.

SOLVED: users.php (admin) unusable when many custom fields

Postby DougJoseph » February 12th, 2011, 2:57 pm

Hello. Our use of the s2Member system requires a lot of custom user fields.

When we go to our list of users at wp-admin/users.php, the list is unreadable because of how many custom user fields we have. We're attaching is a screenshot that shows what I mean.

Does the s2Member plugin have another page somewhere that shows all the members?

We need either a workable (usable) "users.php" (that can either limit the number of custom fields it displays or somehow display them in TR's instead of TD's) or a suitable alternate page somewhere else.

We have purchased the unlimited domains version of Pro plus the theme pak. Hoping someone can lend us a hand.

== UPDATED on 2.25.2011:

We recently updated our blog install to WordPress 3.1 and now we're back almost to square 1. We can now get the new users.php file to not display the many custom fields, but we are unable to get a renamed copy of the users.php to display any of the custom fields.

We tried the "amR Users" plugin (a "users list" plugin), but it is not working for us.

== Updated on 2.26.2011:

s2Member is now updated to be compatible with WP 3.1, and the update adds faster speeds and many new features. One of the new features, is ability to use the "screen options" tab in WP 3.1 to check mark which fields you want to show on "users.php" and which you want to hide. This is very nice, and achieves what we need "users.php" to be with regard to s2Member.

Note: We not only had to update s2Member to 3.5, but we also had to update the Pro add-on to the newest, latest version too. See https://www.s2member.com/account/
Attachments
ap-admin--users.php.jpg
list of users at wp-admin/users.php, the list is unreadable because of how many custom user fields we have
Last edited by DougJoseph on February 26th, 2011, 3:39 pm, edited 4 times in total.
DougJoseph
Guest User
Guest User
 

Re: users.php (admin) unusable when many custom fields. need

Postby DougJoseph » February 13th, 2011, 4:09 pm

Just bumping this - to mention it is still an issue. I am capable of coding to create a workaround. If someone who knows the best place to start could point me in the right direction, it would be greatly appreciated.
DougJoseph
Guest User
Guest User
 

Re: users.php (admin) unusable when many custom fields. need

Postby DougJoseph » February 13th, 2011, 4:24 pm

I may be on the trail of the answer. In...

/wp-content/plugins/s2member/includes/functions

... there is a file called "users-list.inc.php"

I think it has some function(s) that add custom user fields to the users.php file.

More soon.
DougJoseph
Guest User
Guest User
 

Re: users.php (admin) unusable when many custom fields. need

Postby DougJoseph » February 13th, 2011, 4:36 pm

Success!

The following will stop the "users.php" file from displaying the custom user fields, but it will still display the standard fields (Username, Name, E-mail, Role, Posts) and the special s2member fields (Registration Date, Paid Registr. Date, Paid Subscr. ID, Custom Capabilities).

In the file "users-list.inc.php" ...
Comment out the 9 lines below, that start on or near line 36 and go to or near line 45:

Code: Select all
//            if ($GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["custom_reg_fields"])
//               foreach (json_decode ($GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["custom_reg_fields"], true) as $field)
//                  {
//                     $field_var = preg_replace ("/[^a-z0-9]/i", "_", strtolower ($field["id"]));
//                     $field_id_class = preg_replace ("/_/", "-", $field_var);
//                     /**/
//                     $field_title = ucwords (preg_replace ("/_/", " ", $field_var));
//                     $cols["s2member_custom_field_" . $field_var] = $field_title;
//                  }
DougJoseph
Guest User
Guest User
 

Re: FIX FOR: users.php (admin) unusable when many custom fie

Postby dvpro » February 18th, 2011, 8:09 pm

AMR users is a very nice plugin that allows one to display the data in a better format.
http://webdesign.anmari.com/plugins/users/
User avatar
dvpro
Registered User
Registered User
 
Posts: 10
Joined: February 18, 2011

Re: FIX FOR: users.php (admin) unusable when many custom fie

Postby DougJoseph » February 25th, 2011, 3:06 pm

Dvpro:

Thanks for the heads up. But we downloaded that plugin, and it is not working for us. We're on 3.1 now, and the plugin says it is compatible up to 3.0.5, so that may be why. Not sure.

== Updated 2.27.2011

The reason the plugin was not functioning was because I had it installed as "network activated" -- when I deactivated it and then activated on the level of a single blog, it became functional. This plugin has now become very helpful for us.
Last edited by DougJoseph on February 27th, 2011, 1:48 am, edited 1 time in total.
DougJoseph
Guest User
Guest User
 

Re: users.php (admin) unusable when many custom fields

Postby DougJoseph » February 26th, 2011, 3:19 pm

s2Member is now updated to be compatible with WP 3.1, and the update adds faster speeds and many new features. One of the new features is ability to use the "screen options" tab in WP 3.1 to check mark which fields you want to show on "users.php" and which you want to hide. This is very nice, and achieves what we need "users.php" to be with regard to s2Member.

Note: We not only had to update s2Member to 3.5, but we also had to update the Pro add-on to the newest, latest version too. See https://www.s2member.com/account/

I am pleased with it, even though I am still frustrated by the lack of any reply to my emails to their support address.
DougJoseph
Guest User
Guest User
 

Re: SOLVED: users.php (admin) unusable when many custom fiel

Postby dvpro » February 28th, 2011, 12:38 am

We updated to WP 3.1 and the new s2 but all the custom fields do not show up. They and the data are in the database but s2 does not recognize them.
User avatar
dvpro
Registered User
Registered User
 
Posts: 10
Joined: February 18, 2011

Re: SOLVED: users.php (admin) unusable when many custom fiel

Postby DougJoseph » February 28th, 2011, 2:46 am

Be sure to go through the main settings again, and let the auto-patch do its thing if you're on a network (multisite). Are any custom fields showing? Or none?
DougJoseph
Guest User
Guest User
 

Re: SOLVED: users.php (admin) unusable when many custom fiel

Postby dvpro » February 28th, 2011, 3:27 pm

Absolutely no custom registration fields show up. In fact, if we create new custom fields then disable the plugin and then re enable it, the custom fields are gone.
User avatar
dvpro
Registered User
Registered User
 
Posts: 10
Joined: February 18, 2011


Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 10 guests

cron