Showing posts with label WordPress. Show all posts
Showing posts with label WordPress. Show all posts

How to allow contributors to upload images files in a Post in WordPress

How to allow contributors to upload images files in a Post in WordPress? In a wordpress blog there are lots of contributors who use to write for the blog and they can’t upload images/videos as they don’t have permission to do so and most of the times you want them to add images/screenshots to your blog,but wordpress by default don’t allow this. So, if you want that your contributors also add images just like regular authors you will need to do some changes in your wordpress code .



To Allow contributors to upload images/files in wordpress :



You need to put this code into functions.php of your wordpress blog:







It will enable upload files feature for contributors.



If you don’t want to do the above,then you will have to use a wordpress plugin called Members .

How To Import Large WordPress XML File Above Default Limit Size


How To Import Large WordPress XML File Above Default Limit Size? I wanted to export the posts, comments, categories and tags of one WordPress blog and move the contents using the export option in WordPress Tools in WordPress Admin.



 I found out you can do this in .htaccess – just add the following:



 #set max upload file size

 php_value upload_max_filesize 25M

 #set max post size

php_value post_max_size 25M



 Where I have added “25m” you can edit this to abover whatever size your xml file is.



 Now you can export a large xml file and upload the file to another wordpress blog.

How to Add Delicious Counter Button in WordPress Site

I’ve resisted not to use delicious counter button on any of my blogs as I was waiting to see the new changes. Now time has come to use delicious counter button again for good.



Delicious has introduced many new changes. It has introduced concept of Stack which is nothing but a way to group various links.



 





 Delicious counter button is little bit tricky but I’ll keep it simple.

In order to add Delicious counter button to WordPress you need to add 2 pieces of codes in header and single template files as described below.



 Add the following code in header.php file



<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="http://delicious-button.googlecode.com/files/jquery.delicious-button-1.0.min.js"></script>



Add following code in single.php file



<a class='delicious-button'  href='http://delicious.com/save'>
<!-- {
url:"<?php the_permalink() ?>"
,title:"<?php the_title(); ?>"
,button:"wide"
} -->
Save on Delicious
</a>



Above code will not work on category.php. I’ll update this code to make it work on Category pages later.