sterfry68
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: JQuery Not WorkingThat was it?! Wow, amazing how something that simple can trip you up sometimes! Guess I was glossing over the instructions I was reading.
You rock, Man! Thanks.
Forum: Fixing WordPress
In reply to: JQuery Not Workingoops was referencing localhost, not communityclear.com. fixed that but still no bones. Not a problem with .htaccess, but I know more now. I’ll keep looking and post what I find. In the mean time let me know if you think of anything. Thanks for your help, Andrew.
Forum: Fixing WordPress
In reply to: JQuery Not WorkingAh, must be blocking it somehow. I’ll check my .htaccess file.
Forum: Fixing WordPress
In reply to: JQuery Not WorkingOK. I’ll check Firebug out right now.
Here’s an example of the non-working jquery:
http://communityclear.com/deleteme/test_ajax.htmlHere’s one that does work.
http://communityclear.com/deleteme/test_ajax_works.htmlThe only difference between the two is that in the first one I’m referencing the local JQuery file, and in the second one I’m referencing the one on the CDN (also changed the document ready call in my JS).
Forum: Fixing WordPress
In reply to: JQuery Not WorkingYes, let me move it to a public server so you can see what I’m talking about.
Are you talking about firebug or something like that? I’m not too familiar with that, but I’ll give it a go.
Forum: Fixing WordPress
In reply to: Timezone Overwritten in Core?resolved
Forum: Fixing WordPress
In reply to: Timezone Overwritten in Core?FYI for those who might also run into this problem:
Looks like this is NOT a bug but expected behavior. PHP’s date() function will always return UTC. Should use wordpresses current_time() function instead. Did not know!
You can read more here:
Forum: Fixing WordPress
In reply to: Timezone Overwritten in Core?Forum: Fixing WordPress
In reply to: Timezone Overwritten in Core?Yes, I’m sure. That’s what date_default_timezone_set() does. It changes your application’s timezone from the default set on your server. I checked and both my php.ini file and .htaccess file are set to the right timezone.
This must be a bug if it’s returning UTC for you too.
Anyone know where post bugs?
Forum: Fixing WordPress
In reply to: Timezone Overwritten in Core?If you run this:
<?php echo date_default_timezone_get(); ?>what do you see? Do you see the timezone that you set in dashboard? Or do you see UTC? No matter what I set in the dashboard, the above code returns UTC for me. The cuprit for me is the line that you identified in your latest post.I’m not trying to resolve an issue. I’m trying to identify what might be a bug in the wp-settings file.
Maybe this isn’t the place to report potential bugs?
Forum: Fixing WordPress
In reply to: Timezone Overwritten in Core?FYI. As a temporary solution I’ve created this function. I call it every time I need to use my local time (America/Denver).
function zzz_reset_timezone(){
/*the core seems to be changing the timezone to UTC: (wp-settings.php line
* 36) and never changig it back; change it to what it’s set to in the
* options table as a temporary fix.
*/
$current_offset = get_option(‘gmt_offset’);
$tzstring = get_option(‘timezone_string’);if ( false !== strpos($tzstring,’Etc/GMT’) )
$tzstring = ”;if ( empty($tzstring) ) { // Create a UTC+- zone if no timezone string exists
if ( 0 == $current_offset )
$tzstring = ‘UTC+0’;
elseif ($current_offset < 0)
$tzstring = ‘UTC’ . $current_offset;
else
$tzstring = ‘UTC+’ . $current_offset;
}date_default_timezone_set( $tzstring );
//end code for temporary fix
}Forum: Fixing WordPress
In reply to: Timezone Overwritten in Core?Hi Peter,
Thanks for the response. However that’s not my issue. I’m wondering if this is a bug in the core. That particular line in the wp-settings.php file seems to be changing the timezone to UTC independent of what you set it to in the dashboard, and it never changes it back. Anyone else seeing this?
Forum: Plugins
In reply to: [Sideways8 Custom Login and Registration] No remember me textI see the same issue. I believe I found the problem. It’s not that the text is white on a white bg. It’s that the text isn’t there at all. If you look in your “source” for your html page you’ll see that the text between the <label> tags is “<? _e(‘Remember me’); ?>” This means that the server didn’t recognize the shorthand opening “<?” php tag. So you can fix it if you go to line 112 in your forms.php file in the s8-custom-login-and-registration/inc/forms.php file and modify it to read:
<label for=”remember-me”><?php _e(‘Remember me’); ?></label>
Worked for me. Of course any changes you make here will be overwritten each time there’s an update. Hopefully they will fix this problem in the next udpate.