Hi Tim,
I created a page and added a button to the login like this, so that the only content blocked is this (in this case a download file)
And used this code to achieve it
<?php echo s2member_pro_login_widget(); ?>
[s2If current_user_can(access_s2member_level0)]
[av_textblock size=’’ font_color=’’ color=’’ av-medium-font-size=’’ av-small-font-size=’’ av-mini-font-size=’’ custom_class=‘secc_h1_noletterspace secc_underline’ admin_preview_bg=’’ av_uid=‘av-mlckmoi’]
The Download
[av_hr class=‘invisible’ height=‘20’ shadow=‘no-shadow’ position=‘center’ custom_border=‘av-border-thin’ custom_width=‘100%’ custom_border_color=’#f0f0f0’ custom_margin_top=‘15px’ custom_margin_bottom=‘15px’ icon_select=‘no’ custom_icon_color=’’ icon=‘ue808’ font=‘entypo-fontello’ custom_class=’’ admin_preview_bg=’’ av_uid=‘av-m8cb7ea’]
[wpdm_package id=‘19021’]
[/s2If]
[s2If !is_user_logged_in()]
To access content please login
[av_button label=‘Login’ link=‘page,17659’ link_target=’’ size=‘small’ position=‘center’ label_display=’’ icon_select=‘no’ icon=‘ue800’ font=‘entypo-fontello’ color=‘theme-color’ custom_bg=’#444444’ custom_font=’#ffffff’ av_uid=‘av-i6oyx0y’ custom_class=’’ admin_preview_bg=’’]
[/s2If]
If what i’m doing is wrong, how can i get the user to go back to the page where he hit the login button, after doing the login itself.
Thanks for your help.