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.

Gibbs

Members
  • Joined

  • Last visited

Everything posted by Gibbs

  1. Search engines are not instantaneous and can take a while to update their index. AFAIK X-Robots-Tag is Google specific and a HTTP header (not a meta tag). There are many ways to provide directives to crawlers and not all of them are the same. Via a robots.txt file Via meta tags (what you are doing) Via HTTP headers (which is what X-Robots-Tag is) If you want to do this via HTML then use; <meta name="robots" content="noindex" /> Edit: Ignore the above, just realised you are trying to get your XML sitemap unindexed. Use a robots.txt file and have something like: User-agent: * Disallow: sitemap1.xml
  2. Is this a trick question? . The first one with Exception spelt correctly as you are doing unnecessary checks in the second. $day is always set so you don't need isset is_int makes checking is_array, is_bool, is_null and empty redundant The first one is easier to read and maintain
  3. Have you recompiled framework.less? It works for me. A couple of things; The font is 'Varela Round' and not 'Varela-Round'. Not important now but your HTML should be including styles.css
  4. Keep it simple, short and concise. If your website warrants having a lot of categories then by all means go with it but the page itself is vastly more important than its name. This is an old video but probably still relevant.
  5. It is easy to determine if an element is hidden via both CSS and HTML. All this does is reduce spam from bots that aren't particularly good (there's nothing wrong with that). If CAPTCHAs are bad for accessibility then so is proactively ignoring an accessibility feature for convenience?
  6. This is so you can upgrade Bootstrap without overwriting your changes. As a general rule of thumb don't overwrite any vendor code. I assume you are compiling styles.less? The files var-bootstrap.less and var-jasny.less don't actually have any CSS, they only contain LESS variables. That is why it is blank. You might be missing an import or haven't got to that stage in your tutorial yet.
  7. What exactly is the problem you are having?
  8. Guessing your level of expertise I would say no. Magento, like any other platform, will not magically solve your problems. If you have a large catalogue or your requirements get more complex then sure, its developed specifically for that and does it well. You haven't said anything that indicates that is the case. Moving forward it would be a better foundation in the long run but you haven't stated what problems you're having. Are they related to Wordpress or the website itself?
  9. There is still plenty - just take a look at the HTML5 spec implementation scoring for IE12 at http://html5test.com/results/desktop.html Font rendering is an OS related issue - the same would not apply for Chrome/Chromium on Mac or Linux for example.
  10. If possible I would do it in PHP (or similar). Something as simple as <body class="<?php echo $theme; ?>"> or if you have a wrapper use ids. If not then use Javascript as you suggested. It should be pretty straight forward.
  11. IE gets outdated very quickly. We will be hating IE 9/10/whatever in a few years just as much as IE7/8 (both heralded as Microsoft doing a good job catching up, like you mentioned). Also nobody runs a 10 year old Firefox as the vast majority of browsers are on a rolling-release type life cycle.
  12. Are you talking about PHP on Windows/Ubuntu rendering it differently? If that is the case then I don't know but obviously different systems render fonts differently (although not to the scale of what you're saying usually). If you are talking about browsers viewing the images different on Windows/Ubuntu. A caching issue possibly? If the images are being served dynamically try and save them to the filesystem and then access them via a browser.
  13. The idea of moving files outside of the web root is mainly to make files that don't need to be run inaccessible. For example I run the core directories of Drupal and MODX outside as they leave things lying around that nobody needs to run publicly such as install scripts, configuration files and modules. If for some reason PHP stopped running on a mis-configured server you could have a field trip finding files like core/config.php etc. It can also make it harder to determine what is being run and areas to exploit. I can tell eBay is running Wordpress 3.7 as like most people they have left the readme accessible. This isn't inherently secure/insecure either way but could generate less noise (random automated attacks/scans) from script kiddies targeting a specific version of something. Still, there are plenty of other ways that can be achieved but its an example of leaving things lying around that aren't really necessary. In your case your directory structure approach is wrong. Instead of: /public_html/images/yoursiteone.com/ /public_html/images/yoursitetwo.com/ You want something like: /yoursiteone.com/public_html/images/ /yoursitetwo.com/public_html/images/ To keep them truly separate. Otherwise they are sharing the same public directory. In most cases the images will have unique filenames so disabling directory listings should suffice. If the images aren't intended be accessible by the web whatsoever then they should be outside the web root entirely. I.e. /yoursiteone.com/images/ /yoursitetwo.com/images/
  14. Right click > 'Find in Folder'. Is that what you mean? Alternatively CTRL-ALT-F and the "..." button to the right of 'Where:' select 'Open Folders'.
  15. The mail function should be: mail($to, $subject, $message, $headers); In your case: mail($emailTo, $subject, $body, $headers); Rename $headers to $subject Your new $headers should be: $headers = 'From: whatever@whatever'; Edit: For example: if(!isset($hasError)) { $emailTo = 'contact@r-m-t.org.uk'; $body = "Name: $name \n\n Email: $email \n\n Contact No.: $number \n\nPost Code: $postcode \n\n Message:\n $message"; $subject = 'Website Contact Form'; $headers = 'From: whatever@whatever'; mail($emailTo, $subject, $body, $headers); $emailSent = true; } Check out http://php.net/manual/en/function.mail.php#example-3374
  16. Try switching to a fresh new profile (https://support.mozilla.org/en-US/kb/profile-manager-create-and-remove-firefox-profiles). If a new profile works it is most likely an extension or some configuration issue. If not I would re-install.
  17. Exactly the sort of thing I was looking for. Cheers
  18. If you are starting out there really isn't a need to learn OOP. A lot of languages, like PHP, can be procedural (step by step) which is a lot more logical and useful for scripting when starting out. Jumping straight into OOP will be overwhelming and its benefits won't be apparent until you start working on larger applications. Besides a lot of what you learn will be transferable to OOP later on. In regards to learning PHP functions. You will remember most of what you need over time and Google the rest. There is nothing wrong with referring to the manual
  19. Are there certain techniques and practices for determining things such as line heights, padding and margins? I noticed that I just tweak until it 'feels' right but that is probably a terrible approach. I don't consider myself a designer in any respect of the word so if anyone can provide some good tools and references in regard to type that would be brilliant.
  20. Gibbs posted a topic in Server Side
    I've just been looking at a website for a prospective client and have noticed the site uses Ioncube (a PHP encoder). I encountered this a few years ago for an application using it to hide its source but I've never seen an actual entire site use it. I guess I'm stumped then and everything will need to be rewritten? Or is there a way around it (or can it be "worked with"?) Cheers
  21. Having a bit of a mental block. Is it possible to convert a string to a boolean in PHP? Typecasting to int always returns 0 whereas bool always returns 1. $string1 = "true"; $string2 = "false"; echo (bool)$string1, " | ", (bool)$string2; echo "<br />"; echo (int)$string1, " | ", (int)$string2; outputs: 1 | 1 0 | 0 I know I can use conditions but I was wondering if theres a quick way to do it. Cheers
  22. What version of PHP are you using? I think they're trying to avoid passing them to the function, hence the global declarations. Using globals like that is bad practice but still, it should work in theory (after a quick look).
  23. I don't know anything about phones (they don't interest me) but my work phone is a Samsung Galaxy <something> Android. The workspaces are cool and I have analytics widgets on one of them. Apart from that I fail to grasp the usefulness of apps (for me), sure some of them are fun but unless you can speedtype on the touch screen keypad...
  24. Gibbs replied to a post in a topic in General Chat
    Random posts that help me to remember things (and hopefully others). Mainly orientated around web development and Linux. http://www.danielgibbs.net/journal/
  25. This should help; http://www.linuxweblog.com/plesk-vhost.conf

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.