Creating a podcast directory site – how to allow user to upload “large” files?

Just to add to what other have said, beyond changing your php.ini settings, upload size is limited mainly by the browser/connection. There are more reliable browser bases solutions that use java/flash or a combination of tech that allow for uploads reliably up to 100MB. http://www.plupload.com/ http://www.swfupload.org/ http://www.uploadify.com/ http://jumploader.com/

Best way to receive special images in posts

WordPress already does the heavy lifting for you on this. All you need to do is use post thumbnails. If you don’t see the featured image meta box on your pages/posts, place the following in your functions.php file. add_theme_support(‘post-thumbnails’); From there you will need to define a new image size in your functions.php file. add_image_size(‘special-image’, … Read more

How to resize attachement

If you are trying to retroactively resize images, use the code you’ve supplied in your functions.php, then run the Regenerate Thumbnails plugin http://wordpress.org/extend/plugins/regenerate-thumbnails/ Once you’ve done that you should be able to display the image using the following: the_post_thumbnail(‘my_thumb’);

uploaded images not going to /uploads folder

If I remember it right, this happened to me once. I deleted my /uploads directory (to delete all the images) and went back to posting thinking that WordPress will automatically create an /uploads directory and any necessary sub-directories for me. And yes, that’s how it works. But here’s the catch — WordPress doesn’t set proper … Read more

Uploading PDF files from the front-end

I have done a simple function for that, but i allow all types of media. So this could be a start: function insert_attachment( $file_handler, $post_id, $settpdf=”false” ) { // check to make sure its a successful upload if ( $_FILES[$file_handler][‘error’] !== UPLOAD_ERR_OK ) __return_false(); require_once( ABSPATH . ‘wp-admin’ . ‘/includes/image.php’ ); require_once( ABSPATH . ‘wp-admin’ … Read more

Change the look of the media uploader

As starting point there is this action that allows inserting CSS and Javascript into the upload window. add_action( ‘admin_head-media-upload-popup’, ‘wpse_70750_style_upload_iframe’ ); function wpse_70750_style_upload_iframe() { ?> <style type=”text/css”> #media-upload, #media-upload .media-item .slidetoggle { background-color:#555 } </style> <script type=”text/javascript”> jQuery(document).ready( function($) { }); </script> <?php } Other Q&A’s that use this hook may be interesting. Then, you … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)