Pages (2):    1 2
Member
Member
antoxa   25-08-2006, 09:03
#21

here is the small addon to the hack to count images

function count_images($id) {
$sql = "SELECT * FROM ". prefix("images") ." WHERE albumid = $id";
$result = mysql_query($sql);
while($r = mysql_fetch_array($result)) {
$count++;
}
return $count;
}

Member
Member
bbish007   19-11-2006, 18:30
#22

@antoxa, how would you integrate your count_images function into your show_latest_album function? I would also like to display the number of images for each of the latest albums underneath.

Member
Member
max   03-12-2006, 16:52
#23

antoxa,

which file in your theme do you place this:

"show_latest_album($number)"

and where in that file do you place it?

Thanks

Developer
Developer
trisweb   05-12-2006, 03:37
#24

That is truly a hack. Here's a better version...

`function count_images($id) {

$result = mysql_query("SELECT count(*) FROM ". prefix("images") ." WHERE albumid = $id");

return mysql_result($result, 1);

}`

Member
Member
wilsul   24-03-2008, 00:42
#25

I used the following maybe it helps
'

                         '
Member
Member
wilsul   24-03-2008, 00:44
#26

`

Member
Member
wilsul   25-10-2008, 11:32
#27

Is there a possibility to show latest albums using RSS? At present it only shown last images from last posted album.

Administrator
Administrator
acrylian   25-10-2008, 13:05
#28

The feed shows the latest images from the whole gallery not only from the latest album, but on the album/image page it shows only the ones of that album.

It is not possible to show the latest albums with the feed unless you want to do some coding. You would have to create your own feed using the image_album_statistics plugin for example.

Pages (2):    1 2
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.