Jump to content

Simon Mayer

Members
  • Posts

    44
  • Joined

  • Last visited

    Never

Everything posted by Simon Mayer

  1. #1 I think you need a margin-bottom for class .post_footer and I wouldn't be afraid to make it quite a chunky gap, perhaps 40px or so. Currently the dates are two close to the items below. At first, I thought the dates represented the subsequent posting, rather than the previous one. #2 It seems you have default Times New Roman font in the footers. It makes me think of basic mid-nineties sites. #3 Your pages flex, because they are centre-aligned. So when you move to a page with no vertical scroll, your page darts slightly to one side to make use of the extra room. Maybe using html{overflow-y: scroll;} would be better. #4 Also, just a thought (and this may actually be a bad idea), you could have your rating buttons as blue/orange. Red and green don't go with the blue/orange. Of course doing that may confuse users about the difference between "good times" and "good story". #5 "No stories match your request. Be the first to make one!" - perhaps make this a hyperlink to the submit story page #6 I think the ?retro links should not clear down the ?vice selection and vice-versa #7 Maybe link to related stories from the story page. either by keyword association or just simply a selection of stories with the same vice/retro - this would improve SEO, as you'd have better associated linking #8 Have an RSS of the stories. You might be best using something like Wordpress with your own custom theme, as it will do a lot of the SEO/RSS things for you. It's not too difficult to customise Wordpress to not look like a Wordpress site; especially when you are not using many of the features.
  2. Yes, it can be done with Javascript: http://www.dustindiaz.com/seven-togglers/ Once you have got the Javascript working, show us your HTML and CSS if you are unable to get the buttons to appear in the right place. If you need help with the Javascript, post that on the Javascript board
  3. Not true. A break is only required to prevent the switch rolling onto the next case. As default is at the end, a break is of no use. It's not used in two of the examples at http://php.net/manual/en/control-structures.switch.php A break is needed earlier on, because it prevents the following deliberate behaviour. switch($var) { case 'headlinedmessage': echo 'here is the headline'; //will only say this when $var = headlinedmessage case 'message': echo 'here is the message'; //will say this when $var is headlinedmessage or message break; }
  4. I think it would be a lot easier for you if the data is stored in two tables and for you to access it. If you can access the database directly, the following would make more sense: `directories`( `refno` INT NOT NULL AUTO_INCREMENT PRIMARY KEY, `path` VARCHAR(10000) NOT NULL ) `files`( `refno` INT NOT NULL AUTO_INCREMENT PRIMARY KEY, `directory_ref` INT NOT NULL, `name` VARCHAR(10000) NOT NULL, `size` INT NOT NULL ) If you do this, you can then run a JOIN to link all files to their relevant directory
  5. Yes, You could add the following html: <form action="" method="post"> <input type="submit" name="sendemail" value="Email" /> </form> and the following PHP: if($_POST['sendemail'] == 'Email') { mail('[email protected]', 'Subject', $cart, 'From: Sender Name <[email protected]>'); } If you place a filename in action="", you will be able to include the PHP in that file instead.
  6. to email it, you can use PHP's mail() function mail('[email protected]', 'Subject', $cart, 'From: Sender Name <[email protected]>'); Is that sufficient, or do you need to do something else?
  7. I would use switch to do this. switch($_GET['page']) { case 'game': //game page contents break; case 'usersonline': //usersonline page break; default: //a default page, maybe your homepage, maybe your 404 page } If you then want to be clever, you can use the include() function to load the required contents and keep your index page small. From an SEO point of view, using get arguments is not always a good idea. You might want to consider using .htaccess modrewrite to direct yoursite.com/pagename.php to yoursite.com/index.php?page=pagename so that the site appears to have separate pages.
  8. The above is correct, I suspect you would need to do the following: $order = ' ORDER BY `dateOfBirth`;'; You would do the following to reverse the order (youngest first): $order = ' ORDER BY `dateOfBirth` DESC;';
  9. That looks right to me. I can't see what is wrong. It should sort first by `is_featured`(1 before 0), then `is_department_head` (1 before 0), then `join_date`(newest first) What order do your results appear as?
×
×
  • 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.