Pixelpost Forum

Pixelpost Forum (http://www.pixelpost.org/forum/index.php)
-   Hacks and Modifications (http://www.pixelpost.org/forum/forumdisplay.php?f=16)
-   -   Multiple show_latest_thumbnail by cat... (http://www.pixelpost.org/forum/showthread.php?t=3500)

Augura 02-27-2006 04:35 PM

Multiple show_latest_thumbnail by cat...
 
I'm not a php expert (speaking french also so please be lenient towards my englih speaking!) and I have some difficulties: I'm trying to get pixelpost thumbnails by different categories, each one of thoses into different php pages (thoses pages are also outside a worpress blog and uses the get_a_post plugin for wordpress).

I'm using a modified version of the Ramina's plugin, show_latest_thumbnail, simply adding a category restriction to the $query = mysql_query("select * from ".$pixelpost_db_prefix."pixelpost where datetime<='$cdate' and category='2' order by datetime DESC limit 0,$num_thum_toshow");

It works fine for one category. My problem is that I have many categories, like I said before, and each one have to be in it's own php page outside pixelpost and wordpress.

So I duplicate the plugin, changing plugin names, functions names and category's IDs to get from the DB. It seems to work but, as I activate those different plugins, each PHP page get also the other categories from activated plugins...

Any idea will be welcome. Thanks.


All times are GMT. The time now is 06:51 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.