Can't stop Statistics from showing after Upgrade to 1.5.40 Can't stop Statistics from showing after Upgrade to 1.5.40
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Can't stop Statistics from showing after Upgrade to 1.5.40

Started by i-plus-i, December 12, 2015, 04:14:46 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

i-plus-i

Upgraded to 1.5.40 and everything went well except that now I can not get the Statistics off from showing under the Album Description on the main index page.
I did checked and unchecked in the Config/Logging and statistics/Display and Count Views and saved the new configuration but nothing changed.
I'm I missing a setting somewhere else? Any other solutions?
Thanks a lot.
Ivan

allvip

Remove album count.  http://forum.coppermine-gallery.net/index.php/topic,78413.msg379732.html#msg379732

Config/Display statistics on index page is for: see attachment Config-Display statistics on index page.png
Count file views will disable counting of file views. This does not affect the display of the view counter.
Count album views Turning this option off ("No") will disable counting of album views. This does not affect the display of the view counter.
Will stop counting but will still display the counter div.
http://coppermine-gallery.net/demo/cpg15x/docs/en/configuration.htm#admin_count_file_hits

i-plus-i

Hi, I need to know where to paste your "function $template_album_list" in my hardwired/theme.php.
I did try once and I couldn't get in to my Gallery after that. "error of some sort" so I replaced the modified theme.php with the old file and I'm back in it.
My intention is to have only the Description showing in the Albums List Main Page and not the files count, last added and album viewed...
Attached is my theme.php file for your viewing. Thank you so much for your help.
Ivan

i-plus-i


i-plus-i

Oops. Forgot to attach. Sorry. Here it is. I changed the .php to .txt so I could attache it.

allvip

You should pase it at the end of theme.php before ?>

BTW Common policies: Don't double-post/cross-post http://forum.coppermine-gallery.net/index.php/topic,55415.msg270632.html#msg270632 so I moved your replyes back to your topic.

i-plus-i


i-plus-i

I think I did as per your instructions but the File Count, the Last One Added and the Album Count, are still there...
Please see attached and thank you for your time,
Ivan

allvip

Do you have Config - Album list view - Show first level album thumbnails in categories ON?
If you do then also paste at the end of theme.php before ?>:


/******************************************************************************
** Section <<<$template_album_list_cat>>> - START
******************************************************************************/
// HTML template for the album list
$template_album_list_cat = <<<EOT

<!-- BEGIN c_stat_row -->
        <tr>
                <td colspan="{COLUMNS}" class="tableh1" align="center"><span class="statlink">{STATISTICS}</span></td>
        </tr>
<!-- END c_stat_row -->
<!-- BEGIN c_header -->
        <tr class="tableb tableb_alternate">
<!-- END c_header -->
<!-- BEGIN c_album_cell -->
        <td width="{COL_WIDTH}%" valign="top">
        <table width="100%" cellspacing="0" cellpadding="0">
        <tr>
                <td colspan="3" height="1" valign="top" class="tableh2">
                        <span class="alblink"><a href="{ALB_LINK_TGT}">{ALBUM_TITLE}</a></span>
                </td>
        </tr>
        <tr>
                <td colspan="3">
                        <img src="images/spacer.gif" width="1" height="1" border="0" alt="" /><br />
                </td>
        </tr>
        <tr>
                <td align="center" valign="middle" class="thumbnails">
                        <img src="images/spacer.gif" width="{THUMB_CELL_WIDTH}" height="1" style="margin-top: 0px; margin-bottom: 0px; border: none;" alt="" /><br />
                        <a href="{ALB_LINK_TGT}" class="albums">{ALB_LINK_PIC}<br /></a>
                </td>
                <td>
                        <img src="images/spacer.gif" width="1" height="1" border="0" alt="" />
                </td>
                <td width="100%" valign="top" class="tableb tableb_alternate">
                        {ADMIN_MENU}
                        <p>{ALB_DESC}</p>
                </td>
        </tr>
        </table>
        </td>
<!-- END c_album_cell -->
<!-- BEGIN c_empty_cell -->
        <td width="{COL_WIDTH}%" valign="top">
        <table width="100%" cellspacing="0" cellpadding="0" >
        <tr>
                <td height="1" valign="top" class="tableh2">
                        &nbsp;
                </td>
        </tr>
        <tr>
                <td>
                        <img src="images/spacer.gif" width="1" height="1" border="0" alt="" /><br />
                </td>
        </tr>
        <tr>
                <td width="100%" valign="top" class="tableb tableb_alternate" >
                      <div class="thumbnails" style="background-color:transparent"><img src="images/spacer.gif" width="1" height="1" border="0" class="image" style="border:0;margin-top:1px;margin-bottom:0" alt="" /></div>
                </td>
        </tr>
        </table>
        </td>
<!-- END c_empty_cell -->
<!-- BEGIN c_row_separator -->
        </tr>
        <tr class="tableb tableb_alternate">
<!-- END c_row_separator -->
<!-- BEGIN c_footer -->
        </tr>
<!-- END c_footer -->
<!-- BEGIN c_tabs -->
        <tr>
                <td colspan="{COLUMNS}" style="padding: 0px;">
                        <table width="100%" cellspacing="0" cellpadding="0">
                                <tr>
                                       {TABS}
                                </tr>
                        </table>
                </td>
        </tr>
<!-- END c_tabs -->
<!-- BEGIN c_spacer -->
        <img src="images/spacer.gif" width="1" height="7" border="" alt="" /><br />
<!-- END c_spacer -->

EOT;
/******************************************************************************
** Section <<<$template_album_list_cat>>> - END
******************************************************************************/


I sayed that even here too at point 2) http://forum.coppermine-gallery.net/index.php/topic,78413.msg379732.html#msg379732

i-plus-i

Thank you, Thank you, Thank you. And Thank You for being very patient with newbies like me.
Done!