Search found 6376 matches

by Celauran
Thu Feb 14, 2019 5:40 pm
Forum: PHP - Code
Topic: I need to write a Wordpress Function, but really stuck
Replies: 2
Views: 58703

Re: I need to write a Wordpress Function, but really stuck

What have you tried so far and where are you getting stuck?
by Celauran
Sat May 05, 2018 8:08 am
Forum: Javascript
Topic: capturing responseText as a JS variable
Replies: 1
Views: 14668

Re: capturing responseText as a JS variable

Why not just return JSON from the server? Both PHP and JS know how to handle that.
by Celauran
Sun Apr 15, 2018 9:29 am
Forum: HTML, CSS and other UI Design Technologies
Topic: SEO: Is a homepage video a good idea?
Replies: 2
Views: 14295

Re: SEO: Is a homepage video a good idea?

Can't speak to the SEO aspect of it, but generally (and this may just be me), if I open a page that auto-plays a video, I very quickly close that page.
by Celauran
Sun Apr 08, 2018 7:35 am
Forum: PHP - Code
Topic: Need Help....Trying To Get Property Of Non - Object Error
Replies: 1
Views: 6911

Re: Need Help....Trying To Get Property Of Non - Object Erro

var_dump gave you your answer; you don't have an object, you have false. In order for anyone to help you, we'd need to see the code in question.
by Celauran
Thu Mar 15, 2018 5:53 pm
Forum: HTML, CSS and other UI Design Technologies
Topic: Nested CSS classes - how do we do it?
Replies: 4
Views: 14406

Re: Nested CSS classes - how do we do it?

Is there no common class you can use? If not, can you add one? What does the associated markup look like?
by Celauran
Tue Feb 20, 2018 4:40 am
Forum: PHP - Code
Topic: mysql connect not connecting
Replies: 13
Views: 19960

Re: mysql connect not connecting

$charset is not defined. Also, turn on error reporting while you're developing.
by Celauran
Wed Feb 14, 2018 6:18 am
Forum: PHP - Code
Topic: Disabling Image use remotely...
Replies: 13
Views: 15589

Re: Disabling Image use remotely...

If you're storing everything in the same directory, or all of a user's images in a directory just for them, then maybe getPaths ought to be modified. I expect most of the rest of the functionality can remain unchanged.
by Celauran
Wed Feb 14, 2018 5:47 am
Forum: PHP - Code
Topic: Disabling Image use remotely...
Replies: 13
Views: 15589

Re: Disabling Image use remotely...

You're calling resizeImage, so you'll need to modify that function to accept a folder as an optional parameter. If a folder is provided, you can do whatever you need with it. You could pass it through to getPaths, but I think a better option would be to leave that alone and append the folder, if you...
by Celauran
Tue Feb 13, 2018 6:46 pm
Forum: PHP - Code
Topic: Disabling Image use remotely...
Replies: 13
Views: 15589

Re: Disabling Image use remotely...

I thought I could do this: ... $folder = isset($_POST['folder']) ? $_POST['folder'] : null; function getPaths($resize_type) { // default for all paths,. $paths = array( 'fullsize' => DIRECTORY_SEPARATOR . 'images' . DIRECTORY_SEPARATOR . $folder, 'thumbnail' => DIRECTORY_SEPARATOR . 'images' . DIRE...
by Celauran
Mon Feb 12, 2018 7:22 pm
Forum: PHP - Code
Topic: Code review of a simple contact form
Replies: 25
Views: 30518

Re: Code review of a simple contact form

Gave this a quick look this morning but didn't have time to review it until now. I'm trying to keep in mind that this is aimed at beginners, and have had a bit of a tough time not being able to review things inline, but here are a few thoughts: 1. Clean up the formatting. It's a mess. PSR-2 is proba...
by Celauran
Fri Feb 09, 2018 5:14 am
Forum: PHP - Code
Topic: Wordpress Woocommerce Div Clear Rows
Replies: 3
Views: 7143

Re: Wordpress Woocommerce Div Clear Rows

We'd need to see what the function does before we can really say one way or the other. Does it even need to be in the function, though? Couldn't you just do this with CSS?
by Celauran
Sat Jan 27, 2018 9:38 am
Forum: General Discussion
Topic: Convert WMA to mp4 with overlaid graphic
Replies: 1
Views: 5674

Re: Convert WMA to mp4 with overlaid graphic

You can convert the audio to mp4 with VLC, then use ffmpeg to add image overlay.
by Celauran
Sat Jan 27, 2018 8:04 am
Forum: Javascript
Topic: Passing a PHP array to JavaScript
Replies: 2
Views: 15848

Re: Passing a PHP array to JavaScript

Send it in as an AJAX request and then use json_decode