latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

About: Oriol Boan

Sorry, I've not written a description yet. I'll get to it soon!


My Favorite Topics

Viewing topic 1 (of 1 total)
Topic Count Last Reply
Remove password field from registration form

By:  Oriol Boan in: Community Forum

voices: 2
replies: 6

3 years, 10 months ago  Oriol Boan

Viewing topic 1 (of 1 total)

Topics I'm Subscribed To

Viewing 13 topics - 1 through 13 (of 13 total)
Topic Count Last Reply
error log show bad sql syntax

By:  Oriol Boan in: Community Forum

voices: 2
replies: 1

3 years, 5 months ago  Attila Bus

Translation of Custom Registration Fields

By:  Cord in: Translations

voices: 5
replies: 9

3 years, 9 months ago  Natasha Bernal

choose role at registration

By:  Oriol Boan in: Community Forum

voices: 3
replies: 7

3 years, 10 months ago  Cristián Lávaque

Login Widget not working

By:  Oriol Boan in: Community Forum

voices: 3
replies: 4

3 years, 10 months ago  Cristián Lávaque

translate items in a dropdownbox custom field

By:  Oriol Boan in: Community Forum

voices: 2
replies: 3

3 years, 10 months ago  Cristián Lávaque

Spanish Translation-

By:  MP in: Translations

voices: 3
replies: 3

3 years, 10 months ago  Oriol Boan

No registration form is shown in /wp-login…

By:  Oriol Boan in: Community Forum

voices: 2
replies: 2

3 years, 10 months ago  Oriol Boan

Remove password field from registration form

By:  Oriol Boan in: Community Forum

voices: 2
replies: 6

3 years, 10 months ago  Oriol Boan

How to add more levels (as new roles)

By:  Oriol Boan in: Community Forum

voices: 3
replies: 6

4 years ago  Cristián Lávaque

Selling specific posts

By:  Gil Shoam in: Community Forum

voices: 2
replies: 1

4 years, 2 months ago  Cristián Lávaque

paypal question

By:  Oriol Boan in: Community Forum

voices: 3
replies: 5

4 years, 2 months ago  Gil Shoam

Multisites question

By:  Oriol Boan in: Community Forum

voices: 2
replies: 5

4 years, 2 months ago  Raam Dev

Invitation code, how it works in s2member?

By:  Oriol Boan in: Community Forum

voices: 2
replies: 3

4 years, 2 months ago  Raam Dev

Viewing 13 topics - 1 through 13 (of 13 total)

My Latest Replies (From Various Topics)

Viewing 25 replies - 1 through 25 (of 25 total)
Author Replies
Author Replies
Posted: Monday Mar 11th, 2013 at 9:30 am #44251
Oriol Boan
Username: orboan

It’s clear the hook “ws_plugin__s2member_during_configure_user_registration” does not work to add the combobox. What I need to know is what is the s2member equivalent hook to the “register_form” wp hook. Thanks.

Posted: Monday Mar 11th, 2013 at 9:19 am #44249
Oriol Boan
Username: orboan

Hello Cristián,
I’ve spent almost all day trying to add a combo box to registration form to let the user select the role. I’ve achieved it in wp registration form, but not in s2Member regostration form. To achieve this goal (select the role at registration) in wp registration form, I’ve used the next code:

