$variables['len'] = count($variables['response']); ?> <table border="1" cellpadding="0" cellspacing="0" > <?php $limit_start = 0; $limit_end = 1; for ($i = 0; $i < $variables['len']; $i++) { // each msgno $variables['msgno'] = intval($variables['response'][$i]['msgno']); $variables['mno'] = intval($variables['response'][$i]['mno']); $variables['mno1'] = intval($variables['response'][$i]['mno1']); // get chat mate $variables['mno1'] = $variables['mno'] == $mno ? $variables['mno1'] : $variables['mno']; // get username chat mate $username = $mc->get_username_by_mno($variables['mno1']); // get from fs_comment table via table id and table name from fs_message $variables['comment_r'] = $mc->posted_modals_comment_Query(array('comment_query' => 'get-all-comment-by-tbn_and_tbid', 'table_name' => 'fs_message', 'table_id' => intval($variables['msgno']), 'orderby' => 'order by date desc', 'limit_start' => $limit_start, 'limit_end' => $limit_end)); $variables['comment'] = $variables['comment_r'][0]['comment']; $variables['mno'] = intval($variables['comment_r'][0]['mno']); $variables['date'] = $variables['comment_r'][0]['date']; $fullname = $mc->get_full_name_by_id($variables['mno1']); // header title desc $mc->header_attribute("OOTD | Trends | Fashion Blogs | Beauty Tips | Fashion Inspiration | Fashion Sponge ", "Fashion Sponge is the easiest & fastest way to: Show your ootd, see the latest trends, discover fashionable people & blogs, get beauty & style tips & find fashion inspiration.", "OOTD | Trends | Fashion Blogs | Beauty Tips | Fashion Inspiration "); ?> <tr> <td> <?php $mc->member_thumbnail_display($mc->ppic_thumbnail, $variables['mno1'], "{$mc->ppic_thumbnail}", null, '35px;'); ?>
$response = $mc->resize_image( array( 'id' =>$table_id, 'source' => "$mc->ppic_orginal/$mno.jpg", 'destination1' => "$mc->ppic_profile/$mppno.jpg", 'destination2' => "$mc->ppic_thumbnail/$mppno.jpg", 'width1' => 420, 'width2' => 170 ) ); // $mc->set_notification_info( 'fs_members' , $mno , null , null , 0 , 'change-profile' ); // $mc->set_session_notification( $mno , 'fs_member_profile_pic' , $mppno , 'updated' , null , null , 'change-profile' , 0 ); $mc->set_notification_info( 'fs_member_profile_pic' , $mppno , null , null , null , 0 , 'change-profile' ); //$mc->go( 'home' ); $mc->go( $mc->get_username_by_mno( $mno ) ); // $mc->go( $mc->get_username_by_mno( $mno ) ); break; case 'profile-timeline': $mptno = $mc->member_profile_timeline_query( array('mno'=>$mno , 'action'=> 'Update Timeline' , 'type'=>'insert-new-profile-pic-db' ) ); $mc->resize_profile_timeline( $mno , $mptno ); $username =$mc->get_username_by_mno( $mno ); echo " profile time line cropped <br>"; // $mc->set_notification_info( 'fs_member_timeline' , $mptno , null , null , 0 , 'change-profile-cover-photo' ); // $mc->set_session_notification( $mno , 'fs_member_timeline' , $mptno , 'updated' , null , null , 'change-profile-cover-photo' , 0 ); $mc->set_notification_info( 'fs_member_timeline' , $mptno , null , null , null , 0 , 'change-profile-cover-photo' ); // $this->set_notification_info( $table_name , $table_id , $action , $action1 , $action2 , $status , $noti_type=null ) $mc->go("$username"); break; case 'posted-look': $plno = $mc->postedlook_query( array('mno' =>$mno , 'type'=>'get-latest-plno' ) );