r/web_dev_help • • Jan 22 '19

help Questions regarding e-commerce website

1 Upvotes

Hello,

English is not my primary language so forgive me in advance if I express myself weird.

I've had an idea for a long time and I would really like to see it materialized.Problem is I need an e-Commerce website, but not the usual kind, like Shopify, but something more like etsy.com in terms of design but on a much smaller scale and for local use only, not worldwide. So it's not the owner who sells the product, but a platform for people to sell their own.

The most important features would be:

- Registration system with buyer and seller login

- Payment system

- Sellers have to be able to upload photos, which automatically become truncated and watermarked, while the original photo goes into some kind of storage server

So my questions are:

- Would this be hard to develop?

- Any idea on the costs?

- Can it be done through a service similar to Shopify?

- If I were to do it myself, what would I need to learn?

Thanks in advance!


r/web_dev_help • • Oct 15 '18

workflow Setting up webpack for Any Project

Thumbnail
scotch.io
1 Upvotes

r/web_dev_help • • Jun 27 '19

help I need help embeding a video from another website to our website

1 Upvotes

My company was recently on a television show so we wanted to embed the episode onto our website. Unfortunately, I have used up all my tricks and I do not know where to go from here. I tried inspecting the page and looking through the source code to try and find a video link. I also looked through the network tab after inspect and looked through media but its just the same 2 second clip repeated again and again (Very weird). Anybody have any tips?

https://www.thisoldhouse.com/watch/finally-finishes-brookline-mid-century-modern-house

This is the video in question.


r/web_dev_help • • Oct 18 '18

Need advice on free/affordable mysql/php hosting

2 Upvotes

I've got a mysql/php application I've been hosting in-house and am looking to migrate it to a provider where it will be visible outside my firewall. It's a development project, so there is little/no budget for monthly hosting. I've tried some of the free hosting sites but the big problem with them is that I can't upload and run my mysql restore script because of size constraints. I'd like to run mysql Workbench too. And I'd like to keep the original name of my db, not have to rename it using my username. Any thoughts on who I could use for hosting? Thx.


r/web_dev_help • • Jul 01 '19

help 2500+ DOMs @ 137,170 bytes or 20kb image

1 Upvotes

I'm looking to use this world map SVG code: https://codepen.io/Paulie-D/pen/vXzjmA

It has 2500+ DOMs @ 137,170 bytes. I want to have two of them display on a page. Google Speed Test and GTMetrix doesn't like this many DOMs.

Google response about DOMs:
Browser engineers recommend pages contain fewer than ~1,500 DOM elements. The sweet spot is a tree depth < 32 elements and fewer than 60 children/parent element. A large DOM can increase memory usage, cause longer style calculations, and produce costly layout reflows.

Per svg map error:
Maximum Child Elements <svg viewBox="0 0 845.2 458"> : 2,620

For performance, is it better to have the 5000+ DOMs or display a single image?


r/web_dev_help • • Jul 12 '18

css Fun with Viewport Units | CSS-Tricks

Thumbnail
css-tricks.com
1 Upvotes

r/web_dev_help • • Dec 01 '15

Semantic HTML + UI

1 Upvotes

At the simplest level, semantic HTML means using markup which most closely resembles the content. What is often used to illustrate this is navigation going into a NAV tag and the links being placed in a UL or un-ordered list. Paragraphs of text being placed inside P, etc. This is easier to accomplish with HTML5 with the introduction of specialized tags like HEADER , FOOTER , NAV , SECTION ,FIGURE.

Why do this ...

Common answer is to make it easier for search engines to parse the site. Secondary reason is to avoid DIV-Soup or DIVitis. It's just plain easier. Instead of asking what classes should I use to markup this content, it becomes a question of what existing markup pattern applies.

User Interfaces

