Pages (2):    1 2
Member
Member
antoxa   2006-08-25, 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   2006-11-19, 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   2006-12-03, 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   2006-12-05, 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   2008-03-24, 00:42
#25

I used the following maybe it helps
'

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

`

Member
Member
wilsul   2008-10-25, 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   2008-10-25, 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.