Jump to content

Woody777

Members
  • Posts

    31
  • Joined

  • Last visited

Woody777's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. No, can you go to this website www.vimeo.com. you will see the top part is moving, I know this is a video background but something in that idea, but it has to be according to the current weather. Well is that even possible?
  2. Sorry I do not understand, so you are saying I need to take this wallpaper and make it look like the current weather?
  3. Good Day guys I need some help with something that I am busy with. I have a wallpaper that need to get weather effects on it but it has to be according to the current weather status and time. The wallpaper is in the attached. I have searched the net the whole day now and cant find what I am looking for. Let me give an example: If it rains the background wallpaper must have the rainy look and be wet, when its sunny there need to be a sun and the background must be brighter. Please help me with this.
  4. Yes I have followed that tutorial and done exactly what they did. I will have a look. thank you for the reply
  5. Hi there guys I have a problem that I can't seem to get fixed. Below Is the code I am using and the Link to the Tutorial: http://fearlessflyer.com/create-an-awesome-photo-gallery-with-fancybox-and-timthumb/ <?php $path = 'http://' . $_SERVER['SERVER_NAME'] . 'moment/uploads/'; $files = scandir('uploads/'); ?> <ul> <?php foreach ($files as $file){ if ($file == '.' || $file == '..'){ echo ''; } else { ?> <li ><a href="<?php echo $path . $file; ?>" rel="lightbox"><img src="timthumb.php?src=<?php echo $path . $file; ?>&h=194&w=224&zc=1&q=100" /></a></li> <?php } }?> </ul> <!-- FANCYBOX --> <script type='text/javascript' src='assets/js/jquery.fancybox.js'></script> <script type='text/javascript' src='assets/js/jquery.mousewheel-3.0.6.pack.js'></script> <link rel='stylesheet' href='assets/css/jquery.fancybox.css' /> <script> $(document).ready(function(){ $("a[rel=lightbox]").fancybox({ 'transitionIn' : 'elastic', 'transitionOut' : 'elastic' }); }); </script> My pictures and everything is working but when I click on the image to open up in a lightbox it gives me an error: The Requested Content Cannot Be Loaded, Please Try Again Later. In the attached is a image of the error
  6. Thank you for the reply, this effect is what I am looking for but I need help with the mySQL, I have my login in page and all the other thingss set up, I used the CRUD Operation, But I am struggeling with the display from my database to my website, my website is like a metro responsive so it only have an index page and all the other pages are inside it.
  7. Hi guys I am busy with a website for myself and need some help on this, because I am stuck and not getting this right. Can someone tell me where is a tutorial or where I can find a code to help me with this , I have attached a pictures on what I need and want. the second image is what need to happen when someone click on the image in the Portfolio Below Is the html code for this Portfolio Gallery but need it to be like in a database where I can upload or add new work. <!-- PORTFOLIO --> <div class="row portfolio-page"> <div class="hide" id="project-info"> <div id="content"> <i class="fa-times fa back"></i> <div class="row"> <div class="large-11 columns"> <h2 class="project-title">Super Design</h2> </div> <div class="large-6 columns"> <div class="project-images"> <div class="item-list"> <ul class=""> <li> <a href="#"> <img width="500" height="380" alt="13tndZF" class="attachment-project-thumb" src="assets/images/12.jpg"> </a> </li> </ul> </div> </div> </div> <div class="large-6 columns project-content"> <p>Donec pulvinar porttitor felis ac tincidunt. Quisque sit amet ligula quis lacus pellentesque luctus consequat aliquam neque. Nunc ac elit eu odio consequat rutrum. Suspendisse nec facilisis turpis. </p> <p>Proin egestas nisl in nibh condimentum, nec ornare erat egestas. Fusce dui est, gravida ut sem vitae, tincidunt pharetra massa. In erat libero, fermentum suscipit pretium vel, eleifend vitae odio. Nullam quis mi velit. Cras ut aliquet orci.</p> <p>Curabitur sollicitudin massa quis magna cursus, a auctor dolor imperdiet. Nullam ultrices pretium mauris, vel fermentum nisl venenatis ac. Aenean adipiscing lorem a purus viverra, eu</p> </div> </div> </div> </div> <ul class="small-block-grid-1 large-block-grid-3"> <li class="article portfolio-item" id="160"> <figure> <img width="500" height="380" src="assets/images/12.jpg" alt="13tndZF" /> <figcaption class="text-center"> <h3>Super Design</h3> </figcaption> </figure> <span class="plus-icon flipOutX"><i class="fa-plus fa"></i></span> </li> <li class="article portfolio-item" id="157"> <figure> <img width="500" height="380" src="assets/images/13.jpg" alt="1j5JfNg" /> <figcaption class="text-center"> <h3>Cool Project</h3> </figcaption> </figure> <span class="plus-icon flipOutX"><i class="fa-plus fa"></i></span> </li> <li class="article portfolio-item" id="153"> <figure> <img width="500" height="380" src="assets/images/14.jpg" alt="1m7ZhI3" /> <figcaption class="text-center"> <h3>New Project</h3> </figcaption> </figure> <span class="plus-icon flipOutX"><i class="fa-plus fa"></i></span> </li> <li class="article portfolio-item" id="94"> <figure> <img width="500" height="380" src="assets/images/15.jpg" alt="1a2n0Ck" /> <figcaption class="text-center"> <h3>Sed porttitor</h3> </figcaption> </figure> <span class="plus-icon flipOutX"><i class="fa-plus fa"></i></span> </li> <li class="article portfolio-item" id="79"> <figure> <img width="500" height="380" src="assets/images/16.jpg" alt="7714491824_ef36a096ff_b" /> <figcaption class="text-center"> <h3>Kid Play</h3> </figcaption> </figure> <span class="plus-icon flipOutX"><i class="fa-plus fa"></i></span> </li> <li class="article portfolio-item" id="73"> <figure> <img width="500" height="380" src="assets/images/17.jpg" alt="8364043731_9da828b5c7_h" /> <figcaption class="text-center"> <h3>Project Two</h3> </figcaption> </figure> <span class="plus-icon flipOutX"><i class="fa-plus fa"></i></span> </li> <li class="article portfolio-item" id="71"> <figure> <img width="500" height="380" src="assets/images/18.jpg" alt="almond-blossom-5378_1280" /> <figcaption class="text-center"> <h3>Project One</h3> </figcaption> </figure> <span class="plus-icon flipOutX"><i class="fa-plus fa"></i></span> </li> <li class="article portfolio-item" id="96"> <figure> <img width="500" height="380" src="assets/images/19.jpg" alt="Youthful learners" /> <figcaption class="text-center"> <h3>Etiam at commodo</h3> </figcaption> </figure> <span class="plus-icon flipOutX"><i class="fa-plus fa"></i></span> </li> <li class="article portfolio-item" id="14"> <figure> <img width="500" height="380" src="assets/images/20.jpg" alt="9862145525_c08b245398_h" /> <figcaption class="text-center"> <h3>Project 1</h3> </figcaption> </figure> <span class="plus-icon flipOutX"><i class="fa-plus fa"></i></span> </li> </ul> </div> <!-- END PORTFOLIO/> --> </div> </section>
  8. Good Day Here is the code of my readmore page where everything is displayed right? $pdo = Database::connect(); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $sql = "SELECT * FROM properties where PropertyId = ?"; $q = $pdo->prepare($sql); $q->execute(array($propertyid)); $dataproperty = $q->fetch(PDO::FETCH_ASSOC); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $sql1 = "SELECT * FROM images WHERE PropertyId = ?"; $q1 = $pdo->prepare($sql1); $q1->execute(array($propertyid)); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $sql2 = "SELECT * FROM agent WHERE PropertyId = ?"; $q2 = $pdo->prepare($sql2); $q2->execute(array($propertyid)); } echo '<div class="col-md-12">'; while ($row = $q1->fetch(PDO::FETCH_ASSOC)) { echo '<a href="'.$row['ImageUrl'].'" data-lightbox="images"><img width="200px" src="'.$row['ImageUrl'].'"></a>'; } echo '<div class="proj_descr1"><h1>'. $dataproperty['Title'] . '</h1></div>'; echo '<div class="proj_descr_txt">'.'<h4><b>Description: </b></h4>'. $dataproperty['Description'] . '</div>'; But here I have a issue, because here is to display my images of the agents from my agents disrectory: while ($row2 = $q2->fetch(PDO::FETCH_ASSOC)) { echo '<img width="200" scr="'.$row2['AgentImage'].'">'; } echo '<div class="proj_descr_txt">'.'<h4><b>Contact Details: </b></h4>'. $dataproperty['ContactDetails'] . '</div>'; And here I have the code of my create page where my properties get created, the last 2 bits of code is for my images uploads but it needs to upload it to separate directories like it is indicated: $pdo = Database::connect(); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $sql = "INSERT INTO properties (title,description,country,location,status,type,bedrooms,bathrooms,parking,price,fromthe,contactdetails) values(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"; $q = $pdo->prepare($sql); $q->execute(array($title,$description,$country,$location,$status,$type,$bedrooms,$bathrooms,$parking,$price,$fromthe,$contactdetails)); Database::disconnect(); } $last_id = $pdo->lastInsertId(); $directory="uploads/"; $a=0; foreach ($_FILES['file']['name'] as $nameFile) { $ext = pathinfo($nameFile, PATHINFO_EXTENSION); if(is_uploaded_file($_FILES['file']['tmp_name'][$a])) { move_uploaded_file($_FILES['file']['tmp_name'][$a], $directory.$last_id."_".$a.".".$ext); } $fileandpath = $directory.$last_id."_".$a.".".$ext; $pdo1 = Database::connect(); $pdo1->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $sql1 = "INSERT INTO images (propertyid,imageurl) values(?, ?)"; $q1 = $pdo1->prepare($sql1); $q1->execute(array( $last_id,$fileandpath)); Database::disconnect(); $a++; } $last_id1 = $pdo->lastInsertId1(); $directory1="agents/"; $a1=0; foreach ($_FILES1['file']['name'] as $nameFile1) { $ext1 = pathinfo($nameFile1, PATHINFO_EXTENSION); if(is_uploaded_file($_FILES1['file']['tmp_name'][$a1])) { move_uploaded_file($_FILES1['file']['tmp_name'][$a1], $directory1.$last_id1."_".$a1.".".$ext1); } $fileandpath1 = $directory1.$last_id1."_".$a1.".".$ext1; $pdo2 = Database::connect(); $pdo2->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $sql2 = "INSERT INTO agent (propertyid,agentimage) values(?, ?)"; $q2 = $pdo2->prepare($sql2); $q2->execute(array($last_id1,$fileandpath1)); Database::disconnect(); $a1++; } header("Location: admin_list.php"); } Here I have another code from my create page: <div class="control-group"> <label class="control-label">Contact Details:</label> <div class="controls"> <textarea name="contactdetails" type="text" placeholder="ContactDetails" cols="30" rows="10" value="<?php echo !empty($contactdetails)?$contactdetails:'';?>"></textarea> <?php if (!empty($contactdetailsError)): ?> <span class="help-inline"><?php echo $contactdetailsError;?></span> <?php endif;?> </div> </div> This code is for the images, the Agent Images is for the photo of the agent and there company logo: <div class="control-group"> <label class="control-label">Agent Images:</label> <div class="controls"> <input type="file" name="file[]" multiple><br /> </div> </div> This code is for the images of the properties: <div class="control-group"> <label class="control-label">Images:</label> <div class="controls"> <input type="file" name="file[]" multiple><br /> </div> </div> So the problem I am having is that I can't get the Agent Images to upload to the Agent directory and can't display it above my contact details, the screen shot image is in the attached, please help me. Everything works perfectly but I only need to get that images right for the Agents above the contact details.
  9. Look I create a property with multiple images and it is linked with a property id so all my images for the properties is loaded in an uploads folder.
  10. Hi there to everyone I have a bit of an issue, I am still new to all this coding, I need help on to display my images in my uploads folder with some sort of image lightbox viewer: <?php require 'database.php'; $propertyid = null; if ( !empty($_GET['PropertyId'])) { $propertyid = $_REQUEST['PropertyId']; } if ( null==$propertyid ) { header("Location: sale.php"); } else { $pdo = Database::connect(); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $sql = "SELECT * FROM properties where PropertyId = ?"; $q = $pdo->prepare($sql); $q->execute(array($propertyid)); $dataproperty = $q->fetch(PDO::FETCH_ASSOC); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $sql1 = "SELECT * FROM images WHERE PropertyId = ?"; $q1 = $pdo->prepare($sql1); $q1->execute(array($propertyid)); } echo '<li class="col-md-12">'; while ($row = $q1->fetch(PDO::FETCH_ASSOC) ) { Below is my images that need to be displayed in a lightbox way: echo ' <a href="'.$row['ImageUrl'].'"><img width="200px" src="'.$row['ImageUrl'].'"></a>'; } echo '<br />'; echo '<br />'; echo '<div class="proj_descr1"><h1>'. $dataproperty['Title'] . '</h1>'.'<br />'; echo '<div class="proj_descr_txt">'.'<h4><b>Location: </b></h4>'. $dataproperty['Location'] . '</div>'; echo '<br />'; echo '<div class="proj_descr_txt">'.'<h4><b>Bedrooms: </b></h4>'. $dataproperty['Bedrooms'] . '</div>'; echo '<br />'; echo '<div class="proj_descr_txt">'.'<h4><b>Bathrooms: </b></h4>'. $dataproperty['Bathrooms'] . '</div>'; echo '<br />'; echo '<div class="proj_descr_txt">'.'<h4><b>Parking: </b></h4>'. $dataproperty['Parking'] . '</div>'; echo '<br />'; echo '<div class="proj_descr_txt">'.'<h4><b>Property Type: </b></h4>'. $dataproperty['Type'] . '</div>'; echo '<br />'; echo '<div class="proj_descr_txt">'.'<h4><b>Status: </b></h4>'. $dataproperty['Status'] . '</div>'; echo '<br />'; echo '<div class="proj_descr_txt">'.'<h4><b>Description: </b></h4>'. $dataproperty['Description'] . '</div>'; echo '<br />'; echo '<div class="proj_descr_txt">'.'<h4><b>From: </b></h4>'. $dataproperty['FromThe'] . '</div>'; echo '<br />'; echo '<div class="proj_descr_txt">'.'<h4><b>Contact Details: </b></h4>'. $dataproperty['ContactDetails'] . '</div>'; echo '<br />'; echo '<div class="proj_descr_txt">'.'<h4><b>Price: </b>R</h4>'. $dataproperty['Price'] . '</div>'; echo '<A HREF="#" onClick="history.back();return false;">Go back</A>'; echo '</li>'; any help would be much appreciated.
  11. Thank you man I have send them a mail regarding this issue. Yes I am using C-Panel, it is a hosted website, Yes I have imported my database I created.
  12. Good Day I have a bit of an issue with my website I loaded on my domain. I am getting an error: SQLSTATE[HY000] [1130] Host 'xxx.xxx.xx.xxx' is not allowed to connect to this MySQL server Can some one please explain to me in detail how do fix this? It only shows on my Sale and Rent pages
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.