flowfree_lowri
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Possible hack? folder permissions changed & address asked forI have no idea if all of these things are related, but now I have found pages moved to trash. I have not done this, so there must be another person / script doing it.
Forum: Fixing WordPress
In reply to: Possible hack? folder permissions changed & address asked forAlso, the snippet of error log above is just that – a snippet. The rest is mostly repetitions of the .htaccess error from different refers.
Forum: Fixing WordPress
In reply to: Possible hack? folder permissions changed & address asked forHi thanks for replying.
I have checked. php.ini has not altered since it was create in November 2013; and I see no error on line 3 as the error log suggests. This error always comes after the .htaccess error.
Forum: Fixing WordPress
In reply to: Possible hack? folder permissions changed & address asked forRight this is really doing my head in. flowfree.co.uk giving a 500 error again. Logs blame .htaccess
[Thu Mar 20 05:15:49 2014] [alert] [client 195.194.10.190] /home/kayakc6/public_html/kayakcoaching/.htaccess: RewriteRule: bad flag delimiters, referer: http://www.facebook.com/l.php?u=http%3A%2F%2Fwww.flowfree.co.uk%2Finfo%2Fbooking-form%2F&h=2AQGhJjCJ
[Thu Mar 20 05:15:14 2014] [error] [client 146.0.74.170] PHP: syntax error, unexpected TC_LABEL, expecting ‘=’ in /home/kayakc6/public_html/php.ini on line 3, referer: http://fourbordersexpedition.com/wp-login.php
[Thu Mar 20 05:15:13 2014] [error] [client 146.0.74.170] PHP: syntax error, unexpected TC_LABEL, expecting ‘=’ in /home/kayakc6/public_html/php.ini on line 3
[Thu Mar 20 05:14:45 2014] [alert] [client 2.27.45.136] /home/kayakc6/public_html/kayakcoaching/.htaccess: RewriteRule: bad flag delimiters, referer: http://www.flowfree.co.uk/wp-admin/post.php?post=5&action=edit
[Thu Mar 20 05:14:30 2014] [alert] [client 2.27.45.136] /home/kayakc6/public_html/kayakcoaching/.htaccess: RewriteRule: bad flag delimiters, referer: http://www.flowfree.co.uk/wp-admin/post.php?post=5&action=edit
[Thu Mar 20 05:14:15 2014] [alert] [client 2.27.45.136] /home/kayakc6/public_html/kayakcoaching/.htaccess: RewriteRule: bad flag delimiters, referer: http://www.flowfree.co.uk/wp-admin/post.php?post=5&action=edit
[Thu Mar 20 05:12:48 2014] [alert] [client 95.108.247.251] /home/kayakc6/public_html/kayakcoaching/.htaccess: RewriteRule: bad flag delimiters
[Thu Mar 20 05:12:29 2014] [alert] [client 31.41.217.116] /home/kayakc6/public_html/kayakcoaching/.htaccess: RewriteRule: bad flag delimiters, referer: http://www.lowridavies.co.uk/
[Thu Mar 20 05:12:29 2014] [alert] [client 31.41.217.116] /home/kayakc6/public_html/kayakcoaching/.htaccess: RewriteRule: bad flag delimiters, referer: http://www.lowridavies.co.uk/2009/07/30/waves-waterfalls-races-ceremonies/comment-page-1/#comment-191765
[Thu Mar 20 05:12:28 2014] [alert] [client 2.27.45.136] /home/kayakc6/public_html/kayakcoaching/.htaccess: RewriteRule: bad flag delimiters, referer: http://www.flowfree.co.uk/wp-admin/post.php?post=5&action=edit
[Thu Mar 20 05:12:03 2014] [alert] [client 36.250.246.233] /home/kayakc6/public_html/kayakcoaching/.htaccess: RewriteRule: bad flag delimiters
[Thu Mar 20 05:10:28 2014] [alert] [client 2.27.45.136] /home/kayakc6/public_html/kayakcoaching/.htaccess: RewriteRule: bad flag delimiters, referer: http://www.flowfree.co.uk/wp-admin/post.php?post=5&action=edit
[Thu Mar 20 05:08:28 2014] [alert] [client 2.27.45.136] /home/kayakc6/public_html/kayakcoaching/.htaccess: RewriteRule: bad flag delimiters, referer: http://www.flowfree.co.uk/wp-admin/post.php?post=5&action=edit
[Thu Mar 20 05:08:22 2014] [alert] [client 172.246.131.114] /home/kayakc6/public_html/kayakcoaching/.htaccess: RewriteRule: bad flag delimiters
[Thu Mar 20 05:08:22 2014] [alert] [client 172.246.131.114] /home/kayakc6/public_html/kayakcoaching/.htaccess: RewriteRule: bad flag delimitersThe .htaccess has been dynamically created after the last time I deleted it and the only thing in it is from wordpress.
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L]RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPressI don’t understand what is triggering this as it will work for a while then happen again.
Please help!
I am a pro user yes (so I’ve actually paid money for this flakey code).
Where are the pro forums?
Gotta be honest, I’ll probably just not use this plug-in. Time is too short to have to debug it all!
Just FYI, I’ve put another form in place at http://kayakcoaching.co.uk/info/booking-form/ now as time is running out…
If you are able to help me with any of the issues outlines above, I still need that help in order to take proper bookings.
OK, further confusion.
I added a new booking form, so that I would be selecting a specific form for both the booking form and attendee for for the event (rather than using the default booking form). Now the only fields showing are from the booking form.
I tried going through the booking process and on submitting the form I got an error and the attendee form was now showing and with all fields highlighted as having not been filled in.
I think perhaps what is supposed to happen is that when you select the number of tickets, that’s how many attendee forms are loaded? And I think it should say
Attendee 1Attendee 2
etc
Above each form? If so, why is the form not loading for me?
1. Well not really. * indicates required fields, not that there is a “helpful tip” available. It seems fields with a tip are very faintly underlines. What I would really like is a small question mark graphic to indicate there is a tip, which shows the tip either on hover or click.
2. Just tried that, but it seems to have made no difference, however I have been having problem with other things I am putting in my stylesheets having no effect, despite them being found if I put the URL through the W3 CSS checker. Any help on that front would frankly be a life saver.
3. Another cosmetic issue: the buttons for paypal / pay offline have an ugly box / border / dropshadow thing. Any clues on how to get rid of that?
Hi
1. I don’t know, I’d rather not try incase it breaks other things on my site. What would this tell me, given that I am not going to switch theme a mine is heavily customised?
2. The placeholders don’t seem to get translated and just appear as text on my page. See http://kayakcoaching.co.uk/info/booking-form/
Thanks for any help…
OK, a bit of an update… I’m even more confused now.
The fields I added to the attendee form appear before those on the booking form. I need the booking form first as this takes the name and email etc of the person making the booking. They may or may not be one of the attendees.
There’s no definition between when one form ends and the other starts.
If I select multiple tickets for en “event”, I do not get multiple attendee forms as documentation suggests I should. Nor is there a title “Attendee 1” “Attendee 2” etc.
Please help!
Also, is it possible to use load the forms on a page that is not a specific event? I need to have a generic booking form to allow people who have arranged a private booking to send me their information.
Thanks in advance…
Forum: Plugins
In reply to: [Testimonials Widget] broken after update – multiple problemsthanks in advance for any guidance!
Forum: Plugins
In reply to: [Testimonials Widget] broken after update – multiple problemsIf I need to make the alterations please clarify, does testimonialswidget_testimonial_list turn into testimonal-list? Is that the pattern for alteration?
Forum: Plugins
In reply to: [Testimonials Widget] broken after update – multiple problemsOK, I think I have tracked it down. In my theme’s functions.php there’s the following. I tried to edit it following the guidelines in your link but it’s extremely confusing. It’s a long time since I’ve dealt with php and css, and I didn’t write any of this code (yours nor the “filter” I apparently have on. If the below code is altered to meet the changes in your update will it work again? Is this the only code to be changed or is it calling other scripts that I need to find?
/*-----------------------------------------------------------------------------------*/ /* You can add custom functions below */ /*-----------------------------------------------------------------------------------*/ add_filter( 'testimonials_widget_testimonial_html', 'my_testimonials_widget_testimonial_html', 10, 5 ); function my_testimonials_widget_testimonial_html( $content, $testimonial, $atts, $is_list = true, $is_first = false, $widget_number = null ) { // do stuff… see Testimonials_Widget::get_testimonial_html for default processing // return $content; $char_limit = ( is_numeric( $atts['char_limit'] ) && 0 <= intval( $atts['char_limit'] ) ) ? intval( $atts['char_limit'] ) : false; $content_more = apply_filters( 'testimonials_widget_content_more', __( '…', 'testimonials-widget' ) ); $do_company = ( 'true' != $atts['hide_company'] ) && ! empty( $testimonial['testimonial_company'] ); $do_content = ( 'true' != $atts['hide_content'] ) && ! empty( $testimonial['testimonial_content'] ); $do_email = ( 'true' != $atts['hide_email'] ) && ! empty( $testimonial['testimonial_email'] ) && is_email( $testimonial['testimonial_email'] ); $do_image = ( 'true' != $atts['hide_image'] ) && ! empty( $testimonial['testimonial_image'] ); $do_source = ( 'true' != $atts['hide_source'] || 'true' == $atts['hide_author'] ) && ! empty( $testimonial['testimonial_source'] ); $do_title = ( 'true' != $atts['hide_title'] ) && ! empty( $testimonial['testimonial_title'] ); $do_url = ( 'true' != $atts['hide_url'] ) && ! empty( $testimonial['testimonial_url'] ); $keep_whitespace = ( 'true' == $atts['keep_whitespace'] ); $div_open = '<div class="testimonialswidget_testimonial'; if ( $is_list ) { $div_open .= ' testimonialswidget_testimonial_list'; } elseif ( $is_first ) { $div_open .= ' testimonialswidget_active'; } elseif ( ! $is_first ) { $div_open .= ' testimonialswidget_display_none'; } $div_open .= '"><a href="/testimonial">'; $image = ''; if ( $do_image ) { $image .= '<span class="testimonialswidget_image">'; $image .= $testimonial['testimonial_image']; $image .= '</span>'; } $quote = ''; if ( $do_content ) { $content = $testimonial['testimonial_content']; $content = Testimonials_Widget::format_content( $content, $widget_number, $keep_whitespace ); if ( $char_limit ) { $content = Testimonials_Widget::testimonials_truncate( $content, $char_limit, ' ', $content_more ); $content = force_balance_tags( $content ); } $content = apply_filters( 'testimonials_widget_content', $content, $widget_number, $testimonial, $atts ); $content = make_clickable( $content ); $quote = '<q>'; $quote .= $content; $quote .= '</q>'; } $cite = ''; $done_url = false; if ( $do_source && $do_email ) { $cite .= '<span class="testimonialswidget_author">'; $cite .= '<a href="mailto:' . $testimonial['testimonial_email'] . '">'; $cite .= $testimonial['testimonial_source']; $cite .= '</a>'; $cite .= '</span>'; } elseif ( $do_source && ! $do_company && $do_url ) { $cite .= '<span class="testimonialswidget_author">'; $cite .= '<a href="' . $testimonial['testimonial_url'] . '">'; $cite .= $testimonial['testimonial_source']; $cite .= '</a>'; $cite .= '</span>'; $done_url = true; } elseif ( $do_source ) { $cite .= '<span class="testimonialswidget_author">'; $cite .= $testimonial['testimonial_source']; $cite .= '</span>'; } elseif ( $do_email ) { $cite .= '<span class="testimonialswidget_email">'; $cite .= make_clickable( $testimonial['testimonial_email'] ); $cite .= '</span>'; } if ( $do_title && $cite ) $cite .= '<span class="testimonialswidget_join_title"></span>'; if ( $do_title ) { $cite .= '<span class="testimonialswidget_title">'; $cite .= $testimonial['testimonial_title']; $cite .= '</span>'; } if ( ( $do_company || ( $do_url && ! $done_url ) ) && $cite ) $cite .= '<span class="testimonialswidget_join"></span>'; if ( $do_company && $do_url ) { $cite .= '<span class="testimonialswidget_company">'; $cite .= '<a href="' . $testimonial['testimonial_url'] . '">'; $cite .= $testimonial['testimonial_company']; $cite .= '</a>'; $cite .= '</span>'; } elseif ( $do_company ) { $cite .= '<span class="testimonialswidget_company">'; $cite .= $testimonial['testimonial_company']; $cite .= '</span>'; } elseif ( $do_url && ! $done_url ) { $cite .= '<span class="testimonialswidget_url">'; $cite .= make_clickable( $testimonial['testimonial_url'] ); $cite .= '</span>'; } if ( ! empty( $cite ) ) $cite = '<cite>' . $cite . '</cite>'; $extra = ''; if ( ! empty( $testimonial['testimonial_extra'] ) ) { $extra .= '<div class="testimonialswidget_extra">'; $extra .= $testimonial['testimonial_extra']; $extra .= '</div>'; } $widget_text = ''; if ( ! empty( $atts['widget_text'] ) ) { $widget_text = '<div class="testimonialswidget_widget_text">'; $widget_text .= $atts['widget_text']; $widget_text .= '</div>'; } $div_close = '</a></div>'; $html = $div_open . $image . $quote . $cite . $extra . $widget_text . $div_close; $html = apply_filters( 'testimonials_widget_get_testimonial_html', $html, $testimonial, $atts, $is_list, $is_first, $widget_number, $div_open, $image, $quote, $cite, $extra, $widget_text, $div_close ); return $html; } // class Eab_Upcoming_Widget2 extends Eab_Widget { class Eab_Upcoming_Widget2 extends WP_Widget { /** * @var string $translation_domain Translation domain */ var $translation_domain = 'eab'; private $_defaults = array(); function __construct () { $this->_defaults = apply_filters('eab-widgets-upcoming-default_fields', array( 'title' => __('Upcoming', $this->translation_domain), 'excerpt' => false, 'excerpt_words_limit' => false, 'thumbnail' => false, 'limit' => 5, 'dates' => false, )); $widget_ops = array('description' => __('Display List of Upcoming Events', $this->translation_domain)); $control_ops = array('title' => __('Upcoming', $this->translation_domain)); parent::WP_Widget( 'incsub_event_upcoming2', __('Upcoming Events - MODIFIED', $this->translation_domain), $widget_ops, $control_ops ); } function widget ($args, $instance) { global $wpdb, $current_site, $post, $wiki_tree; extract($args); $instace = apply_filters('eab-widgets-upcoming-instance_read', $instance, $this); $options = wp_parse_args((array)$instance, $this->_defaults); $title = apply_filters('widget_title', empty($instance['title']) ? __('Upcoming', $this->translation_domain) : $instance['title'], $instance, $this->id_base); $query_args = array( 'posts_per_page' => $options['limit'], ); if ($options['category']) { $query_args['tax_query'] = array(array( 'taxonomy' => 'eab_events_category', 'field' => 'id', 'terms' => (int)$options['category'], )); } $_events = Eab_CollectionFactory::get_upcoming_weeks_events(eab_current_time(), $query_args); if (is_array($_events) && count($_events) > 0) { ?> <?php echo $before_widget; ?> <div class="widget_courses_container"> <div class="widget_courses"> <?php echo $before_title . $title . $after_title; ?> <div id="event-popular"> <ul> <?php foreach ($_events as $_event) { $thumbnail = $excerpt = false; if ($options['thumbnail']) { $raw = wp_get_attachment_image_src(get_post_thumbnail_id($_event->get_id())); $thumbnail = $raw ? @$raw[0] : false; } $excerpt = false; if ($options['excerpt']) { $words = (int)$options['excerpt_words_limit'] ? (int)$options['excerpt_words_limit'] : false; $excerpt = eab_call_template('util_words_limit', $_event->get_excerpt_or_fallback(), $words); } ?> <li> <a href="<?php print get_permalink($_event->get_id()); ?>" class="<?php print ($_event->get_id() == $post->ID)?'current':''; ?>" > <?php if ($options['thumbnail'] && $thumbnail) { ?> <img src="<?php echo $thumbnail; ?>" /><br /> <?php } ?> <?php if ($options['dates']) { ?> <div class="date"> <?php //echo Eab_Template::get_event_dates($_event); $event = ($_event instanceof Eab_EventModel) ? $_event : new Eab_EventModel($_event); $start_dates = $_event->get_start_dates(); if ($start_dates) { foreach ($start_dates as $key => $start) { $start = $event->get_start_timestamp($key); echo date_i18n('M j', $start); break; } } ?> </div> <?php } ?> <?php print $_event->get_title(); ?> </a> <?php if ($options['excerpt'] && $excerpt) { ?> <p><?php echo $excerpt; ?></p> <?php } ?> <?php do_action('eab-widgets-upcoming-after_event', $options, $_event, $this); ?> </li> <?php } ?> </ul> </div> </div> </div> <?php echo $after_widget; ?> <?php } } function update ($new_instance, $old_instance) { $instance = $old_instance; $new_instance = wp_parse_args((array)$new_instance, $this->_defaults); $instance['title'] = strip_tags($new_instance['title']); $instance['excerpt'] = (int)$new_instance['excerpt']; $instance['excerpt_words_limit'] = (int)$new_instance['excerpt_words_limit']; $instance['thumbnail'] = (int)$new_instance['thumbnail']; $instance['limit'] = (int)$new_instance['limit']; $instance['dates'] = (int)$new_instance['dates']; $instance['category'] = (int)$new_instance['category']; $instance = apply_filters('eab-widgets-upcoming-instance_update', $instance, $new_instance, $this); return $instance; } function form ($instance) { $instance = apply_filters('eab-widgets-upcoming-instance_read', $instance, $this); $options = wp_parse_args((array)$instance, $this->_defaults); $options['title'] = strip_tags($instance['title']); $categories = get_terms('eab_events_category'); ?> <div style="text-align:left"> <label for="<?php echo $this->get_field_id('title'); ?>" style="line-height:35px;display:block;"> <?php _e('Title', $this->translation_domain); ?>:<br /> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" value="<?php echo $options['title']; ?>" type="text" style="width:95%;" /> </label> <label for="<?php echo $this->get_field_id('dates'); ?>" style="display:block;"> <input type="checkbox" id="<?php echo $this->get_field_id('dates'); ?>" name="<?php echo $this->get_field_name('dates'); ?>" value="1" <?php echo ($options['dates'] ? 'checked="checked"' : ''); ?> /> <?php _e('Show dates', $this->translation_domain); ?> </label> <label for="<?php echo $this->get_field_id('excerpt'); ?>" style="display:block;"> <input type="checkbox" id="<?php echo $this->get_field_id('excerpt'); ?>" name="<?php echo $this->get_field_name('excerpt'); ?>" value="1" <?php echo ($options['excerpt'] ? 'checked="checked"' : ''); ?> /> <?php _e('Show excerpt', $this->translation_domain); ?> </label> <label for="<?php echo $this->get_field_id('excerpt_words_limit'); ?>" style="display:block; margin-left:1.8em"> <?php _e('Limit my excerpt to this many words <small>(<code>0</code> for no limit)</small>:', $this->translation_domain); ?> <input type="text" size="2" id="<?php echo $this->get_field_id('excerpt_words_limit'); ?>" name="<?php echo $this->get_field_name('excerpt_words_limit'); ?>" value="<?php echo (int)$options['excerpt_words_limit']; ?>" /> </label> <label for="<?php echo $this->get_field_id('thumbnail'); ?>" style="display:block;"> <input type="checkbox" id="<?php echo $this->get_field_id('thumbnail'); ?>" name="<?php echo $this->get_field_name('thumbnail'); ?>" value="1" <?php echo ($options['thumbnail'] ? 'checked="checked"' : ''); ?> /> <?php _e('Show thumbnail', $this->translation_domain); ?> </label> <label for="<?php echo $this->get_field_id('limit'); ?>" style="line-height:35px;display:block;"> <?php _e('Limit', $this->translation_domain); ?>: <select id="<?php echo $this->get_field_id('limit'); ?>" name="<?php echo $this->get_field_name('limit'); ?>"> <?php for ($i=1; $i<=10; $i++) { ?> <?php $selected = ($i == $options['limit']) ? 'selected="selected"' : ''; ?> <option value="<?php echo $i; ?>" <?php echo $selected;?>><?php echo $i;?></option> <?php } ?> </select> </label> <label for="<?php echo $this->get_field_id('category'); ?>" style="line-height:35px;display:block;"> <?php _e('Only Events from this category', $this->translation_domain); ?>: <select id="<?php echo $this->get_field_id('category'); ?>" name="<?php echo $this->get_field_name('category'); ?>"> <option><?php _e('Any', $this->translation_domain);?></option> <?php foreach ($categories as $category) { ?> <?php $selected = ($category->term_id == $options['category']) ? 'selected="selected"' : ''; ?> <option value="<?php echo $category->term_id; ?>" <?php echo $selected;?>><?php echo $category->name;?></option> <?php } ?> </select> </label> <?php do_action('eab-widgets-upcoming-widget_form', $options, $this); ?> </div> <?php } } register_widget('Eab_Upcoming_Widget2'); /*-----------------------------------------------------------------------------------*/ /* Don't add any code below here or the sky will fall down */ /*-----------------------------------------------------------------------------------*/ ?>Forum: Plugins
In reply to: Course Calendar plugin requiredHmm, but fundamentally that is coming at it from a different perspective. I don’t need resource management, or blackout periods etc. Each course only occurs on set dates, which I want to be able to display both on the course page and within a calendar. It therefore makes sense that I can add dates to the course and this info is used by the calendar.
http://premium.wpmudev.org/project/events-plus/ – this almost does it, however it’s a bit cumbersome. To “sign up” through their system it requires a wordpress account and the payment process is ugly. So far it seems this will be my solution though it will require a fair bit of hacking just to clean it up enough!
There’s a definite gap in the market here IMO.
Forum: Plugins
In reply to: Course Calendar plugin requiredHi Guys,
I’ve been trying more and more plug-ins but really am just going round in circles. Has anyone got any suggestions for me?
Thanks
Lowri