Skip to content

u/karatechops

In this archive from Jul 2008 to Feb 2019

6
posts
98
comments
0
media
383
score

I should mention it’s overly complex in the context of React. I don’t know enough about vue to make an assessment regarding approach complexity. With React, view rendering should be tightly coupled to your React application. Having your backend tightly coupled to view rendering DOM nodes is not an approach I would let any of my teams take.

1 points

Easiest approach would be to use laravel as your API and something like next.js on the front end. If you want to try rolling something from scratch check out ReactDOM.renderToString() method. The approach the article takes is overly complicated, there’s much easier ways to do this as long if you can run node on your servers.

1 points

Curious what you're using to hang the poster? Great design btw.

As a designer myself I know constructive critique is always helpful so here's my take: The central focus of the work looks great, my only concern is the prominence of the border. Perhaps a bit too ornate and distracting from your focal point. A thinner stroke/smaller scale or even drop the opacity of the border. Additionally, you could incorporate your 'dots within a line' theme in the border to clarify its simply a design element and not information to be interpreted.

2 points

I just don't understand developers who complain about software prices. Someone spent an extremely large amount of time testing and building this software and people expect it to be free? Are the same people complaining about prices also charging buckets of pennies for their sites? To me the time saved in building my own CMS is worth way more than $199.

While I haven't spent the cash on Statamic I regularly set clients up with sites built on Craft CMS which is also $199 - the price is 100% worth it considering you get a full blown tested and feature full CMS for what most people would charge for an hour or two of work. Not to mention the 199 spent on good software should theoretically save you many hours in build time. To me it's a no brainer.

2 points

Looks to me like you're not updating the post meta, I'm not totally familiar with the update_field method from ACF but this is how I would approach this without update_field -

// This will add the wp_generate_attachment_metadata method.
require_once(ABSPATH . 'wp-admin/includes/image.php'); 

// wp_insert_attachment returns an ID. 
$attach_id = wp_insert_attachment( $attachment, $wp_upload_dir . '/' . basename( $filename ), $post_id);

$attach_data = wp_generate_attachment_metadata( $attach_id, $file_location );
wp_update_attachment_metadata( $attach_id, $attach_data );

update_post_meta($post_id, $field_name, $attach_id);
1 points

I may be missing it in Safari's Network Requests panel but I only see the two GET requests for the stream. However I do see an about:blank request between those two requests which doesn't show up in any other browser. Is their another method of viewing network requests? Safari's dev tools seem to be pretty lacking compared to Firefox and Chrome.

It's totally possible I took the wrong route in securing the media, this is my first larger Laravel app and my first time trying to secure downloads. I'm looking into JWT right now, thanks for the tip.

1 points

The key is Ajax navigation, unfortunately if you're not very familiar with PHP, javascript, and WP architecture you're probably going to have a hard time executing this project. For WP you'd need something like Ajaxify then in the plugin settings you target which div houses content. The targeted div will house your posts data, the music player div(soundcloud widget in your case) needs to live outside of this targeted div for the site to browse while streaming music.

I've run a music blog for 8 years and am currently working on the latest iteration. Music blogs are one of the hardest sites to write, all the pieces need to run seamlessly together. If you're looking for a good WP AJAX music site to learn from use Indieshuffle and start wading through the source files.

Edit: Looks like Indieshuffle migrated from Wordpress in their latest iteration, which is understandable as Wordpress is definitely not the platform to write a site like this on.

1 points

One thing to note about Duplicator is it copies the WP install root directory. I have a client who does video production so they use their root directory for WP install and as an FTP (unfortunately). In these instances Duplicator will attempt to zip every file which, in my case, was impossible as it would have been 500+ GB.

However on all my other WP installs duplicator is an absolute saving grace and a brilliant time saver.

2 points

Bluehost was hosting your name records - so when your hosting expired so did your DNS records. You need to initiate a domain name transfer to a new registrar if you don't want to use Bluehost.

Just out of curiosity - What is the draw to WP Engine? It seems silly you're paying that much money to host a single Wordpress site.

You may want to consider hiring a consultant or dev for a few hours of work so they can get you situated in the best possible scenario. It could save you a lot of time and money.

4 points

Decent write up but I disagree with some of the points. I take the approach "my clients need me more than I need them," which is usually the case. These people work for you, you don't work for them. I don't say sorry/apologize to a client unless I absolutely fucked up something horrendously which has only happened about twice in the 4 years I've been freelancing (and is the reason I dont touch print work anymore). I feel like by saying sorry I'm giving them the upper hand.

Generally when a deadline is pushed back it's because the deadline wasn't realistic to begin with. I always charge my clients a day of consulting before I even start a project, at this point we review assets and go over deadlines. I make the unrealistic deadlines very apparent and say "hey, if I cant make this deadline its not my fault and don't say I didn't tell you so."

Additionally I think explaining the situation thoroughly isn't necessary, you don't always need to give a reason. Which person would you believe more? Person A who gives you an elaborate excuse or Person B who just says "Hey man, can't do it." Liars generally give a detailed story.

I'm not saying these techniques won't work for people, I'm just giving an alternative point of view. Just for reference I'm a vendor based out of NYC (about 7 years agency experience) I've worked with most the larger global agencies.

0 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.