Ian

Forum Replies Created

Viewing 15 posts - 16 through 30 (of 34 total)
  • Author
    Posts
  • in reply to: Event data still being generated. #996116
    Ian
    Participant

    I am using a child theme (of themify.me ‘ultra’ theme) and when I add this to the functions.php file no site pages or admin pages are displayed (white screen). Removed the code and all is fine again except the progress bar is still stuck.

    in reply to: Event data still being generated. #995890
    Ian
    Participant

    As there was no change following the troubleshooting steps I hope the data I sent is helpful.

    Thinking about what may have triggered this condition if not a plugin conflict – This is a recurring event in a series where two events which were initially part of it were set to be individually edited, and one of those was deleted.

    Is there not a line in the wp_options table or somewhere which is causing the progress bar to display? Can’t I just edit the database to clear it?

    in reply to: Event data still being generated. #995847
    Ian
    Participant

    This reply is private.

    in reply to: Event data still being generated. #995563
    Ian
    Participant

    Hi Brian

    I have tried deactivating pro, both pro and the main plugin, reloading the edit page with the main plugin only active (no progress bar under this condition). Nothing has worked thus far. Still see the progress bar when pro is active on this event series…

    • This reply was modified 10 years, 8 months ago by Ian.
    in reply to: Event data still being generated. #995487
    Ian
    Participant

    A few more hours later and the event still thinks data is being generated. I have even updated the event to see if that would stop it. It updated OK but the message remains. Rebooted.. Checked in another browser… The message is stuck….

    in reply to: customising [tribe_event_list] shortcode #995319
    Ian
    Participant

    I answered much of my own question almost immediately (just had to write it out it seems) by putting the code to call the excerpt into the /modules/single-event.php file!

    Now looks like this:

    fixed

    Much better!

    One part still to be answered: Can the excerpt call return nothing if there is no ‘actual’ excerpt?

    • This reply was modified 10 years, 8 months ago by Ian.
    • This reply was modified 10 years, 8 months ago by Ian.
    in reply to: tribe_events_list shortcode customizations #990209
    Ian
    Participant

    This is the thread I noticed re [tribe_events_list]

    in reply to: tribe_events_list shortcode customizations #989997
    Ian
    Participant

    Hi Geoff

    Thanks for getting back to me. I have probably done all the custom coding I need with the conditional test in all honesty.

    I thought I saw the ‘View More…’ link going to ‘all’ categories even when a category is set listed as a bug elsewhere in the forum and due to be fixed in a forthcoming release?

    in reply to: tribe_events_list shortcode customizations #989122
    Ian
    Participant

    Excellent Geoff – I have upgraded to the 3.11 and applied all changes to that base and it works a treat!
    formatted

    In combination with a conditional test I have written which only displays the category when on the page listing all event categories I think I pretty much have what I need in terms of the list display now (though it would be nice to keep just the event times in view).

    What would also be nice is to make the ‘View More…’ link know if it is being displayed on a list which is filtered to a category and carry that through to the full events page. E.g if the event list being displayed is ‘highgategallery’ make the link go to /events/category/highgategallery/ instead of just /events/.

    • This reply was modified 10 years, 9 months ago by Ian. Reason: event times reference added
    in reply to: tribe_events_list shortcode customizations #988752
    Ian
    Participant

    Not to worry Geoff! Following some baffled wandering like a scout with the wrong orienteering map, I am now getting back on track. With the correct function for Pro to show event categories these are now being displayed.

    Now for dividers and some formatting:
    annotated event

    Any pointers from the appropriate map for the terrain?

    in reply to: tribe_events_list shortcode customizations #988691
    Ian
    Participant

    And now I have realised that in Pro the event itself is in a file under /modules/single-event.php

    I therefore put tribe_meta_event_category_name() in that instead but still only get:

    pro event

    in reply to: tribe_events_list shortcode customizations #988684
    Ian
    Participant

    OK – APOLOGIES – I have figured the styles oddity. I am using PRO and the path to the list-widget.php file given early on in this thread is from the standard version. Now I have located the correct file in the pro folders and started working with this things make more sense.

    Not working any better however!!

    The month divider code does not seem to work at all now and neither does the category display when inserted as follows (snippet only)

    <!-- Event  -->
    		<div class="<?php tribe_events_event_classes() ?>">
    			<?php echo tribe_meta_event_category_name(); ?> - (category?) - 	
    			<?php tribe_get_template_part( 'pro/widgets/modules/single-event', null, $instance ) ?>
    		</div><!-- .hentry .vevent -->
    

    A list entry currently looks like this:
    v3

    in reply to: tribe_events_list shortcode customizations #988673
    Ian
    Participant

    And stylesheets seem to be showing up in the page source code in just the same way on the styled and non-styled versions

    in reply to: tribe_events_list shortcode customizations #988669
    Ian
    Participant

    OK all set up with a child theme functions.php with the divider code and this works just fine.

    What does not work is any of the styling etc. Instead of
    styled
    I am getting
    unstyled
    (note the echo of plain text where the tribe_meta_event_category_name() function is failing)

    The full custom list-widget.php code looks like this (I have commented //=====INACTIVE?==== by each of the parts of code apparently not to be doing anything in that when commented and run there is no difference in the output.)

    if ( ! defined( 'ABSPATH' ) ) {
    	die( '-1' );
    }
    
    $events_label_plural = tribe_get_event_label_plural();
    
    $posts = tribe_get_list_widget_events();
    
    // Check if any event posts are found.
    if ( $posts ) : ?>
    
    	<ol class="hfeed vcalendar">
    		<?php
    		// Setup the post data for each event.
    		foreach ( $posts as $post ) :
    			setup_postdata( $post );
    			
    			// call extra function to add dividers for change in months 
    			club_tribe_events_list_the_date_headers()
    			?>
    			<li class="tribe-events-list-widget-events <?php //=====INACTIVE?====tribe_events_event_classes() ?>">
    
    				<?php //=====INACTIVE?====do_action( 'tribe_events_list_widget_before_the_event_title' ); ?>
    				<!-- Event Title -->
    				<h4 class="entry-title summary">
    					<a href="<?php echo esc_url( tribe_get_event_link() ); ?>" rel="bookmark"><?php the_title(); ?></a>
    				</h4>
    				
    
    				<?php //=====INACTIVE?====do_action( 'tribe_events_list_widget_after_the_event_title' ); ?>
    				<!-- Event Time -->
    
    				<?php //=====INACTIVE?====do_action( 'tribe_events_list_widget_before_the_meta' ) ?>
    
    				<div class="duration">
    					<?php //=====INACTIVE?====echo tribe_meta_event_category_name(); ?> - (category?) - 				
    					<?php echo tribe_events_event_schedule_details(); ?>
    				</div>
    
    				<?php //=====INACTIVE?====do_action( 'tribe_events_list_widget_after_the_meta' ) ?>
    			</li>
    		<?php
    		endforeach;
    		?>
    	</ol><!-- .hfeed -->
    
    	<p class="tribe-events-widget-link">
    		<a href="<?php echo esc_url( tribe_get_events_link() ); ?>" rel="bookmark"><?php printf( __( 'View All %s', 'tribe-events-calendar' ), $events_label_plural ); ?></a>
    	</p>
    
    <?php
    // No events were found.
    else : ?>
    	<p><?php printf( __( 'There are no upcoming %s at this time.', 'tribe-events-calendar' ), strtolower( $events_label_plural ) ); ?></p>
    <?php
    endif;
    • This reply was modified 10 years, 9 months ago by Ian.
    • This reply was modified 10 years, 9 months ago by Ian. Reason: Clarify text / provide image URLs which display properly
    in reply to: tribe_events_list shortcode customizations #988522
    Ian
    Participant

    Where are functions such as
    tribe_events_event_schedule_details()

    I need to modify what is output by this. Would I again do so on a copy of the original file in a new location?

    Also with the list-widget.php file in a new location it is not picking up styles – and there is only a number next to each row rather than the date / day of week block. Is this down to
    <li class="tribe-events-list-widget-events <?php tribe_events_event_classes() ?>">

    At the moment I have put the month divider function in the same list-widget.php file which is probably Not A Good Thing…
    ?

Viewing 15 posts - 16 through 30 (of 34 total)