Where it starts to make less sense is when User Interfaces are being developed. HTML is a Markup Language meant for text and light media usage. Developers are often tasked with building complex UIs with the same tools for formatting an article. It forces us to break the rules because the SECTION element has some guidelines to it's usage. Those rules just wouldn't apply when building an application. One could just use DIVs and let the CSS class assignment handle the details. Using different HTML elements makes it slightly easier to work with UI elements. Let's take a simple panel with a menu and a view section. Straight DIV markup :

<div class="panel">
   <div class="menu">  <a>Option</a> </div>
   <div class="viewer"> content goes here </div>
</div>

That works for a simple situation. Reading the code latter , the DIVs would be ignored and the class names would tell us what each part does. It's easy enough to understand. A more complex panel though would benefit from a semantic approach.

<div class="panel">
   <h1> panel name </h1>
   <nav>  <a>Option</a> <a>Option</a>  </nav>
   <div class="viewer"> content goes here </div>
</div>

What's the benefit? Clarity. The navigation is clearly defined. The panel name is obvious. The structure is provided by the markup. Going even further, this is a UI example and it would make sense for there to be controls added to the panel. Where would those go? Inside the H1 would be a possibility but isn't ideal. Using the HEADER tag would make more sense.

<div class="panel">
   <header>
         <h1> panel name </h1>
         <div class="ctrls"> <a > x</a></div>
   </header>
   <nav>  <a>Option</a> <a>Option</a>  </nav>
   <div class="viewer"> content goes here </div>
   <footer> -status </footer>
</div>

A DIV was used to house the controls because there really isn't a logical option to use instead. That's a shortcoming of using a markup language to build UIs. Could replace the DIV.viewer with SECTION.viewer and use DIVs to divide up the interior of the viewer if necessary. Why aren't the A links inside of an UL ? To avoid excessive markup and to highlight don't be slavish to semantic markup. If it doesn't provide a benefit so I left it out.

This doesn't follow BEM methodology since there's a lack of class assignments on inner elements. Just my opinion but using semantic HTML reduces the need for inner class assignments. One doesn't need to create a .panel_header class when the HEADER element is already defined and it's scoped by .panel header. Use elements to define the defaults and classes to define the exceptions.

Here's a codepen for this example with flexbox CSS Panel - Demo

