Ejemplo n.º 1
0
                                        <h4>Recover Pass</h4>

                                </div>
                        </div>
                </div>
        </div>
   
</div>
<?php 
}
if (isset($_SESSION["userid"])) {
    ?>
<div class="portlet light">
<div class="profile-userpic">
        <img src="croplive.php?url=<?php 
    echo get_user_thumb($_SESSION["userid"]);
    ?>
&size=200" class="img-responsive" alt="">
</div>
</div>
<?php 
}
?>
            <div class="portlet light">
                <div class="portlet-title">
                    <div class="caption caption-md">
                            <i class="icon-bar-chart theme-font-color hide"></i>
                            <span class="caption-subject theme-font-color bold uppercase">Featured Post</span>
                    </div>
                </div>
                <div class="portlet-body">
Ejemplo n.º 2
0
$result = mysql_query("SELECT * FROM `" . FRIEND . "` WHERE `from_id`='{$_SESSION['userid']}' AND `status`='notaccept' ORDER BY `slno` DESC");
while ($data = mysql_fetch_array($result)) {
    $eachuser = get_the_user($data["to_id"]);
    ?>
                                                                                                                <div style="margin-bottom:20px"  id="udvx<?php 
    echo $data["slno"];
    ?>
" class="sr col-md-2 col-sm-2 col-xs-3 ">
                                                                                                                    <div class="large-thumb">
                                                                                                                        <div class="row no-margin">
                                                                                                                            <a href="viewprofile.php?<?php 
    echo $eachuser["slno"];
    ?>
" >
                                                                                                                                <img class="frndthmb"  src="croplive.php?url=<?php 
    echo get_user_thumb($eachuser["slno"]);
    ?>
&size=200" alt="<?php 
    echo $eachuser["username"];
    ?>
">
                                                                                                                            </a>
                                                                                                                        </div>
                                                                                                                        <div class="row no-margin text-center">
                                                                                                                            <span class="titlename font-grey-gallery"><?php 
    echo get_user_meta($eachuser["slno"], "display_name");
    ?>
</span>
                                                                                                                        </div> 
                                                                                                                        <div class="row no-margin text-center margin-bottom-10 margin-top-10">
                                                                                                                            <a href="javascript:void()" class="btn red btn-xs" onclick="
<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
    <h4 class="modal-title">Send Message</h4>
</div>
<form action="ajax-send-message.php" id="send_message" onsubmit="return send_meaasge()" method="post" >
<div class="modal-body">
    <div class="form-horizontal">
        <div class="form-group">
            <label class="col-sm-2 control-label">Send to:</label>
            <div class="senderm col-sm-10">
                <a href="viewprofile.php?" class="item-name primary-link" target="_blank">
                    <img class="border-radius-100" src="<?php 
echo BASEURL;
?>
croplive.php?url=<?php 
echo get_user_thumb($_GET["to"]);
?>
&size=35" />
                    <?php 
echo get_user_meta($_GET["to"], "display_name");
?>
                </a>
            </div>
        </div>
        <div class="form-group hidden">
            <label class="col-sm-2 control-label">Title</label>
            <div class="col-sm-10">
                <input type="text" name="title" class="form-control"  placeholder="Title..">
            </div>
        </div>
        <div class="form-group">
Ejemplo n.º 4
0
    if ($data["to_id"] == $_SESSION["userid"]) {
        $userx = $data["from_id"];
    }
    $friends[] = $userx;
}
$fulllist = array_unique(array_merge($followers, $friends));
$fulllist = implode(",", $fulllist);
$sql = "SELECT * FROM `mchp_post` WHERE \n                                                                    `type` LIKE 'share:%' AND \n                                                                    `userid` IN ({$fulllist}) AND \n                                                                    `verified`='yes' AND \n                                                                    `deleted`='no' AND \n                                                                    `status`='publish'\n                                                                    ORDER BY `slno` DESC";
$restimeline = mysql_query($sql);
while ($posrarr = mysql_fetch_array($restimeline)) {
    ?>
                                                                <!-- TIMELINE ITEM -->    
                                                                <div class="timeline-item">
                                                                        <div class="timeline-badge">
                                                                                <img class="timeline-badge-userpic" src="croplive.php?url=<?php 
    echo get_user_thumb($posrarr["userid"]);
    ?>
&size=150">
                                                                        </div>
                                                                        <div class="timeline-body">
                                                                                <div class="timeline-body-arrow">
                                                                                </div>
                                                                                <div class="timeline-body-head">
                                                                                        <div class="timeline-body-head-caption">
                                                                                                <a href="javascript:;" class="timeline-body-title font-blue-madison"><?php 
    echo get_user_meta($posrarr["userid"], "display_name");
    ?>
</a>
                                                                                                <span class="timeline-body-time font-grey-cascade"> <?php 
    echo dateDiff($posrarr["last_update"]);
    ?>
Ejemplo n.º 5
0
    function print_comments($id)
    {
        $children = query($id);
        if (!empty($children)) {
            foreach ($children as $child) {
                $catsingle = fetch_single_val(POST_COMMENT, "`slno`='{$child['id']}'");
                ?>
                                                                             
                                                                              <!--start media-->  
                                                                              <div class="media">
                                                                                    <a href="javascript:;" class="pull-left">
                                                                                        <?php 
                $thmburl = "";
                if ($catsingle["user_id"] != "") {
                    $thmburl = BASEURL . "croplive.php?url=" . get_user_thumb($catsingle["user_id"]);
                } else {
                    $thmburl = BASEURL . get_anonymous_user_thumb();
                }
                ?>
                                                                                    <img alt="" src="<?php 
                echo $thmburl;
                ?>
" class="media-object">
                                                                                    </a>
                                                                                    <div class="media-body">
                                                                                            <div class="row">
                                                                                                <div class="col-md-12">
                                                                                                    <h4 class="media-heading"><?php 
                echo $catsingle["name"];
                ?>
<span>
                                                                                                    <?php 
                echo dateDiff($catsingle["date"]);
                ?>
 ago / 
                                                                                                    
                                                                                                    <?php 
                if ($_SESSION["userid"] == $catsingle["user_id"]) {
                    ?>
                                                                                                    <a href="javascript:;" class="font-red-flamingo" > Delete </a> / 
                                                                                                    <?php 
                }
                ?>
                                                                                                    
                                                                                                    <a href="javascript:;" onclick="$(this).closest('.row').next().slideToggle()"> Reply </a>
                                                                                                    </span>
                                                                                                    </h4>
                                                                                                    <p>
                                                                                                        <?php 
                echo nl2br($catsingle["message"]);
                ?>
                                                                                                    </p>
                                                                                                </div>
                                                                                            </div>
                                                                                            <div class="row"  style="display:none;">
                                                                                                <div class="col-md-12">
                                                                                                    <div class="post-comment">
                                                                                                            <hr>
                                                                                                            <h3>Leave a Comment</h3>
                                                                                                            <form role="form" method="post" action="">
                                                                                                                <div class="row">
                                                                                                                    <div class="col-md-6">
                                                                                                                        <input type="hidden" name="parent" value="<?php 
                echo $child['id'];
                ?>
" />
                                                                                                                        <div class="form-group">
                                                                                                                            <input type="text" name="name" required value="<?php 
                echo get_user_meta($_SESSION["userid"], "display_name");
                ?>
" placeholder="Name.." class="form-control">
                                                                                                                        </div>
                                                                                                                    </div>
                                                                                                                    <div class="col-md-6">
                                                                                                                        <div class="form-group">
                                                                                                                            <input type="text" name="email" required value="<?php 
                echo get_user_meta($_SESSION["userid"], "email");
                ?>
" placeholder="Email.."  class="form-control">
                                                                                                                        </div>
                                                                                                                    </div>
                                                                                                                    <div class="col-md-12">
                                                                                                                        <div class="form-group">
                                                                                                                            <textarea class="col-md-10 form-control" name="message" required rows="4" placeholder="Comment.." ></textarea>
                                                                                                                        </div>
                                                                                                                    </div>
                                                                                                                    <div class="col-md-12">
                                                                                                                        <button class="margin-top-20 btn blue" name="add_comment" type="submit">Post a Comment</button>
                                                                                                                    </div>
                                                                                                                </div>
                                                                                                            </form>
                                                                                                    </div>
                                                                                                </div>
                                                                                            </div>
                                                                                            <?php 
                print_comments($child['id']);
                ?>
                                                                                    </div>
                                                                                    
                                                                            </div>
                                                                            <!--end media--> 
                                                                            
                                                                <?php 
            }
        }
    }
Ejemplo n.º 6
0
function show_post($postid)
{
    $posrarr = get_the_post($postid);
    $postuser = get_the_user($posrarr["userid"]);
    //$posrarr["type"]="rss";
    ?>
<!--Post Header Start----> 
<div class="portlet light ">
    <?php 
    if ($posrarr["type"] != "rss") {
        ?>
    <div class="portlet-title">
            <div class="caption custom-caption-1">
                    <span class="caption-subject bold font-grey-gallery ">
                        
                        <img class="user-pic border-radius-100" src="<?php 
        echo BASEURL;
        ?>
croplive.php?url=<?php 
        echo get_user_thumb($posrarr["userid"]);
        ?>
&size=41">    
                        <?php 
        echo get_user_meta($posrarr["userid"], "display_name");
        ?>
                        <small><br><?php 
        echo get_user_meta($posrarr["userid"], "occupation");
        ?>
</small>
                        
                    </span>

            </div>
            <div class="tools">
                <?php 
        if ($posrarr["userid"] != $_SESSION["userid"]) {
            ?>
                <button 
                    type="button" 
                    class="btn btn-circle btn-default custom-button-1 tooltips"
                    href="ajax-send-msg-html.php?from=<?php 
            echo $_SESSION["userid"];
            ?>
&to=<?php 
            echo $posrarr["userid"];
            ?>
" 
                    data-target="#model_send_msg" 
                    data-toggle="modal"
                    >
                    <i class="icon-envelope"></i>
                    <span>Send Message</span>
                </button>
                <?php 
            if (!is_follow($_SESSION["userid"], $posrarr["userid"])) {
                ?>
                <button type="button" class="btn btn-circle btn-default custom-button-1 tooltips" onclick="dofollow(<?php 
                echo $_SESSION["userid"];
                ?>
,<?php 
                echo $posrarr["userid"];
                ?>
,$(this))"><i class="icon-user-follow"></i><span>Follow <?php 
                echo get_user_meta($posrarr["userid"], "display_name");
                ?>
</span></button>
                <?php 
            } else {
                ?>
                <button type="button" class="btn btn-circle btn-default custom-button-1 tooltips" onclick="dofollow(<?php 
                echo $_SESSION["userid"];
                ?>
,<?php 
                echo $posrarr["userid"];
                ?>
,$(this))"><i class="icon-user-following"></i><span>Follow <?php 
                echo get_user_meta($posrarr["userid"], "display_name");
                ?>
</span></button>
                <?php 
            }
            ?>
                
                
               
                <?php 
        } else {
            ?>
                <div class="btn-group hidden">
                        <button class="btn btn-circle green-haze btn-sm dropdown-toggle" type="button" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
                        Actions <i class="fa fa-angle-down"></i>
                        </button>
                        <ul class="dropdown-menu pull-right" role="menu">
                                <li>
                                        <a href="javascript:;">Unpublish </a>
                                </li>
                                <li>
                                        <a href="javascript:;">Edit Post </a>
                                </li>
                                <li>
                                        <a href="javascript:;">Delete Psot </a>
                                </li>
                        </ul>
                </div>
                <?php 
        }
        ?>
            </div>
    </div>
    <?php 
    }
    ?>
    <div class="portlet-body blog-<?php 
    echo $posrarr["type"];
    ?>
