Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

jpeters8889

Members
  • Joined

  • Last visited

  1.    fisicx reacted to a post in a topic: Highlight table TD / Column
  2.    Waynede1986 reacted to a post in a topic: Highlight table TD / Column
  3. If the input element is a direct child of the wrapping div, then there's no need for any javascript or complex css rules, you can just target it using the :has() modifier Just quickly did this in a couple of minutes as an example (May need to copy the link into a new tab) https://codepen.io/jpeters8889/pen/yyLLOwW
  4. Personally I think AI is a massive fad, I have absolutely no interest in using it at all, I much prefer hand writing all my code and see no need for it in any other use case.
  5. You said you're using PHP and MySQL, could you not have a table to store these customisations /settings/variables in as JSON, perhaps with an UUID as the PK, a text or json column type for the settings, and a created_at and updated_at timestamps. That way you can just keep the UUID in the users session, and then in PHP you can get the settings out of the table, run them through json_decode() and you've got all your settings to use server side and pass to the view layer for the customer. You could then have a task running on the server regularly to delete settings that are older than X hours to keep the table size low and also avoid storing data any longer than you need to.
  6.    jpeters8889 reacted to a post in a topic: Managing Websites
  7. You very rarely get people, and even more so professional companies and agencies who use FTP these days, or editors that save directly to the server. Instead you'd use version control software, like Git, then you'd pull down the source code to your machine from a resource like github/gitlab etc, do your changes, and then push to back to github, then all your changes are in version control, with history, diffs, and you can even revert if something goes wrong. Then on the push, a CICD integration would take over and deploy the website to our the server. Of course there's steps missed out there, such as automated testing, build steps, deployment to a staging server, QA. I honestly don't know how I'd cope these days without all of the above if I had to go back to the dark days of uploading everything manually!
  8. I've never had hosting and domains on the same provider, I've used 123reg for domains for about 15 years now, but I'd never imagine using them for hosting. For the past 6, 7, years or so I've been using digital ocean droplets, so I can configure and set them up myself, and before that it was different UK based VPS providers, again so I had as much control as possible. When I was younger and first got into web dev (Been doing this since I was 12 in 2001) I just used a random shared host that you could find anywhere, can't remember about domains though. but from about 2013 on wards I started using VPS, and then later Digital Ocean as I mentioned above.
  9.    jpeters8889 reacted to a post in a topic: Building professional website
  10. As someone who is a lead developer at one of the largest and one of the most popular independent Dealer Management Software providers in the UK, I can only echo what was said above, APIs will be key, over the past few years I've been working here I've worked with some very good APIs with excellent docs, and some very bad ones, unfortunately a lot of advertising companies we feed to, and even some dealerships who want feeds of their still prefer to have a CSV sent to their server via FTP in a standard DMS format, and some dealers prefer to feed us in the same format, CSV... fortunately a lot are moving to JSON APIs now though which makes the integrations easier.
  11. I work for a company that provides software to car dealerships, so we do a lot of vehicle lookups, and we've got a couple of different providers we can use depending on the product, the main provider we use though is AutoTrader, but it isn't free, we're charged for every lookup, which is then part of the fee the dealers pay us every month for our services.
  12.    davep reacted to a post in a topic: Photoshop
  13. Photoshop is nowhere near as expensive as it used to be, years ago and when I was younger I couldn't afford the massive price for Photoshop and pirated it, I think I pirated every version from Photoshop 6 back in the early 2000s up until probably around 2015 when I switched to Ubuntu for a few years and Adobe don't make products for Linux. During that time though I found https://www.photopea.com/ which is basically Photoshop but built in the browser, very powerful, and can open and save PSD files. These days I'm on Mac and pay I think £10 a month for Photoshop and Lightroom, which is barely anything, but mainly for photography purposes rather than web design like when I was younger, but if it was still £500 or whatever it was, I'd struggle.
  14.    davep reacted to a post in a topic: Axios query
  15. Depending on what version of PHP you're using and how strict the errors are set at, it could be failing because in the 'off' state, $_POST['sub'] doesn't exist, so PHP is trying to find a value with the key of 'sub' in the $_POST superglobal, but it can't, and in that case the script is failing. One thing you could do to see this is right after the opening PHP tag, temporailly add var_dump($_POST); die; That will dump the entire output of the $_POST superglobal on the page, so you can see exactly whats going on, in the sub 'on' state, then it will be there, in the 'off' state, it wont. There's a few ways you can fix this using the Null Coalescing Operator, https://www.php.net/manual/en/language.operators.comparison.php#language.operators.comparison.coalesce, instead of $sub = $_POST["sub"]; - do $sub = $_POST["sub"] ?? 'off'; - that will default it to 'off' if its not set. Finally, if during local development you're getting 500 errors and you don't know why, then error reporting is turned off in your php.ini file, to get PHP to display errors temporarily, add this snippet to a file, but don't forget to remote it when you're done, you never want to display errors in production! ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL);
  16.    GusGF reacted to a post in a topic: Axios query
  17.    jpeters8889 reacted to a post in a topic: Axios query
  18. jpeters8889 replied to GusGF's topic in Frontend
    When you do the console.log you're adding the JSON object to the string of Axios Response, so the JSON object is being converted to a string, hence the object Object. If you do it as two seperate lines, like console.log('Axios Response'); console.log(response.data); Then it will be outputted as the actual object. With it being an HTTP Request though, rather than outputting it into the console, what I'd do is open the Network tab of the browser development tools, and select the XHR tab, and then the request will appear in there and you can inspect the full response body there without having to log it.
  19. katebecker started following jpeters8889
  20. I think most CSS is actually written as Sass/Scss/Less etc these days and then compiled down to CSS through an automatic build tool like webpack, so if there's any errors then it won't compile down and they would be an error in the console. For viewing the website as responsive, you can just use the F12 dev tools built into most modern browsers, it will let you display the website at a particular size, and let you inspect the style rules applied at that size, toggle them, edit them in the browser to experiment with what they look like etc. I can't imagine doing any form or web dev or designing without writing something like Scss, having a build process and error checking, and using browser dev tools to tweak and inspect a page
  21. I've been working fully from home since last Wednesday, I work for a company with ~100 employees, around 25 of them are developers, plus 15 working on the web front end, but the rest vary from customer care, to marketing, sales, data analytics etc, most people have laptops, and a few in the tech team take them home every night for any emergency out of hours work, myself included, but the vast majority in the business don't do any work outside of the office. On Tuesday last week the entire company planned on how we're going to work from home, with some just taking laptops home, some taking desktops, monitors, phones, even office chairs home, and then through Wednesday, Thursday and Friday everyone began the transition to working from home. For me, I've just set up on the kitchen table because unfortunately I don't have any desk space at home, usually I'm just sat with laptop on my knees, but for my actual paid work I'm sat up on the table with my laptop and laptop stand, a 15.6" USB portable monitor, plus my mouse and keyboard, so to give me some sense of being at a desk, then when the work days over I pack it up and later on when I'm doing personal work I'm back on the sofa, this way I don't procrastinate too much or get too distracted during working hours. With regards to communication, in our mini team (5 of us) we have a 30 minute daily standup video chat on Microsoft Teams every morning, just to keep the interaction up and seeing each others faces, and then this gets reported onto Slack for the full development team to see by the team lead, and we have a 2 hour sprint planning meeting every Monday morning, the first one of which we did remote was yesterday. In the office we're always available on slack for text communication, and that hasn't changed. On the other hand my partner is a Slimming World consultant, and last Tuesday in between her two groups it was announced that all groups are postponed due to the pandemic, which left her a little stuck, however since then a lot of work has gone into place and starting yesterday they've moved onto 'virtual' groups over Zoom, again to keep the groups going and the social interaction for any members who might live alone and don't get much interaction.
  22. cosaia started following jpeters8889
  23. I use this https://www.fla-shop.com/products/html5/europe/uk-ie-counties/ on one of my websites, its split into all the counties in the UK and is very customisable. If I remember correctly they offer other maps too. We use it on a listing page where each county in the UK has various entries, and each county has a landing page, hovering on the county displays a tooltip with a quick overview. We only display the map on larger screens too, the page its on has a layout switcher for the map and a list of counties with the same overview, on screens under 750px wide we show the list by default, and on larger screens where the map is more usable and the user can hover over the counties we show the map by default, but the user can switch between the two views easily.
  24. I've always put any JavaScript right before the closing </body> tag, I'm not 100% sure on the reasoning but I think its because if you JS alters any of the HTML or the DOM, then if its in the head then the JS is downloaded and potentially executed before the HTML has actually rendered, and then the JS will have no effect. Saying that though there has been situations where I've had to put a JS file in the <head> but its rare.
  25. I work 8:30 - 4:30 on days I get the train to work, and 8-4 on days I drive, so with travel time I've out of the house from about 7:30 - 5, when I get home from work I have my dinner (Which is usually ready) then get a shower, then from about 6pm, maybe a little before I'm working on personal development projects usually for 2, 2 and a half hours, then I go upstairs to bed with my partner and we'll watch a film or a couple of episodes of a tv show, then after that for me its either read, play on the xbox, play on my phone, watch youtube, or some combination for an hour or so, then in bed at 11ish, and do it all again the next day when my alarm goes of at 7pm! I have a subscription to Laracasts through work, so when there's a new video posted on there I watch that, usually at night in bed on my phone. Weekends it varies, I could go out for the day, or just a few hours, or I could spend the vast majority working on personal projects like I did this past weekend.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.