fibiet
Forum Replies Created
-
Hi I tried changing the PHP to 7.3 and the site crashed before I even updated the plugin.
I have found an alternative plugin at this point, sorry.
Thanks again very much for your help with this so far.
Hi, I have tried that just now and received the same error.
all other plugins deactivated and then proceeding with the update
restoring to version 1.3.9.1 resolved the critical error
Thanks
Just to be clearer – I mean the older version that works is version 1.3.9.1 and the one that doesn’t work for me is the latest update. version 1.3.9.2
Thanks for the quick reply,
I am using version 1.3.9.1 on WordPress Version 5.3.2
Thanks
I am getting the same crash on my website – just updating this plugin.
The error message is simply:
“There has been a critical error on your website.”
Re uploading the older version resolves the issue.
I am running PHP 7.0
Thanks
Forum: Plugins
In reply to: [ACF Recent Posts Widget] Post title on same lineThanks for the reply. As my use case was quite simple I ended up coding it into the page without needing the plugin. Will definitely look at using this in future projects though.
Thanks
FionaForum: Plugins
In reply to: [Contact Form 7 - Dynamic Text Extension] Dynamic recipient emailThe code in my php page is `<?php if( get_field(’email’) ): ?>
<p><a href=”https://www.mywebsite.org.uk/contact-form/” alt=”email this company” title=”email this company” ><i class=”far fa-envelope”></i></a>
<?php endif; ?>`
Hopefully the syntax will copy correctly this time- This reply was modified 5 years, 7 months ago by fibiet.
Moving this to paid support as it feels like it is more appropriate there.
Hi not sure I am understanding this right as I can’t seem to get it working.
The field I want to trigger the membership being enabled is called are_you_a_gb_member and it is a No/Yes checkbox. The answer Yes triggering membership.
The membership product I set up is called GB members (slug is gb-members).
I set up the function like this trying to make sense of the two examples you gave
add_action( ‘wpmem_post_register_data’, ‘my_reg_hook’ );
function my_reg_hook( $fields ) {
// Set my fields
$meta = ‘are_you_a_gb_member’;
$value = ‘yes’;
$product_meta = ‘gb-member’;
$user_id = $fields[‘ID’];
// Set product access.
wpmem_set_user_product( $product_meta, $user_id );
return;
}I don’t really quite get how it all works. Sorry to be so clueless.
Thanks I’ll give it a try
Forum: Plugins
In reply to: [Eventbrite API] Display Date OnlyHi @fireflip
I didn’t do that – just copied across the template that comes with the plugin and altered the header info. Adding this hasn’t helped tho.
Any ideas why I just get the start date and not the end date as well on the index page?
Here is my single page template file as it is now
<?php /** * The Template for displaying all single Eventbrite events. */ get_header(); ?> <div id="primary" class="content-area"> <main id="main" class="site-main" role="main"> <?php // Set up and call our Eventbrite query. $events = new Eventbrite_Query( apply_filters( 'eventbrite_query_args', array( // 'display_private' => false, // boolean // 'nopaging' => false, // boolean // 'limit' => null, // integer // 'organizer_id' => null, // integer // 'p' => null, // integer // 'post__not_in' => null, // array of integers // 'venue_id' => null, // integer // 'category_id' => null, // integer // 'subcategory_id' => null, // integer // 'format_id' => null, // integer ) ) ); // Get our event based on the ID passed by query variable. $event = new Eventbrite_Query( array( 'p' => get_query_var( 'eventbrite_id' ) ) ); if ( $event->have_posts() ) : while ( $event->have_posts() ) : $event->the_post(); ?> <article id="event-<?php the_ID(); ?>" <?php post_class(); ?>> <header class="entry-header"> <h1 class="entry-title"><?php the_title(); ?></h1> <?php the_post_thumbnail(); ?> <div class="entry-meta"> <?php eventbrite_event_day(); ?> </div><!-- .entry-meta --> </header><!-- .entry-header --> <div class="entry-content"> <p><?php the_content(); ?></p> <?php eventbrite_ticket_form_widget(); ?> </div><!-- .entry-content --> <footer class="entry-footer"> <?php eventbrite_edit_post_link( __( 'Edit', 'eventbrite_api' ), '<span class="edit-link">', '</span>' ); ?> </footer><!-- .entry-footer --> </article><!-- #post-## --> <?php endwhile; else : // If no content, include the "No posts found" template. get_template_part( 'content', 'none' ); endif; // Return $post to its rightful owner. wp_reset_postdata(); ?> </main><!-- #main --> </div><!-- #primary --> <?php get_sidebar(); ?> <?php get_footer(); ?>
Forum: Plugins
In reply to: [Eventbrite API] Event venue information on single pageI managed to get my custom template to work at least ??
Forum: Plugins
In reply to: [Eventbrite API] Display Date OnlyThanks so much for posting. It’s still not working for me unfortunately. I copied across your code and got it showing the date and end time which I have now changed to show the start time on the index.php page but it is ignoring it on the single.php page. Don’t seem to be able to get it to show on both.
Here is my code:
if ( ! function_exists( 'eventbrite_event_date' ) ) : /** * Output event information such as date, time, venue, and organizer */ function eventbrite_event_date() { // Determine our separator. $separator = apply_filters( 'eventbrite_meta_separator', '<span class="sep"> · </span>' ); // Start our HTML output with the event time. $time = '<span class="event-time">' . eventbrite_event_day() . '</span>'; // Assemble our HTML. Yugly. $html = sprintf( _x( '%1$s%2$s%3$s%4$s', '%1$s: time, %2$s: venue, %3$s: organizer, %4$s: event details (only on index views)', 'eventbrite-api' ), $time, $venue, $organizer, $details ); echo apply_filters( 'eventbrite_event_date', $html, $time, $venue, $organizer, $details ); } endif; if ( ! function_exists( 'eventbrite_event_day' ) ) : /** * Return an event's time. * * @return string Event time. */ function eventbrite_event_day() { // Determine if the end time needs the date included (in the case of multi-day events). $start_time = ( eventbrite_is_multiday_event() ) ? mysql2date( 'j F Y, g:i A', eventbrite_event_start()->local ) : mysql2date( 'g:i A', eventbrite_event_start()->local ); // Assemble the full event time string. $event_time = sprintf( _x( '%1$s %2$s', 'Event date and time. %1$s = start time, %2$s = end time', 'eventbrite_api' ), esc_html( mysql2date( 'j M Y ', eventbrite_event_start()->local ) ), esc_html( $start_time ) ); return $event_time; } endif;
I added the following to both my custom template files – index.php and single.php
<div class="entry-meta"> <?php eventbrite_event_day(); ?> </div><!-- .entry-meta -->
Any ideas what I could be doing wrong? Failing completely after hours and hours of trying. I think I just don’t understand php functions well enough. hrrrm
Forum: Plugins
In reply to: [Eventbrite API] Event venue information on single pageWill give that a go.
This at least points me in the right direction of what I need to do though it may turn out to be beyond me at the moment to be honest let’s see how I get on ??
Many thanks
Forum: Plugins
In reply to: [Eventbrite API] Event venue information on single pageI am trying to customise the eventbrite-single.php that comes with the plugin as I only want to make small modifications to the header.
Here is what I have so far:
<header class="entry-header"> <h1 class="entry-title"><?php the_title(); ?></h1> <div class="entry-meta"> <?php eventbrite_event_meta(); ?> </div><!-- .entry-meta --> <?php the_post_thumbnail(); ?> <?php eventbrite_event_venue(); ?> </header><!-- .entry-header -->
Here is a link here to how it looks:
https://www.cacameron.co.uk/upcoming-events/
https://www.cacameron.co.uk/upcoming-events/auto-enrolment-seminar-1-18495185598/Thanks again for the help