Not signed in (Sign In)

Vanilla 1.1.5a is a product of Lussumo. More Information: Documentation, Community Support.

Please sign in or apply for membership to remove the ads
    • CommentAuthorthebluebus
    • CommentTimeMar 18th 2008 edited
     
    me again...i want to do this..

    http://plogger.org/forum/discussion/346/display-totals/#Item_0

    but it appears its all changed since b3. Does the code for plog_globals still apply? or does it all need re-writing?

    thanks
    • CommentAuthorthebluebus
    • CommentTimeMar 19th 2008
     
    anyone help with this? would love to get it working
    •  
      CommentAuthormike
    • CommentTimeMar 20th 2008
     
    Check out the "Javi" theme at http://dev.plogger.org/browser/themes/javi. I built in a photo, album, and collection counting function within the theme.
    • CommentAuthorthebluebus
    • CommentTimeMar 21st 2008
     
    cheers mike, i'm sure i'll be able to disect it from that :)
    • CommentAuthorernesto
    • CommentTimeAug 1st 2008
     
    Was trying to do this as well and had a look at the original thread you posted earlier

    Got this to work in beta 3 by adding the following to plog-functions

    function plogger_count_pictures() {
    $numquery = "SELECT COUNT(*) AS `num_pictures` FROM `".TABLE_PREFIX."pictures`";
    $numresult = run_query($numquery);
    $num_pictures = mysql_result($numresult, 'num_pictures');
    return $num_pictures;
    }

    and then just call the function plogger_count_pictures() anywhere yo want it to appear
    (I placed it in the default theme header.php file like so
    <td>'.plogger_count_pictures().'</td>)