Jump to content

.Stealth

Members
  • Posts

    102
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Male

.Stealth's Achievements

Member

Member (2/5)

0

Reputation

  1. It's pretty buggy. The request a quote image rollover (at the bottom of the page) doesn't appear straight away, you need to pre-load it. When swapping to certain pages, the drop down menu for "What we do" just appears on it's own for a split second. For the design (only how i would do it, you may not agree but here's my input) The "Click here to see our website portfolio or click here to request a free quote" is a little in your face with the colour of the rollover for the links, i think a softer grey would be better than black. The tooltip on the headings of page title's is kinda pointless, they pretty much repeat what the heading says. The rounded corners of the search box and drop down rollovers is nice, however i think the other rounded things on the site should have the same radius on the rounded corners as the search box etc. Other than the things pointed out it's nice, a little plain but nice.
  2. That design is really nice. Considering it's your first its good! How long did it take?
  3. Never done this before so just a quick question. If this is my xml (i've shortened it): <ResultSet xsi:schemaLocation="urn:yahoo:srch http://api.search.yahoo.com/SiteExplorerService/V1/InlinkDataResponse.xsd" totalResultsAvailable="1954226" firstResultPosition="1" totalResultsReturned="2"> How do i extract this bit: totalResultsAvailable="1954226" I know i can use simplexml_load_file() but is that the right thing to use? If so, how do i get just that bit in bold with it being inside the opening ResultSet tag. Thanks in advance for any help.
  4. Had a look around on Theme Forest and this template has the kind of thing i'm trying to do: http://www.kriesi.at/demos/newscast/
  5. Have you tried sticking: /* for IE */ filter:alpha(opacity=100); /* CSS3 standard */ opacity: 1; In the #leave_chat? It looks like it is setting it to child divs, maybe because of the way you are selecting. Try selecting them like: div#full_shadow{ }
  6. Hi guys, Having a little trouble building a wordpress template. On the index page of the blog, i want the posts list to be set out in containers. These containers will display as follows: 'post title' and 'date posted' on the top image on the left post text to the right 'amount of comments' and 'category's posted in' along the bottom Now i can do the styling, that isn't my problem. My problem is, how do i get all of those "elements" on their own and put them in separate divs ready for styling. At the minute, as i understand it, <?php the_content('Read more');?> gets all of those things but just bunches them together how wordpress thinks is best. It's my first dabble at wordpress and it isn't quite as easy as i thought Any help appreciated.
  7. What doesn't work? It doesn't echo or the CSS doesn't apply to "1"?
  8. What are you using to validate? You'll be best off posting the validation part of your script.
  9. You need images in the "Tutorial boxes", space it out a little. There is too much text in the descriptions, almost makes me too lazy to read them.
  10. Thanks! I'll give it a go. Just trying to work everything out first before i attempt to write a function (i would reuse your code but i would rather know what's going on). I think i understand it all apart from this bit: $directory = rtrim($directory, '\/') . DIRECTORY_SEPARATOR; What's with the DIRECTORY_SEPARATOR bit? I've never seen that done before, wont it just add that onto the end of the $directory string?
  11. What is the best way to sort images in a folder by date. Here's what i've got so far: $images = array();//set array ready for the images $handle = opendir($imagesFolder);//open directory handle while(false !== $fName = readdir($handle)){ //get file path $fileInfo = pathinfo($imagesFolder.$fName); //get and convert extension to lower case $extension = strtolower($fileInfo['extension']); //add jpg and png file types to array if($extension == 'jpg' || $extension == 'jpeg'){ $images[] = $fName; } if($extension == 'png'){ $images[] = $fName; } } $sortedImages = array(); foreach($images AS $image){ $fileTime = filemtime($imagesFolder . $image);//get image creation time $sortedImages[] = array($fileTime => $image); } sort($sortedImages); foreach($sortedImages AS $sorted){ foreach($sorted AS $key => $value){ echo "<strong>Filetime:</strong> " . $key . " <strong>Filename:</strong> " . $value . "<br />"; } } All works well apart from the sorting part. It does sort something, but i'm assuming its just the size of the number. I didn't expect sort() to work but it was worth a shot. This is what the above script outputs: Filetime: 1268932652 Filename: 1.png Filetime: 1261508122 Filename: 5.jpg Filetime: 1268933066 Filename: 2.png Filetime: 1268932936 Filename: 4.png Filetime: 1268957350 Filename: 3.png Filetime: 1261508126 Filename: 6.jpg The files are created respective of their names. e.g 1.png was created first, 2.png was created second and so on. How can i sort these based on the time they were created? Thanks.
  12. You pretty much answered you're own question. Only people that have access to the server computer can get the PHP scripts. Everybody else gets the generated HTML.
  13. What's the best way of doing this? I want to make thumbnails of an image, but have a fixed thumbnail size. My current function does what i want, just the new image only has a small cut out of the original with the rest of the image black even though the original image is bigger than the thumbnail. Current function: function createImage($srcImage, $extension, $newWidth, $newHeight, $saveTo){ $oldWidth = imageSX($srcImage);//get the width of the source image $oldHeight = imageSY($srcImage);//get the height of the source image $oldWidth = $oldWidth - $newWidth; $oldHeight = $oldHeight - $newHeight; $newImageX = $oldWidth/2; $newImageY = $oldHeight/2; $dstImg = ImageCreateTrueColor($newWidth,$newHeight); imagecopyresampled($dstImg,$srcImage,0,0,$newImageX,$newImageY,$newWidth,$newHeight,$oldWidth,$oldHeight); if($extension == 'jpg'){//if the file is a jpeg imagejpeg($dstImg, $saveTo, 100); } if($extension == 'png'){//if the file is a png imagepng($dstImg, $saveTo); } imagedestroy($srcImage); } any advice? Thanks.
  14. I think he means copying the actual php file out of a folder on one computer to another. Not through the net.
×
×
  • 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.