Title: ide79's Replies | WordPress.org

---

# ide79

  [  ](https://wordpress.org/support/users/ide79/)

 *   [Profile](https://wordpress.org/support/users/ide79/)
 *   [Topics Started](https://wordpress.org/support/users/ide79/topics/)
 *   [Replies Created](https://wordpress.org/support/users/ide79/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/ide79/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/ide79/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/ide79/engagements/)
 *   [Favorites](https://wordpress.org/support/users/ide79/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/users/ide79/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/ide79/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Fast Secure Contact Form] [Plugin: Fast Secure Contact Form] HTML before form field and HTML after form field](https://wordpress.org/support/topic/plugin-fast-secure-contact-form-html-before-form-field-and-html-after-form-field/)
 *  [ide79](https://wordpress.org/support/users/ide79/)
 * (@ide79)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-fast-secure-contact-form-html-before-form-field-and-html-after-form-field/#post-2264539)
 * HTML Before and After fields should not be wrapped in <div style=”text-align:
   left;”> </div> or at least there should be a checkbox in modifiable CSS Style
   Feature where you could get rid of the html before / after div.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [[Plugin: The Events Calendar] is_event() true in archive post list?](https://wordpress.org/support/topic/plugin-the-events-calendar-is_event-true-in-archive-post-list/)
 *  Thread Starter [ide79](https://wordpress.org/support/users/ide79/)
 * (@ide79)
 * [16 years ago](https://wordpress.org/support/topic/plugin-the-events-calendar-is_event-true-in-archive-post-list/#post-1518532)
 * Sorry. That was my mistake. Everything is ok.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [[Plugin: The Events Calendar] Calendar view month links](https://wordpress.org/support/topic/plugin-the-events-calendar-calendar-view-month-links/)
 *  Thread Starter [ide79](https://wordpress.org/support/users/ide79/)
 * (@ide79)
 * [16 years ago](https://wordpress.org/support/topic/plugin-the-events-calendar-calendar-view-month-links/#post-1516851)
 * Thank you.
 * I have now problem with my static navigation. if there is a event in the archive
   post list i get is_event() = 1; And that makes my static navigation go mad.
 * I think is_event() = 1; should only be active in calendar, list or single view
   when a event is displayed.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [[Plugin: The Events Calendar] Calendar view month links](https://wordpress.org/support/topic/plugin-the-events-calendar-calendar-view-month-links/)
 *  Thread Starter [ide79](https://wordpress.org/support/users/ide79/)
 * (@ide79)
 * [16 years ago](https://wordpress.org/support/topic/plugin-the-events-calendar-calendar-view-month-links/#post-1516793)
 * .tec-calendar th > grid-th-bg.png is requested from events.css
    The image is 
   not in images folder. Should be removed from events.css file .tec-calendar th
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: The Events Calendar] Events not showing up in Calendar](https://wordpress.org/support/topic/plugin-the-events-calendar-events-not-showing-up-in-calendar/)
 *  [ide79](https://wordpress.org/support/users/ide79/)
 * (@ide79)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/plugin-the-events-calendar-events-not-showing-up-in-calendar/#post-1404213)
 * I have the same problem.
    When url events/month/ the grid is empty When using
   events/2010-03/ it works
 * and one more thing
    when in debug mode i can see that img files grid-th-bg.png,
   tooltip-title.png are called but there is no files named that in images folder
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [[Plugin: The Events Calendar] Seems to affect add_rewrite_rule](https://wordpress.org/support/topic/plugin-the-events-calendar-seems-to-affect-add_rewrite_rule/)
 *  Thread Starter [ide79](https://wordpress.org/support/users/ide79/)
 * (@ide79)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/plugin-the-events-calendar-seems-to-affect-add_rewrite_rule/#post-1357824)
 * It would be nice to know how to get add_rewrite_rule to work when this plugin
   is active.
 * rewrite rules works nicely in the posts and the event, but when using functions.
   php and a custom page template it does not work (404).
 * if i remove the (flushRewriterules)in the-events-calendar.php it works.
 * is there anyway to use add_rewrite_rule when this plugin is active? or does the
   flushRewriterules override my own rewriterule in functions.php and custom page
   tempalte.
 * I dont think that removing the flushRewriterules line in the-events-calendar.
   php is the right way to proceed.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [how to use wpdb->prepare and LIKE](https://wordpress.org/support/topic/how-to-use-wpdb-gtprepare-and-like/)
 *  Thread Starter [ide79](https://wordpress.org/support/users/ide79/)
 * (@ide79)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/how-to-use-wpdb-gtprepare-and-like/#post-1378080)
 * Ignore the last question. That was a stupid one.
    Too little sleep too much code.
   🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [how to use wpdb->prepare and LIKE](https://wordpress.org/support/topic/how-to-use-wpdb-gtprepare-and-like/)
 *  Thread Starter [ide79](https://wordpress.org/support/users/ide79/)
 * (@ide79)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/how-to-use-wpdb-gtprepare-and-like/#post-1378071)
 * **Off topic question: (mysql)**
    Is it possible to make a “switch” in mysql select
   like this.
 *     ```
       SELECT * FROM CARS
       WHERE cartype='honda'
       CASE %s
       WHEN 'listall' THEN
       AND subcartype like '%%' end
       ELSE
       AND subcartype = %s end
       ```
   
 * // if case listall then list all honda>subcartype else get the value %s
    // Or
   should i make 2 queries with case statement
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [how to use wpdb->prepare and LIKE](https://wordpress.org/support/topic/how-to-use-wpdb-gtprepare-and-like/)
 *  Thread Starter [ide79](https://wordpress.org/support/users/ide79/)
 * (@ide79)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/how-to-use-wpdb-gtprepare-and-like/#post-1378070)
 * That will be probably the best way to reduce some risk of SQL injection. I think
   there should be a function like in DW GetSQLValueString.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [how to use wpdb->prepare and LIKE](https://wordpress.org/support/topic/how-to-use-wpdb-gtprepare-and-like/)
 *  Thread Starter [ide79](https://wordpress.org/support/users/ide79/)
 * (@ide79)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/how-to-use-wpdb-gtprepare-and-like/#post-1378067)
 * Have one more question about get method from url. Is this not a very dangerous
   way to get a variable to the query? should i prepare it in some way before it
   gets in the query (Because SQL Injection). Or does the $wpdb->prepare make the
   variable safe to use in the query?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [how to use wpdb->prepare and LIKE](https://wordpress.org/support/topic/how-to-use-wpdb-gtprepare-and-like/)
 *  Thread Starter [ide79](https://wordpress.org/support/users/ide79/)
 * (@ide79)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/how-to-use-wpdb-gtprepare-and-like/#post-1378010)
 * **Thank you very much.** I tought that would be the way. Was not sure where to
   modify the value with get method. Because of the prepare function at the query.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [how to use wpdb->prepare and LIKE](https://wordpress.org/support/topic/how-to-use-wpdb-gtprepare-and-like/)
 *  Thread Starter [ide79](https://wordpress.org/support/users/ide79/)
 * (@ide79)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/how-to-use-wpdb-gtprepare-and-like/#post-1377975)
 * What if i use $_GET[‘var’] from url?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: The Events Calendar] Call to a member function get_var() on a non-object](https://wordpress.org/support/topic/plugin-the-events-calendar-call-to-a-member-function-get_var-on-a-non-object/)
 *  [ide79](https://wordpress.org/support/users/ide79/)
 * (@ide79)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/plugin-the-events-calendar-call-to-a-member-function-get_var-on-a-non-object/#post-1365586)
 * ok. how about this way
    add global $wpdb; before the query
 *     ```
       global $wpdb;
       if(!isset($GLOBALS['hide_footer_bar'])){
       $numposts = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->posts WHERE post_status = 'publish'");
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: The Events Calendar] Call to a member function get_var() on a non-object](https://wordpress.org/support/topic/plugin-the-events-calendar-call-to-a-member-function-get_var-on-a-non-object/)
 *  [ide79](https://wordpress.org/support/users/ide79/)
 * (@ide79)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/plugin-the-events-calendar-call-to-a-member-function-get_var-on-a-non-object/#post-1365583)
 * I have the same problem with $wpdb (query) in the event posts and the calendar
   page
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [[Plugin: The Events Calendar] Seems to affect add_rewrite_rule](https://wordpress.org/support/topic/plugin-the-events-calendar-seems-to-affect-add_rewrite_rule/)
 *  Thread Starter [ide79](https://wordpress.org/support/users/ide79/)
 * (@ide79)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/plugin-the-events-calendar-seems-to-affect-add_rewrite_rule/#post-1357613)
 * Ok. It did not work for me, but i tested something in _the-events-calendar.php_
   i removed the `add_action( 'init' array ( $this, 'flushRewriterules'));` about
   line 320 and now it works.

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/users/ide79/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/ide79/replies/page/2/?output_format=md)