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.

Shortcode for Member specific file download ?

Home Forums Community Forum Shortcode for Member specific file download ?

This topic contains 0 replies, has 1 voice. Last updated by  Ajay Tiwari 3 years, 8 months ago.

Topic Author Topic
Posted: Thursday Apr 18th, 2013 at 10:42 am #47787
Ajay Tiwari
Username: ajaykt

My client wants to share user specific downloads like personalized reports for every user..
I see that S2Member have shortcodes for Custom Tags and i believe following shortcodes have the answer for my need as said above..

user_is(user_id, role), user_is_not(user_id, role), user_can(user_id, capability), user_cannot(user_id, capability)

But not able to understand how to use it.. i tried this code in following manner:

[s2If is_user_logged_in() AND user_is(user_id)]Here is your Report file Download Now (Right Click and save)[/s2If]
OR
[s2If is_user_logged_in() AND user_is(4)]Here is your Report file Download Now (Right Click and save)[/s2If]

(I am not sure in above shortcode user_id would be actual user id of user or it will automatically grab user id by tracking the user id which user have used to login)

By thinking that shortcode will automatically grab user id due to user would be logged in but not sure whether it would work same or not because my clients report generation system is under beta testing so can’t test above code yet.

Thanks in advance for your help or suggestion.

Ajay

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

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.