function wp_choose_roles_registration_form() {
  global $wp_roles;
  if ( !isset( $wp_roles ) ) $wp_roles = new WP_Roles();
  $default_role = get_option("default_role");
  if($_POST['wp_rar_user_role']) {
    $selected_role = $_POST['wp_rar_user_role'];
  } else {
    $selected_role = $default_role;
  }
  if(count($this->wp_selected_rar_roles) < 2) return true;
  ?>
  <style type="text/css">
  <!--
  select.input {
    background: #FFF;
    border: 1px solid #E5E5E5;
    font-size: 16px;
    margin-bottom: 16px;
    margin-right: 6px;
    margin-top: 2px;
    padding: 3px;
    width: 100%;
  }
  -->
  </style>
  <p>
  <label for="wp_rar_user_role"><?php echo $this->wp_rar_role_label; ?><br />
    <select id="wp_rar_user_role" name="wp_rar_user_role" class="input select">
  <?php 
  foreach($this->wp_selected_rar_roles as $role) {
    ?>
    <option value="<?php echo $role; ?>"<?php echo ($selected_role == $role) ? ' selected="selected"' : ''; ?>>
      <?php echo $wp_roles->roles[$role]['name'];?>
    </option>
    <?php
  }
  ?>
    </select>
  </label>
  </p>
  <?php
}

  function set_roles_at_registration($user_ID) {
  if( in_array($_POST['wp_rar_user_role'], $this->wp_selected_rar_roles) ) {
    $wp_rar_user_role = $_POST['wp_rar_user_role'];
  } else {
    $wp_rar_user_role = get_option("default_role");
  }
  if(isset($wp_rar_user_role) and $user_ID) {
    wp_update_user( array ('ID' => $user_ID, 'role' => $wp_rar_user_role) );
  }
}

function init_rar() {
$wp_rar_plugin = new WPRolesAtRegistration;
add_action('register_form', array($wp_rar_plugin, 'wp_choose_roles_registration_form'));
add_action('user_register', array($wp_rar_plugin, 'set_roles_at_registration'));
}

add_action('init', 'init_rar');

where WPRolesAtRegistration is the class that contains the functions.
This is working ok in the wp rgistration form, but the combo box does not even appear in the s2Member registration form. Therefore my question is what hook may I have to try to add this combo box to the s2Member registration form.
In http://www.s2member.com/kb/pro-forms/ mentions a hook which is:

add_action('ws_plugin__s2member_during_configure_user_registration', 'store_my_custom_input_fields');

but if I add inside the function init_rar() the next:

add_action('ws_plugin__s2member_during_configure_user_registration', array($wp_rar_plugin, 'wp_choose_roles_registration_form'));

it’s useless, nothing new appears at s2member registration form. So, what am I missing? What’s the hook to use and how?
Please, help me, I’ve spent lots of hours.

Posted: Wednesday Mar 6th, 2013 at 5:34 pm #43906
Oriol Boan
Username: orboan

Hi Eduan,
I still don’t know how things with buttons exactly work, so I have some doubts:

Can I put a donation button (the one you describe in you blog), then, one for each of the membership levels I want to make available to users for choosing, and let the user choose one button or another depending on the role he/she wants to subscribe to?

Are these buttons to be added besides the other fields on registration form and be selected while registering, or before or after registration?

Can the donation be $0.00 or has to be a minimum amount?

ty

Posted: Wednesday Mar 6th, 2013 at 5:19 pm #43905
Oriol Boan
Username: orboan

Hello Eduan,
first of all, thanks for your support. Just about an hour ago I’ve solved this issue: the problem was caused by some lines in .htaccess that were added by a plugin called WP Security. When this lines are removed, the login widget started working ok again. It seems those lines made some kind of redirect that interfered with the login submit from your s2member login widget.
Thank you in any case, and apologies to bother you with an issue it’s not your fault.

Posted: Tuesday Mar 5th, 2013 at 3:33 am #43741
Oriol Boan
Username: orboan

I can give credentials to a support rep to try the s2member Pro Login Widget in my website, and see how it does not work. I really don’t know why I can not login with the Login Widget but I can with the wp login screen. How can this happen? Please, can someone enlight me a little on this issue?

Posted: Tuesday Mar 5th, 2013 at 3:28 am #43740
Oriol Boan
Username: orboan

Any hints on how to integrate the role selection in the registration and profile forms?

Posted: Tuesday Mar 5th, 2013 at 3:18 am #43739
Oriol Boan
Username: orboan

Hi Cristián,
I almost forgot to thank you. That vid helped me!

Posted: Saturday Mar 2nd, 2013 at 2:27 pm #43629
Oriol Boan
Username: orboan

Really, nobody has the s2member spanish translation, at least the front part? Thx

Posted: Sunday Feb 24th, 2013 at 1:46 pm #43123
Oriol Boan
Username: orboan