">
        <div class="row">
<!--Post Header End---->     
    
<?php 
    if ($posrarr["type"] == "standard") {
        ?>
 
<!--Starndard post start----> 

            <div class="col-md-5 blog-img blog-tag-data">
                    <img src="<?php 
        echo BASEURL;
        ?>
images/featured_image/<?php 
        echo $posrarr["image"];
        ?>
" alt="" class="img-responsive">

            </div>
            <div class="col-md-7 blog-article">
                    <h3>
                    <a href="<?php 
        echo BASEURL;
        ?>
post/<?php 
        echo $posrarr["parmalink"];
        ?>
"  class="substr">
                    <?php 
        echo $posrarr["name"];
        ?>
</a>
                    </h3>
                    <p>
                      <?php 
        if (trim($posrarr["short_description"]) == "") {
            echo string_sorter(strip_tags($posrarr["description"]), 460);
        } else {
            echo nl2br(string_sorter(strip_tags($posrarr["short_description"]), 460));
        }
        ?>
                    </p>
            </div>
            
<!--Starndard post end---->    
<?php 
    }
    if ($posrarr["type"] == "video") {
        ?>
 
<!--Video post start----> 
            <div class="col-md-12 col-sm-8 col-md-offset-0 col-sm-offset-2 blog-img blog-tag-data">
                    <img src="<?php 
        echo $posrarr["image"];
        ?>
" alt="" class="img-responsive">
                    <div class="videofrm">
                        <img src="<?php 
        echo BASEURL;
        ?>
images/play_icon.png" />
                    </div>
            </div>
            <div class="col-md-12 blog-article">
                    <h3>
                    <a href="<?php 
        echo BASEURL;
        ?>
post/<?php 
        echo $posrarr["parmalink"];
        ?>
"  class="substr">
                    <?php 
        echo $posrarr["name"];
        ?>
</a>
                    </h3>
                    <p>
                      <?php 
        if (trim($posrarr["short_description"]) == "") {
            echo string_sorter(strip_tags($posrarr["description"]), 460);
        } else {
            echo nl2br(string_sorter(strip_tags($posrarr["short_description"]), 460));
        }
        ?>
                    </p>
            </div>
            
<!--Video post end---->    
<?php 
    }
    if ($posrarr["type"] == "link") {
        ?>
 
<!--Link post start----> 
    <div class="col-md-12 newscover">
        <div class="row">
            <?php 
        $desccol = 12;
        if (trim($posrarr["image"]) != "") {
            ?>
            <div class="col-md-5 col-sm-5 col-xs-5 blog-img blog-tag-data">
                    <img src="<?php 
            echo $posrarr["image"];
            ?>
" alt="" class="img-responsive">

            </div>
            <?php 
            $desccol = 7;
        }
        ?>
            <div class="col-md-<?php 
        echo $desccol;
        ?>
 col-sm-<?php 
        echo $desccol;
        ?>
 col-xs-<?php 
        echo $desccol;
        ?>
 blog-article">
                    <h3>
                    <a href="<?php 
        echo BASEURL;
        ?>
post/<?php 
        echo $posrarr["parmalink"];
        ?>
"  class="substr">
                    <?php 
        echo $posrarr["name"];
        ?>
</a>
                    </h3>
                    <p>
                      <?php 
        if (trim($posrarr["short_description"]) == "") {
            echo string_sorter(strip_tags($posrarr["description"]), 160);
        } else {
            echo nl2br(string_sorter(strip_tags($posrarr["short_description"]), 160));
        }
        ?>
                    </p>
                    <p class="font-grey-cascade">
                        <?php 
        $imgmeta = get_post_meta($postid, "source_url");
        $urlarr = parse_url($imgmeta);
        echo $urlarr["host"];
        ?>
                    </p>
            </div>
        </div>
    </div>
<!--Link post end---->      
<?php 
    }
    if ($posrarr["type"] == "gallery") {
        ?>
 
<!--Gallery post start----> 
            <div class="col-md-2 col-sm-2 col-xs-2 text-center">
                    <a class="btn btn-circle btn-default control-left" href="#blog-gallery<?php 
        echo $postid;
        ?>
" role="button" data-slide="prev">
                      <i class="fa fa-angle-left"></i>
                    </a>
            </div>
            <div class="col-md-8 col-sm-8 col-xs-8 blog-img blog-tag-data">
                
                
                
                    <div id="blog-gallery<?php 
        echo $postid;
        ?>
" class="carousel slide" data-ride="carousel">
                        <!-- Wrapper for slides -->
                        <div class="carousel-inner" role="listbox">
                          <?php 
        $imgmeta = get_post_meta($postid, "imgdata");
        $imgmetaarr = explode("[/]", $imgmeta);
        $arr1 = explode("[:]", $imgmetaarr[0]);
        $arr2 = explode("[:]", $imgmetaarr[1]);
        $arr3 = explode("[:]", $imgmetaarr[2]);
        ?>
  
                          <?php 
        for ($i = 0; $i < count($arr1); $i++) {
            ?>
  
                          <div class="item <?php 
            if (!$i) {
                echo "active";
            }
            ?>
">
                            <img src="<?php 
            echo BASEURL;
            ?>
croplive.php?url=images/gallery_post/<?php 
            echo $arr1[$i];
            ?>
&size=500" alt="...">
                            <div class="carousel-caption">
                                <h2><?php 
            echo $arr2[$i];
            ?>
</h2>
                                <p><?php 
            echo string_sorter($arr3[$i], 130);
            ?>
</p>
                            </div>
                          </div>
                          <?php 
        }
        ?>
                        </div>
                      </div>
            </div>
            <div class="col-md-2 col-sm-2 col-xs-2 text-center">
                 <a class="btn btn-circle btn-default control-right" href="#blog-gallery<?php 
        echo $postid;
        ?>
" role="button" data-slide="next">
                     <i class="fa fa-angle-right"></i>
                </a>  
            </div>
            <div class="col-md-12 blog-article">
                    <h3>
                    <a href="<?php 
        echo BASEURL;
        ?>
post/<?php 
        echo $posrarr["parmalink"];
        ?>
"  class="substr">
                    <?php 
        echo $posrarr["name"];
        ?>
</a>
                    </h3>
                    <p>
                      <?php 
        if (trim($posrarr["short_description"]) == "") {
            echo substr(strip_tags($posrarr["description"]), 0, 460);
        } else {
            echo nl2br(substr(strip_tags($posrarr["short_description"]), 0, 460));
        }
        ?>
                    </p>
            </div>
<!--Gallery post end---->    
<?php 
    }
    if ($posrarr["type"] == "rss") {
        ?>
<!--RSS post start----> 
<div class="col-md-12 margin-bottom-10 ">
    <div class="rss-news clearfix">
      <h2 class="no-margin"><?php 
        echo $posrarr["name"];
        ?>
</h2>
      <div class="feeds-div scroller">
      <?php 
        $resfeed = mysql_query("SELECT * FROM `" . POST_META . "` WHERE `post_id`='{$postid}' AND `meta_name`='feed'");
        while ($feed = mysql_fetch_array($resfeed)) {
            $feeddata = $feed["meta_desc"];
            $feedarr = explode("[:]", $feeddata);
            ?>
      <div class="media media-feed list-group-item">
            <a class="pull-left" href="javascript:;">
                <img class="media-object" src="<?php 
            echo $feedarr[3];
            ?>
" style="width: 80px; height: auto;"/>
            </a>
            <div class="media-body">
                    <h4 class="media-heading"><a href="<?php 
            echo $feedarr[1];
            ?>
" target="_blank"><?php 
            echo $feedarr[0];
            ?>
</a></h4>
                    <?php 
            echo string_sorter($feedarr[2], 155);
            ?>
<br>
            </div>
        </div>
      <?php 
        }
        ?>
      </div>
    </div>
</div>

<!--RSS post start----> 
<?php 
    }
    ?>
