treehouse : what would you like to learn today?
Web Design Web Development iOS Development

BenWalker

  • .htaccess friendly url

    i dont it want to detect files and folders. Then stop telling it to. I wouldn't recommend it, though - there may come a time when you do want files to be accessed directly. You could use @CrocoDillon's method, which is a nice solutio…
    Comment by BenWalker 5:47PM permalink
  • .htaccess friendly url

    if you write an existing filename it doesn't work Well, yeah. Have a look at these lines: RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f
    Comment by BenWalker 2:38PM permalink
  • Statistics mobile internet users

    Here's my point: regarding the links that @unasAquila kindly sent the data aren't exactly identical. For example android's data are between 37% and 30% even though the comparison with the other is the same. I suspect that is just…
    Comment by BenWalker May 17 permalink
  • Statistics mobile internet users

    I don't see anything in that link about their platform statistics. I understand the point you are making. I just didn't think it was necessary or relevant in this discussion. I'm not advocating using w3schools as a developer resource…
    Comment by BenWalker May 17 permalink
  • Statistics mobile internet users

    I wouldn't believe anything that W3Schools puts out. Oh, that doesn't seem fair. If you want good, reliable data for the platforms visitors to W3Schools are using, that seems the best place to go. Not sure why you would care, but I su…
    Comment by BenWalker May 17 permalink
  • Friendly URL | GET parameters lost

    As I say in the post you quoted, in this instance I don't use any $_SERVER variables. In my case, I use only the request variables (get, post and cookie). The get() function above takes the variable name as its first argument and returns either…
    Comment by BenWalker May 17 permalink
  • Change all elements BUT the one clicked Jquery.

    $('.it').not($(this)) will give all matched items except the one clicked. However, in this instance I would do exactly what @AlenAbdula has posted.
    Comment by BenWalker May 16 permalink
  • Friendly URL | GET parameters lost

    To clarify - in this instance I don't use any $_SERVER variables. This is because my URLs only include the module name in the path - everything else is in the query string. If my URLs had a variable number of properties I were expecting (such a…
    Comment by BenWalker May 16 permalink
  • Friendly URL | GET parameters lost

    Pretty much, yes. The user is never "redirected" to a page. The page is built by the script, and depends on the URL they entered. It doesn't matter what the files are or how they are laid out on the server. Someway, somehow your scri…
    Comment by BenWalker May 16 permalink
  • Friendly URL | GET parameters lost

    Why would you want to rewrite everything to "index.php"? Well, for any sort of application or larger site I will use an MVC structure of some sort. Shared code is useful, as is templating, both from a design perspective and separating…
    Comment by BenWalker May 16 permalink
  • showing up blank page

    @Rohithzr I believe that is the problem the OP is describing. @Khan Have you tried turning error reporting on? Only do this temporarily, and if you can try to find where your error logs are on the server. That is a far better solution. EDIT: S…
    Comment by BenWalker May 16 permalink
  • PHP Fatal error (joomla)

    Googling your error turned up this: http://forum.joomla.org/viewtopic.php?t=288136#p1540182 Any use? Read the whole thread, as there are other solutions posited. If that's not useful, maybe try posting some more information. Joomla version an…
    Comment by BenWalker May 15 permalink
  • Friendly URL | GET parameters lost

    Well, you would need to account for items not being entered, but that's the rough gist. In the example I posted, there would always need to be three parameters - example.com/script/param1/param2. What RewriteRule does is, well, rewrites URLs. …
    Comment by BenWalker May 12 permalink
  • Friendly URL | GET parameters lost

    Depends which method you use: RewriteRule ^/([^/]+)/([^/]+)/([^/]+)$ $1.php?category=$2&page=$3 The above code, for example, should redirect a request of: http://example.com/page/design/3 To: http://example.com/page.php?category=design&am…
    Comment by BenWalker May 12 permalink
  • Friendly URL | GET parameters lost

    $_GET["category"] or $_GET["page"] wouldn't work, at least in my case. Does it work for you? It isn't even logical to work. There is no "category" or "page" parameter in the URL. You can either …
    Comment by BenWalker May 12 permalink
  • Calendar Page Updates

    I understand that. If you provided some information about the actual code you currently use, I could be more helpful, but it sounds as though you've made tasks like these harder for yourself than they should be. A database allows you to pull i…
    Comment by BenWalker May 11 permalink
  • Calendar Page Updates

    Well, why not edit the homepage at the same time?
    Comment by BenWalker May 11 permalink
  • Calendar Page Updates

    Do you use a database, or are you manually editing the files?
    Comment by BenWalker May 11 permalink
  • Password protect directory (custom login)?

    Then I suspect htaccess is not the solution. Look instead towards using a database to manage authentication. It's not a complicated process, but will require you to read around the subject a little bit. Unfortunately, I haven't seen many …
    Comment by BenWalker May 5 permalink
  • Password protect directory (custom login)?

    As far as I'm aware, most browsers don't provide a "login screen" - simply a dialogue box. How are you imagining customising it? Do you want users to be taken to a different page first to authenticate?
    Comment by BenWalker May 4 permalink
  • CSS designer needed

    What is it you want this structure for? If it is for the front-end to a project, consider either taking someone on as a partner (if you are monetising the project), or saving up to invest in someone. Being at school means you have limited funds, not…
    Comment by BenWalker April 28 permalink
  • Troubleshooting for a warning:[Web App from scratch series]

    Does your webhost allow you to create new databases? Have you tried just using the database you do have?
    Comment by BenWalker April 28 permalink
  • Thoughts and Help with "clean" URLs

    1) How much will clean URLs help my prospects of finding a Job with this site. I would say clean URLs are becoming expected. No-one would be surprised with you using them, but some might be surprised when you don't. 2) How clean should…
    Comment by BenWalker April 18 permalink
  • .htaccess error

    Can't test this right now, but I think you need a space after the regex: RewriteRule ^([a-zA-Z0-9_-]+)$ profile.php?u=$1
    Comment by BenWalker April 17 permalink
  • Opinions on CSS Frameworks

    I use bootstrap when I'm developing a back-end without a front-end to plug into. I do more back-end work (developer, not designer), and I like output to at least slightly correlate with the desired end product. Frameworks clearly have a use. I…
    Comment by BenWalker April 16 permalink
  • Each tab to have own color

    I realise that this is probably not relevant to this specific query, since the site doesn't appear to use wordpress, but I implemented something similar in a WordPress theme I designed recently. The classes are, unfortunately, not semantic, but…
    Comment by BenWalker April 14 permalink
  • yet another a:active problem

    http://codepen.io/anon/pen/IotpH Sorry -- needed a:link as well.
    Comment by BenWalker April 4 permalink
  • How to replicate buttons in jQuery?

    Sorry - explanation: Event handlers aren't replicated when you duplicate an object. You need instead to have a method that either binds it explicitly, or (as in this case) uses a "delegated events" approach. What that means is that …
    Comment by BenWalker April 4 permalink
  • How to replicate buttons in jQuery?

    var singleData = $('#main').html(); $(document).on('click', '.replicate', function() { $('#main').append(singleData); });
    Comment by BenWalker April 4 permalink
  • yet another a:active problem

    Add the following within a:active: outline: 0;
    Comment by BenWalker April 4 permalink