PHP - File Uploading, Says It Works But Doesnt
Im trying to use a file upload script i found he
http://www.phptoys.com/e107_plugins/content/content.php?content.39 and everything says it works but the file deosnt upload and i get the following in the error log: Quote [20-Jan-2011 20:02:42] PHP Fatal error: Call to a member function Get() on a non-object in /home/mikeh/public_html/test/uploader.php on line 33 [20-Jan-2011 20:03:48] PHP Fatal error: Call to a member function Get() on a non-object in /home/mikeh/public_html/test/uploader.php on line 33 here is some info copied from my hostgator cpanel: Home Directory: /home/mikeh Operating System: Linux CentOS below is the entire source code: <?php /************************************************* * Micro Upload * * Version: 0.1 * Date: 2006-10-27 * * Usage: * Set the uploadLocation variable to the directory * where you want to store the uploaded files. * Use the version which is relevenat to your server OS. * ****************************************************/ //Windows way //$uploadLocation = "/home/mikeh/public_html/test"; //Unix, Linux way $uploadLocation = "/home/mikeh/public_html/test/"; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html> <head> <title>MicroPing domain status checker</title> <link href="style/style.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="main"> <div id="caption">UPLOAD FILE</div> <div id="icon"> </div> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="fileForm" id="fileForm" enctype="multipart/form-data"> File to upload:<center> <table> <tr><td><input name="upfile" type="file" size="36"></td></tr> <tr><td align="center"><br/><input class="text" type="submit" name="submitBtn" value="Upload"></td></tr> </table></center> </form> <?php if (isset($_POST['submitBtn'])){ ?> <div id="caption">RESULT</div> <div id="icon2"> </div> <div id="result"> <table width="100%"> <?php $target_path = $uploadLocation . basename( $_FILES['upfile']['name']); //die($target_path); if(move_uploaded_file($_FILES['upfile']['tmp_name'], $target_path)) { echo "The file: ". basename( $_FILES['upfile']['name']). " has been uploaded!"; } else{ echo "There was an error uploading the file, please try again!"; } ?> </table> </div> <?php } ?> <div> </body> Edit: can be seen/tested at: http://cnotes.ca/test/microUpload.php Similar Tutorialsheres the code for the login page ...i changed the server and username info for privacy <?php include "include/session.php"; $dbservertype='mysql'; $servername='supremeserver.com'; // username and password to log onto db server $dbusername='newlogin'; $dbpassword='new18'; // name of database $dbname='newlogin'; connecttodb($servername,$dbname,$dbusername,$dbpassword); function connecttodb($servername,$dbname,$dbusername,$dbpassword) { global $link; $link=mysql_connect ("$servername","$dbusername","$dbpassword"); if(!$link){die("Could not connect to MySQL");} mysql_select_db("$dbname",$link) or die ("could not open db".mysql_error()); } ?> <!doctype html public "-//w3c//dtd html 3.2//en"> <html> <head> <title>LOGIN</title> <meta name="GENERATOR" content="Arachnophilia 4.0"> <meta name="FORMATTER" content="Arachnophilia 4.0"> </head> <body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#800080" alink="#ff0000"> <?php $userid=mysql_real_escape_string($userid); $password=mysql_real_escape_string($password); if($rec=mysql_fetch_array(mysql_query("SELECT * FROM plus_signup WHERE userid='$userid' AND password = '$password'"))){ if(($rec['userid']==$userid)&&($rec['password']==$password)){ include "include/newsession.php"; echo "<p class=data> <center>Successfully,Logged in<br><br><a href='logout.php'> Log OUT </a><br><br><a href=welcome.php>Click here if your browser is not redirecting automatically or you don't want to wait.</a><br></center>"; print "<script>"; print " self.location='welcome.php';"; // Comment this line if you don't want to redirect print "</script>"; } } else { session_unset(); echo "<font face='Verdana' size='2' color=red>Wrong Login. Use your correct Userid and Password and Try <br><center><input type='button' value='Retry' onClick='history.go(-1)'></center>"; } ?> </body> </html> _________________________________________________ _________________________________________________ __ your help is much appreciated When my main page loads everything is running smooth. In a section where I have my flags of different countries loading, if I choose one of them it reloads the page in that language, then back to english. If I try and load in Internet Explorer, all I get are blank images. Now I dont know if the css is the main cause of this or if its the php that has been wrote wrong, if someone can give me some help please, thank you.
CSS
@import "http://fonts.googleapis.com/css?family=Open+Sans|Roboto:400,500,700"; @import url("css/mediascreen.css"); body{ margin:0px auto; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; line-height:16px; text-align:center; color:#fff; overflow-x:hidden; padding:0px; } h1, h2, h3, h4, h5, ul, li, a, p, span, form, input, textarea, label, select{ list-style:none; padding:0px; margin:0px; text-decoration:none; } #clr{ clear:both; } #headerWrapper{ background:#1a1a1b; } #header{ position:relative; } #header, #regWrapper, #WelcomeWrapper, #newMembers, #footer, #innerWrapper, #datingMenu, #recommMatch, #ProfileWrapper{ width:960px; margin:0px auto; text-align:left; } #logo{ float:left; padding:15px 0px 10px 0px; } ul#topnav{ float:right; margin-top:157px; } ul#topnav li{ float:left; } ul#topnav li.homeicon a{ background:url(images/Home.png) no-repeat center center #0a0a0a; } ul#topnav li.homeicon:hover a{ background:url(images/Home.png) no-repeat center center #f55439; } ul#topnav li a{ display:inline-block; background:#0a0a0a; padding:6px 18px; color:#FFFFFF!important; font-family: 'Open Sans'; font-weight:300; text-transform:uppercase; font-size:11px; margin-left:5px; } ul#topnav li a:hover{ background:#f55439; } #bannerWrapper{ height:544px; background:url(images/dating_06.jpg) no-repeat center center; } #formReg{ float:right; width:445px; background:rgba(41,41,41,0.44); padding:10px; margin:15px 0px; } #formReg h3{ text-align:center; padding:15px 0px 15px 0px; border-bottom:1px solid #d3d3d3; margin-bottom:10px; font-size:23px; text-transform:capitalize; font-family: 'Open Sans'; font-weight:300; } #formReg select{ padding:6px 7px; border:1px solid #d3d3d3; background: #ffffff; /* Old browsers */ /* IE9 SVG, needs conditional override of 'filter' to 'none' */ background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjQ3JSIgc3RvcC1jb2xvcj0iI2Y2ZjZmNiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNlZGVkZWQiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+); background: -moz-linear-gradient(top, #ffffff 0%, #f6f6f6 47%, #ededed 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(47%,#f6f6f6), color-stop(100%,#ededed)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #ffffff 0%,#f6f6f6 47%,#ededed 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #ffffff 0%,#f6f6f6 47%,#ededed 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #ffffff 0%,#f6f6f6 47%,#ededed 100%); /* IE10+ */ background: linear-gradient(to bottom, #ffffff 0%,#f6f6f6 47%,#ededed 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ededed',GradientType=0 ); /* IE6-8 */ } #formReg input[type=text], #formReg input[type=password]{ padding:6px 7px; width:82%; border:1px solid #d3d3d3; background: #ffffff; /* Old browsers */ /* IE9 SVG, needs conditional override of 'filter' to 'none' */ background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjQ3JSIgc3RvcC1jb2xvcj0iI2Y2ZjZmNiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNlZGVkZWQiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+); background: -moz-linear-gradient(top, #ffffff 0%, #f6f6f6 47%, #ededed 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(47%,#f6f6f6), color-stop(100%,#ededed)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #ffffff 0%,#f6f6f6 47%,#ededed 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #ffffff 0%,#f6f6f6 47%,#ededed 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #ffffff 0%,#f6f6f6 47%,#ededed 100%); /* IE10+ */ background: linear-gradient(to bottom, #ffffff 0%,#f6f6f6 47%,#ededed 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ededed',GradientType=0 ); /* IE6-8 */ } #formReg select option{ background:#EAEAEA; } #formReg p, #formReg label{ font-size:12px; padding:5px 15px; display:block; } #formReg p strong, #formReg label a{ font-weight:normal; color:#000; text-decoration:underline; } #formReg label input[type=checkbox]{ margin:0px 10px 0px 0px; } #formReg input[type=submit]{ margin:10px 150px 10px 150px; text-transform:uppercase; background:#1a1a1b; color:#FFFFFF; border:0px; padding:10px 15px; font-size:19px; border-radius:15px; font-family: 'Open Sans' } #formReg input[type=submit]:hover{ background:#DB3113; color:#030303; cursor:pointer; } #formReg p strong:hover, #formReg label a:hover{ color:#DB3113; } #ContentWrapper{ background:#2b2b2c; } #WelcomeWrapper{ padding:15px 0px; } #WelcomeWrapper #leftWrapper{ width:570px; float:left; padding:15px 20px 15px 0px; border-right:1px solid #404042; } #WelcomeWrapper #leftWrapper h1{ padding:0px 10px 20px 0px; font-size:22px; font-family: 'Open Sans'; } #WelcomeWrapper #leftWrapper p{ color:#a5a5a9; line-height:18px; text-align:justify; } #WelcomeWrapper #leftWrapper a{ color:#f55439; } a.readmore{ margin-top:10px; padding:10px 0px; display:inline-block; } a.readmo hover{ text-decoration:underline; } #WelcomeWrapper #rightWrapper{ float:right; width:320px; } #WelcomeWrapper #rightWrapper h2{ font-family: 'Roboto'; font-size:22px; font-weight:300; padding:15px 0px 10px 0px; } #WelcomeWrapper #rightWrapper span{ font-size:10px; } #extraWrapper{ padding:15px 0px; background:#19191a; } #newMembers h1{ font-family: 'Roboto'; font-size:19px; font-weight:normal; text-transform:uppercase; padding:15px 0px 10px 0px; } #newMembers h1 strong{ font-size:28px; font-weight:normal; color:#f55439; } #footerWrapper{ background:#f9fbfc; color:#181818; padding:15px 0px; } #innerWrapper{ padding:15px 0px; min-height:720px; } #innerWrapper h2{ font-weight:500; font-family: 'Roboto'; line-height:normal; font-size:30px; border-left:5px solid #F7F7F7; padding:00px 0px 00px 15px; margin-bottom:10px; } #innerWrapper h4{ font-style:italic; font-weight:normal; font-size:13px; } .selectRequiredMsg, .selectInvalidMsg { display: none; } #memberAttributeFormID li{ padding:5px 10px; width:47%; float:left; } #memberAttributeFormID li label#memberAttributeFormLabel{ display:inline-block; width:200px; } #memberAttributeFormID li#memberAttributeFormHeading{ font-weight:bold; font-family: 'Roboto'; font-size:18px; border-bottom:1px solid #3C3C3D; margin:0px 0px 10px 0px; padding:25px 5px 10px 5px; width:auto; float:none; font-weight:400; clear:both; } #memberAttributeFormID li select{ width:45%; padding:5px 7px; } #memberAttributeFormID li.sizeFree{ width:auto; float:none; font-weight:400; clear:both; } #memberAttributeFormID li.sizeFree label#memberAttributeFormLabel{ width:250px; float:left; } #memberAttributeFormID li.sizeFree input[type=text], #memberAttributeFormID li.sizeFree textarea{ padding:5px 7px; } input.submitbtn{ background: #ff7400; /* Old browsers */ /* IE9 SVG, needs conditional override of 'filter' to 'none' */ background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmNzQwMCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmZjc0MDAiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+); background: -moz-linear-gradient(top, #ff7400 0%, #ff7400 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ff7400), color-stop(100%,#ff7400)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #ff7400 0%,#ff7400 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #ff7400 0%,#ff7400 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #ff7400 0%,#ff7400 100%); /* IE10+ */ background: linear-gradient(to bottom, #ff7400 0%,#ff7400 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff7400', endColorstr='#ff7400',GradientType=0 ); /* IE6-8 */ border:5px solid #F26F04; padding:7px 15px; cursor:pointer; border-radius:15px; font-weight:bold; font-family: 'Roboto'; color:#FFFFFF; font-size:18px; } #memberAttributeFormID li input[type=text]{ padding:5px 7px; width:45%; } .popupRECT{ position:fixed; width:500px; color:#000000; height:auto; padding:15px; margin:-200px 0px 0px -265px; left:50%; top:50%; background:#fff; box-shadow:0px 0px 15px #666; z-index:99999; } .popupRECT h2{ font-family: 'Open Sans'; font-size:20px; padding:20px 15px; text-align:center; color:#FFFFFF; text-transform:capitalize; background:#000000; font-weight:bold; margin-bottom:10px; } .popupRECT h2 span{ display:inline-block; padding:0px 20px; font-weight:400; } #blackOverlay{ background:rgba(0,0,0,0.7); width:100%; z-index:8; height:100%; position:fixed; left:0; top:0; } #loginForm{ text-align:center; } #loginForm table{ width:450px; margin:0px auto; } #loginForm td { padding:3px 5px; } #loginForm input[type=email], #loginForm input[type=password]{ width:92%; padding:8px 10px; border:1px solid #d3d3d3; } #loginForm textarea{ width:91%; padding:8px 10px; resize:none; border:1px solid #d3d3d3; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px; line-height:17px; } #loginForm label{ text-align:right; padding:10px 5px; width:150px; display:inline-block; background:#E4E4E4; } #loginForm input[type=submit]{ float:right; background: ; padding:8px 30px; border:1px solid #A30000; background: #cc0000; /* Old browsers */ background: -moz-linear-gradient(top, #cc0000 0%, #cc0000 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#cc0000), color-stop(100%,#cc0000)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #cc0000 0%,#cc0000 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #cc0000 0%,#cc0000 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #cc0000 0%,#cc0000 100%); /* IE10+ */ background: linear-gradient(to bottom, #cc0000 0%,#cc0000 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#cc0000', endColorstr='#cc0000',GradientType=0 ); /* IE6-9 */ font-family: 'Open Sans'; color:#FFFFFF; font-size:18px; text-transform:uppercase; } #loginForm td p a{ display:block; text-align:right; color:#333333; padding:3px 0px; } #loginForm td p:hover a{ text-decoration:underline; } #loginForm td span.or{ display:block; padding:0px 0px 10px 0px; border-bottom:1px solid #d3d3d3; margin-bottom:7px; } #datingMenu{ border-top-left-radius:20px; border-top-right-radius:20px; background: #121212; /* Old browsers */ /* IE9 SVG, needs conditional override of 'filter' to 'none' */ background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzQ1NDg0ZCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiMwMDAwMDAiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+); background: -moz-linear-gradient(top, #121212 0%, #000000 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#121212), color-stop(100%,#000000)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #121212 0%,#000000 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #121212 0%,#000000 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #121212 0%,#000000 100%); /* IE10+ */ background: linear-gradient(to bottom, #121212 0%,#000000 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#121212', endColorstr='#000000',GradientType=0 ); /* IE6-8 */ } #datingMenu li{ display:inline-block; } #datingMenu li a{ display:inline-block; padding:0px 20px; margin:12px 0px; color:#D4D4D4; border-right:1px solid #232323; font-family: 'Open Sans'; } #datingMenu li:hover a{ text-decoration:underline; } #datingMenu ul{ padding:0px 15px; z-index:999; } #datingMenu ul li ul{ display:none; position:absolute; z-index:90; background:#2D2D2D; border:1px solid #575757; width:190px; padding:0px; border-bottom:0px; } #datingMenu ul li.he{ padding:5px 15px; font-weight:bold; border-bottom:1px solid #575757; } #datingMenu ul li:hover ul{ display:block!important; } #datingMenu ul li ul li{ display:block; padding:0px; margin:0px; } #datingMenu ul li:hover ul li a{ text-decoration:none; display:block; padding:8px 15px; margin:0px; color:#EAEAEA; border-bottom:1px solid #575757; } #datingMenu ul li:hover ul li:hover a{ background:#181818; } #innerWrapper.dashboard #leftWrapper{ width:29%; float:left; } #innerWrapper.dashboard #rightWrapper{ width:30.8%; float:right; } #userBox{ border:1px solid #555555; border-radius:10px; background:#f8f8f8; overflow:hidden; color:#181818; min-height:450px; } #userBox h3{ padding:8px 10px; border-bottom:1px solid #d3d3d3; background: #f2f5f6; /* Old browsers */ /* IE9 SVG, needs conditional override of 'filter' to 'none' */ background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2YyZjVmNiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjM3JSIgc3RvcC1jb2xvcj0iI2UzZWFlZCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNjOGQ3ZGMiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+); background: -moz-linear-gradient(top, #f2f5f6 0%, #e3eaed 37%, #c8d7dc 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f2f5f6), color-stop(37%,#e3eaed), color-stop(100%,#c8d7dc)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #f2f5f6 0%,#e3eaed 37%,#c8d7dc 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #f2f5f6 0%,#e3eaed 37%,#c8d7dc 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #f2f5f6 0%,#e3eaed 37%,#c8d7dc 100%); /* IE10+ */ background: linear-gradient(to bottom, #f2f5f6 0%,#e3eaed 37%,#c8d7dc 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f2f5f6', endColorstr='#c8d7dc',GradientType=0 ); /* IE6-8 */ font-weight:500; color:#181818; font-family: 'Roboto'; } #userBox span.profilepic{ display:inline-block; width:120px; height:115px; overflow:hidden; margin:10px; } #userBox span.profilepic img{ width:100%; } #userBox .online{ border-radius:10px; line-height:20px; display:block; padding:2px 5px 2px 10px; text-align:left; cursor:pointer; background: #cdeb8e; /* Old browsers */ /* IE9 SVG, needs conditional override of 'filter' to 'none' */ background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2NkZWI4ZSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNhNWM5NTYiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+); background: -moz-linear-gradient(top, #cdeb8e 0%, #a5c956 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#cdeb8e), color-stop(100%,#a5c956)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #cdeb8e 0%,#a5c956 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #cdeb8e 0%,#a5c956 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #cdeb8e 0%,#a5c956 100%); /* IE10+ */ background: linear-gradient(to bottom, #cdeb8e 0%,#a5c956 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#cdeb8e', endColorstr='#a5c956',GradientType=0 ); /* IE6-8 */ } #userBox .online i{ display:inline-block; background:url(images/Status-tray-online-icon.png) no-repeat center center / 100% auto; width:20px; height:20px; margin-right:5px; } #userBox .offline{ border-radius:10px; line-height:20px; display:block; padding:2px 5px 2px 10px; text-align:left; cursor:pointer; background: #ff1a00; /* Old browsers */ /* IE9 SVG, needs conditional override of 'filter' to 'none' */ background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmMWEwMCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmZjFhMDAiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+); background: -moz-linear-gradient(top, #ff1a00 0%, #ff1a00 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ff1a00), color-stop(100%,#ff1a00)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #ff1a00 0%,#ff1a00 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #ff1a00 0%,#ff1a00 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #ff1a00 0%,#ff1a00 100%); /* IE10+ */ background: linear-gradient(to bottom, #ff1a00 0%,#ff1a00 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff1a00', endColorstr='#ff1a00',GradientType=0 ); /* IE6-8 */ } #userBox .offline i{ display:inline-block; background:url(images/offline.png) no-repeat center center / 100% auto; width:20px; height:20px; margin-right:5px; } #userBox .invisible{ border-radius:10px; line-height:20px; display:block; padding:2px 5px 2px 10px; text-align:left; cursor:pointer; background: #f2f5f6; /* Old browsers */ background: -moz-linear-gradient(top, #f2f5f6 0%, #e3eaed 37%, #c8d7dc 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f2f5f6), color-stop(37%,#e3eaed), color-stop(100%,#c8d7dc)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #f2f5f6 0%,#e3eaed 37%,#c8d7dc 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #f2f5f6 0%,#e3eaed 37%,#c8d7dc 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #f2f5f6 0%,#e3eaed 37%,#c8d7dc 100%); /* IE10+ */ background: linear-gradient(to bottom, #f2f5f6 0%,#e3eaed 37%,#c8d7dc 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f2f5f6', endColorstr='#c8d7dc',GradientType=0 ); /* IE6-9 */ } #userBox .invisible i{ display:inline-block; background:url(images/invisible.png) no-repeat center center / 100% auto; width:20px; height:20px; margin-right:5px; } #userBox h2{ padding:6px 10px; border-top:1px solid #d3d3d3; border-bottom:1px solid #d3d3d3; font-weight:400; font-size:14px; font-family: 'Roboto'; margin:0px; clear:both; } #whatNew li{ padding:5px 10px 5px 15px; border-bottom:1px solid #e4e4e4; font-size:11px; } #whatNew{ margin-bottom:10px; } #whatNew li a{ color:#111111; line-height:24px; } #whatNew li a img{ float:left; margin-right:10px; height:24px; } #whatNew li:hover { background:#E2E2E2; } #innerWrapper.dashboard #centerWrapper{ width:37%; float:left; background:#232326; min-height:450px; margin:0px 15px; border-radius:10px; } #innerWrapper.dashboard #centerWrapper #searchForm{ padding:10px 15px; } #searchForm ul li p{ display:inline-block; } #searchForm ul li{ padding:5px 5px; text-align:left; } #searchForm ul li p.searchtext{ display:inline-block; width:80px; text-align:right; margin-right:15px; } #centerWrapper h3{ border-bottom:1px solid #2B2B2C; font-weight:400; font-size:16px; font-family: 'Roboto'; margin:0px; clear:both; padding:15px 0px 10px 10px; } #centerWrapper h3 a{ float:right; color:#C0C0C0; font-size:11px; padding:0px 10px; display:inline-block; } #centerWrapper h3 a:hover{ text-decoration:underline; } #searchForm select, #searchForm input[type=text]{ padding:5px 8px; } p.searchbtn input[type=submit]{ background: #f6f8f9; /* Old browsers */ /* IE9 SVG, needs conditional override of 'filter' to 'none' */ background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2Y2ZjhmOSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjUwJSIgc3RvcC1jb2xvcj0iI2U1ZWJlZSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjUxJSIgc3RvcC1jb2xvcj0iI2Q3ZGVlMyIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmNWY3ZjkiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+); background: -moz-linear-gradient(top, #f6f8f9 0%, #e5ebee 50%, #d7dee3 51%, #f5f7f9 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f6f8f9), color-stop(50%,#e5ebee), color-stop(51%,#d7dee3), color-stop(100%,#f5f7f9)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #f6f8f9 0%,#e5ebee 50%,#d7dee3 51%,#f5f7f9 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #f6f8f9 0%,#e5ebee 50%,#d7dee3 51%,#f5f7f9 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #f6f8f9 0%,#e5ebee 50%,#d7dee3 51%,#f5f7f9 100%); /* IE10+ */ background: linear-gradient(to bottom, #f6f8f9 0%,#e5ebee 50%,#d7dee3 51%,#f5f7f9 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f6f8f9', endColorstr='#f5f7f9',GradientType=0 ); /* IE6-8 */ padding:7px 20px; border-radius:10px; border:0px; cursor:pointer; } p.searchbtn{ text-align:right; display:block!important; padding:10px 0px 0px 0px; } p.searchbtn input[type=submit]:hover{ background:#F55437; } #recentActivity{ padding:10px; min-height:190px; max-height:250px; overflow:auto; } #rightWrapper h5{ padding:6px 10px; border-top:1px solid #d3d3d3; border-bottom:1px solid #d3d3d3; font-weight:400; font-size:14px; font-family: 'Roboto'; margin:0px; clear:both; } #moreAttention{ background: #feffff; /* Old browsers */ /* IE9 SVG, needs conditional override of 'filter' to 'none' */ background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZlZmZmZiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjM1JSIgc3RvcC1jb2xvcj0iI2RkZjFmOSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNhMGQ4ZWYiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+); background: -moz-linear-gradient(top, #feffff 0%, #ddf1f9 35%, #a0d8ef 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#feffff), color-stop(35%,#ddf1f9), color-stop(100%,#a0d8ef)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #feffff 0%,#ddf1f9 35%,#a0d8ef 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #feffff 0%,#ddf1f9 35%,#a0d8ef 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #feffff 0%,#ddf1f9 35%,#a0d8ef 100%); /* IE10+ */ background: linear-gradient(to bottom, #feffff 0%,#ddf1f9 35%,#a0d8ef 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#feffff', endColorstr='#a0d8ef',GradientType=0 ); /* IE6-8 */ padding:15px; min-height:120px; } #recommMatch h1{ font-family: 'Roboto'; font-size:19px; font-weight:normal; text-transform:uppercase; padding:5px 0px 10px 0px; } #recommMatch ul#foo0 li span.userpic{ width:150px; height:160px; display:inline-block; overflow:hidden; border:8px solid #141416; } #recommMatch ul#foo0 li p{ font-size:12px; text-align:center; } #recommMatch ul#foo0 li img{ width:100%; min-height:100%; } #memberLists li{ width:47%; margin:0px 15px 15px 0px; padding:5px; border:1px solid #232323; float:left; } #memberLists li #picture{ width:110px; height:115px; overflow:hidden; border:6px solid #232323; float:left; } #memberLists li #picture img{ width:100%; } #memberLists li:nth-child(2n){ margin-right:0px; } #memberLists li #details{ width:310px; padding:5px; float:right; font-size:11px; } #recommMatch ul#foo0 li a{ display:block; color:#FFFFFF; } .list_carousel{ clear:both; } #controls{ float:right; } #controls a{ color:#C0C0C0; } #memberLists li #details a{ color:#FFFFFF; } #memberLists li #details a:hover{ text-decoration:underline; } #memberLists li #details i{ color:#E7E7E7; padding:3px 0px 3px 0px; display:block; } #profileCompletion{ padding:10px; border-top:1px solid #d3d3d3; } #profileCompletion p a{ font-size:10px; color:#030303; text-decoration:underline; float:right; line-height:18px; font-weight:normal; } #profileCompletion p{ font-weight:bold; } #profileCompletion #nextStep{ margin:5px 0px; border:1px solid #d3d3d3; box-shadow:0px 0px 3px #CEDEE8; padding:7px 15px; border-radius:15px; font-size:11px; line-height:18px; background: #ffffff; /* Old browsers */ /* IE9 SVG, needs conditional override of 'filter' to 'none' */ background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjUwJSIgc3RvcC1jb2xvcj0iI2YzZjNmMyIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjUxJSIgc3RvcC1jb2xvcj0iI2VkZWRlZCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmZmZmZmYiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+); background: -moz-linear-gradient(top, #ffffff 0%, #f3f3f3 50%, #ededed 51%, #ffffff 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(50%,#f3f3f3), color-stop(51%,#ededed), color-stop(100%,#ffffff)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #ffffff 0%,#f3f3f3 50%,#ededed 51%,#ffffff 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #ffffff 0%,#f3f3f3 50%,#ededed 51%,#ffffff 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #ffffff 0%,#f3f3f3 50%,#ededed 51%,#ffffff 100%); /* IE10+ */ background: linear-gradient(to bottom, #ffffff 0%,#f3f3f3 50%,#ededed 51%,#ffffff 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ffffff',GradientType=0 ); /* IE6-8 */ } #bar{ border:2px solid #37ABF0; margin:10px 0px 15px 0px; } #bar #fill{ padding:2px 0px; color:#fff; text-align:center; background:#37ABF0; font-family: 'Roboto'; } #profileCompletion #nextStep h5{ text-transform:capitalize; color:#37ABF0; font-size:12px; } #nextStep a{ display: block; color:#000; } #fromComp{ border:#181818 1px solid; margin:30px 0px; padding:25px; width:45%; background:#1D1D1E; } #addPhoto h4{ font-style:normal; font-weight:normal; font-family: 'Roboto'; font-size:19px; text-transform:capitalize; padding:0px 0px 10px 0px; border-bottom:1px dotted #404040; margin-bottom:10px; } #addPhoto span.numbers{ display:inline-block; padding:8px 13px; background:#404040; border-radius:50%; } #addPhoto table{ margin:15px 0px; } #addPhoto ul li{ list-style:decimal inside; padding:2px 0px; } #addPhoto input[type=file]{ border:1px solid #565656; padding:3px 5px 3px 3px; color:#181818; overflow:hidden; background:#F8F8F8; border-radius:3px; } #innerWrapper.uploadPorfilephotos h3{ font-size:22px; line-height:22px; font-family: 'Roboto'; font-weight:500; } #innerWrapper.uploadPorfilephotos h3 span{ font-size:12px; } #photoSucess{ padding:20px; border-radius:15px; overflow:hidden; border:1px solid #181818; margin-top:20px; background:#181818; } #photoSucess h5{ font-size:18px; padding:0px 0px 10px 0px; width:70%; float:left; color:#DB310A; } #photoSucess p{ padding:10px; width:70%; float:left; } #photoSucess span.photoPreview{ width:160px; height:160px; overflow:hidden; display:inline-block; float:right; margin:-20px -20px -20px 0px; } #photoSucess span.photoPreview img{ width:100%; } #photoGallery h3{ border-bottom:1px dotted #818181; font-size:18px; color:#D5D5D5; font-weight:400; padding:15px 0px 10px 0px; margin-bottom:10px; } #photoSections #addPhotos{ border:1px solid #d3d3d3; width:130px; height:140px; float:left; padding:1px 1px; margin:2px 0px; background:#FFF; } #photoSections #addPhotos label{ width:130px; height:140px; background:url(images/addPhoto.jpg) no-repeat left top; display:inline-block; cursor:pointer; overflow:hidden; } #photoSections #addPhotos img{ width:100%; } #PhotoList .next { } #PhotoList .next { background: url("images/arrows.png") no-repeat scroll left top transparent; cursor: pointer; height: 38px; width: 25px; background-position: right top; text-indent:9999px; margin-top:-85px; margin-right:0px; } #PhotoList .prev { background: url("images/arrows.png") no-repeat scroll left top transparent; cursor: pointer; height: 38px; width: 25px; background-position: left top; text-indent:9999px; ; margin-top:-85px; } #PhotoList{ float:right; width:750px; } #slideshowWrapper{ float:left; width:58%; padding:15px; background:#181818; } #profileUserDetails{ float:right; width:35%; } #slideshow a.advance-link img{ max-height:550px; max-width:550px; } div.slideshow-container{ height:550px!important; } #profileUserDetails ul.thumbs li a.thumb{ display:inline-block; width:80px; height:80px; overflow:hidden; padding:0px; } #profileUserDetails ul.thumbs li{ display:inline-block; } #profileUserDetails ul.thumbs li a.thumb img{ width:100%; min-height:100%; } #profileTitle{ background:#181818; padding:20px; border-radius:12px; } #profileTitle h2{ border:0px; font-style:italic; font-weight:normal; font-size:14px; line-height:normal; margin:0px; padding:0px; line-height:18px; color:#C0C0C0; text-align:center; } #info{ padding-left:10px; } #info p{ padding:2px 0px; font-size:11px; } #info p.uname a{ color:#FFFFFF; font-size:18px; font-family: 'Open Sans'; font-weight:500; display:inline-block; padding:15px 0px 5px 0px; } #quickview{ margin:15px 0px 0px 0px; border:1px solid #d3d3d3; background:#D5D5D5; color:#151515; padding:10px; font-size:11px; } #quickview strong { font-size:15px; font-family: 'Open Sans'; font-weight:400; display:inline-block; padding:0px 0px 5px 0px; } #ProfileWrapper #rightWrapper{ width:75%; float:right; padding-left:20px; border-left:1px solid #2C2C2C; } #ProfileWrapper #rightWrapper td{ padding:5px 10px; font-size:11px; color:#CBCBCB; } #ProfileWrapper #rightWrapper td#profiledetailhdr2{ background:#040404; border-bottom:1px solid #2C2C2C; border-top:1px solid #2C2C2C; font-size:14px; padding:8px 10px; font-family: 'Roboto'; font-weight:500; color:#ABABAB; } #ProfileWrapper #rightWrapper td#profiledetailhdr2 em{ font-style:normal; } #ProfileWrapper h1{ border-bottom:1px solid #303030; font-family: 'Roboto'; font-weight:normal; font-size:14px; color:#ABABAB; margin-bottom:15px; } #ProfileWrapper h1 strong{ border:1px solid #303030; border-bottom:0px; display:inline-block; padding:7px 20px; border-top-left-radius:10px; border-top-right-radius:10px; font-weight:normal; } #searchFormA{ padding:8px; border-radius:10px; background: #eeeeee; /* Old browsers */ /* IE9 SVG, needs conditional override of 'filter' to 'none' */ background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2VlZWVlZSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNjY2NjY2MiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+); background: -moz-linear-gradient(top, #eeeeee 0%, #cccccc 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#eeeeee), color-stop(100%,#cccccc)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #eeeeee 0%,#cccccc 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #eeeeee 0%,#cccccc 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #eeeeee 0%,#cccccc 100%); /* IE10+ */ background: linear-gradient(to bottom, #eeeeee 0%,#cccccc 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#cccccc',GradientType=0 ); /* IE6-8 */ color:#181818; margin:10px 0px; } #newMembers ul#foo0 li span.userpic{ width:125px; height:130px; display:inline-block; overflow:hidden; border:8px solid #141416; } #newMembers ul#foo0 li p{ font-size:12px; text-align:center; } #newMembers ul#foo0 li img{ width:100%; min-height:100%; } #newMembers ul#foo0 li a{ color:#EAEAEA; } #actionBtn a{ display:inline-block; padding:8px 20px; color:#333; font-family: 'Roboto'; font-style:italic; font-size:15px; line-height:22px; margin-top:20px; background: rgba(226,226,226,1); background: -moz-linear-gradient(top, rgba(226,226,226,1) 0%, rgba(219,219,219,1) 50%, rgba(209,209,209,1) 51%, rgba(227,224,227,1) 100%); background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(226,226,226,1)), color-stop(50%, rgba(219,219,219,1)), color-stop(51%, rgba(209,209,209,1)), color-stop(100%, rgba(227,224,227,1))); background: -webkit-linear-gradient(top, rgba(226,226,226,1) 0%, rgba(219,219,219,1) 50%, rgba(209,209,209,1) 51%, rgba(227,224,227,1) 100%); background: -o-linear-gradient(top, rgba(226,226,226,1) 0%, rgba(219,219,219,1) 50%, rgba(209,209,209,1) 51%, rgba(227,224,227,1) 100%); background: -ms-linear-gradient(top, rgba(226,226,226,1) 0%, rgba(219,219,219,1) 50%, rgba(209,209,209,1) 51%, rgba(227,224,227,1) 100%); background: linear-gradient(to bottom, rgba(226,226,226,1) 0%, rgba(219,219,219,1) 50%, rgba(209,209,209,1) 51%, rgba(227,224,227,1) 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e2e2e2', endColorstr='#e3e0e3', GradientType=0 ); border-radius:15px; } .mailBtn{ margin-left:15px; } #actionBtn a img{ float:left; margin-right:5px; } #actionBtn a:hover{ text-decoration:underline; box-shadow:0px 0px 5px #d3d3d3; background: #eeeeee; /* Old browsers */ /* IE9 SVG, needs conditional override of 'filter' to 'none' */ background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2VlZWVlZSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNjY2NjY2MiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+); background: -moz-linear-gradient(top, #eeeeee 0%, #cccccc 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#eeeeee), color-stop(100%,#cccccc)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #eeeeee 0%,#cccccc 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #eeeeee 0%,#cccccc 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #eeeeee 0%,#cccccc 100%); /* IE10+ */ background: linear-gradient(to bottom, #eeeeee 0%,#cccccc 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#cccccc',GradientType=0 ); /* IE6-8 */ } #jsonreply{ position:fixed; top:-990px; z-index:99999; left:50%; ; text-align:center; font-family: 'Open Sans'; padding:10px 20px; color:#FFFFFF; background:#333; font-size:13px; line-height:20px; font-weight:400; box-shadow:0px 0px 5px #666; -webkit-transition: all 1s ease-in-out; -moz-transition: all 1s ease-in-out; -o-transition: all 1s ease-in-out; transition: all 1s ease-in-out; } .jsonreplyon{ top:00px!important; -webkit-transition: all 1s ease-in-out; -moz-transition: all 1s ease-in-out; -o-transition: all 1s ease-in-out; transition: all 1s ease-in-out; } #actionBtn a#sendinterest{ margin-left:10px; background: #f0f9ff; /* Old browsers */ /* IE9 SVG, needs conditional override of 'filter' to 'none' */ background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2YwZjlmZiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjQ3JSIgc3RvcC1jb2xvcj0iI2NiZWJmZiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNhMWRiZmYiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+); background: -moz-linear-gradient(top, #f0f9ff 0%, #cbebff 47%, #a1dbff 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f0f9ff), color-stop(47%,#cbebff), color-stop(100%,#a1dbff)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #f0f9ff 0%,#cbebff 47%,#a1dbff 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #f0f9ff 0%,#cbebff 47%,#a1dbff 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #f0f9ff 0%,#cbebff 47%,#a1dbff 100%); /* IE10+ */ background: linear-gradient(to bottom, #f0f9ff 0%,#cbebff 47%,#a1dbff 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f0f9ff', endColorstr='#a1dbff',GradientType=0 ); /* IE6-8 */ } #modal{ position:fixed; top:50%; left:50%; width:600px; margin:-125px 0px 0px -300px; background:#e4e4e4; border:10px solid #ccc; z-index:9; color:#030303; } .messagetoOwner form{ padding:10px; } #fullmessageModel{ font-size:12px; text-align:left; } .messagetoOwner label{ width:18%; display:inline-block; padding:5px 0px; text-transform:uppercase; float:left; } .messagetoOwner input[type=text]{ width:76%; border:1px solid #d3d3d3; border-left:#999 solid 4px; padding:4px 5px; } .messagetoOwner ul li{ padding:5px 5px 10px 5px; } .messagetoOwner textarea{ width:76%; resize:none; border:1px solid #d3d3d3; border-left:#999 solid 4px; padding:4px 5px; } .messagetoOwner h2{ padding:8px 10px!important; background:#FF8400; color:#000; text-transform:uppercase; font-size:14px!important; font-weight:bold!important; color:#FFF!important; border-bottom:0px!important; } .messagetoOwner input[type=button]{ float:right; margin:5px 25px 15px 0px; text-transform:uppercase; background: #f2f5f6; /* Old browsers */ background: -moz-linear-gradient(top, #f2f5f6 0%, #e3eaed 37%, #c8d7dc 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f2f5f6), color-stop(37%,#e3eaed), color-stop(100%,#c8d7dc)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #f2f5f6 0%,#e3eaed 37%,#c8d7dc 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #f2f5f6 0%,#e3eaed 37%,#c8d7dc 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #f2f5f6 0%,#e3eaed 37%,#c8d7dc 100%); /* IE10+ */ background: linear-gradient(to bottom, #f2f5f6 0%,#e3eaed 37%,#c8d7dc 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f2f5f6', endColorstr='#c8d7dc',GradientType=0 ); /* IE6-9 */ font-family:Tahoma, Geneva, sans-serif; padding:5px 10px; border:1px solid #d3d3d3; } .messagetoOwner input[type=button]:hover{ background: #ff7400; /* Old browsers */ background: -moz-linear-gradient(top, #ff7400 0%, #ff7400 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ff7400), color-stop(100%,#ff7400)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #ff7400 0%,#ff7400 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #ff7400 0%,#ff7400 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #ff7400 0%,#ff7400 100%); /* IE10+ */ background: linear-gradient(to bottom, #ff7400 0%,#ff7400 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff7400', endColorstr='#ff7400',GradientType=0 ); /* IE6-9 */ color:#FFF; } .messagetoOwner h2 img{ float:right; background:#FFF; max-height:20px; cursor:pointer; } .activelogin{ top:37%!important; -webkit-transition: all 0.5s ease-in-out; -moz-transition: all 0.5s ease-in-out; -o-transition: all 0.5s ease-in-out; transition: all 0.5s ease-in-out; } #memberAttributeFormID fieldset{ border:1px solid #666; padding:10px; margin:10px 0px; clear:both; } #memberAttributeFormID label.itemisedQuestion{ padding:5px 20px 0px 0px; display:inline-block; } #memberAttributeFormID label.itemisedQuestion input[type=checkbox]{ margin-right:5px; } #memberAttributeFormID h4{ font-size:15px; line-height:18px; padding:15px 0px 0px 0px; } #editPersona li{ clear:both; padding:10px 0px; border-bottom:1px solid #575757; } #editPersona label.questionLabel{ width:200px; margin-right:25px; display:inline-block; float:left; } #innerWrapper.uploadPorfilephotos h4{ font-size:15px; line-height:18px; padding:15px 0px 10px 0px; } .greyShinyButton{ float:right; background: #ffffff; /* Old browsers */ /* IE9 SVG, needs conditional override of 'filter' to 'none' */ background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjUwJSIgc3RvcC1jb2xvcj0iI2YxZjFmMSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjUxJSIgc3RvcC1jb2xvcj0iI2UxZTFlMSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmNmY2ZjYiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+); background: -moz-linear-gradient(top, #ffffff 0%, #f1f1f1 50%, #e1e1e1 51%, #f6f6f6 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(50%,#f1f1f1), color-stop(51%,#e1e1e1), color-stop(100%,#f6f6f6)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #ffffff 0%,#f1f1f1 50%,#e1e1e1 51%,#f6f6f6 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #ffffff 0%,#f1f1f1 50%,#e1e1e1 51%,#f6f6f6 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #ffffff 0%,#f1f1f1 50%,#e1e1e1 51%,#f6f6f6 100%); /* IE10+ */ background: linear-gradient(to bottom, #ffffff 0%,#f1f1f1 50%,#e1e1e1 51%,#f6f6f6 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f6f6f6',GradientType=0 ); /* IE6-8 */ padding:6px 12px; border:0px; margin:15px 0px 10px 0px; } #editinterest .questionLabel{ width:230px; float:left; margin-right:15px; display:inline-block; } #editinterest span.full, #editinterest .optionleft{ width:700px; display:inline-block; } #editinterest li{ clear:both; padding:10px 0px; border-bottom:1px solid #575757; } #editinterest span.full label{ padding:3px 5px 3px 0px; display:inline-block; margin:3px 10px 3px 0px; } #editinterest span.full label input[type=checkbox]{ margin-right:5px; } #editPersona li textarea{ padding:7px; border-radius:5px; border:1px solid #d3d3d3; font-family:tahoma, "Myriad Pro", calibri; font-size:12px; line-height:18px; width:65%; } #editinterest.editMatches label.questionLabel{ width:200px; display:inline-block; } #editinterest.editMatches fieldset{ border:0px; padding:05px 0px; } #editinterest.editMatches select, #editinterest.editMatches input[type=text]{ padding:5px; } #editinterest.editMatches li#memberAttributeFormHeading{ font-weight:bold; font-family: 'Roboto'; font-size:18px; border-bottom:1px solid #3C3C3D; margin:0px 0px 10px 0px; padding:25px 5px 10px 5px; width:auto; float:none; font-weight:400; clear:both; } #editinterest.editMatches li{ padding:8px 5px ; border:0px; } #editinterest.editMatches li .optionleft label{ padding:3px 5px 3px 5px; margin:2px 5px 0px 0px; display:inline-block; } #editinterest.editMatches li .optionleft label input[type=checkbox]{ margin-right:5px; } span.divider{ display:inline-block; padding:0px 5px; } #foo2 li a{ display:none; padding:3px 5px; margin-bottom:-22px; background:rgba(255,255,255,0.5); color:#0F0F0F; font-size:11px; text-align:center; z-index:999; position:relative; font-family: 'Open Sans'; } #foo2 li:hover a{ display:block; } #foo2 li a:hover { text-decoration:underline; } #inbox{ margin:20px 10px; color:#131313; background:#222223; border:1px solid #222223; width:70%; float:right; padding:10px; } #inbox li{ background:#2B2B2C; clear:both; padding:10px 5px; cursor:pointer; color:#FFFFFF; } #inbox li:nth-child(odd){ background:#272728; } #inbox li img{ float:left; padding:5px; background:#FFF; border:1px solid #ccc; margin-right:15px; } #inbox li p{ padding:1px 0px; font-size:11px; } #inbox li p strong{ text-transform:capitalize; font-size:12px; } a.activetav p{ color:#fff; background:#ff8400; } #fullmessageModel{ position:fixed; top:50%; left:50%; color:#131313; width:800px; margin:-250px 0px 0px -400px; background:#fff; box-shadow: 0px 0px 0px 12px rgba(165,165,165,0.5); z-index:9999; } #fullmessageModel ul{ padding:0px 0px; max-height:300px; overflow:auto; } #fullmessageModel ul p{ padding:5px 10px; text-align:justify; font-family:Arial, Helvetica, sans-serif; line-height:18px; width:auto; } #fullmessageModel ul li{ padding:0px 0px; border-bottom:1px solid #e4e4e4; background: #f9fcf7; /* Old browsers */ background: -moz-linear-gradient(top, #f9fcf7 0%, #f5f9f0 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f9fcf7), color-stop(100%,#f5f9f0)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #f9fcf7 0%,#f5f9f0 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #f9fcf7 0%,#f5f9f0 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #f9fcf7 0%,#f5f9f0 100%); /* IE10+ */ background: linear-gradient(to bottom, #f9fcf7 0%,#f5f9f0 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f9fcf7', endColorstr='#f5f9f0',GradientType=0 ); /* IE6-9 */ } #fullmessageModel ul p strong{ text-transform:capitalize; font-size:14px; } #fullmessageModel ul p span{ float:right; } #fullmessageModel ul p.headp{background: #eeeeee; /* Old browsers */ background: -moz-linear-gradient(top, #eeeeee 0%, #eeeeee 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#eeeeee), color-stop(100%,#eeeeee)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #eeeeee 0%,#eeeeee 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #eeeeee 0%,#eeeeee 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #eeeeee 0%,#eeeeee 100%); /* IE10+ */ background: linear-gradient(to bottom, #eeeeee 0%,#eeeeee 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#eeeeee',GradientType=0 ); /* IE6-9 */ } #fullmessageModel h2{ padding:11px 10px!important; background:#F55438; color:#000; text-transform:uppercase; font-size:14px!important; font-weight:bold!important; color:#FFF!important; border-bottom:0px!important; font-family:Arial, Helvetica, sans-serif; } #fullmessageModel h2 img{ float:right; background:#FFF; max-height:20px; cursor:pointer; } #inputs center{ margin-bottom:15px; } #replyMessage{ padding:2px 10px; } #replyMessage textarea{ width:98%; margin:0px 0px; height:50px; resize:none; border:1px solid #d3d3d3; border-left:#999 solid 4px; padding:4px 5px; } #replyMessage input[type=button]{ float:right; margin:0px 25px 5px 0px; text-transform:uppercase; background: #f2f5f6; /* Old browsers */ background: -moz-linear-gradient(top, #f2f5f6 0%, #e3eaed 37%, #c8d7dc 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f2f5f6), color-stop(37%,#e3eaed), color-stop(100%,#c8d7dc)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #f2f5f6 0%,#e3eaed 37%,#c8d7dc 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #f2f5f6 0%,#e3eaed 37%,#c8d7dc 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #f2f5f6 0%,#e3eaed 37%,#c8d7dc 100%); /* IE10+ */ background: linear-gradient(to bottom, #f2f5f6 0%,#e3eaed 37%,#c8d7dc 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f2f5f6', endColorstr='#c8d7dc',GradientType=0 ); /* IE6-9 */ font-family:Tahoma, Geneva, sans-serif; padding:4px 10px; border:1px solid #d3d3d3; } #replyMessage input[type=button]:hover{ background: #ff7400; /* Old browsers */ background: -moz-linear-gradient(top, #ff7400 0%, #ff7400 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ff7400), color-stop(100%,#ff7400)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #ff7400 0%,#ff7400 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #ff7400 0%,#ff7400 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #ff7400 0%,#ff7400 100%); /* IE10+ */ background: linear-gradient(to bottom, #ff7400 0%,#ff7400 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff7400', endColorstr='#ff7400',GradientType=0 ); /* IE6-9 */ color:#FFF; } #replyMessage ul{ padding:5px 0px; } a.delmsg{ position:absolute; z-index:999; right:15px; opacity:0.2; padding:2px 10px; font-size:11px; color:#2D2D2D; } #fullmessageModel ul li:hover a.delmsg{ opacity:0.8; } #inbox{ position:relative; } #fullmessageModel ul li:hover a.delmsg:hover{ opacity:1; color:#C61115; } ul#inbox h2.mailheading{ background: #45484d; /* Old browsers */ /* IE9 SVG, needs conditional override of 'filter' to 'none' */ background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzQ1NDg0ZCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiMwMDAwMDAiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+); background: -moz-linear-gradient(top, #45484d 0%, #000000 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#45484d), color-stop(100%,#000000)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #45484d 0%,#000000 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #45484d 0%,#000000 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #45484d 0%,#000000 100%); /* IE10+ */ background: linear-gradient(to bottom, #45484d 0%,#000000 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#45484d', endColorstr='#000000',GradientType=0 ); /* IE6-8 */ color:#DFDFDF; width:100%; margin:-10px 0px 0px -10px; border-top-left-radius:10px; border-top-right-radius:10px; padding:12px 10px!important; font-size:18px; border:0px; margin-bottom:10px; } ul#inbox{ border-top-left-radius:10px; border-top-right-radius:10px; } ul#inbox h2{ border:0px; padding-left:0px; } ul#mailmenu{ width:21%; float:left; padding:10px; background:#222223; margin-top:20px; box-shadow:0px 0px 8px #333; border-radius:10px; } ul#mailmenu li a{ display:block; padding:5px 10px; color:#C0C0C0; background:#272728; border-bottom:1px solid #222223; line-height:32px; } ul#mailmenu li a:hover, ul#mailmenu li a.active{ background:#373738; } ul#mailmenu li a img{ float:left; } #leftactionWrapper{ width:22%; text-align:center; float:left; } #leftactionWrapper a.btn{ padding:8px 10px; display:block; margin:5px 20px 10px 20px; color:#2A2A2A; border-radius:5px; border:1px solid #d3d3d3; background: #ffffff; /* Old browsers */ /* IE9 SVG, needs conditional override of 'filter' to 'none' */ background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNlNWU1ZTUiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+); background: -moz-linear-gradient(top, #ffffff 0%, #e5e5e5 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#e5e5e5)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #ffffff 0%,#e5e5e5 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #ffffff 0%,#e5e5e5 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #ffffff 0%,#e5e5e5 100%); /* IE10+ */ background: linear-gradient(to bottom, #ffffff 0%,#e5e5e5 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#e5e5e5',GradientType=0 ); /* IE6-8 */ } #memberAttributeFormHeading .showmore{ float:right; } #memberAttributeFormHeading .showmore a{ display:inline-block; font-size:11px; color:#CCCCCC; padding:5px 10px; border:1px solid #222222; background:#222222; margin-top:-5px; border-radius:5px; } #loginPage h2{ text-align:left; } #loginPage label{ color:#141414; } #loginPage table{ margin:60px auto; } #loginPage #loginForm td p a{ color:#D4D4D4; } div#errormsg{ background:#1F1F21; color:#C0C0C0; margin-top:25px; padding:12px 0px; margin-bottom:15px; font-family: 'Roboto'; font-style: normal; font-weight: 400; text-align:center; } .classname { -moz-box-shadow:inset 0px 1px 0px 0px #ffffff; -webkit-box-shadow:inset 0px 1px 0px 0px #ffffff; box-shadow:inset 0px 1px 0px 0px #ffffff; background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ededed), color-stop(1, #c4c4c4) ); background:-moz-linear-gradient( center top, #ededed 5%, #c4c4c4 100% ); filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#c4c4c4'); background-color:#ededed; -webkit-border-top-left-radius:6px; -moz-border-radius-topleft:6px; border-top-left-radius:6px; -webkit-border-top-right-radius:6px; -moz-border-radius-topright:6px; border-top-right-radius:6px; -webkit-border-bottom-right-radius:6px; -moz-border-radius-bottomright:6px; border-bottom-right-radius:6px; -webkit-border-bottom-left-radius:6px; -moz-border-radius-bottomleft:6px; border-bottom-left-radius:6px; text-indent:0; border:1px solid #dcdcdc; display:inline-block; color:#555; font-family: 'Roboto'; font-style: normal; font-weight: 400; font-size:12px; padding:5px 15px; text-decoration:none; text-align:center; text-shadow:1px 1px 0px #ffffff; } .classname:hover { background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #c4c4c4), color-stop(1, #ededed) ); background:-moz-linear-gradient( center top, #c4c4c4 5%, #ededed 100% ); filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#c4c4c4', endColorstr='#ededed'); background-color:#c4c4c4; }.classname:active { position:relative; top:1px; } /* This button was generated using CSSButtonGenerator.com */ body#mail li.mailbtn a, body#search li.searchbtn a, body#mail li.mailbtn a, body#mail li.mailbtn a { color:#F55439; } #pictures{ position:absolute; padding-top:10px; right:0; width:25%; margin-right:-25%; } #userBox span.profilepic img.verfied{ width:auto; height:auto; min-height:0; position:absolute; margin:-7px 0px 0px -4px; } #footer{ font-size:11px; } #footer a{ color:#181818; padding:0px 10px; text-decoration:underline; } #footer a:hover{ text-decoration:none; } #formpage{ padding:25px; width:500px; background:#202021; border-radius:5px; font-size:12px; margin-bottom:45px; margin-left:20px; } #formpage label{ display:block; padding:15px 0px 8px 0px; } #formpage input[type=text], #formpage textarea{ width:97%; padding:9px 9px; resize:none; border:1px solid #d3d3d3; } #formpage #upload-dropzone{ border:1px solid #DDDDDD; background:#EAEAEA; padding:7px; color:#2D2D2D; text-align:center; margin:0px 0px 15px 0px; } #formpage #upload-dropzone input{ display:none; } #blogEnteries{ background:#232326; padding:15px 20px; margin:15px 0px 0px 0px; border-radius:15px; } #blogEnteries h3{ font-family: 'Roboto'; font-size:22px; font-weight:700; padding:5px 0px 15px 0px; } #blogEnteries ul li{ width:40%; margin-right:20px; padding:15px 15px 15px 60px; background: url(images/blog_compose.png) no-repeat 10px center / 40px auto #0F0F11; float:left; } #blogEnteries ul li h2{ font-size:14px; border:0px; font-weight:normal; margin:0px; padding:0px; line-height:18px; min-height:36px; } #blogEnteries ul li:last-child{ margin:0px; } #blogEnteries ul li h2 a{ color:#FFFFFF; display:block; } #blogEnteries ul li h2 a:hover{ text-decoration:underline; } #blogEnteries a.viewAllbtn{ background:#0F0F11; display:inline-block; float:right; color:#FFFFFF; margin-top:-5px; padding:5px 12px; font-size:12px; font-weight:normal; } #blogEnteries a.viewAllbtn:hover{ text-decoration:underline; color:#fff!important; background:#F55438; } #recentActivity #memberLists #picture{ width:66px; height:66px; } #recentActivity #memberLists li{ width:auto; float:none; clear:both; border:0px; padding:5px 0px; } #recentActivity #memberLists li #details{ width:165px; } #recentActivity #memberLists li .uname a{ color:#181818; border:0px; } #recentActivity #memberLists li{ margin-right:0px!important; } #userRecommendation{ position:absolute; right:0; top:210px; padding:15px; background: #0F0F11; border-radius:15px; width:135px; } #userRecommendation li img{ width:100%; } #userRecommendation li span.userpic{ margin:0px 20px; display:inline-block; max-height:110px!important; overflow:hidden; } #userRecommendation li a{ font-weight:bold; color:#FFFFFF; display:inline-block; padding:5px 0px 10px 0px; font-size:11px; } #leftad{ position:absolute; left:15px; top:210px; overflow:hidden; background: #0F0F11; border-radius:15px; width:150px; } #leftad img{ width:100%; } #header a.upgradeAccount{ position:absolute; right:0; top:0; color:#FFFFFF; font-family: 'Roboto'; font-size:14px; font-weight:500; border-bottom-left-radius:10px; border-bottom-right-radius:10px; box-shadhow:0px 0px 10px #999; } .upgradeAccount { -moz-box-shadow:inset 0px -1px 0px 0px #fce2c1; -webkit-box-shadow:inset 0px -1px 0px 0px #fce2c1; box-shadow:inset 0px -1px 0px 0px #fce2c1; backgroun Hey all So have been working on a file upload script, it was uploading the file but also adding the path name instead of NULL to mysql when no image was to upload, that is now fixed however now it won't upload the actual image to the directory. I tried undoing the mysql changes but it still won't upload the image to the directory. Am testing on my own computer using xampp so no file permission issues, plus it was working before. Any help much appreciated. Thanks <?php $product_code = mysqli_real_escape_string($conn, $_POST['product_code']); $product_name = mysqli_real_escape_string($conn, $_POST['product_name']); $category = mysqli_real_escape_string($conn, $_POST['category']); $filter = mysqli_real_escape_string($conn, $_POST['filter']); $description = mysqli_real_escape_string($conn, $_POST['description']); $specification = mysqli_real_escape_string($conn, $_POST['specification']); $price = mysqli_real_escape_string($conn, $_POST['price']); $target_dir = "../images/products/"; if (!isset ($_FILES["img1"]["name"])) { $target_file1 = NULL; } else { if (!empty($_FILES["img1"]["name"])) { $target_file1 = $target_dir . basename($_FILES["img1"]["name"]); } else { $target_file1 = NULL; } } if (!isset ($_FILES["img2"]["name"])) { $target_file2 = NULL; } else { if (!empty($_FILES["img2"]["name"])) { $target_file2 = $target_dir . basename($_FILES["img2"]["name"]); } else { $target_file2 = NULL; } } if (!isset ($_FILES["img3"]["name"])) { $target_file3 = NULL; } else { if (!empty($_FILES["img3"]["name"])) { $target_file3 = $target_dir . basename($_FILES["img3"]["name"]); } else { $target_file3 = NULL; } } if (!isset ($_FILES["img4"]["name"])) { $target_file4 = NULL; } else { if (!empty($_FILES["img4"]["name"])) { $target_file4 = $target_dir . basename($_FILES["img4"]["name"]); } else { $target_file4 = NULL; } } $uploadOk = 1; $imageFileType1 = strtolower(pathinfo($target_file1,PATHINFO_EXTENSION)); $imageFileType2= strtolower(pathinfo($target_file2,PATHINFO_EXTENSION)); $imageFileType3 = strtolower(pathinfo($target_file3,PATHINFO_EXTENSION)); $imageFileType4 = strtolower(pathinfo($target_file4,PATHINFO_EXTENSION)); // Check if image file is a actual image or fake image if(isset($_POST["submit"])) { $check1 = getimagesize($_FILES["img1"]["tmp_name"]); $check2 = getimagesize($_FILES["img2"]["tmp_name"]); $check3 = getimagesize($_FILES["img3"]["tmp_name"]); $check4 = getimagesize($_FILES["img4"]["tmp_name"]); if($check1 !== false) { echo "File is an image - " . $check1["mime"] . "."; $uploadOk = 1; } else { echo "File is not an image."; $uploadOk = 0; } if (file_exists($target_file1)) { echo "Sorry, image one already exists."; $uploadOk = 0; } if($imageFileType1 != "jpg" && $imageFileType1 != "png" && $imageFileType1 != "jpeg" && $imageFileType1 != "gif" ) { echo "Sorry, only JPG, JPEG, PNG & GIF files are allowed for img1."; $uploadOk = 0; } if ($uploadOk == 0) { echo "Sorry, your file was not uploaded."; // if everything is ok, try to upload file } else { if (move_uploaded_file($_FILES["img1"]["tmp_name"], $target_file1)) { echo "The file ". htmlspecialchars( basename( $_FILES["img1"]["name"])). " has been uploaded."; } else { echo "Sorry, there was an error uploading image one."; } } echo '<br />'; if($check2 !== false) { echo "File is an image - " . $check2["mime"] . "."; $uploadOk = 1; } else { echo "File is not an image."; $uploadOk = 0; } if (file_exists($target_file2)) { echo "Sorry, image two already exists."; $uploadOk = 0; } if($imageFileType2 != "jpg" && $imageFileType2 != "png" && $imageFileType2 != "jpeg" && $imageFileType2 != "gif" ) { echo "Sorry, only JPG, JPEG, PNG & GIF files are allowed for img2."; $uploadOk = 0; } if (isset ($target_file2)) { if ($uploadOk == 0) { echo "Sorry, your file was not uploaded."; // if everything is ok, try to upload file } else { if (move_uploaded_file($_FILES["img2"]["tmp_name"], $target_file2)) { echo "The file ". htmlspecialchars( basename( $_FILES["img1"]["name"])). " has been uploaded."; } else { echo "Sorry, there was an error uploading image two."; } } } echo '<br />'; if($check3 !== false) { echo "File is an image - " . $check3["mime"] . "."; $uploadOk = 1; } else { echo "File is not an image."; $uploadOk = 0; } if (file_exists($target_file3)) { echo "Sorry, image three already exists."; $uploadOk = 0; } if($imageFileType3 != "jpg" && $imageFileType3 != "png" && $imageFileType3 != "jpeg" && $imageFileType3 != "gif" ) { echo "Sorry, only JPG, JPEG, PNG & GIF files are allowed for img3."; $uploadOk = 0; } if (isset ($target_file3)) { if ($uploadOk == 0) { echo "Sorry, your file was not uploaded."; // if everything is ok, try to upload file } else { if (move_uploaded_file($_FILES["img3"]["tmp_name"], $target_file3)) { echo "The file ". htmlspecialchars( basename( $_FILES["img3"]["name"])). " has been uploaded."; } else { echo "Sorry, there was an error uploading image three."; } } } echo '<br />'; if($check4 !== false) { echo "File is an image - " . $check4["mime"] . "."; $uploadOk = 1; } else { echo "File is not an image."; $uploadOk = 0; } if (file_exists($target_file4)) { echo "Sorry, image four already exists."; $uploadOk = 0; } if($imageFileType4 != "jpg" && $imageFileType4 != "png" && $imageFileType4 != "jpeg" && $imageFileType4 != "gif" ) { echo "Sorry, only JPG, JPEG, PNG & GIF files are allowed for img4."; $uploadOk = 0; } if (isset ($target_file4)) { if ($uploadOk == 0) { echo "Sorry, your file was not uploaded."; // if everything is ok, try to upload file } else { if (move_uploaded_file($_FILES["img4"]["tmp_name"], $target_file4)) { echo "The file ". htmlspecialchars( basename( $_FILES["img4"]["name"])). " has been uploaded."; } else { echo "Sorry, there was an error uploading image four."; } } } } echo '<br />'; $image1 = basename($target_file1); $image2 = basename($target_file2); $image3 = basename($target_file3); $image4 = basename($target_file4); // Create connection $conn = mysqli_connect($servername, $username, $password, $dbname); // Check connection if (!$conn) { die("Connection failed: " . mysqli_connect_error()); } $sql = "INSERT INTO products (product_code, product_name, category, filter, description, specification, img1, img2, img3, img4, price) VALUES('$product_code', '$product_name', '$category', '$filter', '$description', '$specification', '$image1', '$image2', '$image3', '$image4', '$price')"; if (mysqli_query($conn, $sql)) { echo "Product Added successfully, Now on to the Sizes"; } else { echo "Error: " . $sql . "<br>" . mysqli_error($conn); } ?>
if ($btn){ if((!empty($filename)) && ($error == 0)) { if (($filetype == "image/jpeg" || $filetype == "image/jpg" || $filetype == "image/gif" || $filetype == "image/png") && ($filesize < 4508876)) { $moving_flag = true; $moving_msg = "Your image has been uploaded!"; } else { $upl_error_msg = "Error: Only jpg/gif/png images under 4Mb are accepted for upload"; $upl_error_flag = true; } } else { $upl_error_msg = "Error: No file uploaded"; $upl_error_flag = true; } } Why the above code wont work on IE and wont show me "Your image has been uploaded!" message when i have a valid type and size? it works on chrome and FF I know there has to be something to make this script read the whole file.. I have a script that is supposed to implode some stuff in front of an id.. I have a text file with 1.18 million ids that I need the script to read and implode the ids to a new file, well.. the script only reads to the 39k mark and then the script closes.. anyway to stop this from happening? Here is the code <?php $filename = "ids.txt"; $filename2 = "text2.txt"; $file = file($filename, FILE_SKIP_EMPTY_LINES); foreach($file as $cwb) { $cwb = trim($cwb, "\n\r"); $ids[] = "\$id_to_save[] = ".$cwb.";"; } file_put_contents($filename2,implode($ids,"\n")); ?> Hi, really need some extra brains to help me with this one! I have a form with only 1 text box (input type=text) in this textbox I enter a local path on my computer to a specific folder. in this folder I have few files, each has a set name that I know in advance. what I want to do is to be able to upload all those files in my local folder to the server, without making the user click browes and pick them 1 by 1. I searched and searched but I see it's not as simple as I thought cuz I can't just set the value of the input file.. since my page has a form eitherway I thought of maybe doing something sneaky and hiding the input files and some how passing them the path of each file (the folder path will be taken from the not hidden textbox) and the file name is known to me so I can add those 2 somehow.. I can't find a way to do that, so I wonder if any of you have an idea? maybe it's possible to set the file path after the form is submited? basicly I think it's possible to give the name of the file, but I also need the temp name of the file ($_FILES['docfile1']['tmp_name']), and this I don't know how to set.. this is my code for uploading a file with <input type=file> Code: [Select] if ($_FILES['docfile1']['name']!='') { $target = 'import/'; $target = $target . basename($_FILES['docfile1']['name']); if ($target =="import/myfile.xlsx"){ if (file_exists($target)) unlink($target); if (move_uploaded_file($_FILES['docfile1']['tmp_name'], $target)) { echo 'success'; }else{ echo 'fail'; } }else{ echo 'fail'; } }desperately need help! I am working on making an album however I am not sure where I am going wrong with my codes. I have an upload and thumbs folder in the albums folder but I keep getting this message.... Warning: mkdir() [function.mkdir]: File exists in /home/ebermy5/public_html/albums/album_func.php on line 44 Warning: mkdir() [function.mkdir]: File exists in /home/ebermy5/public_html/albums/album_func.php on line 45 Warning: Cannot modify header information - headers already sent by (output started at /home/ebermy5/public_html/albums/create_album.php:9) in /home/ebermy5/public_html/albums/create_album.php on line 29 Codes: for line 44 and 45 function create_album($album_name, $album_description){ $album_name = mysql_real_escape_string(htmlentities($album_name)); $album_description = mysql_real_escape_string(htmlentities($album_description)); mysql_query("INSERT INTO `albums` VALUES ('', '".$_SESSION['SESS_ID']."', UNIX_TIMESTAMP(), `$album_name`,`$album_description`)"); mkdir('uploads/'.mysql_insert_id(), 0744); mkdir('uploads/thumbs/'.mysql_insert_id(), 0744); } Code: for line 29 if(isset($_POST['album_name'], $_POST['album_description'])){ $album_name = $_POST['album_name']; $album_description = $_POST['album_description']; $errors = ""; if(empty($album_name) || empty($album_description)){ $errors = 'Album name and description required'; }else{ if(strlen($album_name) > 55 || strlen($album_description) > 255){ $errors = 'One or more fields contains too many characters'; } } if(!empty($errors)){ foreach($errors as $error){ echo $errors, '<br />'; } } else { create_album ($album_name, $album_description); header('Location: albums.php'); exit(); } } ok im stuck again and need help. I have gotten rid of the attachment system(too many issues) on ASF and decided to replace it with my own. The problem is that the original new post form is sent to php via jQuery. Obv i cannot do this with files so the attachment section needs to be a seperate form. Now i have no issues with sending files to the folder and sending their name to the database but i need to send multiple. so far when the user selects a file it will add the name of it to a hidden input element and each one that is added to that element is seperated with | . then in the php i would use explode on this element to get an array of the file names. but this only helps when sending to the database and not when moving files. I also dont want a page refresh when uploading files. No other file upload systems out there will work because they upload the file as soon as you press submit, but then how do i add the post id to the attachments row in the database? Hi, I have a system that uses PHP to create a Word Doc as information is extracted from a table using this code: Code: [Select] header("Content-type: applicaton/save"); header("Content-Disposition: attachment; filename="FILE NAME".doc"); header("Pragma: no-cache"); header("Expires: 0"); This part of the system I'm trying to implement is working fine. However, what I would ideally like for it to do (and at this point I understand that it sounds a bit pointless) is to save that downloaded file onto a specified folder location on the server directory i.e. to the uploads folder. This will enable all users of the system to then download / view these files as required. I'm not sure whether this is possible or not but and help would be greatly appreciated. Thanks in advance, Ben i am using the fancy upload script for post attachments on my forum. the problem is that when a user starts a new post and adds an attachment the attachment is uploaded before the post is complete. so how would i associate the attachment with the post that they are going to post when i have no post id to go off? i had tried not uploading the files straight away and instead populate an input box with the filenames but i cant figure it out with this script. Anyone got any other options or ideas? ok i added this script in the bottom of my other uploader script.
what i wanted to do was, to upload an imagefile to an folder called uploads
and in the same time add the name of the file to an database called uploads,
together with the next id of another database
i dont get any error msg, the page is just blank.
<?php include 'sqlconnect.php'; $result = mysql_query(" SHOW TABLE STATUS LIKE 'aktiviteter' "); $data = mysql_fetch_assoc($result); $next_increment = $data['Auto_increment']; $sql = sprintf( "INSERT INTO aktiviteter (`title`, `firma`, `beskrivelse`, `information`, `pris`, `varighed`, `antal`, `adresse`, `by`, `postnummer`, `telefon`, `email`, `hjemmeside`) VALUES ('%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s')", mysqli_real_escape_string($con, $_POST['title']), mysqli_real_escape_string($con, $_POST['firma']), mysqli_real_escape_string($con, $_POST['beskrivelse']), mysqli_real_escape_string($con, $_POST['information']), mysqli_real_escape_string($con, $_POST['pris']), mysqli_real_escape_string($con, $_POST['varighed']), mysqli_real_escape_string($con, $_POST['antal']), mysqli_real_escape_string($con, $_POST['adresse']), mysqli_real_escape_string($con, $_POST['by']), mysqli_real_escape_string($con, $_POST['postnummer']), mysqli_real_escape_string($con, $_POST['telefon']), mysqli_real_escape_string($con, $_POST['email']), mysqli_real_escape_string($con, $_POST['hjemmeside']) ); if (!mysqli_query($con, $sql)) { die('Error: ' . mysqli_error($con)); } echo "Aktiviteten er uploaded"; if(isset($_POST['upload'])) { $allowed_filetypes = array('.jpg','.jpeg','.png','.gif'); $max_filesize = 10485760; $upload_path = 'uploads/'; $targetId = $next_increment $filename = $_FILES['billede']['name']; $ext = substr($filename, strpos($filename,'.'), strlen($filename)-1); if(!in_array($ext,$allowed_filetypes)) die('The file you attempted to upload is not allowed.'); if(filesize($_FILES['billede']['tmp_name']) > $max_filesize) die('The file you attempted to upload is too large.'); if(!is_writable($upload_path)) die('You cannot upload to the specified directory, please CHMOD it to 777.'); if(move_uploaded_file($_FILES['billede']['tmp_name'],$upload_path . $filename)) { $query = "INSERT INTO uploads (name, target) VALUES ($filename, $targetId)"; mysql_query($query); echo 'Your file upload was successful!'; } else { echo 'There was an error during the file upload. Please try again.'; } } mysqli_close($con); I don't know why this image upload code isn't uploading the image file to the uploads/ folder.
Any help will be appreciated.
$allowedExts = array("gif", "jpeg", "jpg", "png"); $temp = explode(".", $_FILES["file"]["name"]); $extension = strtolower( end($temp) ); if ( $_FILES["file"]["size"] < 2000000 && in_array($extension, $allowedExts) ) { if ($_FILES["file"]["error"]!= 0) { echo "Return Code: " . $_FILES["file"]["error"] . "<br>"; } else { $length = 20; $randomString = substr(str_shuffle(md5(time())),0,$length); $newfilename = $randomString . "." . $extension; move_uploaded_file($_FILES["file"]["tmp_name"], "upload/" . $newfilename ); $file_location = '<a href="http://www.--.com/upload/' . $newfilename . '">http://www.--.com/upload/' . $newfilename . '</a>'; } } else { echo "Invalid upload file"; } <form enctype="multipart/form-data" action="uploader.php"> <input type="file" name="file" id="file"> <input type="submit" name="submitted" value="Submit"> </form> please just deleting this post I think i figured it out Sorry for posting this here, but for some reason the "create new topic" in linux subforum doesnt exist. anyways i made a small php script that enables me to retrieve data between two dates. now am stuck on how i should copy it or u0pload it into linux. system tells me i need to upload to /usr/bin/libexec , i am there now but i dont have the slightest idea on how to do that. help is much appreciated. Thanks Hello I am new to programming, coding, php... and need some help. I have some code that uploads a file and does some basic checks but I also want it to rename the file possibly adding the time stamp. Heres what I have so far. cheers. $tbl_name="guestbook"; // Table name $email = $_REQUEST["email"]; $name = $_REQUEST["name"]; $comment = $_REQUEST["comment"]; $_FILES["file"]["name"]; $_FILES["file"]["type"]; $_FILES["file"]["size"]; $_FILES["file"]["tmp_name"]; $_FILES["file"]["error"]; $datetime = date("dmy"); $uploaddir = "upload/"; $filename = $_FILES["file"]["name"]; $pathinfo = pathinfo($_FILES['userfile1']['name']); mysql_connect("$host", "$username", "$password")or die("cannot connect server "); mysql_select_db("$db_name")or die("cannot select DB"); $sql="INSERT INTO $tbl_name(name, email, comment, datetime)VALUES('$name', '$email', '$comment', '$datetime')"; $result=mysql_query($sql); if($result){ echo "Successful added update to the Melody Bear Bulletin Board"; echo "<BR>"; echo "<a href='ViewBulletinBoard.php'>View Bulletin Board</a>"; } else { echo "ERROR"; } if ((($_FILES["file"]["type"] == "image/gif") || ($_FILES["file"]["type"] == "image/jpeg") || ($_FILES["file"]["type"] == "image/pjpeg")) && ($_FILES["file"]["size"] < 2000000)) { if ($_FILES["file"]["error"] > 0) { echo "Return Code: " . $_FILES["file"]["error"] . "<br />"; } else { echo "Upload: " . $_FILES["file"]["name"] . "<br />"; echo "Type: " . $_FILES["file"]["type"] . "<br />"; echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb<br />"; echo "Temp file: " . $_FILES["file"]["tmp_name"] . "<br />"; if (file_exists("upload/" . $_FILES["file"]["name"])) { echo $_FILES["file"]["name"] . " already exists. "; } else { move_uploaded_file($_FILES["file"]["tmp_name"], "upload/" . $_FILES["file"]["name"]); echo "Stored in: " . "upload/" . $_FILES["file"]["name"]. "<br>"; } } } else { echo "Invalid file"; } mysql_close(); ?> I am having trouble getting my upload file to work... Form HTML: Code: [Select] <form action="" method="POST"> <input type="file" name="file" /> <input type='"submit" name="upload" value="Upload" /> </form> PHP: Code: [Select] if($_POST["upload_avatar"]){ $upload_path = "images/users/"; $file = $_FILES["file"]["name"]; $extension_types = array("gif","jpg","jpeg","png"); if($file){ $filename = stripslashes($_FILES["file"]["name"]); $extension = getExtension($filename); $extension = strtolower($extension); $size = filesize($_FILES["file"]["tmp_name"]); if(in_array($extension, $extension_types)){ if($size <= $max_file_size){ $file_search = glob($upload_path . strtolower($username) . '*'); array_map("unlink", $file_search); $file_name = $upload_path . strtolower($username) . "." . $extension; $copied = copy($_FILES["file"]["tmp_name"], $file_name); if (!$copied){ $r_error = "Upload has failed"; } } else{$r_error = "File too big";} } else{$r_error = "Unknown file extension";} } else{$r_error = "No file chosen";} } Every time, it gives me the "No File Chosen" error. It doesn't seem to be actually uploading the file... I hope this isn't just some stupid thing I am looking over, can someone help me? Hi All Please can someone help me. I have a CSV file with over 3000 lines. Each one contains the following information Country Insurance Name Mandatory or Optional Description and Coverage Group SIPP Cost Per Day Cost Per Week Cost Per Month Deductable I have written the following script to read line by line, compare the country and insurance with the previous and if it is the same, tag certain parts of each line onto the end of the previous. However, I am getting no output from this, and I keep getting an error saying I am using too much memory or my computer hangs. I am fairly new to php so any pointers would be good. Firstly, does my script look like it should do what I want it to do? If so, any clues how to get around the momory issue. If not, what have I done wrong? Cheers guys <?php //open file paths $handle=fopen("insurances.csv","r"); $handle_out=fopen("insuranceoutput.csv","a"); //writes the first line of the csv file into an array to act as a comparrison if($handle){ $line=fgets($handle); $line_array=explode(",",$line); $full_array=$line_array; fclose($handle); } } if($handle) { while (!feof($handle)) { // read one line into array $line=fgets($handle); $line_array=explode(",",$line); fclose($handle); //test to see if country matches previous while ($line_array[0] == $full_array[0]) { //test to see if insurance matches previous while ($line_array[1] == $full_array[1]) { //write array values 4 - 9 to main array $full_array[]=array("$line_array[4]","$line_array[5]","$line_array[6]","$line_array[7]","$line_array[8]","$line_array[9]"); } } //write to new file when new insurance is found foreach($full_array as $output) { fwrite($handle_out, "$output,"); } fwrite($handle_out,"\n"); fclose($handle_out); } // write to new file if new country is found. foreach($full_array as $output) { fwrite($handle_out, "$output,"); } fwrite($handle_out,"\n"); fclose($handle_out); } } ?> I am using a script found off the web to upload file and show a ajaxy waiting image. In the code for the actual upload is this code $destination_path = getcwd().DIRECTORY_SEPARATOR; $result = 0; $target_path = $destination_path . basename( $_FILES['myfile']['name']); if(@move_uploaded_file($_FILES['myfile']['tmp_name'], $target_path)) { $result = 1; } I am running it from domain.com/label/manage/add-file/upload.php and it uploads the file to domain.com/label/manage/add-file/ How can I upload the file to domain.com/files/123/432/ Do I need to modify the destination path? Also do i need to start it from /home/user/......... Thanks I actually have two parts to this post. One which describes just my understanding on how a multipart request should look with a REST API and gives a little context, and the second how to actually implement it using Sympony and api-platform. Part 1 Looking to simultaneously upload a file, some file meta data, and identifier of the uploading user to a REST API, and will do so using a multipart request. Based on swagger, looks like the request should look something like the following: POST /upload HTTP/1.1 Content-Length: 428 Content-Type: multipart/form-data; boundary=abcde12345 --abcde12345 Content-Disposition: form-data; name="id" Content-Type: text/plain 123e4567-e89b-12d3-a456-426655440000 --abcde12345 Content-Disposition: form-data; name="address" Content-Type: application/json { "street": "3, Garden St", "city": "Hillsbery, UT" } --abcde12345 Content-Disposition: form-data; name="profileImage "; filename="image1.png" Content-Type: application/octet-stream {…file content…} --abcde12345-- Background noise... The above example shows three parts which include the text ID, JSON address and octet-stream file. Doing so doesn't make sense to me and I will probably just have two parts for the meta data JSON. Note that potentially, I will be removing the user from the JSON payload and including it in some JWT header. Also, showing resources as links such as /api/users/1 in the request and response JSON is new to me, but I guess makes sense. Regardless, my meta data JSON will look like: { "projectId": 1234, "documentDescription": "bla bla bla", "specification": "230903.2.4.D", "user": "/api/users/1" } and the response will look like: { "projectId": 1234, "documentDescription": "bla bla bla", "specification": "230903.2.4.D", "uploadAt": "2021-01-27 08:41:17", "fileName": "pressuresensor.pdf". "user": "/api/users/1". "file": "/api/uplodaed_files/1234" } Am I somewhat going down the right path? Part 2 Wow, should have looked into Sympony before now! Entities, validation, the API, etc were a breeze. Still confused with some of the "magic", but understanding what is under the hood more and more. As stated initially, I am utilizing api-platform and am looking at api-platform's file-upload. I guess the first question is whether my POST request with both the file and JSON meta data can be performed in a single request. Per making-a-request-to-the-media_objects-endpoint: QuoteYour /media_objects endpoint is now ready to receive a POST request with a file. This endpoint accepts standard multipart/form-data-encoded data, but not JSON data. What? Am I reading this correct? Do I first need to make a multipart requests using either a standard HTML form or a XMLHttpRequest which just sends the file, receive the document locator, and then send a second request with the location and my meta data? If so, I guess I have enough to go forward. I would rather, however, perform the work in a single request. My previous mentioned swagger multipart-requests shows both in the same request. symfonycasts's api-uploads also describes doing so, but not with api-platform. Is there a way to do so with api-platform? Does it make sense to use api-platform for all other routes but then make a custom route for document with meta data uploads? Any recommendations are much appreciated. Thanks |