<div class="col-md-12">
    <?php 
    if ($posrarr["type"] != "rss") {
        ?>
                <ul class="list-inline font-grey-cascade">
                        <li> 
                              
                              <?php 
        if (!post_like_check($_SESSION["userid"], $postid)) {
            ?>
                              <a href="javascript:void()" onclick="dolike(<?php 
            echo $postid;
            ?>
,<?php 
            echo $_SESSION["userid"];
            ?>
,$(this))"  >Like</a>
                              <?php 
        } else {
            ?>
                              <a href="javascript:void()" onclick="dounlike(<?php 
            echo $postid;
            ?>
,<?php 
            echo $_SESSION["userid"];
            ?>
,$(this))"  >Unlike</a>
                              <?php 
        }
        ?>
                              <i class="fa fa-circle" style="font-size: 4px;  vertical-align: text-bottom;"></i>
                              <a href="<?php 
        echo BASEURL;
        ?>
post/<?php 
        echo $posrarr["parmalink"];
        ?>
#postcomment">
                                  Comment
                              </a>
                              &nbsp;&nbsp;
                        </li>
                        
                        <li title="<?php 
        echo date("F j, Y, g:i a", strtotime($posrarr["last_update"]));
        ?>
">
                                <i class="fa fa-calendar"></i><?php 
        echo dateDiff($posrarr["last_update"]);
        ?>
 ago
                        </li>
                        <li>
                                <i class="fa fa-eye"></i> <?php 
        echo count_post_viewer($postid);
        ?>
 Views
                        </li>
                        <li>
                                <i class="fa fa-comments"></i>
                                
                                <?php 
        echo count_post_comment($postid);
        ?>
 Comments </a>
                        </li>
                        <li>
                              <i class="fa fa-thumbs-up"></i> <span id="like<?php 
        echo $postid;
        ?>
