Jump to content

Mekaboo

Members
  • Posts

    11
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Mekaboo

  1. Sorry for the late repsonse...was feeling a tad under the weather. Thank ya so very much will make changes😊❤️
  2. Sorry about that @Ingolme [code] <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script> <script type="text/javascript" src="js/jquery-3.2.1.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ windowOnScroll(); }); function windowOnScroll() { $(window).on("scroll", function(e){ if ($(window).scrollTop() == $(document).height() - $(window).height()){ if($(".post-item").length < $("#total_count").val()) { var lastId = $(".post-item:last").attr("id"); //getMoreData(lastId); } } }); } function getMoreData(lastId) { $(window).off("scroll"); $.ajax({ url: 'getMoreData.php?lastId=' + lastId, type: "get", beforeSend: function () { $('.ajax-loader').show(); }, success: function (data) { setTimeout(function() { $('.ajax-loader').hide(); $("#post-list").append(data); windowOnScroll(); }, 1000); } }); } </script> [/code]
  3. Hey all!! Uncaught ReferenceError: jQuery is not defined jQuery 2 I added the most recent JQuery(standalone and CDN) and still getting this error. How do I get rid of this please? Thank ya☺️
  4. Hey all!!! Working on creating social media timeline post system like FB. Have what I want in place but unsure of how to connect. End result is user to add what they want within the dropdown menus and the output would show within the card and people can like and comment. Also results will show on dashboard as well as profile page. I have PHP on the back end just need help on front. Here is my code: <div id="main"> <ul class="nav justify-content-center"> <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <span style="font-size: 48px; color: #C0C0C0;"> <i class="fas fa-pencil-alt"></i> </span> </a> <div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink"> <form action="upload.php" method="post" enctype="multipart/form-data"> <textarea rows="4" cols="50" name="comment" form="usrform">Share thoughts</textarea> Upload Image: <input type="file" name="fileToUpload" id="fileToUpload"> <input type="submit" value="Upload Image" name="submit"> </form> <button type="submit" form="nameform" value="Submit">Submit</button> </div> </li> <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <span style="font-size: 48px; color: #C0C0C0;"> <i class="fas fa-video"></i> </span> </a> <div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink"> <form action="upload.php" method="post" enctype="multipart/form-data"> <div class="col-lg-10"> <input type="text" name="page_url" class="form-control" id="input_url" placeholder="Page embed URL" value="<?php echo !empty($userData['_url'])?$userData['url']:''; ?>"> <input type="submit" class="btn btn-primary" name="proSubmit"> </div> </form> </div> </li> </ul> </div> <div class="card hovercard" style="width:400px"> <div class="card-body info"> <div class="title"> <a href="#"><?php echo $record['uname']; ?></a> </div> <div class="desc"> <a target="_blank" href="<?php echo $record['file']; ?>"><?php echo $record['text']; ?></a></div> <div class="desc"><?php echo $record['url']; ?></div> </div> </div> <div class="comment-form-container"> <form id="frm-comment"> <div class="input-row"> <input type="hidden" name="comment_id" id="commentId" placeholder="Name" /> <input class="input-field" type="text" name="name" id="name" placeholder="Name" /> </div> <div class="input-row"> <textarea class="input-field" type="text" name="comment" id="comment" placeholder="Add a Comment"> </textarea> </div> <div> <input type="button" class="btn-submit" id="submitButton" value="Publish" /> </div> </form> </div> <div id="output"></div> Also attached how page looks online Thank ya
  5. Thank ya so very much @Ingolme!!! Wasn't getting any issue signs just a blank page. Will add your suggestion to my page as well as look into the guides you sent❤️
  6. Hello to all!! Im having an issue getting edit profile results to show up on my profile page. Here are my codes: proedit.php <div id="main"> <form id="uploadForm" action="proupdate.php" method="post"> <div id="targetLayer">No Image</div> <div id="uploadFormLayer"> <input name="userImage" type="file" class="inputFile" /><br/> <input type="submit" value="Submit" class="btnSubmit" /> <form action="proupdate.php" method="post"> uname: <input type="text" name="uname"><br> bio: <input type="text" id="name" name="name" required minlength="4" maxlength="8" size="10"><br> <input type="submit" name="edit"> </form> </div> proupdate.php session_start(); include "connect.php"; if(isset($_POST['edit'])) { $id=$_SESSION['id']; $uname=$_POST['uname']; $bio= $_POST['bio']; $select= "select * from users where id='$id'"; $sql = mysqli_query($conn,$select); $row = mysqli_fetch_assoc($sql); $res= $row['id']; if($res === $id) { $update = "update users set uname='$uname',bio='$bio' where id='$id'"; $sql2=mysqli_query($conn,$update);if($sql2) { /*Successful*/ header('location:pro.php'); } else { /*sorry your profile is not update*/ header('location:proedit.php'); } } else { /*sorry your id is not match*/ header('location:proedit.php'); } }?> <?php if(is_array($_FILES)) { if(is_uploaded_file($_FILES['userImage']['tmp_name'])) { $sourcePath = $_FILES['userImage']['tmp_name']; $targetPath = "images/".$_FILES['userImage']['name']; if(move_uploaded_file($sourcePath,$targetPath)) { ?> <img class="image-preview" src="<?php echo 'pro.php'; ?>" class="upload-preview" /> <?php } } } pro.php <div id="main"> <div class="page-content"><?php include 'proupdate.php';?></div> </div> Appreciate the help☺️
  7. Hello! Can anyone recommend a simple user profile that comes with edit profile and avatar upload that uses php? I want to add one to my website? Thank ya for the help!! 💗💗, Mekaboo
  8. Thank ya kindly for responding❤️Im actually building a site using Codeigniter (PHP) which I enjoy doing, I wanted to add the profile card because I like the simpleness that it had. I couldn't find examples of how to offer an edit page for it and that is why I was seeking advice. Im taking my time and slowly learning no question about it 😊
  9. Hello! Im interested in adding the Bootstrap profile card to my site but was curious on how to create an edit page for this. I want to include avatar upload and input tags that would be used in an advanced search engine I will add to the site. Here is the link to what I what I want to use: https://www.w3schools.com/howto/howto_css_profile_card.asp Thank you for your help, Mekaboo
  10. Hello all! Im Timeka a 38 y.o. self taught coder from Washington, DC USA. In the 4 years of teaching myself Ive created sites for me and a few clients. Right now putting together a PHP member based site for someone
×
×
  • Create New...