ide79
Forum Replies Created
-
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
In reply to: [Plugin: The Events Calendar] is_event() true in archive post list?Sorry. That was my mistake. Everything is ok.
Forum: Fixing WordPress
In reply to: [Plugin: The Events Calendar] Calendar view month linksThank 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
In reply to: [Plugin: The Events Calendar] Calendar view month links.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 thForum: Plugins
In reply to: [Plugin: The Events Calendar] Events not showing up in CalendarI have the same problem.
When url events/month/ the grid is empty
When using events/2010-03/ it worksand 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 folderForum: Fixing WordPress
In reply to: [Plugin: The Events Calendar] Seems to affect add_rewrite_ruleIt 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
In reply to: how to use wpdb->prepare and LIKEIgnore the last question. That was a stupid one.
Too little sleep too much code. ??Forum: Fixing WordPress
In reply to: how to use wpdb->prepare and LIKEOff 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 statementForum: Fixing WordPress
In reply to: how to use wpdb->prepare and LIKEThat 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
In reply to: how to use wpdb->prepare and LIKEHave 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
In reply to: how to use wpdb->prepare and LIKEThank 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
In reply to: how to use wpdb->prepare and LIKEWhat if i use $_GET[‘var’] from url?
ok. how about this way
add global $wpdb; before the queryglobal $wpdb; if(!isset($GLOBALS['hide_footer_bar'])){ $numposts = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->posts WHERE post_status = 'publish'");
I have the same problem with $wpdb (query) in the event posts and the calendar page
Forum: Fixing WordPress
In reply to: [Plugin: The Events Calendar] Seems to affect add_rewrite_ruleOk. 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.