web analytics

I have a small plugin, what provided a shortcode to the editor, to show phone numbersĀ  in the posts asa dinamically created image.

The plugin uses a php file, what creates the image based on the url parameters.

In an installation, the browsers was not showed the images, and when we tried to call the php directly from the browser, we got 404 error. The file was on the appropriate place, under the plugins folder.

After some investigation I found the following rows in the cpanel error log;
[Wed May 09 10:02:01 2012] [error] [client x.x.131.2] SoftException in Application.cpp:601: Directory “/home/site/public_html/wp-content” is writeable by group, referer: http://www.site.ie/wp-content/plugins/utdplugin1/callus.php?number=01825990
[Wed May 09 10:01:59 2012] [error] [client x.9x2.131.2] SoftException in Application.cpp:601: Directory “/home/site/public_html/wp-content” is writeable by group

Based on these messages I checked the permissions of the wp-content folder, and saw, that has been set to 777.

Changing the permissions to 755 has been fixed the problem.

On a site, what used Continuum theme, the designer show me an interesting problem. In the category archive there was 13 pages, and the first ten page worked correctly, but after the 11th, we got 404 errors on all pages. First I checked the count of the posts in the related category, and saw, the paginator calculated the number of pages correctly.

I thought the permalink structure is correct, and the problem not related with the theme. But what can cause this kind of malfunction?

Read more…

On a new site the owner tried to use the mappress plugin to show maps to the posts.
The plugin seemed to works well, but the maps did not loaded properly. Sometimes the half of them loaded, sometimes nothing. In firefox, when I opened the firebug, the rest of the map loaded immediately. Based on these information, I knew the problem somewhere around the order of loading and running javascript scripts, but because the site used very lot of plugins I did not want to start to investigate where is the conflict. So I decided to add one more plugin, to solve this problem for me.
Read more…

Classipress is a very useful wordpress theme from AppThemes, what add functionality to the sites to post and manage ads. The theme had gateways for lot of payment methods, but there isn’t contains the PayGol payment gateway. The PayGol is a sms based micro-payment solution, with lot of configurable options.

Read more…

I had an interesting problem yesterday. We wanted to make a new frontpage for a WordPress site. The frontpage has need the same layout than the category listing page. We used the same code, what called the loop.php to show the posts, and everything was good, except one “small” thing. The WordPress worked differently if we called a category listing page, than on the frontpage. 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…

I needed to get a part of a website, and show that in a wordpress post, so I made a WP plugin, what use curl to get the data from the site, and cut the appropriate part, what I want to show in the post. Read more…

I made a new PlugIn for WordPress, and I had to upload swf files for the PlugIn. I used the WordPress built-in uploader for this task.The uploader is able to upload swf files, and with the “Insert to Post” button, I can get an anchor from the uploader, what contained the URL of the uploaded file.

Now I had to get the URL of the file, to store it in a database.

Read more…

I had to turn on the SEO mode of the AWPCP PlugIn, but I had some additional pages, what was not handled with the AWPCP SEO mode handlers. So somehow I needed to add the handling of this page to the system.

I’m lazy, and did not want to make too much work, so I picked the options-permalink.php (/wp-admin/)
to do the work for me.

Read more…

I had to change the AWPCP plugin to be able to search for partial words too. Originally the plugin gives two way to start search. These way are the search page, and the search plugin. But now, I had to make a new way, to search from another form, and had to change the dosearch function to be able to search partial words too, not only in the ad_title and ad_details fields, but in an additional field too, what added with the AWPCP Extra Fields module.

For this changes you need to alter the awpcp.php file. (wp-content/plugins/another-wordpress-classifieds-plugin/awpcp.php)

Read more…