onirgoc
Forum Replies Created
-
Maybe to avoid you trouble with non advanced users you should put a red text in a pop up or something like that when using “delete” ? ??
About the way to insert it maybe (also) you can “translate” bad spelling ( I mean for php use) like name with “R3 in place of “r” or replace space between words by underscore…but I can live with the fact to have to do it the right way directly… ??
Thanks for your help !
Thanks for great support ! Working now !
update :
license doesn’t work with 127.0.0.1 ??Ok…got it one more time: for other buyers: the number you receive after your purchase is not the good one…the good one arrive by mail !
waiting for your answer about 127… and got “invalid license number” when trying to install on my real website online…
Any help ?
GREAT !!!
WORKING !!!…then just buy the pro version ! Thanks for great support and great plugin !
Find this under guest user :
Fatal error: Call to undefined method stdClass::has_cap() in (hide exact adress for security ) \…\…\…\….\wp-content\plugins\advanced-access-manager\Application\Core\Subject.php on line 215
any idea ?
OKKKK ! I got it…now only the visitor page is blank…probably I put the conditional to high…
Thanks this is really great help !
I will an other request in an other post about something you can add in futur to your great plugin. ??
need help !!!
I tryed this:
<?php
/**
* Single Event Meta Template
*
* Override this template in your own theme by creating a file at:
* [your-theme]/tribe-events/modules/meta.php
*
* @package TribeEventsCalendar
*/do_action( ‘tribe_events_single_meta_before’ );
// Check for skeleton mode (no outer wrappers per section)
$not_skeleton = ! apply_filters( ‘tribe_events_single_event_the_meta_skeleton’, false, get_the_ID() );// Do we want to group venue meta separately?
$set_venue_apart = apply_filters( ‘tribe_events_single_event_the_meta_group_venue’, false, get_the_ID() );
?><?php if ( $not_skeleton ) : ?>
<div class=”tribe-events-single-section tribe-events-event-meta primary tribe-clearfix”>
<?php endif; ?><?php
// Only for allowed user
if (AAM::getUser()->hasCapability(‘Read Private Tribe Organizers’)) {do_action( ‘tribe_events_single_event_meta_primary_section_start’ );
// Always include the main event details in this first section
tribe_get_template_part( ‘modules/meta/details’ );// If we have no map to embed and no need to keep the venue separate…
if ( ! $set_venue_apart && ! tribe_embed_google_map() ) {
tribe_get_template_part( ‘modules/meta/venue’ );
} elseif ( ! $set_venue_apart && ! tribe_has_organizer() && tribe_embed_google_map() ) {
// If we have no organizer, no need to separate the venue but we have a map to embed…
tribe_get_template_part( ‘modules/meta/venue’ );
echo ‘<div class=”tribe-events-meta-group tribe-events-meta-group-gmap”>’;
tribe_get_template_part( ‘modules/meta/map’ );
echo ‘</div>’;
} else {
// If the venue meta has not already been displayed then it will be printed separately by default
$set_venue_apart = true;
}// Include organizer meta if appropriate
if ( tribe_has_organizer() ) {
tribe_get_template_part( ‘modules/meta/organizer’ );
}do_action( ‘tribe_events_single_event_meta_primary_section_end’ );
?>
<?php if ( $not_skeleton ) : ?>
</div>
<?php endif; ?><?php if ( $set_venue_apart ) : ?>
<?php if ( $not_skeleton ) : ?>
<div class=”tribe-events-single-section tribe-events-event-meta secondary tribe-clearfix”>
<?php endif; ?>
<?php
do_action( ‘tribe_events_single_event_meta_secondary_section_start’ );tribe_get_template_part( ‘modules/meta/venue’ );
tribe_get_template_part( ‘modules/meta/map’ );do_action( ‘tribe_events_single_event_meta_secondary_section_end’ );
?>
<?php
if ( $not_skeleton ) : ?>
</div>
<?php endif; ?>
<?php
endif;
do_action( ‘tribe_events_single_meta_after’ );
} else {
//nothing
}Under admin user I get the page without details, venue, organizer and under guest user a white page…where am I wrong ?
Thanks if you can help !
mmm…stupid question…visitor has no capabilities so no access… ??
But there is no capabilities for visitor ? How can I forbide access then ?
Thanks.
Thanks!
it’s not Events Manager but The Events Calendar from Tribe…
but if I understand you I already find “Read Private Tribe Events”, “Read Private Tribe Venues”, “Read Private Tribe Organizers” in AAM UI under capabilities.
if (AAM::getUser()->hasCapability(Read Private Tribe Organizers’)) {
//show somethings on your frontend page
} else {
//well, show nothing or something different
}and the same for “venues”
so am I in the right direction ?
well after I have to find what to put under “show sometings”For now this is what I was using; As you can see it’s really basic and do not allow to check that user is allowed to see “venue” and “map”
<?php
/**
* Single Event Meta Template
*
* Override this template in your own theme by creating a file at:
* [your-theme]/tribe-events/modules/meta.php
*
* @package TribeEventsCalendar
*/do_action( ‘tribe_events_single_meta_before’ );
// Check for skeleton mode (no outer wrappers per section)
$not_skeleton = ! apply_filters( ‘tribe_events_single_event_the_meta_skeleton’, false, get_the_ID() );// Do we want to group venue meta separately?
$set_venue_apart = apply_filters( ‘tribe_events_single_event_the_meta_group_venue’, false, get_the_ID() );
?><?php if ( $not_skeleton ) : ?>
<div class=”tribe-events-single-section tribe-events-event-meta primary tribe-clearfix”>
<?php endif; ?><?php
// Only for logged in user
if ( is_user_logged_in() ) {
do_action( ‘tribe_events_single_event_meta_primary_section_start’ );// Always include the main event details in this first section
tribe_get_template_part( ‘modules/meta/details’ );// If we have no map to embed and no need to keep the venue separate…
if ( ! $set_venue_apart && ! tribe_embed_google_map() ) {
tribe_get_template_part( ‘modules/meta/venue’ );
} elseif ( ! $set_venue_apart && ! tribe_has_organizer() && tribe_embed_google_map() ) {
// If we have no organizer, no need to separate the venue but we have a map to embed…
tribe_get_template_part( ‘modules/meta/venue’ );
echo ‘<div class=”tribe-events-meta-group tribe-events-meta-group-gmap”>’;
tribe_get_template_part( ‘modules/meta/map’ );
echo ‘</div>’;
} else {
// If the venue meta has not already been displayed then it will be printed separately by default
$set_venue_apart = true;
}// Include organizer meta if appropriate
if ( tribe_has_organizer() ) {
tribe_get_template_part( ‘modules/meta/organizer’ );
}do_action( ‘tribe_events_single_event_meta_primary_section_end’ );
?><?php if ( $not_skeleton ) : ?>
</div>
<?php endif; ?><?php if ( $set_venue_apart ) : ?>
<?php if ( $not_skeleton ) : ?>
<div class=”tribe-events-single-section tribe-events-event-meta secondary tribe-clearfix”>
<?php endif; ?>
<?php
do_action( ‘tribe_events_single_event_meta_secondary_section_start’ );tribe_get_template_part( ‘modules/meta/venue’ );
tribe_get_template_part( ‘modules/meta/map’ );do_action( ‘tribe_events_single_event_meta_secondary_section_end’ );
?>
<?php
if ( $not_skeleton ) : ?>
</div>
<?php endif; ?>
<?php
endif;
do_action( ‘tribe_events_single_meta_after’ );
} else {}
Thanks for your help. Will let you know as soon as I have done tests.
Forum: Plugins
In reply to: [Page scroll to id] mouse scroll to IDnot really…find a plugin called “one-page-navigator” which is doing part of the job but not that that part so…waiting for master malihu ! ??
Forum: Plugins
In reply to: [Page scroll to id] mouse scroll to IDHi
exactly…more slow maybe and ready to be use in wordpress as a plugin…much more complicated probably than in html ?