431 Posted Topics

Member Avatar for OsaMasw

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 …

Member Avatar for OsaMasw
0
258
Member Avatar for davy_yg

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 …

Member Avatar for veedeoo
0
157
Member Avatar for abelLazm

A mini giraffe is fine until you stand on it and kill it lol **I wish I had a new car**

Member Avatar for James_40
8
9K
Member Avatar for vaultdweller123

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 …

Member Avatar for vaultdweller123
0
177
Member Avatar for chrisschristou

> 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 …

Member Avatar for gabrielcastillo
0
172
Member Avatar for ddanbe

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 …

Member Avatar for ZZucker
1
407
Member Avatar for RikTelner

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 …

Member Avatar for gentlemedia
0
151
Member Avatar for santunu23

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 …

Member Avatar for santunu23
0
167
Member Avatar for safeer008

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%; …

Member Avatar for mattster
0
1K
Member Avatar for Paul_29

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 …

Member Avatar for mattster
0
220
Member Avatar for CaffeineCoder

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 …

Member Avatar for mattster
0
321
Member Avatar for awesomelemonade
Member Avatar for Slavi
1
2K
Member Avatar for Reverend Jim

**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. …

Member Avatar for smartjulie85
1
500
Member Avatar for mattster

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 …

Member Avatar for vegaseat
2
199
Member Avatar for thirsty.soul

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 …

Member Avatar for diafol
0
150
Member Avatar for <M/>
Member Avatar for davy_yg

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!

Member Avatar for davy_yg
0
356
Member Avatar for marifard

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.

Member Avatar for Troy III
0
288
Member Avatar for suavedesign

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 …

Member Avatar for mattster
0
135
Member Avatar for Web_2

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.

Member Avatar for ankurtheprogrammer
0
2K
Member Avatar for jonsan32

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 …

Member Avatar for mattster
0
506
Member Avatar for renKill

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 …

Member Avatar for mattster
0
102
Member Avatar for minitauros

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 …

Member Avatar for minitauros
0
727
Member Avatar for RodneyzPc

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 …

Member Avatar for RodneyzPc
0
443
Member Avatar for HelenLF

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)

Member Avatar for pritaeas
0
185
Member Avatar for bro_1

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 …

Member Avatar for bro_1
0
137
Member Avatar for oussama_1

> 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 …

Member Avatar for Warrens80
1
367
Member Avatar for mattster

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**

Member Avatar for Jack_9
0
1K
Member Avatar for Simri
Member Avatar for SimonIoa

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.

Member Avatar for SimonIoa
0
323
Member Avatar for bdanie

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 …

Member Avatar for mattster
0
184
Member Avatar for Deep Modi

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 …

Member Avatar for diafol
0
166
Member Avatar for RobertDecousta
Re: SEO

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 …

Member Avatar for happygeek
-1
114
Member Avatar for <M/>

https://www.copy.com/home/ Works great for me, not too sure how it'll do for your requirements but take a look!

Member Avatar for gabrielcastillo
0
279
Member Avatar for Shodow

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/) …

Member Avatar for mattster
0
5K
Member Avatar for NicoleNorth
Member Avatar for J.C. SolvoTerra

> 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 …

Member Avatar for J.C. SolvoTerra
0
532
Member Avatar for Reverend Jim
Member Avatar for Sophia_1

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 …

Member Avatar for edbr
0
354
Member Avatar for lloyd.farrell.7

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?

Member Avatar for diafol
0
195
Member Avatar for mattster

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 …

Member Avatar for mattster
0
335
Member Avatar for v1shwa

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 …

Member Avatar for v1shwa
0
215
Member Avatar for cmsc

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 …

Member Avatar for mattster
0
3K
Member Avatar for davy_yg

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 …

Member Avatar for davy_yg
0
449
Member Avatar for Mourya1222
Member Avatar for Amit_20
Member Avatar for tuấn ngọc
Member Avatar for scaiferw

> 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 …

Member Avatar for veedeoo
0
204
Member Avatar for Rec.132
Member Avatar for joshua_8

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" …

Member Avatar for mattster
0
234

The End.