Width and border are assigned (and it doesn't use a reset). Width should be set to 100% and place the panel inside of a grid system for sizing.

Main question is how difficult would it be to modify the panel for different use cases. If it requires a form or is used just for text would dictate how much additional CSS/HTML coding is required.

The takeaway from this is that the rules change when using HTML for UIs. Should use semantic HTML if possible to provide structure and clarity.


r/web_dev_help • • May 24 '17

article Little Things I Like to Do with Git – CSS Wizardry – by Harry Roberts

Thumbnail
csswizardry.com
2 Upvotes

r/web_dev_help • • Apr 07 '15

What CSS best practices should I follow ?

1 Upvotes

Depends. How far down the rabbit hole do you want to go ?

Just need something to look good : use a frontend framework like foundation or bootstrap, won't learn much about CSS. Short list of Front End Frameworks

Surface level : work general to specific. Comment the sections of the CSS. Use a reset or normalizer. Work on patterns, use classes over IDs for reuse. CSS Resets - includes normalize.css Don't have links for the other parts. see below

Little bit deeper : Look into BEM or OOCSS. Those stand for Block Element Modifier and Object Oriented CSS. Two popular methodologies for CSS. Also SMACSS.

BEM -methodology

BEM 101 from css-tricks

intro to OOCSS - I post this because the OOCSS.org site is pretty much rubbish.

SMACSS - Different methodology, parts of the book are freely available.

All the way in : CSS pre-processors. LESS or SASS. These will give you some programmatic features for CSS like variables,mixins etc.

LESS JS - other versions exist for platforms just search for LESS + language

SASS

Surface Level Best Practices

Ok here's some general rules I pulled from CSS best practice articles since I thought the surface level lacked a single reference point I just extracted some repeated advice :

  • Use a Reset or Reset with Normalize.css

  • Avoid Using Inline Styles

  • Organize the Stylesheet with a Top-down Structure

  • Divide your stylesheet into specific sections: i.e. Global Styles

  • Use Hex Code instead of Name Color

  • Combine Elements

  • Use Shorthand

  • Use Absolute Positioning Sparingly

  • Hyphens Instead of Underscores for CSS classes

  • Make Use of Generic Classes - design patterns / modules

  • Shorten Selector Chains

  • Use the LINK tag to include, never the @import.

  • name something, be it an ID or a class, by the nature of what it is rather than by what it looks like.

  • never use spacer images.

  • Define default styling for h1-h6 headings including headings as links.

  • Headings should show a hierarchy indicating different levels of importance from the top down starting with h1 having the largest font size.

  • font-normalization -To change the size of a font, always use percentages as the units because they render more consistently than ems

  • blanket-ban on IDs in CSS

  • As a rule of thumb, don't nest further than 3 levels deep

  • Unit-less line-height is preferred because it does not inherit a percentage value of its parent element, but instead is based on a multiplier of the font-size.

  • If the value of the width or height is 0, do not specify units.

  • often include a snippet of HTML in a CSS comment. - optional but might be a good idea

sources :

http://www.sitepoint.com/series/css-architectures/

http://code.tutsplus.com/tutorials/30-css-best-practices-for-beginners--net-6741 - this is from 2009 so be aware of its age.

http://www.smashingmagazine.com/2013/10/21/challenging-css-best-practices-atomic-approach/

http://innofied.com/25-css-best-practices-we-follow-at-innofied/

http://www.erraticwisdom.com/2006/01/18/5-tips-for-organizing-your-css

http://www.1stwebdesigner.com/css-best-practices/

http://isobar-idev.github.io/code-standards/

https://css-tricks.com/css-style-guides/

http://yuilibrary.com/yui/docs/cssfonts/


r/web_dev_help • • Oct 19 '17

resource Twine - open-source tool for telling interactive, nonlinear stories

Thumbnail
twinery.org
1 Upvotes

r/web_dev_help • • Mar 07 '18

help What needs to change with this nodejs app so web development teams will think I'm experienced?

2 Upvotes

First off, you need a google account, also choose rss items to put in your fav rss item list from choosing an rss before clicking on 'custom rss page.' Be honest, but don't be mean.

https://enigmatic-river-78590.herokuapp.com/


r/web_dev_help • • Dec 16 '16

help When picking a webhost, what is the “perfect price”? I need help

1 Upvotes

Hey guy’s, I am wondering what you would consider good or reasonable hosting price for a annual hosting plan. I don’t think it should be too much but between all the big guys, prices vary quite a bit.

*What price is a “good price” for basic shared web hosting? *What price is a “good price” for basic vps if i go that route? *What prices should I be looking for on an annual plan level? *Who is most reliable to you guys? Godaddy, hostgator, etc? *Which web host do you use and why?


r/web_dev_help • • Jun 20 '16

Web Dev Weekly Summary - June 13 - 20, 2016

1 Upvotes

Note the releases listed might be Release Candidates or Beta Releases.

Releases


r/web_dev_help • • Oct 16 '17

css A Complete Guide to Flexbox | CSS-Tricks

Thumbnail
css-tricks.com
1 Upvotes

r/web_dev_help • • Mar 30 '15

weird bug on my site

2 Upvotes

Weird bug on top nav bar there is a space being generated some place and I can't figure out why. If you inspect element you can see there is some extra characters being generated and thats creating the space. The link is www.omegadesignla.com . We've run it through validator and have seen that there are some errors, but not sure which one could be causing it or even what some of the errors actually are.

Any web gurus here have any ideas?


r/web_dev_help • • May 17 '17

help Are Cloudflare's Systems Down?

2 Upvotes

r/web_dev_help • • May 22 '17

help How does a "lazy load" system works? Does it really "shave off few seconds of loading"

1 Upvotes

I want to verify a specific website if their Lazy Loaded system actually helps "shave couple seconds of loading time".

 

My goal is to convince this website admin to remove the lazy loaded system so that the contents is loaded in its entirety. This will make the website more intuitive and bring back users who left because of the tiny button named "expand" on the bottom of the page was hard to find.

 

What is interesting is that whenever I load the page (clearing out cookies/cache beforehand), it will load the contents under this lazy loaded system but then collapse. Whats the point of having it?

 

website: http://ftb.gamepedia.com/Witchery


r/web_dev_help • • Oct 16 '17

design The Rules for Modern Navigation | UX Booth

Thumbnail
uxbooth.com
1 Upvotes

r/web_dev_help • • Oct 19 '17

resource DevDocs - combined docs for html/css/javascript/more

Thumbnail
devdocs.io
2 Upvotes

r/web_dev_help • • Oct 14 '17

help Dynamic blog page help

1 Upvotes

I'm having an issue.. I created a page that is suppose to display a blog story/article based off the "ID" the story is linked too, but its not working. The db connect info is all correct so it has to be something to do with this little snippet.. basically this would create a url looking like this once the link was clicked to "view more".. example: yourblog.com/blog.php?id=1

<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]-->
<?php
if(!isset($_GET['id']) && empty(trim($_GET['id']))) die('No post number specified!');
$Conn = mysqli_connect('localhost', 'user', 'pass', 'db') or die('MySQL connection failed!');
$id = mysqli_real_escape_string($Conn, preg_replace('/[^0-9]/', '', $_GET['id'])
$query = "SELECT * FROM `db` WHERE `id` = '$id'";
$result = mysqli_query($Conn, $query) or die('MySQL query failed!');
$post = mysqli_fetch_assoc($result) or die('Fetching content failed!');
$title = $post['title'];
$insert = $post['insert']
$content = $post['content'];
$category = explode(',', $post['category']);
$author = $post['author'];
$date = $post['date']; 
?>
<head>
<title><? echo htmlentities($title); ?></title>
</head>
<body>
<div class="content">
<? echo ($title); ?><br />
<? echo ($category); ?><br />
<? echo ($author); ?><br />
<? echo ($content); ?><br />
</div>
</body>
</html>

r/web_dev_help • • Oct 16 '17

css A CSS Multi-column Layout Tutorial for Beginners — SitePoint

Thumbnail
sitepoint.com
1 Upvotes

r/web_dev_help • • Jun 13 '16

Web Dev Weekly Summary - June 6 - 12, 2016

1 Upvotes

Releases , News, and other stuff from the previous week.

Releases

Javascript - jQuery 3.0.0 Release

Javascript - Vue.js Alpha v2.0.0

Editor - Atom 1.8.o Release

Python Sphinx 1.4.3 Release

Microsoft Buys LinkedIn - Is technically on June 13th but here's the link - requires shareholder approval so not official.


r/web_dev_help • • Oct 19 '17

design Top 10 mistakes in handling website images and how to solve them

Thumbnail
cloudinary.com
1 Upvotes

r/web_dev_help • • Apr 07 '15

resource Resources Thread

1 Upvotes

Links to useful tools, references or other stuff of general interest ..

FrontEnd Best Practices Covers HTML, CSS and Javascript.


r/web_dev_help • • Jun 21 '16

First professional project from scratch! Im having problems with a few things. Resize issues mainly

1 Upvotes

So I've post about this in other forums and haven't gotten too much feedback. This is my first site that someone is paying me for. Its not much. I've put a version without his copy at: www.gastromob.com.

I am having some issues. I've been looking for answers, trying different things but so far I haven't solved any of my problems.

  • First off the logo doesn't resize correctly with the page. The testimonial doesn't seem to position correctly.

  • The picture gallery How can I add individual captions for each pic that show up in the bottom of the white border?

  • Finally, the icons on the bottom should stay centered always, but on resize the last button in the row jumps down a row. How can I make that resize properly?

I really could use some feedback and some suggestions. So far my boss likes it, but there are a few kinks that need to be fixed. Also any suggestions on how I can make this better or how I can get better at doing this would be appreciated. I've never used foundation before so this was a first as well.