CasperB
Forum Replies Created
-
Where can the thumbnail sizes be set?
Theater for WordPress or in the theme?Forum: Plugins
In reply to: [Theater for WordPress] Use template without div output?Brilliant! I am loving this plugin more by the day!
Thanks again
Forum: Plugins
In reply to: [Theater for WordPress] Use template without div output?I have found a way to do this, but it’s a workaround. With this I can create a planning/roster overview of all public Theater for WordPress events and the names of the employees working on that specific event, taken from Formidable Pro.
On a page called “dienstrooster’ I have this shortcode:
[wpt_events]{{title}}[/wpt_events]In functions.php I have added:
function replace_event_title_divs($html, $event) { global $post; if ( $post->post_name == 'dienstrooster' ) { return '<b>'.$event->title().'</b> '.$event->startdate().' '.$event->starttime().' '.do_shortcode('[display-frm-data id=290 voorstelling="'.$event->ID.'"]'); } else return $event->title(); } add_filter('wpt_event_title_html','replace_event_title_divs', 10, 2);
The filter screws up the Theater widget output on that same page, still working on that.
Forum: Plugins
In reply to: [Theater for WordPress] Use template without div output?Thanks again Jeroen, it seems I am asking questions that have been answered before, sorry about that.
It’s working for {{title}} as in your example, but not for the {{ID}} field. Any idea how I can display the post ID without a DIV?
I use {{ID}} (the event post ID) as the unique key for each event and want to link to event data in a Formidable Pro form/database. Is there a way I can use shortcodes of other plugins within the Theater shortcode? Something like this:
[wpt_events]{{title}}{{datetime}}{{ID}}[display-frm-data id=290 voorstelling='{{ID}}’][/wpt_events]Thanks,
CasperForum: Plugins
In reply to: [Theater for WordPress] List of Events in other pluginThanks Jeroen, that worked.
Here’s the code, if someone else is interested in connecting Formidable Pro and Theater:add_filter('frm_setup_new_fields_vars', 'frm_populate_posts', 20, 2); add_filter('frm_setup_edit_fields_vars', 'frm_populate_posts', 20, 2); //use this function on edit too function frm_populate_posts($values, $field){ if($field->id == 111){ //replace with the ID of the field to populate global $wp_theatre; $posts = $wp_theatre->events->get(); unset($values['options']); $values['options'] = array(''); //remove this line if you are using a checkbox or radio button field foreach($posts as $p){ $values['options'][$p->ID] = $p->date()." - ".$p->time()." - ".$p->title(); } $values['use_key'] = true; //this will set the field to save the post ID instead of post title } return $values; }
The upgrade worked fine and the activation was succesfull.
Thanks for your excellent quick response!Somehow I have to re-chmod 777 the Cache directory after every upgrade, including this upgrade. In other words, the dir settings are lost after the upgrade. But that is easy to fix ?? and it all works now.
Thanks,
CasperI’m using php 5.2.13
The WSOD is when the site just stops completely and just displays a white page in de browser.
I just tried to reactivate the plugin and I got the following error:
Plugin could not be activated because it triggered a fatal error.
Parse error: syntax error, unexpected T_FUNCTION, expecting ‘)’ in blablabla/httpdocs/wp/wp-content/plugins/runners-log/runnerslog_gchart.php on line 174
Hi,
I want to share the excellent graphs on my blog, but not the raw posts.
Here’s a perfect work around: I installed the “simply exclude” plugin to exclude all post in the category “running” from the blog’s front page. I categorize all new running log posts as “running”. I also excluded this category from the Twitter tool plugin.
So the posts are more or less invisible, but I have my running results visible on the runners log page. I am even considering buying a Garmin to make even better use of the plugin!
Thanks again for this plugin.