Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

craigpettit

Privileged
  • Joined

  • Last visited

Reputation Activity

  1. Like
    craigpettit reacted to Lyndsey in CSS alignment   
    Hiya Craig,
     
    Your issue is #content-full has a class called .col-620 which is only covering 65% of the space, and #content-full itself has a max-width of 800px;
     
    If you remove the max-width off #content-full and delete .col-620, you will be OK to give each of the .post divs display:inline-block.
     
    See image attached
     

     
    Lyndsey
  2. Like
    craigpettit reacted to webdeveloper93 in Check to see if a user is logged in,   
    I won't go into huge depth about sessions/cookies because there is quite a bit of info to cover about them but heres an example about setting a session and also checking if the session isset there for seeing if the user is logged in or not
     
    This code is to set a session using a username/password combo if your password is encrypted in the database besure your using your encryption function wrapped around the password variable otherwise it will say your username or password is not correct

    <?php //Call session start if(!session_id()){session_start();} //Put together our mysql query $sql = @mysqli_query($conn,"SELECT `id` FROM `users` WHERE `password` = '$password' AND `username` = '$username'"); //Our user exist login details are correct so set the session if(mysqli_num_rows($sql) > 0): $fetch = mysqli_fetch_array($sql); //Set the session $_SESSION['XID'] = $fetch['id']; else: echo "ERROR:Your login details are not correct!"; endif;
     
    This goes on any page at the top before any html code is outputed to perform a check to see if the user is logged in or not
     

    <?php if(!session_id()){session_start();} //Check if user is logged in if(!isset($_SESSION['XID'])){ header('Location:login.php'); exit; } //All content after the exit will show up only if the session isset ?>
     
    obviously you wanna also look up about session hijacking etc.. and mysql injections basically php application security in general
     
    hope this has helped some
  3. Like
    craigpettit reacted to gadgetgirl in Check to see if a user is logged in,   
    I apologise for my response. So many times, I've seen members give help on forums to others and it is often unappreciated or taken for granted. It was not clear that you had plus one everyone.  
    To achieve your objective, you will need to use sessions. There are a number of methods you can use - procedural or oop, or find a framework. The size and complexity of your site will determine which method you use as well as how much time you can take learning. Don't skimp on the security though as it will come back to haunt you later.
  4. Like
    craigpettit reacted to Sogo7 in php captcha   
    Not a bad mail script on the whole, you would not believe how many do not sanitise that email field to prevent injection attacks.
     
    Tip#
    The GD library can use custom fonts (.ttf) and unusual ones in particular can play havoc with true spam bots pattern recognition scripts, humans paid to solve captcha's just find them more annoying.
  5. Like
    craigpettit reacted to gadgetgirl in php captcha   
    You need to start a session in contact.php to access $_SESSION['code'] created in captcha.php. Also I would imagine your form is displaying warning messages in the fields when the form is first displayed. In every input field you need to check that the $_POST variable exists because first time round it won't. Change
    value="<?php if ($_POST['email']) { echo $_POST['email']; } ?>" to
    value="<?php if (isset($_POST['email']) ) { echo $_POST['email']; } ?>"
  6. Like
    craigpettit reacted to webdeveloper93 in php captcha   
    to elberate on the above code id just create a simple function to handle post request/get request and so on like below which also checks if the $_POST superglobal is actually populated with content or not using isset

    <?php function post($post){ if(isset($_POST[$post])){ return $_POST[$post]; } }
  7. Like
    EDIT: you have had 44 views and noone has replied. This is why.
     
    Ok,
    Im going to start again with you, because i feel that the last time we crossed paths, i rubbed you up the wrong way, and you rubbed quite a few people up the wrong way.
     
    I feel that the way you have come into this forum is not a way to introduce yourself,
    People offered there advice on your work and for which you were grateful, I also advised you personally to check out other peoples work, and give feedback. unfortunately the feedback you gave did not come across constructive, it came across as offensive.
     
    I will reference you feedback request here to for other members to read;
    http://www.webdesignerforum.co.uk/topic/66867-please-help-me-with-my-web-design/#entry421396
     
     
    That being said,
    I feel you have really not learned anything from this forum and i have still taken this as you rubbing people up the wrong way,
     
    for example this;
    i noticed also that many of the templateers tend to be more agresive and hostile towards different perspectives and points of view.
    I am assuming this is targeted at me as you accused me of being a template designer. Which is hardly the case i just have not updated my own website.
    so allow me to rectify you with my feedback request, and we will see how much hostility i presented...
     
    http://www.webdesign...dback-required/
     
    then this
    My time is very valuable, so i try not to waste any!
    Your time is no more valuable than anyone else.
     
    This
    Why cant pro web designers do designs for 200 pounds?
    combined with this
    I am actually a PHP programmer and i have made a big web application. But i need to learn how to make an interface!
     
    The other day, and i cannot quote as a mod deleted the posts to keep the thread clean from your abusive remarks. You stated that you are new to the web industry, and you are just playing with a little bit of design but you are really a musician.
     
    If you were a PHP programmer, which i fully believe that you are not, then i strongly believe you wouldn't have to ask the question, why a pro website cant be built for £200.00 because you would be fully aware in the time spent by a designer, or a programmer behind a screen coding and drawing boards.
     
    So, with that, my request to you, is that it is not us, at the webdesignerforum that owe you anything at all, our members come here to learn and to help each other.
    But for you to take a step back, and stop posting this awful waste of peoples time posts, which is completely contradictory of your own statement,
    "my time is very valuable" and to settle in before you rub everyone here up the wrong way.
     
    When you went on the attack the other day, you went against some of the people on here who help me all the time, so with this sort of post and that sort of behavior how do you expect anyone to help you, or even respond to you.
     
     
    Lets start again,
    Welcome to The Web Designer Forum,
    Sit back, Make a coffee, Relax,
    Don't abuse people, Don't attack people
    People will criticize your work, people will compliment your work
    people will suggest how you can improve your work
    and people may even help you code your work
     
    Bring something to the table.
    so far i've seen you claim to be a PHP programmer and a musician, thinking your better than everyone else, and again, i quote from the cleaned thread you abused.
     
    Let us see your PHP application, we will be able to help you on a design concept, tell us about it.
    introduce your self as a human being, not a boy with an attitude.
     
    and enjoy it here. just like everyone else does.
     
    Do all that, and you will be more than welcome here.
    I am personally going to put this post, and the previous comments you have stated behind me, because im not interested, but i am keen in helping people learn what i know.
     
    Drop me a message if you want any help with XHTML, CSS JQuery and basic PHP stuff. ask me to see some of my client work to see how ive developed over time, get involved with the community.
     
    I hope this helps you settle in a little better.
     
    Craig.
  8. Like
    Hello AblazeRich,
     
    the border comes from the h1.title element, which is floated to the left.
    But the float property is declared inside a media query and therefore, if your viewport's width goes below 768 pixels,
    it's being removed( main.css , line 348 ).
     
    If you don't use an inspector already( Firebug, or the build in ones from FF and Chrome ) you should try them.
    They could have told you this right away.
     
    Léon
  9. Like
    craigpettit reacted to zed in please give me some feedback on this website   
    they probably have a chip on their shoulders about themselves. It must be very difficult to use stock images of white people on an Indian site? or is that all part of the pretence? To me it just backs up the fact at how hopeless at IT the Indians are and have to scam/spam their way into doing things.
  10. Like
    craigpettit got a reaction from kree8or in Looking for Web Designers   
    LOL are they working together???
     
    isn't it odd how everyman and his dog can do SEO,
     
    Ladies and Gentlemen of the Spammer community,
    Please read this, then reread this, then once more just to make sure.
     
    Our community on this forum is full of people who want to learn, people who want to share and people who wish to grow.
    A friendly group of people of who many have been apart of for several years.
     
    you spammers are what we refer to as illegal immigrants, You are raping our community and no one wants you here.
     
    BUT this is different. Because here we will make it clear to you. That you arnt welcome and you certainly are not going to benefit from being here.
     
    So please, SEO THE **** OUT OF MY STATEMENT! so all your friends can read it and know, that at the web designer forum, your not welcome,
    your a hindrance,
    and no one gives a flying **** about your half arsed, cheap ass services that you offer.
     
    You are rats and at this forum we have an increasingly growing rat presents, which leads to germs and the plague,
     
    Get out, Stay out and if you are so GOD DAMN GOOD AT SEO, USE UR SKILLS TO GET NEW BUSINESS!!!!!!!!!!!!!!!!!!
     
    Thank you,
    and
    Goodnight
  11. Like
    craigpettit reacted to kree8or in Guidance on creating My first Portfolio Website   
    If you are going to work in the industry, you need to know (at a minimum HTML and CSS , preferably Jquery as well), if you don't know these, how are you going to build a site? If you didn't want to go down that route, why not specialise in making web graphics? There's money to be made in logo design etc. Also if you're design minded, how about things like business card designs, stationary etc?
  12. Like
    craigpettit reacted to kree8or in My first CMS - Genius ideas website.   
    Sorry, couldn't resist
  13. Like
    craigpettit reacted to hal8 in A bit of help and opinions for my website   
    Hi Craig.
     
    Thanks for your input. Im just about to write you a PM.
     
    Cheers
     
    Dave
  14. Like
    craigpettit got a reaction from hal8 in A bit of help and opinions for my website   
    I have looked at this a couple of times now, and unsure of what to put.
    Love the Idea, and great unique marketing for advertising,
     
    I think you have cracked the colour scheme, and design for your target audience.
    in addition your always going to have more and more content to add in with this sort of site,
     
    i think you should move the search bar, you have it at the bottom of the page, and no user wants to search for a search bar..
    on the right side of your page you have a form contained in a box
    then
    Recent Shoot Reviews with no box
    then
    advert in a box, i think and i may be wrong without seeing it, but keep your design consistent
    and make sure your margins and padding are equal, particularly noticeable in the footer.
     
     
    get some imagery in your reviews..... toooo much text hurts my eyes.
     
     
    overall, i would say you have an awesome idea here and alot of the design work covered, keep working at it, you will crack this nicely.
     
    Any help you need give me a pm
     
     
    Craig
  15. Like
    Couldn't have put it much better myself mate.
  16. Like
    EDIT: you have had 44 views and noone has replied. This is why.
     
    Ok,
    Im going to start again with you, because i feel that the last time we crossed paths, i rubbed you up the wrong way, and you rubbed quite a few people up the wrong way.
     
    I feel that the way you have come into this forum is not a way to introduce yourself,
    People offered there advice on your work and for which you were grateful, I also advised you personally to check out other peoples work, and give feedback. unfortunately the feedback you gave did not come across constructive, it came across as offensive.
     
    I will reference you feedback request here to for other members to read;
    http://www.webdesignerforum.co.uk/topic/66867-please-help-me-with-my-web-design/#entry421396
     
     
    That being said,
    I feel you have really not learned anything from this forum and i have still taken this as you rubbing people up the wrong way,
     
    for example this;
    i noticed also that many of the templateers tend to be more agresive and hostile towards different perspectives and points of view.
    I am assuming this is targeted at me as you accused me of being a template designer. Which is hardly the case i just have not updated my own website.
    so allow me to rectify you with my feedback request, and we will see how much hostility i presented...
     
    http://www.webdesign...dback-required/
     
    then this
    My time is very valuable, so i try not to waste any!
    Your time is no more valuable than anyone else.
     
    This
    Why cant pro web designers do designs for 200 pounds?
    combined with this
    I am actually a PHP programmer and i have made a big web application. But i need to learn how to make an interface!
     
    The other day, and i cannot quote as a mod deleted the posts to keep the thread clean from your abusive remarks. You stated that you are new to the web industry, and you are just playing with a little bit of design but you are really a musician.
     
    If you were a PHP programmer, which i fully believe that you are not, then i strongly believe you wouldn't have to ask the question, why a pro website cant be built for £200.00 because you would be fully aware in the time spent by a designer, or a programmer behind a screen coding and drawing boards.
     
    So, with that, my request to you, is that it is not us, at the webdesignerforum that owe you anything at all, our members come here to learn and to help each other.
    But for you to take a step back, and stop posting this awful waste of peoples time posts, which is completely contradictory of your own statement,
    "my time is very valuable" and to settle in before you rub everyone here up the wrong way.
     
    When you went on the attack the other day, you went against some of the people on here who help me all the time, so with this sort of post and that sort of behavior how do you expect anyone to help you, or even respond to you.
     
     
    Lets start again,
    Welcome to The Web Designer Forum,
    Sit back, Make a coffee, Relax,
    Don't abuse people, Don't attack people
    People will criticize your work, people will compliment your work
    people will suggest how you can improve your work
    and people may even help you code your work
     
    Bring something to the table.
    so far i've seen you claim to be a PHP programmer and a musician, thinking your better than everyone else, and again, i quote from the cleaned thread you abused.
     
    Let us see your PHP application, we will be able to help you on a design concept, tell us about it.
    introduce your self as a human being, not a boy with an attitude.
     
    and enjoy it here. just like everyone else does.
     
    Do all that, and you will be more than welcome here.
    I am personally going to put this post, and the previous comments you have stated behind me, because im not interested, but i am keen in helping people learn what i know.
     
    Drop me a message if you want any help with XHTML, CSS JQuery and basic PHP stuff. ask me to see some of my client work to see how ive developed over time, get involved with the community.
     
    I hope this helps you settle in a little better.
     
    Craig.
  17. Like
    craigpettit reacted to AaronAlderman in Which is the best out of these 3 websites?   
    Aha! Sorry mate. I didn't really look at the other replies to much! Don't have enough time at work. But I have basically copied you word for word by the looks of it lol.Just ignore my comment, Craig said it first
  18. Like
    craigpettit got a reaction from stansterday in please give me some feedback on this website   
    Another absolutely genius statement from a mod.
     
     
    very dated and your colour scheme does not work, not consistent
  19. Like
    craigpettit reacted to andys in please give me some feedback on this website   
    You're acting like a real dick.
  20. Like
    craigpettit reacted to dap in please give me some feedback on this website   
    this is an english speaking forum - if you're not comfortable speaking english then please find a forum in your preferred language. replying in another language just appears rude.
  21. Like
    craigpettit got a reaction from GoldRush98 in starting with website design   
    i completely agree with WebsiteWriter.. as i generally do..
     
    I never bothered with college, if im going to be honest, i learned most things right here. Get involved with the creative industry.
    Read books like HTML for Dummies, CSS for dummies
     
    Build your website content
    Draw a design
    photoshop a design
    Code your design
    Install plugins,
    install social plugins
    make changes
    update regulary
     
    There is so much to learn, and we are all still learning to this day.
     
    If you need any help code side of things give me a private message i am more than happy to help, BUT get a baseline idea first. i wont be writing your websites for u
     
     
    stay focused and good luck! its an amazing industry to work in.
     
    Craig
  22. Like
    craigpettit got a reaction from Simppa in My first website, opinions?   
    I really think you should drop the background image, it over powers the website.
    background images are a little dates
    try this out
    http://subtlepatterns.com/
    some really subtle patterns you can just repeat over your background, keep your imagery for content.
     
    I think the problem with the imagery your using for backgrounds and as pointed out by alluziion in the heading slider is that it is not good imagery, evn though you didnt design it and its based on a game, it just doesnt look good, and i think the end result of that will ruin your website design.
     
     
    Craig
  23. Like
    craigpettit reacted to kree8or in Simple Webpage   
    If i were you I'd ask the IT department why the restrictions as it will be making things a nightmare for things such as this. If they are tied into Microsoft (the company intranet servers running ms server for example), why not allow .asp or something?
  24. Like
    craigpettit reacted to jamesosix in Importance of the layout in the web design   
    good job somebody told us this. I wasnt even considering the layout when designing a site
     
    /sarcasm
  25. Like
    craigpettit reacted to LukeG in Importance of the layout in the web design   
    If only I knew this in the first place!

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.