Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.
1 to 10 of 10
<?php
include_once("plog-globals.php");
include_once("plog-load_config.php");
include_once("plog-functions.php");
global $config;
$amount="3"; //How many images do you want shown?
//The URL of your Plogger directory E.G. http://yoursite.com/ploggerdirectory ***IMPORTANT*** DO NOT INCLUDE A TRAILING SLASH
$siteurl="http://www.yourdomain.tld/ploggerdirectory";
$q = "SELECT * from plogger_pictures order by `id` DESC LIMIT $amount";
$result= mysql_query($q) or die
("Could not execute query : $q." . mysql_error());
while ($row=mysql_fetch_array($result))
{
$id=$row["id"];
$path=$row["path"];
$number=strrpos($path, '/');
$number=$number+1;
$url=substr($path, $number);
?>
<a href="<?php echo "$siteurl"; ?>/index.php?level=picture&id=<?php echo "$id"; ?>"><img class="imgborder" src="http://www.yourdomain.tld/ploggerdirectory/thumbs/<? echo "$id"; ?>-<?php echo "$url"; ?>" border="0" /></a><br /><br />
<?php } ?>.imgborder {
background-color: #eee;
border: 2px solid #999;
padding: 5px;
}
1 to 10 of 10