Plogger Support Forum - Total Number of Albums and Images Fri, 29 Mar 2024 11:42:47 +0000 http://www.plogger.org/forum/ Lussumo Vanilla 1.1.10 Total Number of Albums and Images http://www.plogger.org/forum/comments.php?DiscussionID=3337&Focus=13129#Comment_13129 http://www.plogger.org/forum/comments.php?DiscussionID=3337&Focus=13129#Comment_13129 Thu, 12 Aug 2010 16:42:12 +0000 phpnovice
This gallery contains [code] images in [code] albums.

I am using a modified version of the default theme.]]>
Total Number of Albums and Images http://www.plogger.org/forum/comments.php?DiscussionID=3337&Focus=13135#Comment_13135 http://www.plogger.org/forum/comments.php?DiscussionID=3337&Focus=13135#Comment_13135 Fri, 13 Aug 2010 14:27:10 +0000 boblennon functions in the plog-admin-functions.php and plog_functions.php that you can use including:

count_albums($parent_id = 0)
count_collections()
count_pictures($parent_id = 0)

check_mysql($host, $user, $pass, $database)
connect_db()
run_query($query)
close_db()

It's important to recognize that routines must run in an active Plogger configured environment.

If you want to display these numbers in one of your standard web pages (outside Plogger) you will need to access the database
directly with the MySQL interface routines in PHP. You can get a start on how to do this by examining the code in the functions
mentioned above.]]>
Total Number of Albums and Images http://www.plogger.org/forum/comments.php?DiscussionID=3337&Focus=13136#Comment_13136 http://www.plogger.org/forum/comments.php?DiscussionID=3337&Focus=13136#Comment_13136 Fri, 13 Aug 2010 15:27:36 +0000 phpnovice
<?php count_pictures($parent_id = 0); ?>Fatal error: Call to undefined function count_pictures()
I am just guessing so forgive me if this is an incredibly stupid mistake.]]>
Total Number of Albums and Images http://www.plogger.org/forum/comments.php?DiscussionID=3337&Focus=13137#Comment_13137 http://www.plogger.org/forum/comments.php?DiscussionID=3337&Focus=13137#Comment_13137 Fri, 13 Aug 2010 16:33:09 +0000 boblennon
Make sure you are running your code within the envelope.]]>
Total Number of Albums and Images http://www.plogger.org/forum/comments.php?DiscussionID=3337&Focus=13138#Comment_13138 http://www.plogger.org/forum/comments.php?DiscussionID=3337&Focus=13138#Comment_13138 Fri, 13 Aug 2010 16:54:45 +0000 phpnovice
Is plog-admin-functions.php what controls the administration panel? So the theme pages can't access it?

I am using the default file structure plogger/plog-content/themes/custom/collections.php.

I don't see how it could be configured improperly, I just upgraded to Version 1.0-RC1 and everything else is working correctly.

This isn't a big deal it was just something I thought might be easily available.]]>
Total Number of Albums and Images http://www.plogger.org/forum/comments.php?DiscussionID=3337&Focus=13139#Comment_13139 http://www.plogger.org/forum/comments.php?DiscussionID=3337&Focus=13139#Comment_13139 Fri, 13 Aug 2010 18:15:18 +0000 phpnovice
I don't add photos all that often and when I do, it's a whole album, so I can just use regular text and update it manually.]]>