Jump to content

papillonstudios

Members
  • Posts

    294
  • Joined

  • Last visited

Everything posted by papillonstudios

  1. Yea I tried it but it doesn't accept my password
  2. change mine from gfadmin to papillonstudios
  3. Fixed it myself, My solution was Isotope!
  4. or this one http://erikjohanssonphoto.com/work/imagecats/personal/
  5. Ok this is what im look for, as a direct example! http://tweetwall.apps.zappos.com/index.html White_Lily im not doing it your way, I know now that with masonry that it does work
  6. Like I said I went back to Masonry and got it partially working.
  7. Alright so I took another shot a masonry and Im still right where i started . if I remove the column-width from the item class this happens: add the column-width back and i get this: Here are the file i modified from the the masonry demo site(http://meta.metafizzy.co/files/masonry-site.zip) style.css /**** Base styles ****/ html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline; } article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; } html { overflow-y: scroll; } body { font: 13px 'Helvetica Neue', Arial, sans-serif; background: #D8D5D2; color: #222; line-height: 1.6em; } a { color: #A2C; text-decoration: none; font-weight: bold; } a:hover { color: #D26; } a:active { background: hsla( 0, 100%, 100%, 0.5 ); } h1, h2 { font-weight: 100; line-height: 1.2em; margin-bottom: 0.6em; } h1 { font-size: 36px; } h2 { font-size: 24px; } h3 { font-size: 17px; font-weight: bold; } h3, p, ul, ol, pre, dl { margin-bottom: 1.0em; } strong { font-weight: bold; } /**** #site-nav ****/ #site-nav { position: absolute; width: 180px; padding: 0 10px; } #site-nav h1 { font-weight: 600; font-size: 18px; margin-bottom: 0.8em; padding-top: 10px; } #site-nav h1 a { color: #D26; } #site-nav h1 a:hover { color: #A2C; } #site-nav h2 { font-size: 17px; font-weight: normal; margin-bottom: 0.3em; } #site-nav ul { list-style: none; padding-left: 0; font-size: 12px; } #site-nav li { -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; } #site-nav li a { display: block; padding: 3px 5px; } #site-nav li.current { background: #C8C5C2; } #site-nav li.current a { color: white; } #site-nav li.current a:hover { color: #D26; } #site-nav li ul { margin-bottom: 0; } #site-nav li li { font-size: 11px; line-height: 1.4em; } #site-nav li li a { padding-left: 15px; } #site-nav li.selected li a { padding: 3px; background: none; } #site-nav li.selected li a:hover { color: #D26; } /**** Content ****/ #content { padding: 10px; } /* screens smaller than 640 */ @media screen and (max-width: 640px) { #site-nav { width: auto; position: relative; left: auto; top: auto; padding-top: 0px; height: auto; margin-bottom: 20px; } #content { padding-left: 10px; } } .copy h2 { clear: both; } a img { border: none; } pre, code { font-family: Monaco, monospace; font-size: 12px; background: #111; color: #F5F5F5; } p code { padding: 1px 3px; } pre { padding: 10px; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; } ul, ol { padding-left: 1.3em;} .hidden { display: none; } .copy { width: 600px; line-height: 1.55em; } blockquote { margin: 0; font: italic 18px Georgia, serif; } dt { font-weight: bold; font-size: 14px; } dd + dt { margin-top: 0.5em; } dd { margin-left: 1.0em; } button { -webkit-appearance: push-button; } #site-footer { clear: both; margin: 20px 0px; border-top: 2px solid white; padding-top: 10px; line-height: 30px; font-size: 95%; font-style: italic; } .license-copy { font-size: 85%; } .demos #copy, .docs #content { max-width: 640px; } .docs #content h2 { border-top: 2px solid #FFF; padding-top: 10px; } .docs #content h2:target { background: #D26; color: white; padding: 10px 5px 5px; } /**** Docs ****/ .options dl dt { font-weight: normal; } .options dl dt, .options dl dd { float: left; padding: 0 1.2em;; background: #161616; line-height: 32px; height: 32px; margin: 0; } .options dl.header dt, .options dl.header dd { background: #444; } .options dl .option-type { font-size: 13px; color: #AAA; font-style: italic; } .options dl dd { margin-left: 1px; } /**** Demos ****/ #container { background: #FFF; padding: 5px; border-radius: 5px; width: 1024px; margin: 0 auto; } .centered { margin: 0 auto; } .box { margin: 5px; padding: 5px; background: #D8D5D2; font-size: 11px; line-height: 1.4em; float: left; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; } .box h2 { font-size: 14px; font-weight: 200; } .box img, #tumblelog img { display: block; width: 100%; } .rtl .box { float: right; text-align: right; direction: rtl; } .col1 { width: 234px; } .col2 { width: 483px; } .row1 { height: 234px; max-height: 234px; } .row2 { height: 483px; max-height: 483px; } .col1 img { max-width: 80px; } .col2 img { max-width: 180px; } .col3 img { max-width: 280px; } .col4 img { max-width: 380px; } .col5 img { max-width: 480px; } /**** Gutters ****/ .has-gutters .box { margin: 5px 0; } .has-gutters .col1 { width: 90px; } .has-gutters .col2 { width: 230px; } .has-gutters .col3 { width: 370px; } .has-gutters .col4 { width: 550px; } /**** Transitions ****/ .transitions-enabled.masonry, .transitions-enabled.masonry .masonry-brick { -webkit-transition-duration: 0.7s; -moz-transition-duration: 0.7s; -o-transition-duration: 0.7s; transition-duration: 0.7s; } .transitions-enabled.masonry { -webkit-transition-property: height, width; -moz-transition-property: height, width; -o-transition-property: height, width; transition-property: height, width; } .transitions-enabled.masonry .masonry-brick { -webkit-transition-property: left, right, top; -moz-transition-property: left, right, top; -o-transition-property: left, right, top; transition-property: left, right, top; } /* disable transitions on container */ .transitions-enabled.infinite-scroll.masonry { -webkit-transition-property: none; -moz-transition-property: none; -o-transition-property: none; transition-property: none; } /**** Primer comparison ****/ #comparison { overflow: auto; } #comparison .example { width: 420px; float: left; margin-right: 20px; } #comparison .box h5 { float: left; margin-bottom: 0; font-size: 30px; margin-right: 4px; line-height: 28px; font-weight: bold; color: #FFF; } /* Homepage */ .homepage .item { width: 234px; float: left; margin: 7.5px; background: #B50000; font-weight: 300; } .homepage .big-text, .homepage .link { font-size: 24px; line-height: 1.2em; } .homepage .link { padding: 0; } .homepage .link a { display: block; padding: 10px; width: 200px; background: #D26; color: white; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; } .homepage .link a:hover { background: #A2C; } .homepage .col2 { width: 483px; } .homepage .example { padding: 0; width: 220px; background: transparent; } .homepage .example a { display: block; } .homepage .example img { display: block; width: 100%; } .homepage .example a:hover { background: #D26; color: white; } .homepage .loading { background: black; color: #D8D5D2; } .homepage .loading img { float: left; padding-right: 5px; width: 54px; } /* mini example */ .homepage .mini div { float: left; background: white; margin: 3px; color: #D8D5D2; font-weight: bold; font-size: 32px; line-height: 46px; text-align: center; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; } .homepage .mini .w1 { width: 44px; } .homepage .mini .h1 { height: 44px; } .homepage .mini .w2 { width: 94px; } .homepage .mini .h2 { height: 94px; } /* Tumblelog example */ #tumblelog { background: #FFF; padding: 1.0em; } #tumblelog .story { margin: 10px; border-top: 4px solid #DCB; padding-top: 10px; background: #FFF; float: left; } #tumblelog h1, #tumblelog h2, #tumblelog h3 { font-weight: bold;} #tumblelog .col1 { width: 220px; } #tumblelog .col2 { width: 460px; } #tumblelog .col3 { width: 700px; } #tumblelog .col1 img, #tumblelog .col2 img, #tumblelog .col3 img { max-width: none; } /* Infinite Scroll loader */ #infscr-loading { text-align: center; z-index: 100; position: fixed; left: 45%; bottom: 40px; width: 200px; padding: 10px; background: #000; opacity: 0.8; color: #FFF; -webkit-border-radius: 10px; -moz-border-radius: 10px; border-radius: 10px; } /**** Fluid ****/ #container.fluid { } /* right margin value is 0.1% less than calculated, to allow for rounding errors in Firefox */ .fluid .box { margin: 5px 0.9% 5px 1%; padding: 5px 1%; } .fluid .box.col1 { width: 16%; } .fluid .box.col2 { width: 36%; } .fluid .box.col3 { width: 56%; } /**** Corner stamp ****/ .corner-stamp { width: 280px; height: 340px; padding: 10px; margin: 10px; float: right; background: red; color: white; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; } /**** Pygments ****/ code .s1, code .s { color: #78BD55; } /* string */ code .mi, /* integer */ code .cp, /* doctype */ code .kc { color: #5298D4; } /*boolean*/ code .k { color: #E39B79; } /* keyword */ code .kd, /* storage */ code .na { color: #A9D866; } /* markup attribute */ code .p { color: #EDB; } /* punctuation */ code .o { color: #F63; } /* operator */ code .nb { color: #AA97AC;} /* support */ /* comment */ code .c, code .c1 { color: #666; font-style: italic; } code .nt { color: #A0C8FC; } /* Markup open tag */ code .nf { color: #9EA8B8; } /* css id */ code .nc { color: #A78352; } /* CSS class */ code .m { color: #DE8E50; } /* CSS value */ code .nd { color: #9FAD7E; } /* CSS pseudo selector */ /**** Clearfix ****/ .clearfix:before, .clearfix:after { content: ""; display: table; } .clearfix:after { clear: both; } .clearfix { zoom: 1; } index.html <!doctype html> <html lang="en"> <head> <meta charset="utf-8" /> <title>jQuery Masonry</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]--> <link rel="stylesheet" href="css/style.css" /> <script src="js/modernizr-transitions.js"></script> <!-- scripts at bottom of page --> </head> <body class="homepage "> <section id="content"> <div id="container" class="clearfix"> <div class="item big-text col2 row1"> </div> <div class="item big-text col2 row2"> </div> <div class="item big-text row1"> </div> <div class="item big-text row1"> </div> <div class="item big-text row1"> </div> <div class="item big-text row1"> </div> <div class="item big-text row1"> </div> <div class="item big-text row1"> </div> </div> <!-- #container --> <script src="js/jquery-1.7.1.min.js"></script> <script src="jquery.masonry.min.js"></script> <script> $(function(){ var $container = $('#container'); $container.masonry({itemSelector: '.item',isAnimated: !Modernizr.csstransitions}); //$container.masonry({itemSelector: '.item', column-width: 234,isAnimated: !Modernizr.csstransitions}); }); </script> </section> <!-- #content --> </body> </html> The rest of the files are all the same. Any ideas?
  8. That works and all but only one thing. I don't want to restrict the layout of the tiles. Since it will be grabbing data from a database the size of the tile will depend on what is selected with each entry in the database. Its for a blog so each tile will be displayed in by date. With your code when I have a 2x1 tile then I must have 2 1x1 tiles which sometimes will not be the case. it maybe a 2x1 tile followed by a 2x2 tile which would not display correctly. All posts except image posts will start as a 1x1 tile and when you click on it, it will turn into a 2x1 to display more content. So the other tiles have to be able to adapt to other tiles changing dimensions.
  9. Im not sure if Im posting in the correct spot but I am trying to create a metro styled tile grid. I have made all my tiles but I have one problem. If you put a big tile next to a small tile and then have more tiles below it, there is a space where tiles should be(Figure 1) Figure 1 When i want it to look like this(Figure 2) Figure 2 Any ideas on how I can fix this? The tiles are going to load dynamically so its gotta be a universal fix. Im not sure if I should be using Javascript or css either. So I would like to know: 1: Do I use Javascript or css? 2. How would I fix it with javascript or css?(Depending on what you answered to the first question) My Code <!DOCTYPE HTML> <html lang="en-US"> <head> <meta charset="UTF-8"> <title>Metro Tile Navigation Test</title> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <div class="tile doubleWidth"> </div> <div class="tile double"> </div> <div class="tile single"> </div> <div class="tile single"> </div> <div class="tile single"> </div> <div class="tile single"> </div> <div class="tile single"> </div> <div class="tile single"> </div> </body> </html> My CSS .tile { display: block; float: left; margin: 7.5px; background: #B50000; } .single { width: 234px; height: 234px; } .doubleWidth { width: 483px; height: 234px; } .doubleHeight { width: 234px; height: 483px; } .double { width: 483px; height: 483px; } Thanks in Advance
  10. I am creating a photo ordering script that uploads files to our server then we download and print them(similar ti walmart) and for every time you visit the upload page it creates a cookie with a reference number that is used later while uploading files to create a hierarchy that allows me and the staff to easily organize what photos are printed in what size. the hierarchy is this: uploads/[referenceNumber]/[photoSize]/[photoQuantity]/[the photos] I am using SwfUpload as my file upload script and I need to change the location of $save_path The problem Im having is when creating the folders for the upload path using the cookies. I can do this: die($_COOKIE['photoSize']); and it will output the photo size. but won't create the directory. and the photos are uploaded to uploads/ instead heres all my code *NOTE some of the code below is being load from within another file that has all the connection info, etc. and some files are broken up into other files like wordpress does with header.php, footer.php etc,* header.php <!DOCTYPE HTML> <html lang="en-US"> <head> <meta charset="UTF-8"> <title>Print Photos Online | D & I Photo</title> <link rel="stylesheet" type="text/css" href="style.css" /> <!--[if gte IE 9]> <style type="text/css"> .gradient { filter: none; } </style> <![endif]--> <link href="default.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="swfupload/swfupload.js"></script> <script type="text/javascript" src="js/swfupload.queue.js"></script> <script type="text/javascript" src="js/fileprogress.js"></script> <script type="text/javascript" src="js/handlers.js"></script> <script type="text/javascript"> var upload1, upload2; window.onload = function() { upload1 = new SWFUpload({ // Backend Settings upload_url: "upload.php", post_params: {"PHPSESSID" : "<?php echo session_id(); ?>"}, // File Upload Settings file_size_limit : "102400", // 100MB file_types : "*.*", file_types_description : "All Files", file_upload_limit : "10", file_queue_limit : "0", // Event Handler Settings (all my handlers are in the Handler.js file) file_dialog_start_handler : fileDialogStart, file_queued_handler : fileQueued, file_queue_error_handler : fileQueueError, file_dialog_complete_handler : fileDialogComplete, upload_start_handler : uploadStart, upload_progress_handler : uploadProgress, upload_error_handler : uploadError, upload_success_handler : uploadSuccess, upload_complete_handler : uploadComplete, // Button Settings button_image_url : "XPButtonUploadText_61x22.png", button_placeholder_id : "spanButtonPlaceholder1", button_width: 61, button_height: 22, // Flash Settings flash_url : "swfupload/swfupload.swf", custom_settings : { progressTarget : "fsUploadProgress1", cancelButtonId : "btnCancel1" }, // Debug Settings debug: false }); upload2 = new SWFUpload({ // Backend Settings upload_url: "upload.php", post_params: {"PHPSESSID" : "<?php echo session_id(); ?>"}, // File Upload Settings file_size_limit : "200", // 200 kb file_types : "*.jpg;*.gif;*.png", file_types_description : "Image Files", file_upload_limit : "1000", file_queue_limit : "5", // Event Handler Settings (all my handlers are in the Handler.js file) file_dialog_start_handler : fileDialogStart, file_queued_handler : fileQueued, file_queue_error_handler : fileQueueError, file_dialog_complete_handler : fileDialogComplete, upload_start_handler : uploadStart, upload_progress_handler : uploadProgress, upload_error_handler : uploadError, upload_success_handler : uploadSuccess, upload_complete_handler : uploadComplete, // Button Settings button_image_url : "XPButtonUploadText_61x22.png", button_placeholder_id : "spanButtonPlaceholder2", button_width: 61, button_height: 22, // Flash Settings flash_url : "swfupload/swfupload.swf", swfupload_element_id : "flashUI2", // Setting from graceful degradation plugin degraded_element_id : "degradedUI2", // Setting from graceful degradation plugin custom_settings : { progressTarget : "fsUploadProgress2", cancelButtonId : "btnCancel2" }, // Debug Settings debug: false }); } </script> </head> <body> <div id="navigation"> <ul> <?=fx_list_pages();?> </ul> <div style="clear: both;"></div> </div> <div id="header"> <A href="<?=SITE_URL?>" ><img id="logo" src="images/logo.png" border="0" alt="Logo" /></a> </div> <div id="promo" class="gradient"> <h2>Digital Photos from 19 Cents!</h2> </div> <div id="wrapper"> <div id="sidebar"> <? get_sidebar(); ?> </div> <div id="content"> orderphotos.php(Internally loaded) <?php if (!isset($_GET['step'])) { $step = 1; } else { $step = $_GET['step']; } if ($step == 1) { if (!isset($_COOKIE['referenceNumber'])) { $referenceNum = 0 . 0 . mt_rand(10000, 99999); $query = mysql_query("SELECT * FROM `reference` WHERE referenceNumber='$referenceNum'"); if (($query = mysql_num_rows($query)) > 0) { $validNum = 0; while ($validNum = 0) { $referenceNum = 0 . 0 . mt_rand(10000, 99999); $query = mysql_query("SELECT * FROM `reference` WHERE referenceNumber='$referenceNum'"); if (($query = mysql_num_rows($query)) > 0) { $validNum = 0; } else { $validNum = 1; } } } $_SESSION['referenceNumber'] = $referenceNum; //setcookie("referenceNumber", $referenceNum); $path = 'uploads/' . $referenceNum; mkdir($path, 0755); } echo '<h2>What size of photos are you ordering?</h2>'; ?> <form id="orderForm" action="<?=the_permalink()?>&step=2" method="post"> <table> <tr> <td> <select name="size"> <optgroup label="Single Sizes"> <option value="4x6">4x6</option> <option value="5x7">5x7</option> <option value="8x10">8x10</option> <option value="11x14">11x14</option> <option value="16x20">16x20</option> </optgroup> </select> </td> </tr> <tr> <td><input type="submit" name="step1" value="Continue->" /></td> </tr> </table> </form> <?php } else if ($step == 2) { echo '<h3>How many ' . $_POST['size'] . ' photos do you want each photo you are uploading?</h3>'; ?> <form id="orderForm" action="<?=the_permalink()?>&step=3" method="post"> <input type="hidden" name="size" value="<?=$_POST['size']?>" /> <table> <tr> <td><input type="text" name="quanity" /></td> </tr> <tr> <td><input type="submit" name="step1" value="Continue->" /></td> </tr> </table> </form> <?php } else if ($step == 3) { $_SESSION['photoSize'] = $_POST['size']; $_SESSION['photoQuantity'] = $_POST['quanity']; print($_SESSION['photoQuantity']); //setcookie("photoSize", $_POST['size']); //setcookie("photoQuanity", $_POST['quanity']); if (count($_FILES)) { // Handle degraded form uploads here. Degraded form uploads are POSTed to index.php. SWFUpload uploads // are POSTed to upload.php } ?> <div id="main"> <div id="content"> <h2>Upload Your Photos Online!</h2> <form id="form1" action="index.php" method="post" enctype="multipart/form-data"> <p>Use the form below to upload your photos for printing.</p> <table> <tr valign="top"> <td> <div> <div class="fieldset flash" id="fsUploadProgress1"> <span class="legend">Your Files To Be Uploaded</span> </div> <div style="padding-left: 5px;"> <span id="spanButtonPlaceholder1"></span> <input id="btnCancel1" type="button" value="Cancel Uploads" onclick="cancelQueue(upload1);" disabled="disabled" style="margin-left: 2px; height: 22px; font-size: 8pt;" /> <br /> </div> </div> </td> </tr> </table> </form> </div> </div> <?php } else if ($step = 4) { if (!isset($_POST['sendMail'])) { ?> <h2 id="formHeading">We need to verify your information!</h2> <form action="<?=the_permalink()?>" method="post" id="orderForm" /> <table> <tr> <td>First Name</td> <td>Last Name</td> </tr> <tr> <td><input type="text" name="firstName" value="<?=$_SESSION['first_name']?>" /></td> <td><input type="text" name="lastName" value="<?=$_SESSION['last_name']?>" /></td> </tr> <tr> <td>Email</td> </tr> <tr> <td><input type="text" name="email" value="<?=$_SESSION['email']?>" /></td> </tr> <tr> <td>Phone</td> </tr> <tr> <td><input type="text" name="phone" value="<?=$_SESSION['homePhone']?>" /></td> </tr> <tr> <td><input type="submit" name="sendMail" value="Place Order!" /></td> </tr> </table> </form> <?php } else { $to = 'mail@someurl.com'; $subject = 'You have a new Photo Order!'; $message = 'You have an order from ' . $_POST['firstName'] . ' ' . $_POST['lastName'] . '. The reference number is: ' . $_COOKIE['referenceNumber'] . '! All Photos are in place on the server! Their email is ' . $_POST['email'] . ' and their Phone Number is ' . $_POST['phone']; $headers = "From: email@someurl.com \r\n"; if (mail($to,$subject,$message, $headers)) { $to2 = $_POST['email']; $subject2 = 'You order has been placed!'; $message2 = 'Thank You for ordering photos from D&I Photo. Your order number is: ' . $_COOKIE['referenceNumber'] . '. If you have any question please call [PhoneNumber] for Listowel or [PhoneNumber] for Fergus'; $headers2 = 'From: email@someurl.com \r\n'; if (mail($to2,$subject2,$message2, $headers2)) { setcookie("referenceNumber", "", time() - 3600); setcookie("photoSize", "", time() - 3600); setcookie("photoQuanity", "", time() - 3600); } echo 'You order has been placed!'; echo '<a href="index.php?action=page&paged=2" class="button">Place a new Order!</a>'; } else { echo 'Something went wrong please email <a href="mailto:mail@someurl.com">Tech Support</a>'; } } } ?> upload.php(The Upload Handler) <?php include('config.php'); // Code for Session Cookie workaround if (isset($_POST["PHPSESSID"])) { session_id($_POST["PHPSESSID"]); } else if (isset($_GET["PHPSESSID"])) { session_id($_GET["PHPSESSID"]); } session_start(); // Check post_max_size (http://us3.php.net/manual/en/features.file-upload.php#73762) $POST_MAX_SIZE = ini_get('post_max_size'); $unit = strtoupper(substr($POST_MAX_SIZE, -1)); $multiplier = ($unit == 'M' ? 1048576 : ($unit == 'K' ? 1024 : ($unit == 'G' ? 1073741824 : 1))); if ((int)$_SERVER['CONTENT_LENGTH'] > $multiplier*(int)$POST_MAX_SIZE && $POST_MAX_SIZE) { header("HTTP/1.1 500 Internal Server Error"); // This will trigger an uploadError event in SWFUpload echo "POST exceeded maximum allowed size."; exit(0); } // Settings $save_path = "uploads/" . $_COOKIE['referenceNumber'] . '/' . $_COOKIE['photoSize']; mkdir($save_path, 0755); $save_path = "uploads/" . $_COOKIE['referenceNumber'] . '/' . $_COOKIE['photoSize'] . '/' . $_COOKIE['photoQuanity']. '/'; mkdir($save_path, 0755); //die($save_path); $upload_name = "Filedata"; $max_file_size_in_bytes = 2147483647; // 2GB in bytes $extension_whitelist = array("jpg", "gif", "png"); // Allowed file extensions $valid_chars_regex = '.A-Z0-9_ !@#$%^&()+={}\[\]\',~`-'; // Characters allowed in the file name (in a Regular Expression format) // Other variables $MAX_FILENAME_LENGTH = 260; $file_name = ""; $file_extension = ""; $uploadErrors = array( 0=>"There is no error, the file uploaded with success", 1=>"The uploaded file exceeds the upload_max_filesize directive in php.ini", 2=>"The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form", 3=>"The uploaded file was only partially uploaded", 4=>"No file was uploaded", 6=>"Missing a temporary folder" ); // Validate the upload if (!isset($_FILES[$upload_name])) { HandleError("No upload found in \$_FILES for " . $upload_name); exit(0); } else if (isset($_FILES[$upload_name]["error"]) && $_FILES[$upload_name]["error"] != 0) { HandleError($uploadErrors[$_FILES[$upload_name]["error"]]); exit(0); } else if (!isset($_FILES[$upload_name]["tmp_name"]) || !@is_uploaded_file($_FILES[$upload_name]["tmp_name"])) { HandleError("Upload failed is_uploaded_file test."); exit(0); } else if (!isset($_FILES[$upload_name]['name'])) { HandleError("File has no name."); exit(0); } // Validate the file size (Warning: the largest files supported by this code is 2GB) $file_size = @filesize($_FILES[$upload_name]["tmp_name"]); if (!$file_size || $file_size > $max_file_size_in_bytes) { HandleError("File exceeds the maximum allowed size"); exit(0); } if ($file_size <= 0) { HandleError("File size outside allowed lower bound"); exit(0); } // Validate file name (for our purposes we'll just remove invalid characters) $file_name = preg_replace('/[^'.$valid_chars_regex.']|\.+$/i', "", basename($_FILES[$upload_name]['name'])); if (strlen($file_name) == 0 || strlen($file_name) > $MAX_FILENAME_LENGTH) { HandleError("Invalid file name"); exit(0); } // Validate that we won't over-write an existing file if (file_exists($save_path . $file_name)) { HandleError("File with this name already exists"); exit(0); } // Validate file extension $path_info = pathinfo($_FILES[$upload_name]['name']); $file_extension = $path_info["extension"]; $is_valid_extension = false; foreach ($extension_whitelist as $extension) { if (strcasecmp($file_extension, $extension) == 0) { $is_valid_extension = true; break; } } if (!$is_valid_extension) { HandleError("Invalid file extension"); exit(0); } // Validate file contents (extension and mime-type can't be trusted) /* Validating the file contents is OS and web server configuration dependant. Also, it may not be reliable. See the comments on this page: http://us2.php.net/fileinfo Also see http://72.14.253.104/search?q=cache:3YGZfcnKDrYJ:www.scanit.be/uploads/php-file-upload.pdf+php+file+command&hl=en&ct=clnk&cd=8&gl=us&client=firefox-a which describes how a PHP script can be embedded within a GIF image file. Therefore, no sample code will be provided here. Research the issue, decide how much security is needed, and implement a solution that meets the needs. */ // Process the file /* At this point we are ready to process the valid file. This sample code shows how to save the file. Other tasks could be done such as creating an entry in a database or generating a thumbnail. Depending on your server OS and needs you may need to set the Security Permissions on the file after it has been saved. */ if (!@move_uploaded_file($_FILES[$upload_name]["tmp_name"], $save_path.$file_name)) { HandleError("File could not be saved."); exit(0); } exit(0); /* Handles the error output. This error message will be sent to the uploadSuccess event handler. The event handler will have to check for any error messages and react as needed. */ function HandleError($message) { echo $message; } ?>
  11. can anyone point in the direct on how to fix it?
  12. I am using this tutorial to make multi-file Upload. http://net.tutsplus.com/tutorials/javascript-ajax/uploading-files-with-ajax/ now the problem Im having is with Internet Explorer, the file upload doesnt really work, I can only upload 1 photo and the process doesn't work either. How can I fix it?
  13. I am using JumpLoader for a Photo Upload service. Each time a user goes to the upload page I want it to create on directory and upload all files to that one directory. So far the way I am doing this is setting a cookie, creating the directory then telling the upload handler to upload to that directory. The folder that is created is a a random number which in turn is the Reference Number which is sent to the stores email where then the files are downloaded and printed in the size they choose. The problem Im having is it is creating a new directory with a new name(referenceNumber) for each file uploaded even though I am using a "while loop" to only generate a referenceNumber and create the folder with the referenceNumber as the name when the cookie "referenceNumber" doesn't exist. The upload Handler is called for every photo that is uploaded. Below is all my code --The page containing the java applet-- <? while (!isset($_COOKIE['referenceNumber'])) { $referenceNum = 0 . 0 . mt_rand(10000, 99999); setcookie("referenceNumber", $referenceNum); echo 'No Cookie'; $path = 'upload/' . $_COOKIE['referenceNumber'] ; mkdir($path, 0777); } ?> <p> <applet id="jumpLoaderApplet" name="jumpLoaderApplet" code="jmaster.jumploader.app.JumpLoaderApplet.class" archive="jumploader_z.jar" width="598" height="450" mayscript> <param name="uc_uploadUrl" value="uploadFiles.php"/> <param name="ac_fireAppletInitialized" value="true"/> <param name="ac_fireUploaderFileAdded" value="true"/> <param name="ac_fireUploaderFileRemoved" value="true"/> <param name="ac_fireUploaderFileMoved" value="true"/> <param name="ac_fireUploaderFileStatusChanged" value="true"/> <param name="ac_fireUploaderFilesReset" value="true"/> <param name="ac_fireUploaderStatusChanged" value="true"/> <param name="ac_fireUploaderFilePartitionUploaded" value="true"/> <param name="ac_fireUploaderSelectionChanged" value="true"/> <param name="ac_fireUploadViewFileOpenDialogFilesSelected" value="true"/> <param name="ac_fireMainViewMessageShown" value="true"/> </applet> </p> <!-- callback methods --> <script language="javascript"> /** * applet initialized notification */ function appletInitialized( applet ) { traceEvent( "appletInitialized, " + applet.getAppletInfo() ); } /** * files reset notification */ function uploaderFilesReset( uploader ) { traceEvent( "uploaderFilesReset, fileCount=" + uploader.getFileCount() ); } /** * file added notification */ function uploaderFileAdded( uploader, file ) { traceEvent( "uploaderFileAdded, index=" + file.getIndex() ); } /** * file removed notification */ function uploaderFileRemoved( uploader, file ) { traceEvent( "uploaderFileRemoved, path=" + file.getPath() ); } /** * file moved notification */ function uploaderFileMoved( uploader, file, oldIndex ) { traceEvent( "uploaderFileMoved, path=" + file.getPath() + ", oldIndex=" + oldIndex ); } /** * file status changed notification */ function uploaderFileStatusChanged( uploader, file ) { traceEvent( "uploaderFileStatusChanged, index=" + file.getIndex() + ", status=" + file.getStatus() + ", content=" + file.getResponseContent() ); } /** * file partition uploaded notification */ function uploaderFilePartitionUploaded( uploader, file ) { traceEvent( "uploaderFilePartitionUploaded, index=" + file.getIndex() + ", partition=" + file.getUploadedPartitionCount() + ", response=" + file.getResponseContent() ); } /** * uploader status changed notification */ function uploaderStatusChanged( uploader ) { traceEvent( "uploaderStatusChanged, status=" + uploader.getStatus() ); } /** * uploader selection changed notification */ function uploaderSelectionChanged( uploader ) { traceEvent( "uploaderSelectionChanged" ); } /** * upload view open dialog files selected notification */ function uploadViewOpenDialogFilesSelected(uploadView, paths ) { traceEvent( "uploadViewOpenDialogFilesSelected, paths=" + paths.length ); for(i = 0; i < paths.length; i++) { traceEvent("" + i + ". " + paths[i]); } } /** * main view message shown notification */ function mainViewMessageShown(mainView, severity, message) { traceEvent( "mainViewMessageShown, severity=" + severity + ", message=" + message ); } </script> <!-- debug auxiliary methods --> <script language="javascript"> /** * trace event to events textarea */ function traceEvent( message ) { document.debugForm.txtEvents.value += message + "\r\n"; } /** * dump status of uploader into html */ function dumpUploaderStatus() { var uploader = document.jumpLoaderApplet.getUploader(); // // dump uploader var uploaderDump = "<strong>Uploader</strong><br>" + "Status: " + uploader.getStatus() + "<br>" + "Files total: " + uploader.getFileCount() + "<br>" + "Ready files: " + uploader.getFileCountByStatus( 0 ) + "<br>" + "Uploading files: " + uploader.getFileCountByStatus( 1 ) + "<br>" + "Finished files: " + uploader.getFileCountByStatus( 2 ) + "<br>" + "Failed files: " + uploader.getFileCountByStatus( 3 ) + "<br>" + "Total files length: " + uploader.getFilesLength() + " bytes<br>" + ""; // // dump files var filesDump = "<strong>Files</strong><br>"; for( i = 0; i < uploader.getFileCount(); i++ ) { var file = uploader.getFile( i ); filesDump += "" + ( i + 1 ) + ". path=" + file.getPath + ", length=" + file.getLength() + ", status=" + file.getStatus() + "<br>"; } // // set text document.getElementById( "uploaderStatus" ).innerHTML = uploaderDump + "<br>" + filesDump; } </script> <form name="debugForm"> <p>Events:<br> <textarea name="txtEvents" style="width:100%; font:10px monospace" rows="10" wrap="off" id="txtEvents"></textarea> </p> <p><input type="button" value="Dump uploader status" onClick="dumpUploaderStatus()"> <input type="button" value="About..." onClick="alert( document.jumpLoaderApplet.getAppletInfo() )"> <p id="uploaderStatus"></p> </p> </form> --The upload Handler-- <?php //---------------------------------------------- // partitioned upload file handler script //---------------------------------------------- // // specify upload directory - storage // for reconstructed uploaded files $upload_dir = "upload/" . $_COOKIE['referenceNumber'] . '/'; // // specify stage directory - temporary storage // for uploaded partitions $stage_dir = $_SERVER[ 'DOCUMENT_ROOT' ] . "/uploaded/stage/"; // // retrieve request parameters $file_param_name = 'file'; $file_name = $_FILES[ $file_param_name ][ 'name' ]; $file_id = $_POST[ 'fileId' ]; $partition_index = $_POST[ 'partitionIndex' ]; $partition_count = $_POST[ 'partitionCount' ]; $file_length = $_POST[ 'fileLength' ]; // // the $client_id is an essential variable, // this is used to generate uploaded partitions file prefix, // because we can not rely on 'fileId' uniqueness in a // concurrent environment - 2 different clients (applets) // may submit duplicate fileId. thus, this is responsibility // of a server to distribute unique clientId values // (or other variable, for example this could be session id) // for instantiated applets. $client_id = $_GET[ 'clientId' ]; // // move uploaded partition to the staging folder // using following name pattern: // ${clientId}.${fileId}.${partitionIndex} $source_file_path = $_FILES[ $file_param_name ][ 'tmp_name' ]; $target_file_path = $stage_dir . $client_id . "." . $file_id . "." . $partition_index; if( !move_uploaded_file( $source_file_path, $target_file_path ) ) { echo "Error:Can't move uploaded file"; return; } // // check if we have collected all partitions properly $all_in_place = true; $partitions_length = 0; for( $i = 0; $all_in_place && $i < $partition_count; $i++ ) { $partition_file = $stage_dir . $client_id . "." . $file_id . "." . $i; if( file_exists( $partition_file ) ) { $partitions_length += filesize( $partition_file ); } else { $all_in_place = false; } } // // issue error if last partition uploaded, but partitions validation failed if( $partition_index == $partition_count - 1 && ( !$all_in_place || $partitions_length != intval( $file_length ) ) ) { echo "Error:Upload validation error"; return; } // // reconstruct original file if all ok if( $all_in_place ) { $file = $upload_dir . $client_id . "." . $file_id; $file_handle = fopen( $file, 'w' ); for( $i = 0; $all_in_place && $i < $partition_count; $i++ ) { // // read partition file $partition_file = $stage_dir . $client_id . "." . $file_id . "." . $i; $partition_file_handle = fopen( $partition_file, "rb" ); $contents = fread( $partition_file_handle, filesize( $partition_file ) ); fclose( $partition_file_handle ); // // write to reconstruct file fwrite( $file_handle, $contents ); // // remove partition file unlink( $partition_file ); } fclose( $file_handle ); // // rename to original file // NB! This may overwrite existing file $filename = $upload_dir . $file_name; rename($file,$filename); } // // below is trace of request variables ?> <html> <body> <h1>GET content</h1> <pre><?print_r( $_GET );?></pre> <h1>POST content</h1> <pre><?print_r( $_POST );?></pre> <h1>FILES content</h1> <pre><?print_r( $_FILES );?></pre> </body> </html>
  14. Can I have files uploaded to a dynamic location?
  15. The way I handle this is a on submit I just check if the username and email exist in the database with just a database query that if it returns 0 then they are valid. <?php if (!isset($_POST['register'])) { ?> <div id="formContainer"> <h2>Register</h2> <form action="?action=register" method="post"> <table> <tr> <td>Username </td> <td><input type="text" name="username" /></td> </tr> <tr> <td>Password </td> <td><input type="password" name="password" /></td> </tr> <tr> <td> </td> <td><input type="password" name="passconf" /></td> </tr> <tr> <td>Email</td> <td><input type="text" name="email"/></td> </tr> <tr> <td> </td> <td><input type="text" name="emailconf" /></td> </tr> </table> <table> <tr> <td>Birth Date </td> <td> <select name="day"> <option value="01">1</option> <option value="02">2</option> <option value="03">3</option> <option value="04">4</option> <option value="05">5</option> <option value="06">6</option> <option value="07">7</option> <option value="08">8</option> <option value="09">9</option> <option value="00">10</option> <option value="11">11</option> <option value="12">12</option> <option value="13">13</option> <option value="14">14</option> <option value="15">15</option> <option value="16">16</option> <option value="17">17</option> <option value="18">18</option> <option value="19">19</option> <option value="20">20</option> <option value="21">21</option> <option value="22">22</option> <option value="23">23</option> <option value="24">24</option> <option value="25">25</option> <option value="26">26</option> <option value="27">27</option> <option value="28">28</option> <option value="29">29</option> <option value="30">30</option> <option value="31">31</option> </select> <select name="month"> <option value="January">January</option> <option value="Februrary">February</option> <option value="March">March</option> <option value="April">April</option> <option value="May">May</option> <option value="June">June</option> <option value="July">July</option> <option value="August">August</option> <option value="September">September</option> <option value="October">October</option> <option value="Novemeber">November</option> <option value="December">December</option> </select> <input type="text" style="width: 225px;" name="year" /> </td> </tr> </table> <table> <tr> <td><input type="submit" name="register" value="Register" /></td> </tr> </table> </form> </div> <?php } else { //Declare Variables $username = secure($_POST['username']); $password = secure($_POST['password']); $passconf = secure($_POST['passconf']); $email = secure($_POST['email']); $emailconf = secure($_POST['emailconf']); $day = secure($_POST['day']); $month = secure($_POST['month']); $year = secure($_POST['year']); $birthDate = $month . ' ' . $day . ', ' . $year; $regDate = date("m/d/Y"); //Create the Activation Code $activationCode = mt_rand(10000, 99999); $activationCode = sha1($activationCode . $username); if (!$username || !$password || !$email || !$emailconf || !$day || !$month || !$year || !$birthDate || !$regDate) { echo 'Please completely fill out the form'; } else { $query = mysql_query("SELECT * FROM `users` WHERE username='$username'"); if (($query = mysql_num_rows($query)) > 0) { echo 'Username Unavailable'; } else { $query = mysql_query("SELECT * FROM `users` WHERE email='$email'"); if (mysql_num_rows($query) > 0) { echo 'Email is already in our database'; } else { if (!$password == $passconf) { echo 'Passwords do not match'; } else { //users birthday, ideally you would take this data from a form $user_bd = strtotime($birthDate); //Age requirement, using 15 as the minimum age required $age_req = strtotime('+15 years', $user_bd); //Grab the current UNIX timestamp and compare it to the minimum required if(time() < $age_req){ echo 'You must be at least 15 years of age to join our site'; } else { if (!$email == $emailconf) { echo 'Emails do not match'; } else { $encpass = sha1($password . SALT); $query = "INSERT INTO `users` (username, password, email, birthday, activationCode, regDate) VALUES('$username', '$encpass', '$email', '$birthDate', '$activationCode', '$regDate' )"; if (mysql_query($query)) { $to = $email; $subject = 'Activate your account D&I Photo!'; $message = 'Hey! We are sending you this message because you have created an account on dandiphoto.ca! Below is a link to activate your account ' . SITE_URL . '/index.php?action=activate&code=' . $activationCode . '>If the link does not work go to ' . SITE_URL . '/index.php?action=activate< and enter in your code below ' . $activationCode . ' Thanks, D&I Photo'; $from = "noreply@dandiphoto.ca"; $headers = "From: " . $from . "\r\n"; $headers .= "Reply-To: ". $from . "\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; mail($to,$subject,$message,$headers); echo '<br /><br/>'; ?> <h2>Check Your Email!</h2> <p>We have sent an activation email to the address below. If you don't see it in your inbox, please check your spam folder.</p> <span id="email"><?=$email?></span> <? } else { echo 'User not Created'; } } } } } } } }
  16. This may help <?php if (isset($_COOKIE['username'])) { header("Location: index.php"); } if (isset($_GET['status']) == 'not') { echo 'You are not Logged In'; } if (!isset($_POST['login'])) { ?> <div id="formContainer"> <h2>Login</h2> <form action="?action=login" method="post"> <table> <tr> <td>Username </td><td><input type="text" name="username" /></td> </tr> <tr> <td>Password </td><td><input type="password" name="password" /></td> </tr> <tr> <td> </td> <td><input type="submit" name="login" value="Login" /></td> </tr> </table> </form> </div> <?php } else { //Declare Variables $username = secure($_POST['username']); $password = secure($_POST['password']); if (!$username || !$password) { echo 'Please completely fill out the form'; } else { $query = mysql_query("SELECT * FROM `users` WHERE username='$username'"); if (($query = mysql_num_rows($query)) == 0) { echo 'The username and password did not match.'; } else { $result = mysql_query("SELECT active FROM `users` WHERE username='$username'"); while ($row = mysql_fetch_assoc($result)) { if ($row['active'] == 0) { $active = false; } else if ($row['active'] == 1 || $row['active'] == 2) { $active = true; } } if ($active == true) { //Encrypt the Password $encpass = sha1($password . SALT); //Find the user $superquery = mysql_query("SELECT * FROM `users` WHERE username = '$username' AND password = '$encpass'"); if (mysql_num_rows($superquery) == 1) { //If the user is found, set the cookies setcookie("username", $username, $cookieTime); setcookie("password", $encpass, $cookieTime); //send the user to the home page header("Location: index.php"); } else { echo 'Password was incorrect. Please try again.'; } } else { echo 'Your account is not activated! Check Your inbox and your spam box!'; } } } } ?>
  17. I am making a website where customers can upload and order photos for pickup or delivery. What I need help with is figuring out how I am going to handle uploaded possible 100+ files, I though that I could use folders, but at the same time I want to make it as easy as possible for customers to use the site and from what I can find there is no way to browser and upload a folder. Any Ideas on how I could do this?
  18. I have been searching the web and I can't fond anyone that has working code for backing up database with PHP. Most of them have the notorious depreciated ereg_replace function. Does anyone know of a simple solution? I want it to backup all the tables in the database
  19. I want to pull the last 8 entries from a database. $result = mysql_query("SELECT * FROM `sites` ORDER BY id DESC LIMIT 8"); The problem is when I ORDER BY ASC the elements are displayed fine but in ORDER BY DESC the are messed up. Why? and how do I fix it ORDER BY DESC ORDER BY ASC CSS html { font-family: segoe ui, arial, helvetica, sans-serif; height: 100%; overflow: hidden; } body { background-image: linear-gradient(bottom, #FFFFFF 16%, #E8E8E8 79%); background-image: -o-linear-gradient(bottom, #FFFFFF 16%, #E8E8E8 79%); background-image: -moz-linear-gradient(bottom, #FFFFFF 16%, #E8E8E8 79%); background-image: -webkit-linear-gradient(bottom, #FFFFFF 16%, #E8E8E8 79%); background-image: -ms-linear-gradient(bottom, #FFFFFF 16%, #E8E8E8 79%); background-image: -webkit-gradient(linear,left bottom,left top,color-stop(0.16, #FFFFFF),color-stop(0.79, #E8E8E8)); background-repeat: no-repeat; } #sites { width: 56%; padding: 10px; position: relative; left: 50%; margin-left: -29%; top: 150px; } .siteWidget { margin: 5px; padding: 10px; width: 200px; float: left; text-align: center; -webkit-transition: all 0.25s ease-in-out; -moz-transition: all 0.25s ease-in-out; } .siteWidget .img { height: 150px; -moz-box-shadow: 2px 2px rgba(0,0,0,0.25); -webkit-box-shadow: 2px 2px rgba(0,0,0,0.25); box-shadow: 2px 2px rgba(0,0,0,0.25); margin-bottom: 10px; } .siteWidget .img:hover { box-shadow: 0 0 10px rgba(0, 0, 0, 1); -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 1); -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 1); } a { text-decoration: none; colour: black; } a:visited { color: black; } a:hover { color: #e90000; } h3 { margin: 0; padding: 0; } html/PHP <? ob_start(); include('config.php'); ?> <!DOCTYPE HTML> <html lang="en-US"> <head> <meta charset="UTF-8"> <title>Site Selector</title> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <?php if (!isset($_POST['submit'])) { ?> <form action="index.php" method="post"> <table> <tr> <td> <h3>Add New Site: </h3> </td> <td> <input type="text" name="siteName" placeholder="Name" /> </td> <td> <input type="text" name="siteUrl" placeholder="URL" /> </td> <td> <input type="submit" name="submit" value="Add Site" /> </td> </tr> </table> </form> <div id="sites"> <?php //load the pages from the Database $result = mysql_query("SELECT * FROM `sites` ORDER BY id ASC LIMIT 8"); if (mysql_num_rows($result) == 0) { echo 'No entries'; } else { while ($row = mysql_fetch_assoc($result)) { ?> <div class="siteWidget"> <div class="img"><a href="http://<?=$row['url']?>"><img src="http://pagepeeker.com/t/m/<?=$row['url']?>" border="0"></a></div> <a href="http://<?=$row['url']?>" name="<?=$row['name']?>"><?=$row['name']?></a> </div> <? } } } else { //Get the data $siteName = secure($_POST['siteName']); $siteUrl = secure($_POST['siteUrl']); if (!$siteName || $siteUrl) { header("Location: index.php"); } else { $query = mysql_query("INSERT INTO `sites` (name, url) VALUE($siteName, $siteUrl)"); if (mysql_num_rows($query)) { header("Location: index.php"); } else { echo 'Site not Added!<br />'; echo '<a href="index.php">Go Back</a>'; } } } ?> <div style="clear:both;"></div> </div> </body> </html> HTML ONLY <!DOCTYPE HTML> <html lang="en-US"> <head> <meta charset="UTF-8"> <title>Site Selector</title> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <form action="index.php" method="post"> <table> <tr> <td> <h3>Add New Site: </h3> </td> <td> <input type="text" name="siteName" placeholder="Name" /> </td> <td> <input type="text" name="siteUrl" placeholder="URL" /> </td> <td> <input type="submit" name="submit" value="Add Site" /> </td> </tr> </table> </form> <div id="sites"> <div class="siteWidget"> <div class="img"><a href="http://google.ca"><img src="http://pagepeeker.com/t/m/google.ca" border="0"></a></div> <a href="http://google.ca" name="Google">Google</a> </div> <div class="siteWidget"> <div class="img"><a href="http://facebook.com"><img src="http://pagepeeker.com/t/m/facebook.com" border="0"></a></div> <a href="http://facebook.com" name="Facebook">Facebook</a> </div> <div class="siteWidget"> <div class="img"><a href="http://coldcallradio.com"><img src="http://pagepeeker.com/t/m/coldcallradio.com" border="0"></a></div> <a href="http://coldcallradio.com" name="Cold Call Radio">Cold Call Radio</a> </div> <div class="siteWidget"> <div class="img"><a href="http://redbarradio.net"><img src="http://pagepeeker.com/t/m/redbarradio.net" border="0"></a></div> <a href="http://redbarradio.net" name="Red Bar Radio">Red Bar Radio</a> </div> <div class="siteWidget"> <div class="img"><a href="http://youtube.com"><img src="http://pagepeeker.com/t/m/youtube.com" border="0"></a></div> <a href="http://youtube.com" name="YouTube">YouTube</a> </div> <div class="siteWidget"> <div class="img"><a href="http://coldcallradio.com/wp-admin"><img src="http://pagepeeker.com/t/m/coldcallradio.com/wp-admin" border="0"></a></div> <a href="http://coldcallradio.com/wp-admin" name="Cold Call Radio Admin Panel">Cold Call Radio Admin Panel</a> </div> <div class="siteWidget"> <div class="img"><a href="http://apple.ca"><img src="http://pagepeeker.com/t/m/apple.ca" border="0"></a></div> <a href="http://apple.ca" name="Apple Canada">Apple Canada</a> </div> <div class="siteWidget"> <div class="img"><a href="http://trios.com"><img src="http://pagepeeker.com/t/m/trios.com" border="0"></a></div> <a href="http://trios.com" name="triOs College">triOs College</a> </div> <div style="clear:both;"></div> </div> </body> </html>
  20. I want to make a custom right click menu for my windows phone 7 mobile website. I am wondering if there is code that I can use that is a part of jQuery to do the current task. if I can get that to work then I can implement drag and drop for elements on the page.
  21. I am developing a mobile website that looks like the WP7 UI, but just starting I have ran into an issue that I don't have the knowledge to fix. When you load the website in your mobile device, for example my Samsung Focus, the tiles dont fit to the width of the device which kind of ruins the whole WP7 feel to it. How would I fix this that wont distort the images that I will use?
  22. I want to have a link that would send you to for example google.ca but I want the status message to say that it is redirecting to newgoogle.ca for example using CNAMES How would I do this?
  23. thats the thing I only have 2 accounts in the database one admin and one user
×
×
  • Create New...

Important Information

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