Hi Ikki,
i don't have functions.php in my theme, what now to make the thumbnail work?
How can i create a functions.php file?
Thanks!
Hi Ikki,
i don't have functions.php in my theme, what now to make the thumbnail work?
How can i create a functions.php file?
Thanks!
Hi,
You don't really the functions.php file to get thumbnails working. However, you won't be able to pick the thumbnails yourself since your current theme can't use The Post Thumbnail feature, and because of that my plugin will use timthumb.php to generate the images automatically.
Just make sure you activate the thumbnail feature, and that your site also complies with the technical requirements described here.
Thanks for your fast reply, but how can i activate the thumbnail feature without the functions.php?
* excuse me for making 2 topics of the same
No problem. Are you using my plugin as a sidebar widget? Or you're using the shortcode functionality?
No, i don't have the widgets from wordpress, the theme has his own sidebars, i'm using the template code:
<?php
if (function_exists('wpp_get_mostpopular')) wpp_get_mostpopular("range=all&order_by=comments&thumbnail_selection=wppgenerated&thumbnail_width=30&thumbnail_height=30");
?>
I don't see anything wrong with the code you just posted. Should work perfectly as it is. Please do check that your site meets the technical requirements described on the FAQ section.
Yup the code is fine, but how to activate the thumbnail feature, cause now i'm seeing this:
http://img180.imageshack.us/img180/2159/populark.png
Everything is working well, except for the thumbnails, they are just white.
technical requirements is ok.
You don't need to do anything else. If you set the thumbnail width and height my plugin will activate it automatically. However, it'll check first if it's actually possible to create a thumbnail, otherwise the feature will be turned off.
The white images you're seeing are default thumbnails created by my plugin since because WPP wasn't able to find any usable images on your posts.
ohw hmm strange.. cause these are posts with images in it.
But ok, if theres nothing to do about it, then i shall leave it how it is.
Thanks anyway.
I'm re-working the thumbnail feature now with some fixes, wanna test it? I'm adding some extra checks that should work for you.
Yea awesome, that would be great :)
You gonna send it to me?
Get it here and let me know the results, ok?
Ok just uploaded it, and what exactly changed?
nothing happend so far, still white images.
It should look into your posts contents for images and use them if none is found attached.
Are you sure your site does comply with the technical requirements?
I'm unable to activate the "Display post thumbnail" option. Why? Make sure that: your host is running PHP 4.3 or higher; the GD library is installed and enabled by your host; your "wordpress-popular-posts/scripts/cache" directory exists and is writable; there are images on your posts (either attachted or selected under Featured Image).
On all those questions "Yes" weird huh? :S
Try installing WPP 2.0.3 (all versions before 2.1.0 relies only on timthumb.php to create the thumbnails) and let me know if there are any images on your wordpress-popular-posts/scripts/cache directory.
What's your site URL, by the way?
My url is http://www.ultimate-omarion.org but it's in maintenance mode, because i'm editing the theme.
Ahhh this is better, there are now 2 images showing so that's good, but now as you can see at the screenshot you see the titles of the post 2 times.
I'm not seeing any duplicate titles on that image ?
here another screencap. http://img838.imageshack.us/img838/5602/2972010232516.png
they are all duplicated, it starts with:
# The Omarion Wake Up Call on Itunes!The Omarion Wake Up Call on Itunes! 0 comment(s) <== title is duplicated
Oh I see. That issue was fixed on a later version of my plugin! :P Anyways, I'll update the beta version I posted earlier with a few changes and ask you to download it again so you can test it, alright?
UPDATE: please download the beta again using the same link I posted before.
ok, i installed the beta version, and yes 2 images showing, but titles still duplicated.
Damn. Alright, just uploaded a new update. Give it a try and let me know what happens again, alright?
Will come back here tomorrow as I'm a bit tired and need some rest now.
P.S.: sorry to bother you with all this testing, remote debugging isn't easy. Thanks for your patience!
No it's ok.. i love to try it out for you, cause i also want it to get it work.
But still 2 images and duplicated titles:
http://img10.imageshack.us/img10/9247/307201002646.png
I'll hear tomorrow from you, thanks!
BTW, Ikki, I had exactly the same problem - used code for sidebar (no widget) and only 2 thumbs were always shown (however all posts had images).
I tried to clean cache, change code parameters - no luck.
Now I check beta-version u gave link here - and it works as it should!!
Thank u ^_^
Hi xxsemmiexx,
After a long, quite, relaxing weekend I'm back again! Anyways, can you please check if there are any images on your wordpress-popular-posts/scripts/cache folder?
@QAsker: thanks for reporting! Will implement this fix on the next release of my plugin.
This topic has been closed to new replies.