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: Simon Groves

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


Topics I've Started


My Latest Replies (From Various Topics)

Viewing 11 replies - 1 through 11 (of 11 total)
Author Replies
Author Replies
Posted: Thursday Jul 11th, 2013 at 10:30 am #53297
Simon Groves
Username: prg

I think Bruce’s solution may work!

Do you still need the PHP Execution plugin as it’s now no longer supported?
Thanks

Posted: Thursday Jul 11th, 2013 at 10:01 am #53296
Simon Groves
Username: prg

Hi Guys,

Many thanks for the replies.

Basically, a member needs to select the membership type they require. Then, depending which month of the financial year we’re in, will depend on how much they pay.
So, for example:
April (Full year)
Level 1 – £79
Level 2 – £151
Level 3 – £208

In July however,
Level 1 – £59
Level 2 – £113
Level 3 – £156

In Nov it may be,
Level 1 – £32
Level 2 – £63
Level 3 – £86

It really does depend which month they join as to which cost they’re charged. Hopefully, this makes sense?

Thanks again

Posted: Tuesday Feb 26th, 2013 at 4:04 am #43203
Simon Groves
Username: prg

Thanks Cristian, I’ll keep looking to see if it can be achieved! If so, I’ll post my findings.

Am wondering if it may be possible to hide certain elements using javascript and permissions but need to look into it further

Cheers

Posted: Saturday Feb 23rd, 2013 at 6:34 am #42987
Simon Groves
Username: prg

Hi Jason,

That is absolutely spot on – thank you!!!!

Posted: Friday Feb 22nd, 2013 at 9:39 am #42815
Simon Groves
Username: prg

Hi Jason,

Thanks for the reply. I’m a bit of a noob with PHP etc. Are you able to shed any light on code?

The unique field ID is sector and it’s a multi select drop down. I just can’t seem to find code that’ll work. I’ve found code for checkboxes but trying to ‘adapt’ it simply didn’t work.

Any help on this is very much appreciated!

Posted: Friday Feb 22nd, 2013 at 6:20 am #42792
Simon Groves
Username: prg

Thanks Eduan

I simply can’t find any info on this anywhere – surprisingly! So any assistance here would be awesome

Posted: Thursday Feb 21st, 2013 at 11:59 am #42741
Simon Groves
Username: prg

Sorry to post here again but I can’t seem to find a solution. I tried the following code:

$fields = get_s2member_custom_fields();
print_r($fields["sector"]["config"]); # The Unique Field ID you configured with s2Member.


$fields = get_s2member_custom_fields(10);
echo $fields["sector"]["user_value"]; # The Unique Field ID you configured with s2Member.
print_r($fields["sector"]["config"]); # The Unique Field ID you configured with s2Member.

This simply returns the entire contents of the array and not the selected values.

I really can’t see why this is such an issue. It seems a shame that the multi select isn’t covered in the documentation like the standard custom fields

Any help is much appreciated

Posted: Monday Feb 18th, 2013 at 11:54 am #42283
Simon Groves
Username: prg

I think it’s because it stores the info as an array (due to being a multiple select). I’m not sure if that helps or not?

Your help is much appreciated though!

Thanks again

Posted: Monday Feb 18th, 2013 at 10:21 am #42268
Simon Groves
Username: prg

Thanks Eduan,

I did as you said, swapping the custom_field to mine but to no avail:

<?php
// Get the user ID by URL
$userID = $_GET['author'];

// Get user's info
$user_info = get_userdata($userID);

// Get field's value
// Replace `custom_field` with the field's Unique ID that you gave it
$userCustomField = $user_info->sector;

// Get field's value
// Replace `custom_field` with the field's Unique ID that you gave it
$userCustomField = do_shortcode('[s2Get user_field="sector" /]');
?>

I’ll play around with this but at the mo, it simply returns nothing

Thanks though

Posted: Monday Feb 18th, 2013 at 3:23 am #42241
Simon Groves
Username: prg

Hi Eduan

Yes the drop down with multiple select. How do I show the values on a page?

Thanks

Posted: Friday Feb 15th, 2013 at 4:24 am #41811
Simon Groves
Username: prg

Hi Eduan

Thanks for getting back to me. I think the confusion may come from I’ve ended up with 2 S2Memer accounts. One I initially setup to enquire and one I then had to create for the company in order to purchase the s2member pro licence. I’m more than happy to send through any information to validate our account, simply let me know what you need and who I need to send it to.

As for the query above, I’ve created an additional custom registration field which is a Select Menu with multi-option which I did from here:

General > Profile Fields/options > Custom Registration Fields

However, I can’t work out how I display that information to a user? At the moment, I’m using the following:

#get the user ID from the URL
$theUserID = $_GET["author"];

echo get_user_field('company', $theUserID); 

Which displays the info I need for one of my other fields, I just can’t work out how to display the multi-options in the select?

Any help is much appreciated

Viewing 11 replies - 1 through 11 (of 11 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.