Search found 6376 matches
- Thu Feb 14, 2019 5:40 pm
- Forum: PHP - Code
- Topic: I need to write a Wordpress Function, but really stuck
- Replies: 2
- Views: 58311
Re: I need to write a Wordpress Function, but really stuck
What have you tried so far and where are you getting stuck?
- Sat May 05, 2018 8:08 am
- Forum: Javascript
- Topic: capturing responseText as a JS variable
- Replies: 1
- Views: 14382
Re: capturing responseText as a JS variable
Why not just return JSON from the server? Both PHP and JS know how to handle that.
- 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: 14001
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.
- Sun Apr 08, 2018 7:35 am
- Forum: PHP - Code
- Topic: Need Help....Trying To Get Property Of Non - Object Error
- Replies: 1
- Views: 6780
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.
- 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: 14112
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?
- Tue Feb 20, 2018 4:40 am
- Forum: PHP - Code
- Topic: mysql connect not connecting
- Replies: 13
- Views: 19646
Re: mysql connect not connecting
$charset is not defined. Also, turn on error reporting while you're developing.
- Wed Feb 14, 2018 6:44 am
- Forum: PHP - Code
- Topic: Disabling Image use remotely...
- Replies: 13
- Views: 15270
- Wed Feb 14, 2018 6:18 am
- Forum: PHP - Code
- Topic: Disabling Image use remotely...
- Replies: 13
- Views: 15270
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.
- Wed Feb 14, 2018 5:47 am
- Forum: PHP - Code
- Topic: Disabling Image use remotely...
- Replies: 13
- Views: 15270
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...
- Tue Feb 13, 2018 6:46 pm
- Forum: PHP - Code
- Topic: Disabling Image use remotely...
- Replies: 13
- Views: 15270
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...
- Mon Feb 12, 2018 7:22 pm
- Forum: PHP - Code
- Topic: Code review of a simple contact form
- Replies: 25
- Views: 29897
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...
- Fri Feb 09, 2018 5:19 am
- Forum: PHP - Code
- Topic: Wordpress Woocommerce Div Clear Rows
- Replies: 3
- Views: 6969
- Fri Feb 09, 2018 5:14 am
- Forum: PHP - Code
- Topic: Wordpress Woocommerce Div Clear Rows
- Replies: 3
- Views: 6969
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?
- Sat Jan 27, 2018 9:38 am
- Forum: General Discussion
- Topic: Convert WMA to mp4 with overlaid graphic
- Replies: 1
- Views: 5543
Re: Convert WMA to mp4 with overlaid graphic
You can convert the audio to mp4 with VLC, then use ffmpeg to add image overlay.
- Sat Jan 27, 2018 8:04 am
- Forum: Javascript
- Topic: Passing a PHP array to JavaScript
- Replies: 2
- Views: 15496
Re: Passing a PHP array to JavaScript
Send it in as an AJAX request and then use json_decode