431 Posted Topics
Re: Agree with @diafol, but personally I'd add this too: // Turn rewrite engine on RewriteRule ^(js|css|images|fonts)($|/) - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d // Rewrite rule goes here Line 2 tells the rewrite rule to search for any files that actually exist, so if you had `SITE_ROOT/js/script.js`and looked for … | |
Re: It is always a good idea to do your styling in a CSS file, as otherwise it clutters up your code (and search engines hate it). As @edbr says, just adjust the height of the image to squash it a bit thinner. > (I do not want to see the … | |
Re: A mini giraffe is fine until you stand on it and kill it lol **I wish I had a new car** | |
Re: As @deceptikon says, your ability isn't defined by not knowing Linux (in fact not a great deal different with PHP). And it certainly is not the end of the world if you've never used it before. As a programmer, our job basically is translating. We are the ones who can … | |
Re: > i don't know how i can allow my client to create news pages in that panel if i do it. I agree with @gabrielcastillo, a framework is the SAFEST and MOST EFFICIENT way to accomplish this, and to be honest they're fairly easy to learn. IF you really wanted … | |
Re: https://www.daniweb.com/community-center/geeks-lounge/threads/485640/windows-10-tech-preview Personally, I'm really not sure about it. Microsoft could be on the verge of another Vista accident... As for calling it Windows 10 and not 9, I shall link to the [YouTube](http://www.youtube.com/watch?v=QRyIJ221tZg) clip again, a) because I think it's funny, b) it sums "Windows 10" up perfectly. > They … | |
Re: Most of the time you would use [CSS breakpoints](http://css-tricks.com/snippets/css/media-queries-for-standard-devices/). For instance: /* Smartphones (landscape) ----------- */ @media only screen and (min-width : 321px) { /* Styles */ } /* Smartphones (portrait) ----------- */ @media only screen and (max-width : 320px) { /* Styles */ } To organise things responsively, you … | |
Re: This is possible, but you will also have to look into something called Port Forwarding. Normally outsiders can't go anywhere near your stuff, so your broadband prevents this, so you have to turn that off. **What you are essentially doing is giving the world free access to your computers filesystem … | |
Re: You can look at this article for some ideas: http://exisweb.net/responsive-table-plugins-and-patterns You can use CSS3 'breakpoints' to do `display:none;` on mobiles for certain screen sizes. Additionally, you can have a wrapper div and set `overflow:scroll`, like this: // HTML <div class="table-wrapper"> <table> ... </table> </div> // CSS .table-wrapper { min-height: .01%; … | |
Re: Well you are obviously doing something wrong in your javascript, because somewhere youre trying to find one element 'h1,h2,h3,h4,h5,h6, .menu ul li'. You cannot find one object using this locator, you need to change it to point to a specific element. In order to find this we need to see … | |
Re: So what exactly is your problem then? I don't get what isn't working for you. You could take a look at some big CAPTCHAs, like these: 1. https://www.phpcaptcha.org/ 2. [Are You a Human](http://portal.areyouahuman.com/installation/php) Both of these (plus many others) are excellent resources to consider using, and the second one has … | |
Re: Because it's made of sticky stuff that gets stuck in your clothes Why can't fish drown? | |
Re: **I think [this clip](http://www.youtube.com/watch?v=QRyIJ221tZg) sums it up perfectly aha.** Just because Microsoft would like to point out that they are soo different from everyone else, they must reinvent counting to ten. But agreed, they never learnt from Vista and decided to release another catastrophe two versions later, namely windows 8. … | |
Hi Guys, When talking to a friend on here, we stumbled upon a joke, so we thought we'd share it ;) Please try not to take offence, only light banter ;) Say @diafol: a non-nonsense pro who's an absolute legend. If you say the name out loud in a slow … | |
Re: I think this is something you have to set up on your server. You can have some sort of program (maybe in C#, python, perl) that will sit and wait database updates, and then handle sending the emails. I'm fairly sure you can also use your OS command line to … ![]() | |
| |
Re: All I'll say is: thank god that Davy is at last using a framework. Nice one for taking the advice, and hope that your future in CI goes well. It's amazing to see the difference in the quality of your code, just by using CI. Well done! | |
Re: Your code is fine, no problem there. The reason for this is because your background image is clearly the wrong dimesions to support mobile resolutions. If you'd like me to check to give you a definitive answer, upload/link to your background image. | |
Re: You control which elements appear above/below each other by `z-index` in CSS. So if you wanted that yellow box on top, add to line 9 above: `z-index: 100;`. This will put it on top. I'm struggleing to understand what sort of effect you want from this, because `top:600px` is very … | |
Re: So you have a PHP-based website, and you want a link to display an e-paper? Very confused here, your post makes no sense at all. | |
Re: Have a look at this: http://www.javascriptkit.com/script/script2/jsslide.shtml Get it up and running, and then change the following lines: //configure the paths of the images, plus corresponding target links var currentMonth = (new Date).getMonth() + 1; if(currentMonth == 10){ slideshowimages('http://upload.wikimedia.org/wikipedia/commons/thumb/a/ab/Logo-ubuntu_cof-orange-hex.svg/100px-Logo-ubuntu_cof-orange-hex.svg.png', 'http://www.how2code.co.uk/wp-content/themes/twentytwelve_child/images/Python_logo_100x100.jpg') slideshowlinks("http://food.epicurious.com/run/recipe/view?id=13285","http://food.epicurious.com/run/recipe/view?id=10092") }else if(currentMonth == 11){ slideshowimages('http://www.javascriptkit.com/script/script2/photo1.jpg', 'http://www.javascriptkit.com/script/script2/photo2.jpg') slideshowlinks("http://food.epicurious.com/run/recipe/view?id=13285","http://food.epicurious.com/run/recipe/view?id=10092") } It's hardly … | |
Re: I know they're all from one or two publishers, but here are some good books: http://shop.oreilly.com/product/0636920032663.do http://shop.oreilly.com/product/9780596805531.do < Very popular! http://shop.oreilly.com/product/0636920033141.do < Advanced http://shop.oreilly.com/product/0636920027065.do https://www.packtpub.com/all/?search=javascript# Each book goes over the simple stuff and wizzes into advanced topics like DOM, while solving problems practically. Good reads, but theres an endless list … | |
Re: Depending on your situation, you could use AngularJS. Okay it's not perfect, but it is backed by the Google development team and is an extremely efficient way of combining client+server side code. It doesn't 'require' PHP as such, but pretty much the same thing. It would be able to do … | |
Re: Line 34 should be: `$query=getenv('QUERY_STRING');` `$_POST['name1']` and `$_POST['shift']` clearly do not have a value submitted (or they wouldn't return as undefined). As a result, the update query fails along with all succeeding variables. This highlights serious errors in your code, like you're not even using `mysql_real_escape_string()`, which is a cringy … | |
Re: Personally my favorite is: [WOW Slider](http://wowslider.com/responsive-slideshow-chess-blinds-demo.html), but [Slippery](http://slippry.com/examples/thumbnails/) is also pretty good. WOW will do everything, plus extras like animations and stuff and comes with tons of different designs and styles tp choose from. Amazing when resized. **COOL.** But here are some other examples: * [BxSlider](http://bxslider.com/examples/thumbnail-pager-2) * [FlexSlider](http://flexslider.woothemes.com/dynamic-carousel-min-max.html) | |
Re: I think I get what you mean, but your question it very poorly worded. Here is a [jsFiddle](http://jsfiddle.net/vstemge7/) of a similar button, and some jQuery to change the number of tweets. To change this all you need to do is tweak the jQuery with events, changing the variable and then … | |
Re: > end sentences with a semicolon due to excessive coding Get that all the time. I try not to have food anywhere near my desk, otherwise it starts disappearing and I can't find it again :( Instead I try to find something to fiddle with, be it a pencil or … ![]() | |
So the game works like this: We start with a word, and each person must change that word. You must change **one letter only**, and you **may not add or remove letters**. For instance: fame -> game -> gate We'll start with the word **tool** | |
Re: Then I would still re-upload from scratch, as this *should* fix that. Maybe in the renaming process your server has a problem and didn't quite finish it or something. Either way, an upload will DEFINATELY reset everything, and solving your problem. | |
Re: Well clearly this is something you need to actually think about doing. **Do you know EXACTLY what you want to craete?** You have a lot of components/requirements there. Maybe think about it and divide them down into individual parts. Research it (if you want a forum, google: forums) and make … | |
Re: Agreed with @diafol. Things like this can sometimes be a bit too pretty, and begin to weigh everything else down. But if you want to try this idea then lots of other websites do it so fair enough. Taking that into account, I've made a rubblish little [jsFiddle](http://jsfiddle.net/bLsne0fn/1/). You can … ![]() | |
Re: For a start, look at the links at the top of the page: Internet Marketing > Search Engine Optimisation. Maybe a good idea to ask a question here. Now for this pathetic question. Use google. It's a lovely site that could answer all of that in one search, and not … | |
Re: https://www.copy.com/home/ Works great for me, not too sure how it'll do for your requirements but take a look! | |
Re: Just saying, it's very unhelpful when people don't actually post a problem, but hey ho... I can instantly see one error in your code however, and you are closing one to many `<div>` tags around line 13-14. So just remove one of those lines and you should be fine. [jsFiddle](http://jsfiddle.net/Lssdfnzw/) … | |
Re: > i cant even see what for. Agreed. I think he may have a point here though. I have down votes, and would like to increase my rep while I'm here, so am very keen to learn from mistakes. I look at it like this: if we can't view our … | |
| |
Re: I had this problem when testing on localhost once... The thing was, is that my xampp server didn't have a functioning mail server (SMTP). Unfortunately, you need to upload your script to a functioning server with SMTP installed/working (if I were you I'd just create a `test/` directory on your … | |
Re: Have a look at [this](http://www.white-hat-web-design.co.uk/blog/resizing-images-with-php/). You could use that to adjust the size of your image after it has been saved. It seems relatively easy to handle, and also provides support for PNGs with transparency. Is it too much of aproblem to resize it with CSS? ![]() | |
Hi All, Over the years I have smashed through God knows how many brick walls with `.htaccess`, and all I've learnt is don't even try to make it complicated as nothing is ever simple. I have therefore resorted in recent applications to using `mysite.com/index.php/category/sub-category/create/` etc. and PHP to get hold … | |
Re: I see one way to do this (and someone else might have another idea): I would create a table that logs the user, the score and the date. Then you can do lots of queries to locate what users scored on certain days, providing a very accurate reading to what … | |
Re: Hi, I've tried to replicate what you want, but instead using a little function instead of `setTimeout()`. `setTimeout()` isn't really meant for this sort of thing, whereas my little function will produce *hopefully* the same result, but maybe slightly better practice. Take a look at the example to see what … | |
Re: You can easily do this with the temporary file using the [getimagesize()](http://uk3.php.net/manual/en/function.getimagesize.php) function $image_info = getimagesize($_FILES["file"]["name"]); $image_width = $image_info[0]; $image_height = $image_info[1]; The easiest way is to take the above, and use an IF statement to check it with whatever limit you want. For example: if($image_width > 30) { echo … | |
Re: > If I ran batch script on the client machine I totally agree with @difol! How dangerous it would be if you could run a batch script on a client machine! I'm sure this is definitely out of the question, as it's EXTREMELY unethical for websites to run programs on … | |
Re: You need to use `$('input#checkbox1').click()` and apply a function to that. I've done a mini mockup on [jsFiddle](http://jsfiddle.net/cos2kvvn/), but for reference here is the code explained: // When checkbox clicked $('input#checkbox1').click( function(){ // If has been checked or unckecked if ($('input#checkbox1').is(':checked')) { // Smoothly animate the div in $( ".select" … |
The End.