Jump to content

TheFilmGod

Members
  • Posts

    1,941
  • Joined

  • Last visited

    Never

Everything posted by TheFilmGod

  1. Looking at the website and your avatar - I see a resemblance and possibly even an expression of your interest in blood and gore - but the overall feeling of the website doesn't work for me. I remember back in the day when I bought a domain called "beastit.com" - not pornographic - and designed a sleek black design for it. It look really good until I tried out making designs on simple white. Turns out white is the best color to design around because anything flows with it. Better yet - white often eludes a positive and an enticing interest in the website from the user, something that we should all aim for. Just something to try out. Possibly I got it all wrong and blood and gore is the theme of the website. If so - you hit the nail on the head with a decent design. However, keep in mind that my people like myself, find black as a poor design color.
  2. I have a very very very good monitor, but it seems like your images are either low quality or your monitor is just on super bright, because the images I see are WAY to dimmed out. The facebook/delicious icons are barely visible! The layout is clean, the spacing is good, and I could definitely see a very sharp design eye. I do have a suggestion - spruce up the colors and make the logo less "I'M OUT THERE" feeling - make it more low key.
  3. TheFilmGod

    CSS Center

    If the div you are centering will be going into a parent div that has a fixed width and the width will not be changing - you could just calculate the margin-left and apply a margin-left to trick the system. Only 1 div needed.
  4. It's important to remember that a CSS sprite can't be used EVERYWHERE. A css sprite can only be used where there is a fixed width/height. Css 2.0 doesn't support background-crop. Css 3.0 fixes this though.
  5. OR you can use a png with semi-transparency as the background??
  6. I didn't notice that your website size was smaller than the "standard" website resolution. Your website shouldn't exceed 1000px so it could fit in a 1024 resolution. 1024 is the standard and should probably stay for awhile.
  7. EdIt: Woah. My bad. I don't know, for some I got the boards mixed up. It would help if you provided the table definitions. It's hard go through the super huge join and help you out. What data are you pulling out anyway?
  8. <?php class basicValidator { // Assume no errors public $form_valid = 1; // If an error was found child function will call this public function errorFound() { $this -> form_valid = '0'; } } class validateFirstName extends basicValidator { // Class properties public $value; public $msg; public $valid = 0; // Validate first name on construct function __construct($value) { // Validate first name if ( !empty($value)) { $regex = "/^[A-Za-z][A-Za-z ]{2,49}$/"; if ( preg_match($regex, $value)) { $this -> valid = 1; $this -> msg = 'Valid!'; } else { $this -> msg = 'The name must be between 3-20 characters long. Only letters are considered as valid characters.'; } } else { $this -> msg = 'The first name was left blank.'; } // If error found, update basic form validation to 0 if (($this -> valid) == 0) { echo 'here'; parent::errorFound(); } } } // Test $first_name = 'Greg23'; $page_validator = new basicValidator(); $validation_first_name = new validateFirstName($first_name); echo $validation_first_name -> valid; echo $page_validator -> form_valid; ?> The page prints out "here01". I was expecting "here00". The second '0' signifies that the whole page validated incorrectly. The function to change that value is ErrorFound() that was called in the child class, validateFirstName.
  9. I'm working on a huge website project. And to make my life easier in the long run, I decided to make a custom validation class. <?php class formValidator { // Assume all errors public $valid = 0; // Function to display value of variable function displayValueFor($value) { echo $this -> {$value}['value']; } // Function to display (error) message for variable { function displayErrorMsg($value) { echo $this -> {$value}['msg']; } // Email function validateFirstName($value, $var_name) { // Create array of this value public ${$var_name} = array('value' => $value, 'msg' => 'undefined', 'valid' => 0); // Validate first name if ( !empty($value)) { $regex = "/^[A-Za-z][A-Za-z ]{2,49}$/"; if ( preg_match($regex, $value)) { $this -> {$var_name}['valid'] = 1; $this ->{$var_name}['msg'] = 'Valid!'; } else { $this -> {$var_name}['msg'] = 'The name must be between 3-20 characters long. Only letters are considered as valid characters.'; } } else { $this -> {$var_name}['msg'] = 'The first name was left blank.'; } } } // Test $first_name = 'Greg'; $page_validator = new formValidator(); $page_validator -> validateFirstName($first_name, 'first_name'); $page_validator -> displayErrorMsg('first_name'); ?> I do some unique and possibly illegal stuff. I get a syntax error for "public ${$var_name}. What I want to do is run a variable through the validation once, create a new attribute in the class for that variable, cache its value , error message, and validation check (true, false) in an array, all as array elements of the new attribute. The obvious solution to this would be to run the variable through the validation class each time I wanted to know the error message, but this isn't efficient. I would be looping through one function 2 or even 5 times to do the same work that I could do in once in a normal php function. I hope I'm making sense. I'm really bad at oop. And I pressed for time, so I might end up using old fashioned php functions if this doesn't work out.
  10. the blue boxes represent filler images. Thanks for the feedback. I don't really call it a website or anything. Just throw it together really quickly and was wondering what you thought from your first impression.
  11. Some recommendations: The appointment_id is nothing more than a surrogate key. It is required because you can possibly have two appointments scheduled at the same time. However, the key you would want to query against is the date/time. Date/time should be combined into a field by mysql's supported "datetime" type. Come to think of it, should you honestly use datetime? Maybe you should use a separate date and separate time (as you orginally had it), but the time should be a decimal(3,1). Each appointment is by 15 minute increments, right? So 3:00, 4:15, 6:30, 8:45 could all be 3.0, 4.1, 6.2, 8.3 respectively. You'd use a 24 hour clock. So 4:00 am would be 16.0. Just some ideas. This type of optimization can be considered "fine-tuning" that it wouldn't be worthy spending 10 or more minutes on.
  12. I loved the look of your website, until I saw the google ad. Another guy trying to make a quick buck. Get over it. Google ads aren't a way to pay off this zesty habit of designing websites.
  13. http://profiletwist.com/welcome_home/index.html I throw it together in just a little bit over an hour. I did it for a friend. Tell me what you think.
  14. The "add to cart" link should ONLY be a <a>. An input tag will screw things up. The browser thinks the form selfs submits so it will jump back up. Next, to make a link move the page's position you need to use an id. So this is your code: <a href="#cart_form">Add to Cart</a> .... down the page <div id="cart_form"> ... cart form </div>
  15. Which ie version? I never had a problem with 100% height or anything.
  16. TheFilmGod

    Footer

    the problem is that #main shouldn't have 100% height! That makes it more than 100% when you add the other divs too! You need to be the wrapper/container div have 100% width. Google is your friend.
  17. You do need $comments because you are telling php to unshift the $comments array and add $data -> as an element in the beginning. I got it to work. array_unshift($comments, $data); was the solution
  18. <?php // Unserialize data as needed and add reply comment // Put new comment data into array for latter adding $data = array($gender, $name, $message); // If previous reply comments already existed if ($reply_comments != NULL) { // Unserialize data $comments = unserialize($reply_comments); print_r($comments); echo "<p>"; // If 5 comments are already present in this array, remove last one if (count($commments) == 5) { $comments = array_pop($comments); } // Add new reply comment as the first element in the array $comments = array_unshift($comments, $data)); } // Else no previous reply comments else { // Create new array with posted reply comment data $comments = array($data); } // Serialize data so it can be updated back into mysql $comments_db = serialize($comments); print_r($comments);?> Problem -> If not null and data is unserialized -> works correctly First print_r() gets the expected results of: Array ( [0] => Array ( [0] => male [1] => greeeeeeee [2] => greeeeee ) ) Skips the next part because array isn't equal to 5 elements. Then it fails. the array_unshift($comments, $data)) doesn't work as it outputs this data: 2 Just "2". WTF?
  19. Delta airlines is literally bankrupt. As a matter of fact, Delta Airlines failed bankruptcy back in the dark ages (like 5 years ago) so be wary if you make that statement larger or whatever.
  20. Well there is an advantage to using smarty - it increases developer productivity. But to be quite honest, I would just use plain php. Not only because of performance, but also because adding new employees on board the team would be easy. Not every php programmer knows smarty, but they do know plain php - DUH!
  21. Two different operating systems? Sounds a lot like an april fool's joke, because quite honestly, how would a program work on a windows/mac flawlessly together? ... All with one mouse?
  22. Edit: I didn't we had a WYSIWYG editor either! So I tried adding in a smiley and stretching it out but it doesn't post the image changes?
  23. TheFilmGod

    Footer

    He's exactly right. Absolute positioning won't work with the sticky footer css. You could possibly hack it using some fancy relative positioning, but it's not worth your time. Scrap the project and start over.
  24. Doesn't look to professional to me - especially the corporation side of it. The logo is too playfully and doesn't scream "professional" to me. The icons look cool, but not very professional. It looks more like you're going for that creative punch, which won't work too well with businesses. Otherwise, it looks pretty good. I didn't get a chance to look at your source code, but I have a feeling it's very good.
×
×
  • 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.