Web Dev Questions That Don't Need Their Own Thread v4
5,001 replies, posted
~ Snip ~
Figured it out myself just needed
#content_pad > #content_inner > div > div[style]
Dumb question, but what's it called when URLS have shit like [IMG]http://puu.sh/dagIs/62f2fdf158.png[/IMG]? I've never done any web design in my life so rate this post dumb as much as necessary.
Hm... Parameters? I don't understand very well the question.
In that URL, s is the key and 6 is the value; p is the key and 001902 is the value. You can get both values with $_GET['key_in_this_case_s'] in PHP, by example.
[QUOTE=Coment;46600666]Hm... Parameters? I don't understand very well the question.
In that URL, s is the key and 6 is the value; p is the key and 001902 is the value. You can get both values with $_GET['key_in_this_case_s'] in PHP, by example.[/QUOTE]
Thank you. I'm had like no idea how to google it.
[QUOTE=Amiga OS;46603355]Please tell me I'm doing something supremely retarded here, I've been going around in circles for 2 hours.[/QUOTE]
[url]http://stackoverflow.com/a/20924703/770449[/url]
[quote][B]IMPORTANT[/B]
Do not include anything but variables, function declarations and other SASS features in your _master.scss file. If you include actual CSS, it will duplicate this CSS across every file you import the master into.[/quote]
could that mean also for this bit?
[code]body.theme-grey {
$navnar_color: #212121 !default;
$primary_color: #424242 !default;
$primary_highlight: #616161 !default;
}[/code]
[QUOTE=Amiga OS;46603355]Please tell me I'm doing something supremely retarded here, I've been going around in circles for 2 hours.
I've got a main sass file which pulls in a few partials to keep things tidy.[/QUOTE]
Are you using Rails?
htaccess tales here:
I'm trying to set up multiple ErrorDocuments for different cases.
First one's generic, for all 404s. ErrorDocument 404 /404.php
Then I tried adding a FilesMatch for any image ( <FilesMatch "\.(jpg|png|gif)$">)
which has the ErrorDocument 404 /img/imagenotavailable.jpg
Those two are working fine. However, I also have more specific ones to override those two ones
<FilesMatch "^thumbnail\.jpg$">
ErrorDocument 404 /img/thumbnailnotavailable.jpg
</FilesMatch>
<FilesMatch "^template_*\.jpg$">
ErrorDocument 404 /img/skin_queue.png
</FilesMatch>
and these aren't working if the folder doesn't exist. For example, <domain>/thumbnail.jpg will work, <domain>/1/thumbnail.jpg will work if the folder 1 exists (even if there is no thumb file), but <domain>/broken/thumbnail.jpg won't work.
Is there any way to fix this behaviour, so the thumbnail error pic will show existing folders or not?
For my website I grab the value of a query string named 'page' from the URL, add '.txt' to the end of it, and use an XMLHttpRequest to grab that txt file from a folder. I then add the contents of that txt file to a div once the page is loaded.
Is this a bad idea? I feel kind of stupid about it.
Edit: I have been notified by Jesus Christ himself that this is probably the worst way to do ANYTHING.
JS/CSS question here -
[url]http://semantic-ui.com/[/url]
How do I achieve the top part of the site, where when you scroll down, the top menu detaches from the screen and follows you down the page? I have a feeling its deceptively simple but I can't find anything on the net about it. I don't even really know what to look for.
[QUOTE=killerteacup;46623348]JS/CSS question here -
[URL]http://semantic-ui.com/[/URL]
How do I achieve the top part of the site, where when you scroll down, the top menu detaches from the screen and follows you down the page? I have a feeling its deceptively simple but I can't find anything on the net about it. I don't even really know what to look for.[/QUOTE]
It's called [URL="http://stanhub.com/scroll-to-top-then-fixed-navigation-effect-with-jquery-and-css-free-download/"]a fixed navigation[/URL] - the effect of it popping out is simply the matter of animation. You can do that with CSS or Javascript as you please. This demo and guide provided here shows how it's made (excluding the animation).
You can also align the menu to the top instead of the bottom like in the demo.
Or if you want to read your way to it, look at:
[B]jQuery scrollTop()[/B] (or a pure javascript alternative, most just use jQuery these days),
[B]CSS Positioning[/B],
[B]CSS animation/Javascript animation[/B].
[editline]3rd December 2014[/editline]
I couldn't help myself [URL="http://jsfiddle.net/f09d1sa6/"]so I made a really simple demo using the code from that article[/URL], all it does is that it changes the navigation theme but you get where this is going.
[editline]3rd December 2014[/editline]
Changed some small things, [URL="http://jsfiddle.net/f09d1sa6/1/"]here's one that actually looks like the semantic one[/URL].
[QUOTE=Moofy;46624163]It's called [URL="http://stanhub.com/scroll-to-top-then-fixed-navigation-effect-with-jquery-and-css-free-download/"]a fixed navigation[/URL] - the effect of it popping out is simply the matter of animation. You can do that with CSS or Javascript as you please. This demo and guide provided here shows how it's made (excluding the animation).
You can also align the menu to the top instead of the bottom like in the demo.
Or if you want to read your way to it, look at:
[B]jQuery scrollTop()[/B] (or a pure javascript alternative, most just use jQuery these days),
[B]CSS Positioning[/B],
[B]CSS animation/Javascript animation[/B].
[editline]3rd December 2014[/editline]
I couldn't help myself [URL="http://jsfiddle.net/f09d1sa6/"]so I made a really simple demo using the code from that article[/URL], all it does is that it changes the navigation theme but you get where this is going.
[editline]3rd December 2014[/editline]
Changed some small things, [URL="http://jsfiddle.net/f09d1sa6/1/"]here's one that actually looks like the semantic one[/URL].[/QUOTE]
awesome, thanks so much
A family friend asked me if I was interested in creating an eCommerce website for someone that is creating a shop, but I'm pretty sure they do not want to create the website for much money.
Right now, I'm looking at opencart and buying a template @ themeforest. any suggestions on different software as well as a place to buy a template?
[QUOTE=jung3o;46629100]A family friend asked me if I was interested in creating an eCommerce website for someone that is creating a shop, but I'm pretty sure they do not want to create the website for much money.
Right now, I'm looking at opencart and buying a template @ themeforest. any suggestions on different software as well as a place to buy a template?[/QUOTE]
Here in Denmark the majority of people that have eCommerce websites use [URL="http://magento.com/"]Magento[/URL] or [URL="http://www.woothemes.com/woocommerce/"]Wordpress with WooCommerce[/URL]
However never looked into any of this, I am not a fan of setting something like that up :v:
[QUOTE=Moofy;46629137]Here in Denmark the majority of people that have eCommerce websites use [URL="http://magento.com/"]Magento[/URL] or [URL="http://www.woothemes.com/woocommerce/"]Wordpress with WooCommerce[/URL]
However never looked into any of this, I am not a fan of setting something like that up :v:[/QUOTE]
Thanks!
my dad is a sales man & delivery guy to a lot of korean restaurant and he tried to get me some jobs during summerbreak instead of playing csgo all day.
At first I said I'm not interested, but a bunch of koreans need someone to make them cheap websites so I thought I'd try it out to get quick cash :v:
I've used both Magento and WooCommerce.
Magento was a huge pain to use, but included so many more options built in. It's only really worth using if the site has a lot of products though.
WooCommerce is good for smaller stores, being easier to work with and with Wordpress comes tones of community made plug-ins and themes.
If you're looking for a paid option, I've only used ShopSite and Shopify, I wouldn't touch ShopSite with a shitty stick if I had the option to. Definitely look at Shopify if you want a paid version.
What's the best way to delete records from a database via a button?
JS? URL?
Basically what I'm trying to do is delete blog posts from my extremely simple admin system via a button.
I'm using PHP with CI, by the way.
[QUOTE=josm;46637266]What's the best way to delete records from a database via a button?
JS? URL?
Basically what I'm trying to do is delete blog posts from my extremely simple admin system via a button.
I'm using PHP with CI, by the way.[/QUOTE]
That really depends how you want it, if you don't want the page to refresh then you would probably Ajax it.
DO NOT USE MAGENTO UNLESS YOU WANT TO HATE YOUR LIFE
[QUOTE=Moofy;46637580]That really depends how you want it, if you don't want the page to refresh then you would probably Ajax it.[/QUOTE]
I don't mind refreshing the page at all. It's only my personal blog.
[QUOTE=josm;46638486]I don't mind refreshing the page at all. It's only my personal blog.[/QUOTE]
Well what I do is I throw the ID of the post over in my controller action (MVC structure) and then run the query to delete it there, pretty simple
[editline]4th December 2014[/editline]
[QUOTE=KmartSqrl;46637847]DO NOT USE MAGENTO UNLESS YOU WANT TO HATE YOUR LIFE[/QUOTE]
Well someone had a bad experience with Magento :v:
[QUOTE=Moofy;46638511]Well what I do is I throw the ID of the post over in my controller action (MVC structure) and then run the query to delete it there, pretty simple
[/QUOTE]
Huh, that's what I'm doing. I'm obviously doing it wrong.
[QUOTE=josm;46638582]Huh, that's what I'm doing. I'm obviously doing it wrong.[/QUOTE]
Some code? :v:
don't forget about csrf tokens :v:
[QUOTE=Moofy;46638511]Well someone had a bad experience with Magento :v:[/QUOTE]
Worked on a Magento site full time for over two years. It's a steaming piece of shit.
They boast a massive feature set but then don't support basic things like "only let people select the continental US as shipping destinations". IIRC we actually had to make code modifications or find an extension to even restrict shipping to specific countries.
It's also massively over engineered in an attempt to be flexible, but half the time they put the flexibility in the spots you don't need it and have no flexibility where you do want it. It's really slow and resource intensive. There's also random stuff that's only half implemented and will only work under certain circumstances. The built in CSV import/export doesn't even support all the product types magento lets you create.
i am using Bootstrap to build my community site,
[url]http://gmodnetwork.net/[/url]
and the jumbotrons and divs are extending down the page, and I wanted them to go side by side. i tried floating, no dice, and i tried padding and margins and it broke the responsiveness. anybody got any clue how to fix it?
[QUOTE=Tolee;46639989]i am using Bootstrap to build my community site,
[url]http://gmodnetwork.net/[/url]
and the jumbotrons and divs are extending down the page, and I wanted them to go side by side. i tried floating, no dice, and i tried padding and margins and it broke the responsiveness. anybody got any clue how to fix it?[/QUOTE]
you should be using the grid system based on the browser size
[url]http://getbootstrap.com/css/#grid-options[/url]
-snip-
thanks <3
maybe a stupid question but I'm new when it comes to web development - even not code related- but I have a server where I can host my website on port 80 but I would like to have a domain name I know there is something like DNS but how does it works?
[QUOTE=frietje2008;46646129]maybe a stupid question but I'm new when it comes to web development - even not code related- but I have a server where I can host my website on port 80 but I would like to have a domain name I know there is something like DNS but how does it works?[/QUOTE]
DNS are servers used for resolving hostnames into IPs.
If you're going to develop on a VPS, the easiest route would be to make a domain on cloudflare (which also adds [I]some [/I]caching and ddos protection), input your server's IP on it, and point [B]their [/B]dns servers to your domain service (namecheap, gandi, godaddy, 1&1....)
After that, you just need to set up [URL="http://httpd.apache.org/docs/current/vhosts/examples.html"]Apache [/URL]or [URL="http://nginx.org/en/docs/http/server_names.html"]Nginx [/URL] to listen to the port 80 and direct all that traffic matching the domain to the system's folder.
[QUOTE=frietje2008;46646129]maybe a stupid question but I'm new when it comes to web development - even not code related- but I have a server where I can host my website on port 80 but I would like to have a domain name I know there is something like DNS but how does it works?[/QUOTE]
Seeing the fact you're from Belgium and your name is Dutch, I am willing to help you with it in Dutch, if that's easier for you.
Sorry, you need to Log In to post a reply to this thread.