pcoles
Forum Replies Created
-
deactivated all plugins (again apart from EM)
changed theme to new install of 2011
still no feedsame problem here
i added this to my themese function.php (several years ago) and it has been working fine. Now https://www.whatsonoundle.org.uk/events/feed/ is not showing any events
[ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]
add_filter( 'em_events_build_sql_conditions', 'my_em_scope_conditions',1,2); function my_em_scope_conditions($conditions, $args){ if( !empty($args['scope']) && $args['scope']=='nextweek' ){ $start_date = date('Y-m-d',current_time('timestamp')); $end_date = date('Y-m-d',strtotime("+7 days", current_time('timestamp'))); $conditions['scope'] = " (event_start_date BETWEEN CAST('$start_date' AS DATE) AND CAST('$end_date' AS DATE)) OR (event_end_date BETWEEN CAST('$end_date' AS DATE) AND CAST('$start_date' AS DATE))"; } return $conditions; } add_filter( 'em_get_scopes','my_em_scopes',1,1); function my_em_scopes($scopes){ $my_scopes = array( 'nextweek' => 'The Next Week' ); return $scopes + $my_scopes; }
Guessing this should do the job – havnt tried it myself yet.
Sorry I’m not sure I understand your question but
this is added to the HEAD section
<!-- Base MasterSlider style sheet --> <link rel="stylesheet" href="../masterslider/style/masterslider.css" /> <!-- Master Slider Skin --> <link href="../masterslider/skins/default/style.css" rel='stylesheet' type='text/css'> <!-- MasterSlider Template Style --> <link href='style/ms-partialview.css' rel='stylesheet' type='text/css'> <!-- google font Lato --> <link href='https://fonts.googleapis.com/css?family=Lato:300,400' rel='stylesheet' type='text/css'> <!-- jQuery --> <script src="../masterslider/jquery-1.10.2.min.js"></script> <script src="../masterslider/jquery.easing.min.js"></script> <!-- Master Slider --> <script src="../masterslider/masterslider.min.js"></script> <!-- Template js --> <script src="js/masterslider.partialview.dev.js"></script> <style type="text/css"> .syntaxhighlighter.html{ max-height: 400px; } </style>
this is then added to the body section to display the slider
<div class="ms-partialview-template" id="partial-view-1"> <!-- masterslider --></p> <div class="master-slider ms-skin-default" id="masterslider"> <div class="ms-slide"> <img src="../img/blank.gif" data-src="../img/1.jpg" alt=""/></p> <div class="ms-info"> <h3>ALISON BALSOM</h3> <h4>Oundle School Chapel 11th July</h4> <p><em>“She makes the trumpet sing with an irresistible exuberance and eloquence.”</em> Richard Morrison, The Times<br /> <a href="https://www.oundlefestival.org.uk/oundle-international-festival/4-dummy-article-1" title="Oundle Festival">more…</a></p> </div> </div> <div class="ms-slide"> <img src="../img/blank.gif" data-src="../img/2.jpg" alt=""/></p> <div class="ms-info"> <h3>CALEFAX REED QUINTET</h3> <h4>Oundle Festival 2014</h4> <p><em>“Five passionate wind players. Virtuoso musicians and brilliant arrangers. The creators of a completely new genre: the reed quintet.”</em><br /> <a href="https://www.oundlefestival.org.uk/oundle-international-festival/4-dummy-article-1" title="Oundle Festival">more…</a></p> </div> </div> <div class="ms-slide"> <img src="../img/blank.gif" data-src="../img/3.jpg" alt=""/></p> <div class="ms-info"> <h3>LORD CHAMBERLAIN’S MEN</h3> <h4>Oundle Festival 2014</h4> <p><em>“The unique mixture of location, climate and performance makes the relationship between the actors, the text and the audience a truly thrilling event.”</em><br /> <a href="https://www.oundlefestival.org.uk/oundle-international-festival/4-dummy-article-1" title="Oundle Festival">more…</a></p> </div> </div> <div class="ms-slide"> <img src="../img/blank.gif" data-src="../img/4.jpg" alt=""/></p> <div class="ms-info"> <h3>MINA MIDDLETON</h3> <h4>Oundle Festival 2014</h4> <p><em></em><br /> <a href="https://www.oundlefestival.org.uk/oundle-international-festival/4-dummy-article-1" title="Oundle Festival">more…</a></p> </div> </div> <div class="ms-slide"> <img src="../img/blank.gif" data-src="../img/5.jpg" alt=""/></p> <div class="ms-info"> <h3>THE BEN SMITH BAND</h3> <h4>Oundle Festival 2014</h4> <p><em></em><br /> <a href="https://www.oundlefestival.org.uk/oundle-international-festival/4-dummy-article-1" title="Oundle Festival">more…</a></p> </div> </div> </div> <p><!-- end of masterslider --> </div> <p><!-- end of template --><br /> <script type="text/javascript"> var slider = new MasterSlider(); slider.setup('masterslider' , { width:760, height:400, space:10, loop:true, view:'prtialwave' }); slider.control('arrows'); slider.control('slideinfo',{insertTo:"#partial-view-1" , autohide:false}); slider.control('circletimer' , {color:"#FFFFFF" , stroke:9}); $('#myTab a').click(function (e) { e.preventDefault() $(this).tab('show') }); SyntaxHighlighter.all(); </script></p>
If you look at the working pages with firebug the code HTML has been changed to do the “slider stuff” on the non working pages this hasn’t happened it is as if the javascript hasn’t been called.
Paul
also working great on event lists page
https://www.whatsonoundle.org.uk/?pno=2
(scroll down a bit to see)
Hope this helps narrow it down
You’re a star Marcus.
Just had someone test the site who wasnt logged in and the private location box did the trick
ThanksThanks Marcus,
I thought i was getting good at this, but I’m not!
Just took me till now to find the private location option, it only appears in the quick edit not the full edit screen.lost me with #_ATT, I havnt used attributes yet but probably will need them soon.
Thanks for a speedy response and a great plugin my site is coming on well.
https://www.whatsonoundle.org.ukForum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] #_CATEGORYI’ll go with that ??
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] #_CATEGORYIt realy isnt a problem just worth a note!
Im not sure that this is the right part of the code but.
line 205-217 em_category.php version 5.3.5 (there it is on line 216!)
==================================================$replace = get_option(‘dbem_category_no_events_message’,”);
}
break;
default:
$replace = $full_result;
break;
}
$replace = apply_filters(’em_category_output_placeholder’, $replace, $this, $full_result, $target); //USE WITH CAUTION! THIS MIGHT GET RENAMED
$category_string = str_replace($full_result, $replace , $category_string );
}
$name_filter = ($target == “html”) ? ‘dbem_general’:’dbem_general_rss’; //TODO remove dbem_ filters
$category_string = str_replace(‘#_CATEGORY‘, apply_filters($name_filter, $this->name) , $category_string ); //Depreciated
return apply_filters(’em_category_output’, $category_string, $this, $format, $target);
}
line 208-223 em_category.php version 5.3.7 (there it is gone!)
=================================================
$replace = get_option(‘dbem_category_no_events_message’,”);
}
break;
case ‘#_CATEGORYNEXTEVENT’:
$events = EM_Events::get( array(‘category’=>$this->term_id, ‘scope’=>’future’, ‘limit’=>1, ‘orderby’=>’event_start_date,event_start_time’) );
$replace = get_option(‘dbem_category_no_event_message’);
foreach($events as $EM_Event){
$replace = $EM_Event->output(get_option(‘dbem_category_event_single_format’));
}
break;
default:
$replace = $full_result;
break;
}
$replaces[$full_result] = apply_filters(’em_category_output_placeholder’, $replace, $this, $full_result, $target);
}Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] #_CATEGORYIt wasn’t an old version.
https://www.paulcoles.co.uk/b/events/ (to see it working correctly)
EM Version 5.3.5
You can see the category correctly displayed, latest version displays #_CATEGORY
Doesn’t matter just worthy of note. I’m new to this and it took me a while to figure out what had happened. I’m just trying to save other people time if they get the same problem.Thanks again for a brilliant Plugin.
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] #_CATEGORYThanks
I was using just #_CATEGORY which worked up to the latest version this placeholder has now gone. #_CATEGORY now needs to be replaced with #_CATEGORYNAME worth a note if anybody else used the same placeholder