Orios
Forum Replies Created
-
Unfortunately it turns out that the plugin is not usefull for our project.
Booking is a multistep process and way too tedious, if you want to facilitate simple event booking for registered users.bummer
Ok, so reading all manuals again, i stumbled upon the reason (and solution).
It is possible to use conditional placeholders within each other. However, by default Events Manager will only go one level deep,
In order to enable further levels of nesting, you need to add a line of PHP to your wp-config.php file:define('EM_CONDITIONAL_RECURSIONS',2);In order to enable further levels of nesting, you need to add a line of PHP to your wp-config.php file.
In this case the nesting levels should be 3.
Checked it and it works.Please look again.
Your site also doesn’t show it properly
It is a paid event.
But the (1st) ticket icon and the EVENTPRICERANGE do NOT show.
In short: the code between {not_free} and {/not_free} does not show, even for not_free events
This is exactly the same problem as i have.This doesn’t work for me.
i added the condition right here{bookings_open} <h3>Price</h3> {not_free} <div class="em-item-meta-line em-event-prices"> <span class="em-icon-ticket em-icon"></span> #_EVENTPRICERANGE </div> {/not_free} <a href="#em-event-booking-form" class="button input with-icon-right"> <span class="em-icon-ticket em-icon"></span> </a> {/bookings_open}The result is that the price is never shown under PRICE (event with paid events)
To be clear, the condition {not_free} does work in other parts of the code, but not within or around the {bookings_open} conditionForum: Plugins
In reply to: [BuddyPress Admin Only Profile Fields] Show fields for specific user rolesFirst I added the custom visiblity fields
$allowed_visibilities[‘pmpro_role_1’] = array(
‘id’ => ‘pmpro_role_1’,
‘label’ => _x( ‘Gratis leden’, ‘Visibility level setting’, ‘bp-extended-profile-visibility’ )
);
$allowed_visibilities[‘pmpro_role_2’] = array(
‘id’ => ‘pmpro_role_2’,
‘label’ => _x( ‘Premium leden’, ‘Visibility level setting’, ‘bp-extended-profile-visibility’ )
);And then the rules
if( ( $displayed_user_id != $current_user_id ) && ! current_user_can(‘pmpro_role_1’) && ! is_super_admin() ) {
$hidden_levels[] = ‘pmpro_role_1’; //profile field with this privacy level will be hidden for the user
}
if( ( $displayed_user_id != $current_user_id ) && ! current_user_can(‘pmpro_role_2’) && ! is_super_admin() ) {$hidden_levels[] = ‘pmpro_role_2’; //profile field with this privacy level will be hidden for the user
}et voila, it worked just fine
Forum: Plugins
In reply to: [BuddyPress Admin Only Profile Fields] Show fields for specific user rolesAh, link doesn’t show. Here in full https://github.com/IChess1/WPI/tree/master
Forum: Plugins
In reply to: [BuddyPress Admin Only Profile Fields] Show fields for specific user rolesForum: Plugins
In reply to: [BuddyPress Admin Only Profile Fields] Show fields for specific user rolesI used the ‘Extending BuddyPress profile field visibility’ code from Brajesh Singh. See http://buddydev.com/buddypress/extending-buddypress-profile-field-visibility/.
And altered it a bit to hide on user roles (pmpro_role_1 and pmpro_role2)
For the entire code see extended-xprofile-field-visibility-levels.php atForum: Plugins
In reply to: [BuddyPress Admin Only Profile Fields] Show fields for specific user rolesThanks for the offer.
I will keep this in mind for future issues.
For the time being, i did manage to solve the issue with a slight customization of another plugin.Forum: Plugins
In reply to: [BuddyPress Admin Only Profile Fields] Show fields for specific user rolesThank you very much for your reply.
Unfortunatelly i’m not much of a programmer and thus will not be able to acomplish this.
Thanks anywayForum: Plugins
In reply to: [Profiles Manager] Warnings about missing argumentsHi,
Thank you for your efforts. The error dissapeared.
But unfortunatelly the plugin has no effect on the visibility of the profile groups. Whatever settings we try out. All group stay visible.