Blog, Wordpress•
on April 28th, 2010•
Facebook released Social Plugin in their recent F8 conference.
It lets you see what friends have liked, commented on or shared on sites across the web.
I added the most important social plugin (Facebook said that), Like button to a site. The button enables users to post pages from that site back to your Facebook profile with one click
I used iframe tag, because it’s very easy and didn’t need JavaScript SDK required by XFBML tags.
Add below code to WordPress theme or your WordPress posts or pages via HTML editor in WP backend
You could change width:450px or height:80px to fit your site
Blog, CentOS/RHEL, Linux•
on April 25th, 2010•
I got this simple problem when I had imported a database to phpMyAdmin in localhost. I got a warning that i couldn’t import that database, because the database size higher than default size limit allowed. The database size was 39.9 MB, default size limit was 18 MB.
Increasing phpMyAdmin or php upload size limit was simple yet troubling process. If you are familiar with PHP, you must know that all settings for PHP handled by a file name php.ini. Edit php.ini and get new import/upload size limit.
Open php.ini with Notepad (Windows Text Editor), find this section ini php.ini
;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;
; Whether to allow HTTP file uploads.
file_uploads = On
; Maximum allowed size for uploaded files.
upload_max_filesize = 18M
Change upload_max_filesize = 18M to upload_max_filesize = 40M
Is it done yet? No. Somehow php.ini need another setting to be updated too,
Find this section in php.ini
;;;;;;;;;;;;;;;;;
; Data Handling ;
;;;;;;;;;;;;;;;;;
; Maximum size of POST data that PHP will accept.
post_max_size = 20M
change post_max_size = 20M to post_max_size = 40M
Restart your Apache server. You’re Done, you have new import/upload size limit
Blog, Wordpress•
on March 29th, 2010•
I wrote self-signed SSL login with WordPress for iPhone because my WordPress login used SSL. It’s easy to secure WordPress with SSL. Add define(‘FORCE_SSL_LOGIN’,true); to wp-config.php after the SSL installed in the server.
You must add define(‘FORCE_SSL_LOGIN’,true); after /* That’s all, stop editing! Happy blogging. */ and before require_once(ABSPATH . ‘wp-settings.php’); in wp-config.php