Hi,
is the spanish translation .po file available?

Posted: Sunday Feb 24th, 2013 at 1:42 pm #43122
Oriol Boan
Username: orboan

Hello again,
from the next code shown above (see first message):

add_action("ws_plugin__s2member_during_custom_registration_fields_before_custom_fields", "translate_custom_field");
add_action("ws_plugin__s2member_during_profile_during_fields_during_custom_fields_before", "translate_custom_field");

I think these actions are meant for the translations to be shown in the registration form (first add_action) a in the profile (second add_action). Assuming this is correct, the result i my website is that the custom fields are translated in the profile form, but not in the registration form, being this registration form the one I generate with the paypal pro forms with a code like next:

[s2Member-Pro-PayPal-Form register="1" level="0" ccaps="" desc="Signup now, it&#039;s Free!" custom="mydomain.com" tp="0" tt="D" captcha="clean" /]

How can I make the custom reg fields also being translated in the registration form? Should I have to change the value for the first parameter in the first add_action? Add another add_action?
Thank you.

Posted: Saturday Feb 23rd, 2013 at 11:55 am #43046
Oriol Boan
Username: orboan

From this code:

function translate_custom_field($rec)
{
    // labels
    $label = $rec['field']['label'];
    $rec['field']['label'] = _x($label, "s2member-front", "s2member");

    $label = $rec['field']['sectitle'];
    $rec['field']['sectitle'] = _x($label, "s2member-front", "s2member");

    return $rec;
}

you tell that ‘label’ is the string bound to custom fieldnames, and ‘sectitle’ tha string bound or used to identify the section title names in custom regostration fields. So my qüestion is how have you found these bindings or relations, my goal is to find the string related or bound to the items belonging to a custom registration dropdown box, to make those items translatable.
Thanks!

Posted: Tuesday Feb 19th, 2013 at 9:14 am #42476
Oriol Boan
Username: orboan

Hi,
the php code to put in the functions.php themes works to translate the name of the custom registration field, but what if this custom registration field is a dropdown box: how to translate the text of the items shown in the dropdown box?

Thank u!

Posted: Saturday Feb 16th, 2013 at 4:21 pm #41969
Oriol Boan
Username: orboan

ok, it’s been the allow open registration in s2member multisites. I already had it activated this way (allowing open registration) but for some reason (maybe because at some point I deactivated the s2member plugin to check compatibility issues with another plugins) it didn’t work. I saved this option again and now I can access to the wp-login.php?action=register
Thx.

Posted: Friday Feb 15th, 2013 at 5:21 am #41817
Oriol Boan
Username: orboan

Hi Jason,
yes, you’re right. Right now there is no password field. I think it was a cache issue, but before the password fields were there, even refreshing the browser contents. Thanks for your patiente.

Posted: Wednesday Feb 13th, 2013 at 5:00 am #41600
Oriol Boan
Username: orboan

Do you need credentials for the backend admin to check the Custom Passwords are disabled? Do you need to know what other plugins I have installed? Thanks

Posted: Tuesday Feb 12th, 2013 at 4:22 am #41544
Oriol Boan
Username: orboan

I meant membership-options page, of course.
The .htaccess password will be changed soon, so please review the registration form asap. Thx.

Posted: Tuesday Feb 12th, 2013 at 4:20 am #41543
Oriol Boan
Username: orboan

Yes, here you have the registration form:

http://jm-badalona.com/membership-options/

(.htaccess protected with jmbadalo/Asdfg98765)

(password is “Contrasenya” in the main website language, you can see the 2 fields)

and I repeat, Custom Passwords are disabled!!!

The shorcode used to show this registration form is:

[s2Member-Pro-PayPal-Form register="1" level="0" ccaps="" desc="Sí, sóc membre de la Comunitat Educativa de JM Badalona:" custom="jm-badalona.com" tp="0" tt="D" captcha="clean" /]

at registration-options page (which is called “Pàgina de Registre” in website’s language).

