PDA

View Full Version : addon: images list


tommaso
07-25-2007, 04:07 PM
Hi all,

I don't know if it already exists but I did a little addon that creates a list of all the images (titles) linked. tag <images_list>

you can download it here http://www.tomsights.net/images_list.zip

not yet live on my site because I'm restyleing... very easy to try anyway (and to trash :) )

bye
Tommaso

Dkozikowski
07-25-2007, 07:11 PM
Headlines (http://www.pixelpost.org/forum/showpost.php?p=47114&postcount=16)

There are actually a few various versions. The one linked above is a slightly more "advanced" version of the original "headlines" addon.

Yours is nice and simple too. Good work :)

tommaso
07-26-2007, 07:26 AM
Your's really more advanced!
I'll give it a try, thank you.

bye
Tommaso

tommaso
09-03-2007, 02:31 PM
hi, my site is going to discontinue. this is the addon code at the time I am writing.
bye

<?php

$addon_name = "List Images Linked";
$addon_description = "Displays a list of all the images with the tag &lt;IMAGES_LIST&gt;.";
$addon_description .= "<p>Created by <a href='http://www.tomsights.net'>Tommaso Carullo</a>.";
$addon_version = "1.0";

$table_pixelpost = "{$pixelpost_db_prefix}pixelpost";

$qlist = mysql_query("SELECT id, headline FROM $table_pixelpost order by id desc");
echo mysql_error();
$imglist="<ul>";
while ($img=mysql_fetch_array($qlist))
{
$imglist .= "<li><a href='index.php?showimage=".$img[id]."'>".$img[headline]."</a></li>";
}
$imglist .="</ul>";

$tpl = str_replace("<IMAGES_LIST>",$imglist,$tpl);

?>