web analytics

I have to add some extension to a site, to post tweets onto the site’s Twitter account, when a new post submitted. I tried some version, first the old way with curl, then some versions with oAuth, but all solution based on a manual user login. I don’t want to force the site admin, to every time log in to the twitter too, when submits a post.

Finally I found the most easy solution, what don’t need any specialties. The solution is based on the post of Jaisen Mathai http://www.jaisenmathai.com/articles/twitter-php-oauth.html

Read more…

One of my friends has a multi-site installation of the WordPress, and he had a problem with the additional sites.

When he wanted to upload images, they uploaded into the proper folder, but the uploader provide wrong URL for the images, and he was not able to use them. The wordpress created the URL for all sites based on the main settings, and provided the “/files/image.jpg” style URL for all of the uploaded files. This setting was worked fine in the case of the main site, because a rewrite rule in the .htaccess file, but not with the sub-sites, because the files of the subsite stored in another folder.

The uploader created the URL based on the main site settings, but uploaded the images into the subsite upload dir. Read more…