Advanced search  

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

Pages: [1]   Go Down

Author Topic: Can't stop Statistics from showing after Upgrade to 1.5.40  (Read 6217 times)

0 Members and 1 Guest are viewing this topic.

i-plus-i

  • Coppermine newbie
  • Country: ca
  • Offline Offline
  • Gender: Male
  • Posts: 7
Can't stop Statistics from showing after Upgrade to 1.5.40
« on: December 12, 2015, 04:14:46 pm »

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
Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Can't stop Statistics from showing after Upgrade to 1.5.40
« Reply #1 on: December 14, 2015, 03:22:14 am »

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
Logged

i-plus-i

  • Coppermine newbie
  • Country: ca
  • Offline Offline
  • Gender: Male
  • Posts: 7
Re: Can't stop Statistics from showing after Upgrade to 1.5.40
« Reply #2 on: December 14, 2015, 02:33:59 pm »

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
Logged

i-plus-i

  • Coppermine newbie
  • Country: ca
  • Offline Offline
  • Gender: Male
  • Posts: 7
Re: Can't stop Statistics from showing after Upgrade to 1.5.40
« Reply #3 on: December 14, 2015, 02:41:02 pm »

Logged

i-plus-i

  • Coppermine newbie
  • Country: ca
  • Offline Offline
  • Gender: Male
  • Posts: 7
Re: Can't stop Statistics from showing after Upgrade to 1.5.40
« Reply #4 on: December 14, 2015, 02:57:57 pm »

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

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Can't stop Statistics from showing after Upgrade to 1.5.40
« Reply #5 on: December 14, 2015, 04:21:03 pm »

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.
« Last Edit: December 14, 2015, 04:27:41 pm by allvip »
Logged

i-plus-i

  • Coppermine newbie
  • Country: ca
  • Offline Offline
  • Gender: Male
  • Posts: 7
Re: Can't stop Statistics from showing after Upgrade to 1.5.40
« Reply #6 on: December 14, 2015, 04:57:04 pm »

My apologies, sorry.

Ivan
Logged

i-plus-i

  • Coppermine newbie
  • Country: ca
  • Offline Offline
  • Gender: Male
  • Posts: 7
Re: Can't stop Statistics from showing after Upgrade to 1.5.40
« Reply #7 on: December 14, 2015, 05:39:32 pm »

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
Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Can't stop Statistics from showing after Upgrade to 1.5.40
« Reply #8 on: December 14, 2015, 06:08:43 pm »

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 ?>:

Code: [Select]
/******************************************************************************
** 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
Logged

i-plus-i

  • Coppermine newbie
  • Country: ca
  • Offline Offline
  • Gender: Male
  • Posts: 7
Re: Can't stop Statistics from showing after Upgrade to 1.5.40
« Reply #9 on: December 14, 2015, 06:46:30 pm »

Thank you, Thank you, Thank you. And Thank You for being very patient with newbies like me.
Done!
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 20 queries.