"><?php 
        echo count_post_like($postid);
        ?>
</span> Likes
                        </li>
                </ul>
    <?php 
    } else {
        $rsslink = get_post_meta($postid, "rss_link");
        ?>
    <p class="font-grey-cascade no-margin">
        <i class="fa fa-rss"></i> <?php 
        echo $posrarr["name"];
        ?>
 &nbsp;&nbsp;
        <i class="fa fa-calendar"></i> <?php 
        echo dateDiff($posrarr["last_update"]);
        ?>
        <span class="pull-right"><a href="<?php 
        echo $rsslink;
        ?>
">See More</a></span>
    </p>
    <?php 
    }
    ?>
            </div> 
    </div>
</div>
</div>
<?php 
}
Ejemplo n.º 7
0
                                                                                                    </p>

                                                                                            </div>
                                                                                            <hr>
                                                                                            <div class="form-horizontal" id="replyform" style="display:none;">
                                                                                                <form method="post" action="">
                                                                                                    
                                                                                                <div class="form-group">
                                                                                                    <label class="col-sm-2 control-label">Send to:</label>
                                                                                                    <div class="senderm col-sm-10">
                                                                                                        <a href="viewprofile.php?<?php 
        echo $message["to"]["username"];
        ?>
" target="_blank">
                                                                                                            <img src="croplive.php?url=<?php 
        echo get_user_thumb($message["to"]["slno"]);
        ?>
&size=25"> <?php 
        echo $message["to"]["username"];
        ?>
  </a> 
                                                                                                        <input type="hidden" name="sendto" value="<?php 
        echo $message["from"]["slno"];
        ?>
">
                                                                                                        <input type="hidden" name="replyof" value="<?php 
        echo $_GET['message'];
        ?>
">
                                                                                                    </div>
                                                                                                </div>