0) { if($weeks == 1) { echo "1$w_ago"; } else { echo "$weeks$w_ago"; } } } if($shout_timeleft >= $tstamp) { $shout_yn = "yes"; } else { $shout_yn = "no"; } $shouuut_q = mysqli_query($conx, "SELECT username,md_verf FROM accounts WHERE uid='$shout_uid'"); while($shouuut_r = mysqli_fetch_assoc($shouuut_q)) { $shout_username = $shouuut_r['username']; $shout_verf = $shouuut_r['md_verf']; if($shout_verf == 'yes') { $verif_check = ""; } else { $verif_check = ""; } } $usrrrrri_q = mysqli_query($conx, "SELECT username_color,text_color FROM user_theme_colors WHERE uid='$shout_uid' && theme_id='$g_themeid'"); while($usrrrri_r = mysqli_fetch_assoc($usrrrrri_q)) { $shoutusername_color = $usrrrri_r['username_color']; $shoutchat_tcolor = $usrrrri_r['text_color']; } $string = $shout_text; include("../inc/replace.php"); if($shout_yn == "no") { echo "
There aren't any shouts right now.
Tap to send a shout.

"; } else { $did_you_like = mysqli_num_rows($slcq = mysqli_query($conx, "SELECT id FROM shout_likedis WHERE shout_id='$shout_id' && likedis='like' && uid='$u_uid'")); if($did_you_like >= '1') { $like_css = "border: 1px solid $shoutusername_color; background-color: $shoutchat_tcolor;"; $like_font = "color: $shoutusername_color;"; } else { $like_css = "border: 1px solid $shoutchat_tcolor; background-color: $shoutusername_color;"; $like_font = "color: $shoutchat_tcolor;"; } $did_you_dislike = mysqli_num_rows($slcq = mysqli_query($conx, "SELECT id FROM shout_likedis WHERE shout_id='$shout_id' && likedis='dislike' && uid='$u_uid'")); if($did_you_dislike >= '1') { $dislike_css = "border: 1px solid $shoutusername_color; background-color: $shoutchat_tcolor;"; $dislike_font = "color: $shoutusername_color;"; } else { $dislike_css = "border: 1px solid $shoutchat_tcolor; background-color: $shoutusername_color;"; $dislike_font = "color: $shoutchat_tcolor;"; } echo "
"; echo release_time($shout_timeleft); echo " left"; echo"
$string
$verif_check $shout_username
"; $like_cnt = mysqli_num_rows($slcq = mysqli_query($conx, "SELECT id FROM shout_likedis WHERE shout_id='$shout_id' && likedis='like'")); $dislike_cnt = mysqli_num_rows($slcq = mysqli_query($conx, "SELECT id FROM shout_likedis WHERE shout_id='$shout_id' && likedis='dislike'")); if($like_cnt == '0') { $like_likes = "likes"; } elseif($like_cnt == '1') { $like_likes = "like"; } else { $like_likes = "likes"; } if($dislike_cnt == '0') { $dislike_dislikes = "dislikes"; } elseif($dislike_cnt == '1') { $dislike_dislikes = "dislike"; } else { $dislike_dislikes = "dislikes"; } echo "$like_cnt $like_likes, $dislike_cnt $dislike_dislikes"; echo "

"; } } ?>