user does not get assigned a subscription class
-
Well I had some register and it did not give them the subscription level
they selected. I had to manually set it. So I signed up a test account and selected the basic free account, added the details selected the
subscription then it goes to welcome screen
after that nothing has been altered. There is an account but they are not linked to the subscription. I read the documents. I am using the free version for the moment but want to go pro but i don’t know. Its
http://www.movielandwaxmuseum.orgOh let me add that this is a free account and I have three levels. Basic (free), Gold $5 a month and VIP one fee annualy.
Also I am trying to figure out how to display a users subscription in the account page.
https://ww.wp.xz.cn/plugins/membership/
-
Hi @atfpodcast,
Sorry to hear of the problem you are having.
There is an account but they are not linked to the subscription. I read the documents.
Could you please tell me what you have set in the Membership General Options on the following path so that i can troubleshoot it( Share screenshot of it if you can )?
Admin Area -> Membership -> -> Options -> General Tab
For screenshots, you can simply provide a link to an image through Google Drive, Dropbox, screencast.com, http://imgur.com/ or other image service. 🙂
Also I am trying to figure out how to display a users subscription in the account page.
You can display users subscription in the account page by adding the following shortcodes in the account page.
[subscriptiontitle subscription=”2″] – The title of the subscription.
[subscriptiondetails subscription=”2″] – The Subscription plan details.
[subscriptionprice subscription=”2″] – The subscription plan price.
[subscriptionbutton subscription=”2″] – And the subscription plan buttonReplace the number with the ID of the subscription.
Kind Regards,
WPMU DEVYou can display users subscription in the account page by adding the following shortcodes in the account page.
[subscriptiontitle subscription=”2″] – The title of the subscription.
[subscriptiondetails subscription=”2″] – The Subscription plan details.
[subscriptionprice subscription=”2″] – The subscription plan price.
[subscriptionbutton subscription=”2″] – And the subscription plan buttonReplace the number with the ID of the subscription.
Since subscription ID changes depending on which member is viewing the account page, you would need:
[subscriptiontitle subscription=”
some code here to retrieve ID“]What specifically is that code?
I have
Use membership level : Visitors
Use subscription : NoneThey only get a subscription or level assigned if they register and do the level select a second time.
In terms of ID for a subscription different subscriptions will view it but what would I use for that so they see THEIR subscriptions.
Hi @malfy & @atfpodcast,
Thank you for your replies.
Since subscription ID changes depending on which member is viewing the account page, you would need:
[subscriptiontitle subscription=”some code here to retrieve ID”]
What specifically is that code?
In terms of ID for a subscription different subscriptions will view it but what would I use for that so they see THEIR subscriptions.
You will have to develop custom code as described in the following replies to display subscription details about the current user.
http://premium.wpmudev.org/forums/topic/how-to-get-display-user-membership-level-dynamically#post-486615
http://premium.wpmudev.org/forums/topic/getting-membership-level-for-a-particular-user#post-105471Best Regards,
WPMU DEVHi @atfpodcast,
I have
Use membership level : Visitors
Use subscription : NoneThey only get a subscription or level assigned if they register and do the level select a second time.
I could also reproduced this on my test site therefore reported this to the plugin developer so that he can troubleshoot it.
He will troubleshoot and update here shortly.
Thanks,
WPMU DEVThank you. Would the code be the same in context for expiration of subscription? These would be nice to be included in the script.
Hi @atfpodcast,
Would the code be the same in context for expiration of subscription? These would be nice to be included in the script.
Could you please tell me a bit more in detail what you want to achieve so that i can help you to achieve it?
Regards,
WPMU DEVI want it to show when the user views their info I want it to dynamically display their subscription and expiration in the account page
Hi @atfpodcast,
To dynamically display user subscription in the account page add the following code in the functions.php file of your child theme.
function get_sub_by_user($user_id) { $member = new M_Membership( $user_id ); if($member->has_subscription()) { return $member->current_subscription(); } else { return false; } }Copy the file account.form.php( If you are not using BuddyPress ) or bp.account.form.php( If you are using BuddyPress) from the following membership plugin folder in to the root folder of your child theme.
membership/membershipincludes/includes
Add the following code in the above copied file where you want to display subscription information.
<?php if (is_user_logged_in()){ $user_id = get_current_user_id(); $subscription = new M_Subscription(end(get_sub_by_user($user_id))->sub_id); // print_r($subscription); echo '<br /> Subscription Name : '.$subscription->sub_name(); echo '<br /> Subscription Description : '.$subscription->sub_description(); echo '<br /> Subscription Pricetext : '.$subscription->sub_pricetext(); echo '<br /> Subscription Pricing : '; print_r($subscription->get_pricingarray()); } else { echo '<br /> Please register or log in to see more.'; } ?>Regards,
WPMU DEVDid not work. I put the file in the root of the theme i was using. added the code to that files.
I’m using Mystique – Extend theme. This should be a feature in this plugin anyways. Im about to give up.
Hi @atfpodcast,
It’s working fine on my test site using the provided code.
Which file have you put in the root of the theme?
Also have you added the code in the functions.php file of your theme?
You can just share me the code from the files where you have added it so that i can troubleshoot it.
For sharing fie code, you can simply provide a link to a file through Google Drive, Dropbox, http://pastebin.com/ or other file sharing service. 🙂
Regards,
WPMU DEVHi amigo, you have in your website links span in the top left corner.
This using any plugin or theme nulled?
Be careful! these inject malicious code or spam
Hi Marcelo Mika,
Thanks for updating about it here.
Your help here is really appreciated.
Have a fantastic day!
Cheers,
Vinod Dalvi
The topic ‘user does not get assigned a subscription class’ is closed to new replies.