Ian

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 34 total)
  • Author
    Posts
  • in reply to: Hide past events from single event navigation #1617406
    Ian
    Participant

    Thanks for your reply.

    You suggest I could tap into a filter

    apply_filters( 'tribe_get_prev_event_link', tribe( 'tec.adjacent-events' )->get_prev_event_link( $anchor ), $event_id );
    

    and then; ‘check if it’s a past event’… Would you be able to suggest how this last part might be achieved?

    Thanks

    in reply to: date-picker in month view drops-up #1483268
    Ian
    Participant

    OK thanks – That works well enough – looks a little odd but at least visible.

    I don’t really understand why it is going up when the page initially loads on the month view given that the list view and others drop down?!

    in reply to: date-picker in month view drops-up #1481715
    Ian
    Participant

    Having tried another theme I guess it is not to do with Themify after all…

    Ian
    Participant

    This reply is private.

    Ian
    Participant

    This seems to work I think…

    <?php
      // based on code by Chirp Internet
      $excerp = tribe_events_get_the_excerpt();
      $break = " ";
      $limit = 85;
      $pad = "...";
    
      // return with no change if string is shorter than $limit
      if(strlen($excerp) <= $limit) {
    		$printexcerp = $excerp;
      }else{
      	// is $break present between $limit and the end of the string?
      	if(false !== ($breakpoint = strpos($excerp, $break, $limit))) {
        	if($breakpoint < strlen($excerp) - 1) {
          		$printexcerp = substr($excerp, 0, $breakpoint) . $pad;
        	}
      	}
      }
    
      echo $printexcerp; 
    
    ?>
    • This reply was modified 10 years, 3 months ago by Ian.
    • This reply was modified 10 years, 3 months ago by Ian.
    • This reply was modified 10 years, 3 months ago by Ian.
    Ian
    Participant

    Yes, I should have said I did a number of customisations to get the list to display as needed. The first three may be relevant.

    /../child-theme/functions.php ( see http://pastebin.com/dyUSRVsY )
    /../child-theme/tribe-events/widgets/list-widget.php ( see http://pastebin.com/jd3GGpmJ )
    /../child-theme/tribe-events/widgets/modules/single-event.php ( see http://pastebin.com/hAy8J9yc )
    /../child-theme/tribe-events/list/single-event.php ( see http://pastebin.com/BFxLFWiV )

    Ian
    Participant

    This reply is private.

    Ian
    Participant

    Well – I have run some more tests and it seems as though the problem is when there are between 65 and 66 characters in whatever is entered in the excerpt field with one of the characters being an ampersand.

    OK
    zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz&zzzzzzzzzzzzzzzzzzzzz

    NG
    zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz&zzzzzzzzzzzzzzzzzzzzzzz

    OK
    zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz&zzzzzzzzzzzzzzzzzzzzzzzzz

    OK
    zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzbzzzzzzzzzzzzzzzzzzzzzz

    NG
    zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz&zzzzzzzzzzzzzzzzzzzzzzz

    NG
    zzzzzzzzzzzzzz&zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz

    NG
    &zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz

    OK
    zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzza

    in reply to: Sidebar displaying below event content (Avada) #1052155
    Ian
    Participant

    I have had problems with ‘curly quotes’ before now, but never found the ‘invisible’ causing the problem in my case. If this does seem to be the cause of your difficulties, and you are able to spot anything do post back.

    in reply to: Sidebar displaying below event content (Avada) #1052079
    Ian
    Participant

    Hi Michael

    I had a similar problem which in my case was down to odd ‘invisible’ characters which had been pasted into an event entry. When the event was re-created from scratch it was fine.

    Ian
    Participant

    I have added a feature request.

    Meantimes – any further syntactical detail on how to exclude event child posts or do I just need to wade in there and spend some hours looking for the relevant code sections and calls? Any example code out there at your end?

    Ian
    Participant

    Can’t say I have a huge knowledge of WP_Query, but have modified WordPress template files before now in PHP so should be able to find my way around if you can give me some help with this.

    Shame if it used to be an easy thing to switch off repeating events from the admin interface it is not presently supported in this way…

    in reply to: Event List styling has vanished. #1036894
    Ian
    Participant

    In my case correct styling returned without my doing anything! Unsettling when things change for no obvious reason! Perhaps it was a local browser issue? Thought I checked in more than the one.

    • This reply was modified 10 years, 4 months ago by Ian.
    Ian
    Participant

    Maybe I clicked ‘save changes’ too fast before – seems to have saved properly now and the update worked! Thanks.

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

    Well that’s Weird – I just added the code again to run it in order to see what was on ‘line 28’ where a spurious ‘&’ was being reported in the error log, and it ran OK and cleared the problem! I don’t think I added an & by mistake before as it was just a paste, but I have to assume it was something like that. Anyhow all seems good now which is a relief!

Viewing 15 posts - 1 through 15 (of 34 total)