Posted: Thursday Jan 3rd, 2013 at 6:53 am #36096
Oriol Boan
Username: orboan

Thanks Cristián!
Now I can work with 10 membership levels.

I’ll try to achieve the requirements of my business model. If find any prob, I’ll post a message again.

Regards.

Posted: Wednesday Jan 2nd, 2013 at 6:03 pm #36020
Oriol Boan
Username: orboan

Lot of thanks Eduan!
I’ll extend the number of levels to 10 by adding

define("MEMBERSHIP_LEVELS", 10); 

in

wp-config.php

. Once done, all levels can be used for free membership as explained in
s2Member (Free Registration On Multiple Levels?)
? I hope this is the way to make it so.
I also have understood every level is just like a role, in fact they are roles, and then I can try the plugin you mention User Role Editor to rename them.
Can anybody confirm this plugin is compatible with s2member? Has enybody tried it together with s2member?

How to add extra custom capabilities to every extra level? I’ve seen how to use the ccaps tag when making the buttons, but I still don’t see how can the custom capbilities be added to a level. For instance, the custom capability ‘video’ how to proceed to add it from level 7 to 0, but not to levels 8, 9 and 10 -this is only an example.

thx

  • This reply was modified 4 years ago by  Oriol Boan.
  • This reply was modified 4 years ago by  Oriol Boan.
Posted: Wednesday Jan 2nd, 2013 at 12:41 pm #36003
Oriol Boan
Username: orboan

C’on people, it is said that with s2memberPro you can create an unlimited amount of levels, therefore I’d like to know how to create them and give them the names mentioned and make them free (no paypal). Am I correct if I say that every level (the five default ones and all the ones you add with s2memberPro) is in fact a role where you can assign to them the custom capabilities you wish?

Thx!

Posted: Thursday Oct 25th, 2012 at 5:16 am #29619
Oriol Boan
Username: orboan

Yes, it’s true. I’ve seen the vids where the php conditionals are explained and it should provide the means to restrict the publishing from the frontend. Thx. I think I’ll buy the pro version, cause this s2member plugin is very versatile and flexible.

Posted: Wednesday Oct 24th, 2012 at 6:31 am #29484
Oriol Boan
Username: orboan

Cristián, yes your info helps, I’ll take a look at what you say. Lots of thanks!

Posted: Tuesday Oct 23rd, 2012 at 2:33 pm #29444
Oriol Boan
Username: orboan

Thanks again mr. Raam,

I think I will develop this functionality myself. It seems no quite difficult. The major problem for me is not the PHP, it is the WordPress architecture, which I’m (still) not familiar with, and that I’m very busy. But with patiente I’ll achieve it.
Thanks again.

Posted: Tuesday Oct 23rd, 2012 at 2:27 pm #29443
Oriol Boan
Username: orboan

Hi Raam,

Otherwise, customers who checkout using PayPal will be sent to PayPal’s website to make their payment.”

Does this imply that when sent to PayPal’s website it is needed to have a Paypal account? Is possible to make a payment through paypal standard without having a paypal account, i.e., using a credit card?

Thanks for your support.

Posted: Tuesday Oct 23rd, 2012 at 2:21 pm #29441
Oriol Boan
Username: orboan

Appreciate your answer dear Raam.

I understand now the philosophy of Multisites Network, thanks for clarifying.

On the other hand, and regarding your comment: “In other words, s2Member is only designed to restrict access to viewing content, not for controlling access to WordPress back-end features like publishing and editing posts.” I ask you if I have a plugin which permits a registered user publish an item from the front-end, would s2member be capable of restricting that publishing feature from the non-membership users? I’m talking, for instance, about the Front-end Property Publishing addon of the wp-property plugin, which allows owners to publish properties without the need to go to the backend. The idea is to create a membership (free or paid) plan to allow owners to publish their properties.

https://usabilitydynamics.com/tutorials/wp-property-help/front-end-property-submissions-feps/

Thank you again, very apreciate your patiente.

  • This reply was modified 4 years, 2 months ago by  Oriol Boan.
Viewing 25 replies - 1 through 25 (of 25 total)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.