Forum Replies Created

Viewing 8 replies - 16 through 23 (of 23 total)
  • Thread Starter Jorgu5

    (@internetoholik)

    Thank you ??

    Your solution with creating 2 popups with different content is exactly the thing I wanted. So embarrassed I did not think about that.

    Thanks again,
    Best,
    Tom

    Jorgu5

    (@internetoholik)

    Same here…

    Thread Starter Jorgu5

    (@internetoholik)

    Hi,

    Thanks, that helped ?? I got queried the past events properly. So this is what I have right now:

    https://www.dimsur.org/events-page

    and I ended up with this code

    <div id="tabs" class="schedule-tabs-wrapper">
      <ul role="tablist">
        <li><a href="#schedule-upcoming">Upcoming</a></li>
        <li><a href="#schedule-archived">Archived</a></li>
      </ul>
    
    <div id="schedule-upcoming" class="schedule-tabs-content">
    	<table <?php echo $id; ?> class="<?php echo esc_attr($classes);?> schedule-table" >
           <tbody>
           	<tr class="table-title">
    			<th class="header-date">Date</th>
    			<th class="header-title">Course Title</th>
    			<th class="header-venues">Venues</th>
    		</tr>
    
    		<?php while( $eo_event_loop->have_posts() ): $eo_event_loop->the_post(); ?>
    
    			<?php
    				//Generate HTML classes for this event
    				$eo_event_classes = eo_get_event_classes(); 
    
    				//For non-all-day events, include time formata
    				$format = ( eo_is_all_day() ? $date_format : $date_format.' '.$time_format );
    			?>
    
                <tr class="schedule-row">
    				<td class="cell-date">
            <span class="event-date-block">
    				<span class="event-date-top"><?php echo eo_get_the_start('j'); ?></span><span class="event-date-bottom"><?php echo eo_get_the_start('M'); ?></span>
    		</span>
    		<span class="event-date-block">
        		    <span class="event-date-top">-</span><span class="event-date-bottom">&nbsp;</span>
            </span>
    		<span class="event-date-block">
                    <span class="event-date-top"><?php echo eo_get_the_end('j'); ?></span><span class="event-date-bottom"><?php echo eo_get_the_end('M'); ?></span>
            </span>
    				 </td>
    
    				<td class="cell-title"><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" ><?php the_title(); ?></a></td>
    				<td class="cell-venues"><?php echo eo_get_venue_name(); ?> </td>
                </tr>
    		<?php endwhile; ?>
          </tbody>
    	</table>
    </div>
    
    <div id="schedule-archived" class="schedule-tabs-content">
    <table <?php echo $id; ?> class="<?php echo esc_attr($classes);?> schedule-table" >
           <tbody>
           	<tr class="table-title">
    			<th class="header-date">Date</th>
    			<th class="header-title">Course Title</th>
    			<th class="header-venues">Venues</th>
    		</tr>
    <?php
         $events = eo_get_events(array(
              'numberposts'=>5,
              'eo_interval' => 'expired'
         ));
    
         if($events):
              foreach ($events as $event) { ?>
          <tr class="schedule-row">
                   	    <td class="cell-date">
                   	    <span class="event-date-block">
                   	    <span class="event-date-top"> <?php echo eo_get_the_start('j', $event->ID,null,$event->occurrence_id) ?></span>
                   	    <span class="event-date-bottom"><?php echo eo_get_the_start('M', $event->ID,null,$event->occurrence_id) ?></span>
                   	    </span>
                   	    <span class="event-date-block">
        		        <span class="event-date-top">-</span><span class="event-date-bottom">&nbsp;</span>
                        </span>
                        <span class="event-date-block">
                        <span class="event-date-top"><?php echo eo_get_the_end('j', $event->ID,null,$event->occurrence_id) ?></span><span class="event-date-bottom"><?php echo eo_get_the_end('M', $event->ID,null,$event->occurrence_id) ?></span>
                         </span>
                   	    </td>
                        <td class="cell-title"><a href="<?php echo get_permalink($event->ID); ?>" title="<?php the_title_attribute(); ?>"><?php echo get_the_title($event->ID); ?> </a></td>
                        <td class="cell-venues"><?php echo eo_get_venue_name($event->ID) ?> </td>
                        </tr>
                 <?php   }
              echo '</tbody></table>';
         endif;
     ?>
    
    </div>
    </div>

    I’m editing the ‘shortcode-event-list.php’ to let my client use this table easily whenever he wants on the site.

    How I can remove past events from the first loop? And why the venues are not retrieving on the archive?

    Code responsible for venues is

    <td class="cell-venues"><?php echo eo_get_venue_name($event->ID) ?> </td>

    Should I create a new query for venue?

    Thread Starter Jorgu5

    (@internetoholik)

    Hey,

    No, archive events are past events that has already ended. So the last day of event is after today or something like that.

    I do not know how to determine if events are archived and use a proper loop to retrieve it.

    Thanks,
    Tom

    Thread Starter Jorgu5

    (@internetoholik)

    No, it’s actually working on front page, but if you can check the inside single pages or posts, https://www.endtheproblem.com/solve-a-problem-understand-it/

    It’s not working.

    Jorgu5

    (@internetoholik)

    I have the same issue. I bought a professional plan and contacted support about it and i’m waiting already 4 days without any answer…

    Thread Starter Jorgu5

    (@internetoholik)

    Thank you for your answer. That could be a problem, i’m getting all notifications now.

    Anyway, I have another problem, because the comments are not included here https://developers.facebook.com/tools/comments so I can have an insight for all of them.

    I have added meta for fb:app_id because it wasn’t there, there is also fb:admins , but the comments are still not included.

    Can you help me with this?

    Best,
    Tom

    Thread Starter Jorgu5

    (@internetoholik)

    That’s what I made on my own. I’m totally new to php, i was making this at the same time learning php language:

    <div class="banner"
    <?php
    if(is_page('retirement')) { echo 'class="retirementpage"'; }
    elseif(is_page('business-owner')) { echo 'class="businessownerpage"'; }
    ?>>

    and

    .retirementpage {
    background:url(https://www.spinnakerfin.com/wp-content/uploads/2011/06/slide_31.jpg) no-repeat;
    }

    .businessownerpage {
    background:url(
    https://www.spinnakerfin.com/wp-content/uploads/2011/06/slide_21.jpg);
    }

    But it is not working. What am I doing wrong? I think i need to disable this plugin on this subpages but I have no idea how to do it.

Viewing 8 replies - 16 through 23 (of 23 total)