hugesuccess
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: CSS Rollover image not workingHey Clint. Maybe look into adding that functionality with jQuery?
Forum: Developing with WordPress
In reply to: Getting $_POST data with custom submit buttonYou got bigger problems than that. It’s logically wrong.
Forum: Developing with WordPress
In reply to: Getting $_POST data with custom submit buttonHopefully this points you in the right direction! My advice would be to not use the wpdb class at all, it’s evil! Instead, use wp_insert_post to insert the post, then once that’s done save the post_id and use wp_insert_attachment to insert the img into the post. Also, don’t use copy it creates a whole new file, just use move_uploaded_file b/c it’s way faster and leaves a smaller foot print. Good Luck!
Check out the Codex//
1) To upload a new post
http://codex.wordpress.org/Function_Reference/wp_insert_post2) To add an attachment to that file
http://codex.wordpress.org/Function_Reference/wp_insert_attachmentTake a look and you will see what you are missing.
Forum: Fixing WordPress
In reply to: Videos Not Viewable on the SiteSorry DisneyInfoNet but I can bet it’s probably not the WordPress core. 99.99999999% of the time it’s just the plugin. Which plugin are you using for video? You may have to try another one. Also, with video playback, some machines are just not capable of streaming flash, so you have to check and make sure that the end user meets the minimum req.
Forum: Developing with WordPress
In reply to: Getting $_POST data with custom submit buttonthe $_POST does not transfer data because this is a huge security issue for PHP. If you want to get actual uploaded file content you have the use the $_FILES superglobal and the php move_uploaded_file method.
A cheezy example would be something like this. In the real world be sure to validate and sanitize.
if(move_uploaded_file($_FILES['uploadImages']['tmp_name'], 'new_location.img')){ echo 'Yay I uploaded'; }else { echo 'Boo I failed'; }Forum: Fixing WordPress
In reply to: CSS Rollover image not workingDitto what esmi said. Also, try appending !important after the CSS you want to work. I find that usually solves the problem.
for example:
#someelement:hover { background-color:orange !important; }this code will make the background color of ‘some element’ orange no matter what other CSS is in the way. Hopefully that helps.
Forum: Fixing WordPress
In reply to: How To Reduce The # Of PHP Calls In Your Header.PHPHere’s the best advice I can give you. Because you have a ton of scripts in your header. Try to wrap all the style sheets from juggernaut and copy paste them into one script (main.css or something). If you still need to get the requests down Try pulling your libraries from cdn. And lastly try to move all your advert tracking scripts to the footer. If you still have too many calls you are going to have to start dropping plugins. — Also, double check to make sure that you need all those scripts, and if you see something that you don’t need dequeue it.
Forum: Fixing WordPress
In reply to: How To Reduce The # Of PHP Calls In Your Header.PHPDid you clear out your cache? You could be loading the older version from your browsers internal memory.
Forum: Fixing WordPress
In reply to: How To Reduce The # Of PHP Calls In Your Header.PHPWow that’s a lot of scripts in the header!!! You really should try to cut that down. As a rule of thumb, I try to put only programming libraries in the header, and scripts that respond to user interaction right before the body tag.