krumch
Forum Replies Created
-
This is “Unix time stamp”, you should use “date($EOT)” PHP function to turn it to human readable string. Check manuals of this function for more date formats.
Forum: Plugins
In reply to: [KC S2M+MC] W3 Total Cache and upatesMy plugin updates info by wpcron() function, so it is possible starting that job to be caused by your activity…
Forum: Plugins
In reply to: [KC S2M+MC] W3 Total Cache and upatesUnfortunately, this is not possible, because of two reasons.
First, there is no folder, where my plugin operates, it works with WP and s2M fields in the DB. But bigger problem is that W3 Total Cache plugin is not compatible with s2Members. Please read more info at https://wordpress.org/support/topic/s2-pro-user-doesnt-remember-logged-in-members?replies=4.Is the saving function works? Where you get the $user object?
For hooks, best is to search in s2M codes.
I agree with KTS915, seems you need multisite setup, to allow all users to have same passwords in each domain.
Then the “central library” can be a new domain, and you create need links in other sites. Or, you need a custom code to create “central library” and allow access (and purchases) by each separate domain.
I would ask theme’s creator to confirm that it is OK to use it with s2M. This way, when they say “Yes”, you have a reason to ask them to fix, if not works.
Possible with custom code: can count the “time left” and set it as “promotion time” in a Paypal button [shortcode]… Well, actually it’s difficult to explain, easier will be to do it myself 🙂 Please find me, if I can help…
“Stamp” L2 members with a ccap, at purchase time. Then create a function in “/mu-plugins/s2-hacks.php” to find if a member have this ccap and to turn it to L1. That function fire by AJAX hook, which gives you a URL to fire it, actually. The new URL put in “EOT/Deletion Notifications”. It is SO easy! 🙂
Not need to do nothing: in same text, two sentences up, it say “Once a file has been downloaded, future downloads of the same exact file, by the same exact Member will not be counted against them. In other words, if a Member downloads the same file three times, the system only counts that as one unique download.”
If you need 3 different files (book.pdf, book.epub and book.mobi) to be counted as single download, you need a custom code.
Did you can link the need tag to the exactly user, somehow? Maybe you have the tag in a custom field etc? If you can show the user’s tag on page by [s2Get] (or by some other way, no matter how), here is a solution: This plugin gives you a [shortcode] to place on page. In this shortcode you can set the need tag by [s2Get] shortcode. This way you will have different set of posts at the same page, depending of the visitor, as [s2Get] shows the visitor’s info and my plugin will extract posts by different tag value. Got me?
You must create a function, I will name it “show_dropdown”, which will show the dropdown list, and hook it to the “edit user” admin page by this hook inside s2M:
add_action('ws_plugin__s2member_during_users_list_edit_cols_after_custom_fields', 'show_dropdown', 10, 2);Also this field must be saved, this need another function “save_dropdown”, which can be hooked like this:
add_action('init', 'save_dropdown');or like this:
add_action("edit_user_profile", "save_dropdown"); add_action("edit_user_profile_update", "save_dropdown");Note, that different “hooking” may need different way of saving.
Because of the way s2M works now, it may be set, but when users drop back to L0 (when membership expires), the additional info will be deleted. Plus, none of additional fields must be mandatory. If this is OK for you, just set need fields at “a2M -> General options -> Custom fields” and use them whith need levels.
Where exactly stay the link? If it’s in the content, can use the [conditionals], that are explained at “s2m -> API / Scripting”, please read there. If it’s in menus, please read this article.
You will need to generate it for the admin page too, and place there by s2M’s action hooks.
All the [conditionals] are explained at “s2m -> API / Scripting”, please read there…