paulson101
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: PHP code is using UTC not LocalThe reason I think for the original way, is because I have complex divs inside the areas where the day is, with different rotating information for each. The label was more of a place holder.
Forum: Fixing WordPress
In reply to: PHP code is using UTC not Localto get it to be PST I had Peter from Silver Maple Design Help:
‘<?php $today = date(‘N’, strtotime(‘- 7 hours’));
if( $today == 1) { ?>
<div class=”monday”>monday</div>
<?php } elseif( $today == 2 ) { ?>
<div class=”tueday”>tuesday</div>
<?php } elseif( $today == 3 ) { ?>
<div class=”wednesday”>wednesday</div>
<?php } elseif( $today == 4 ) { ?>
<div class=”thursday”>thursday</div>
<?php } elseif( $today == 5 ) { ?>
<div class=”friday”>friday</div>
<?php } elseif( $today == 6 ) { ?>
<div class=”saturday”>saturday</div>
<?php } elseif( $today == 7 ) { ?>
<div class=”sunday”>sunday</div>
<?php } ?>’This works perfect, hope it helps others in the future.
Forum: Fixing WordPress
In reply to: PHP code is using UTC not Localok changed that, but now it isn’t outputting anything. Any other ideas? Even for achieving the same effect?
Forum: Fixing WordPress
In reply to: PHP current day for a menyI tried going the GMT offset even and it didn’t change anything but the time.. weirest thing.
Forum: Fixing WordPress
In reply to: PHP current day for a menyI am in Pacific, up in BC canada.
well I have tried the shortcodes in posts, widgets, and in html/php templates. and they just show up as regular text?
also when I use the code:
<?php $baur_plugin = new baur_Plugin();
$top_users = $baur_plugin->get_top_users(5);
foreach ($top_users as $user){
$user_info = get_userdata($user[‘user_id’]);
echo $user_info->user_login . “
title: “. $user_rank[‘title’] . “
Points: ” . $user_rank[‘points’];
echo “
“;
}
?>it shows a list of users,
each user has the same amount of points as the person that is logged in,
and it doesn’t show if everyone is logged out?Any ideas?
haha, I went there before and they weren’t up for me. I see them now! this is excellent. However the shortcodes still do not work for me, but the PHP code did so that is awesome!
That looks really good! However I think I am doing something wrong with the shortcodes. they dont seem to give any values. I would love the php code that would give me a list of say the top 10 ranked users?
I love the unlimited titles feature, that is super helpful!
thanks for your hard work!
I would really really appreciate a top rated. It is a very key part of the website I am setting up right now. And to my knowledge you are the only guy with this type of plugin.
Do you have an estimate for how long before it is completed?
I really need to be able to show a list of the top rated people on a site I am doing. Could you show me how to show a list to users if there is no one logged in please!