Mohd Yusuf
Forum Replies Created
-
Just to update the thread, I tested with WP 3.1 and Count-Per-Day 2.16 and the blog is working fine; no modification is needed.
Thanks Tom.
Forum: Fixing WordPress
In reply to: Count per Day Suddenly Stopped CountingHey Tom, upgraded to WP 3.1 and your latest Count Per Day Plugin, it works fine now. Thank you for the awesome support π
Forum: Fixing WordPress
In reply to: Count per Day Suddenly Stopped CountingIf you have PECL installed. You may have two function names mentioned in the link in contention. You can edit the count-per-day plugin and include a namespace to those two functions (or even comment them out) to get your whole blog to work again.
Forum: Fixing WordPress
In reply to: Count per Day Suddenly Stopped CountingHi edward mindreantre,
Not sure if you have PECL enabled on your server. This may be the reason why it keeps breaking everytime you update.
http://ww.wp.xz.cn/support/topic/plugin-count-per-day-function-name-clased-geoip_country_code_by_name-and-geoip_country_name_by_name?replies=3Or else, you may have different sets of function names clashing with each other.
Good luck.
Hey Tom,
Thanks for reading and thanks for your consideration.Keep up the good work.
Forum: Plugins
In reply to: Auto use first image in post as "Featured Image"I tried http://ww.wp.xz.cn/extend/plugins/auto-post-thumbnail/ but I wonder if I have to regenerate the thumbnail everytime i have a new post?
Forum: Plugins
In reply to: Auto use first image in post as "Featured Image"Thanks kkarpieszuk. That is very helpful.
Forum: Plugins
In reply to: Auto use first image in post as "Featured Image"Sounds good. Will give it a try later.
Forum: Plugins
In reply to: Auto use first image in post as "Featured Image"@mkearl, so far i havent seen one. Not sure i have time to make it a proper plugin. Maybe someone could improve the code into a plugin?
Forum: Fixing WordPress
In reply to: Count per Day Suddenly Stopped CountingI had the same problem, I just deactivated the plugin and reactivated it and it seems to work again.
Maybe you can try that?
Forum: Plugins
In reply to: Auto use first image in post as "Featured Image"I ended up with my own function that i wrote to get the first image of the post and create a thumbnail on the fly.
function catch_that_image() { global $post, $posts; $first_img = ''; $new_img_tag = ""; $output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches); $first_img = $matches [1] [0]; if(empty($first_img)){ //Defines a default image with 0 width $new_img_tag = "<img src='./images/bargainsfrenzy.com.gif' class='alignleft' />"; } else{ echo $new_img_tag = "<img src='./thumb.php?gd=2&src=".$first_img."&maxw=120' class='alignleft' />"; } return $new_img_tag; }Then i hacked the WPTouch theme (i added the catch_that_image() into functions.php) and I hacked the WPTouch’s index.php to call catch_that_image() instead.
It works for me for now; I am still open for the ‘featured image’ solution though..
Forum: Installing WordPress
In reply to: Blank page after server migrationI just had the problem, check apache error log and you should know what happened.
For me, wordpress is complaining about file access denied in wp-content (mostly images). What i did:
chown -R apache:apache wp-content
and walla.. (assuming your apache is running using apache user and group)