Maligno
Forum Replies Created
-
All my sites with the same problem.
So a translation can break a site?
I think we should consider preventing this.??
I think I don’t have that.
I’m testing before buying.:/
Forum: Plugins
In reply to: [Display Tweets] Tweet date time at correct time zoneThis should help:
https://www.deluxeblogtips.com/2012/10/wordpress-date-time.htmlForum: Plugins
In reply to: [Display Tweets] No links to feed or individual tweets?link to tweets should be:
https://twitter.com/SCREEN_NAME/status/ID_STR
so, you will need to add (for getting de screen name):
$settings = $this->validate_settings( get_option( 'displaytweets_settings' ) );
inside the show() function and then use this for link:
https://twitter.com/'.$settings['screen_name'].'/status/'.$this->format_tweet($tweet->id_str)
$tweet->id_str has the tweet id
Example:
echo '<p>{$this->format_tweet( $tweet->text )}<br /><small class="muted"><a href="https://twitter.com/'.$settings['screen_name'].'/status/'.$this->format_tweet($tweet->id_str).'">- {$posted_since}</a></small></p>';
Forum: Plugins
In reply to: [Display Tweets] Can date and time be displayed as time since tweet?You can use this function and then on 589 on displaytweets.php
change:$posted_since = apply_filters( 'displaytweets_posted_since', humanTiming(date(strtotime( $tweet->created_at ))) );
function humanTiming ($time){ $time = time() - $time; // to get the time since that moment $tokens = array ( 31536000 => 'year', 2592000 => 'month', 604800 => 'week', 86400 => 'day', 3600 => 'hour', 60 => 'minute', 1 => 'second' ); foreach ($tokens as $unit => $text) { if ($time < $unit) continue; $numberOfUnits = floor($time / $unit); return $numberOfUnits.' '.$text.(($numberOfUnits>1)?'s':''); } }
Me too ??
Thanks Alvaroz, that worked!!
??
No Javascript errors.. :S
It look like an operation problem…This only happens on October 10 2010 to October 31 2010, October 9 2011 to October 31 2011, October 14 2012 to October 31 2012.
Always just on the month October..Can find the problem, but if a get it I’ll post it here…
It was my server configuration problem… I’dont have access to its configuration so I used the .htaccess file.
I fix it setting:
AddDefaultCharset UTF-8
in the .htaccess fileI found the problem reading my phpinfo() information:
<?php phpinfo(); ?>
If you have similar problems, I recommend reading:
https://www.phpwact.org/php/i18n/charsets