$androidIcon = '<a href="' . $android . '"><span class="android float-left med-large-font opacity-hover center-text bold small-padding-top font-red"></span></a>'; $appleIcon = '<a href="' . $apple . '"><span class="apple float-left med-large-font opacity-hover center-text bold small-padding-top font-red"></span></a>'; } else { if ($android != '' && $apple == '') { $androidIcon = '<a href="' . $android . '"><span class="android float-left med-large-font opacity-hover center-text bold small-padding-top font-red"></span></a>'; $appleIcon = '<span class="apple float-left med-opacity med-large-font center-text bold small-padding-top font-red">X</span>'; } else { if ($android == '' && $apple != '') { $androidIcon = '<span class="android float-left med-opacity med-large-font center-text bold small-padding-top font-red">X</span>'; $appleIcon = '<a href="' . $apple . '"><span class="apple float-left med-large-font opacity-hover center-text bold small-padding-top font-red"></span></a>'; } } } } $timeAgoObject = new convertToAgo(); $convertedTime = $timeAgoObject->convert_datetime($postdate); // Convert Date Time $when = $timeAgoObject->makeAgo($convertedTime); if ($image == 'na') { $photo = 'style/no-photo1.svg'; } else { $photo = 'permUploads/' . $image; } $percentage = 0; if ($price != 0) { $price1 = number_format($price); $price = '$' . $price1; } else { if ($price == 0) { $price = "FREE"; }
// ------- MEMBER BLABS OUTPUT CONSTRUCTION --------- /////// Mechanism to Display Pic if (file_exists($check_pic)) { $blab_pic = '<div style="overflow:hidden; height:40px;"><a href="profile.php?id=' . $id . '"><img src="' . $check_pic . '" width="40px" border="0" /></a></div>'; } else { $blab_pic = '<div style="overflow:hidden; height:40px;"><a href="profile.php?id=' . $id . '"><img src="' . $default_pic . '" width="40px" border="0" /></a></div>'; } /////// END Mechanism to Display Pic $sql_blabs = mysql_query("SELECT id, mem_id, the_blab, blab_date, blab_type, device FROM blabbing WHERE mem_id='{$id}' ORDER BY blab_date DESC LIMIT 30"); while ($row = mysql_fetch_array($sql_blabs)) { $blabid = $row["id"]; $blabber_id = $row["mem_id"]; $the_blab = $row["the_blab"]; $the_blab = $activeLinkObject->makeActiveLink($the_blab); $blab_date = $row["blab_date"]; $convertedTime = $myObject->convert_datetime($blab_date); $whenBlab = $myObject->makeAgo($convertedTime); $blab_date = $row["blab_date"]; $blab_type = $row["blab_type"]; $blab_device = $row["device"]; $blabberDisplayList .= ' <table style="background-color:#FFF; border:#999 1px solid; border-top:none;" cellpadding="5" width="100%"> <tr> <td width="10%" valign="top">' . $blab_pic . '</td> <td width="90%" valign="top" style="line-height:1.5em;"> <span class="liteGreyColor textsize9">' . $whenBlab . ' <a href="profile.php?id=' . $blabber_id . '"><strong>' . $mainNameLine . '</strong></a> via <em>' . $blab_device . '</em></span><br /> ' . $the_blab . ' </td> </tr></table>'; } // ------- END MEMBER BLABS OUTPUT CONSTRUCTION ---------
$reviews = "" . $statusnumrows2 . " Reviews"; } } } $comments = ''; $comment_count = "No Comments"; $sql = "SELECT * FROM comments WHERE postid='{$statusId}' ORDER BY postdate DESC LIMIT 999999999"; $query = mysqli_query($db_conx, $sql); $statusnumrows = mysqli_num_rows($query); if ($statusnumrows > 0) { while ($row = mysqli_fetch_array($query, MYSQLI_ASSOC)) { $commenter = $row['user']; $comment = $row['data']; $comment_date = $row['postdate']; $timeAgoObject = new convertToAgo(); $convertedTime = $timeAgoObject->convert_datetime($comment_date); // Convert Date Time $comment_date = $timeAgoObject->makeAgo($convertedTime); $sql2 = "SELECT * FROM users WHERE username='******' LIMIT 1"; $query2 = mysqli_query($db_conx, $sql2); $statusnumrows2 = mysqli_num_rows($query2); while ($row = mysqli_fetch_array($query2, MYSQLI_ASSOC)) { $comment_name = $row['name']; $comment_avatar = $row['avatar']; } $comments .= '<div class="med-padding"><div class="tiny-square profile_p inline-block" style="' . $comment_avatar . '"></div><a class="small-margin-left bold font-blue med-font" href="user.php?u=' . $commenter . '">' . $comment_name . '</a><span class="small-font font-gray small-margin-left">' . $comment_date . '</span><br><div class="med-margin-left tiny-margin-top">' . $comment . '</div></div>'; } } else { $comments = '<h2 class="center-text font-gray bold no-comment">No Comments Found.</h2>'; } if ($statusnumrows == 1) {
$section_title = $row["section_title"]; $section_id = $row["section_id"]; $thread_title = $row["thread_title"]; $post_body = $row["post_body"]; } $all_responses = ""; $sql = mysql_query("SELECT * FROM forum_posts WHERE otid='{$thread_id}' AND type='b'"); $numRows = mysql_num_rows($sql); if ($numRows < 1) { $all_responses = '<div id="none_yet_div">Nobody has responded to this yet, you can be the first.</div>'; } else { while ($row = mysql_fetch_array($sql)) { $reply_author = $row["post_author"]; $reply_author_id = $row["post_author_id"]; $date_n_time = $row["date_time"]; $convertedTime = $myAgoObject->convert_datetime($date_n_time); $whenReply = $myAgoObject->makeAgo($convertedTime); $reply_body = $row["post_body"]; $all_responses .= '<div class="response_top_div">Re: ' . $thread_title . ' • ' . $whenReply . ' ' . $reply_author . ' <!--<a href="../profiles/profile.php?id=' . $reply_author_id . '"> ' . $reply_author . '</a>--> said:</div> <div class="response_div">' . $reply_body . '</div>'; } } $replyButton = '<input name="myBtn1" type="submit" value="Post a Response" style="font-size:16px; padding:12px;" onmousedown="javascript:toggleForm(\'reponse_form\');" />';
<link type="text/css" rel="stylesheet" href="css/style.css"> <title></title> </head> <body> <div id="container"> <?php $query = mysqli_query($con, "SELECT * FROM content"); while ($row = mysqli_fetch_array($query)) { $date = $row['date']; $timeAgoObject = new convertToAgo(); $ts = $date; $convertedTime = $timeAgoObject->convert_datetime($ts); $when = $timeAgoObject->makeAgo($convertedTime); ?> <div class="wrapper"> <h2><a href="viewblog.php?id=<?php echo $row['id']; ?> "><?php echo $row['subject']; ?> </a></h2> <h4><?php echo $when; ?> </h4>