forum.coppermine-gallery.net

Support => cpg1.6.x Support => cpg1.6 miscellaneous => Topic started by: tonyyears on June 03, 2020, 02:57:57 am

Title: Remove "Album viewes"
Post by: tonyyears on June 03, 2020, 02:57:57 am
Hello, I want to remove the album views on the albums. Does anyone have a solution?

Check screenshot below:
Title: Re: Remove "Album viewes"
Post by: phill104 on June 03, 2020, 11:04:30 pm
Try - https://forum.coppermine-gallery.net/index.php?topic=70498.0
Title: Re: Remove "Album viewes"
Post by: ron4mac on June 04, 2020, 03:06:49 pm
In your case, you can just add a bit to the theme.php file of your theme.
Code: [Select]
if (defined('INDEX_PHP')) {
$lang_list_albums['alb_hits'] = '';
}
If it is a custom theme, the change won't get removed during a CPG update.
Title: Re: Remove "Album viewes"
Post by: tonyyears on June 05, 2020, 06:21:08 am
Try - https://forum.coppermine-gallery.net/index.php?topic=70498.0

 Parse error: syntax error, unexpected '$alb_list' (T_VARIABLE) in /home/xxxxxxx/public_html/xxxxxxx/index.php on line 834
Title: Re: Remove "Album viewes"
Post by: tonyyears on June 05, 2020, 06:24:54 am
How can I delete this thread? Or the last reply I made.
Title: Re: Remove "Album viewes"
Post by: tonyyears on June 05, 2020, 06:28:44 am
In your case, you can just add a bit to the theme.php file of your theme.
Code: [Select]
if (defined('INDEX_PHP')) {
$lang_list_albums['alb_hits'] = '';
}
If it is a custom theme, the change won't get removed during a CPG update.

Doesn't work
Title: Re: Remove "Album viewes"
Post by: tonyyears on June 05, 2020, 06:29:05 am
Try - https://forum.coppermine-gallery.net/index.php?topic=70498.0

Doesn't work
Title: Re: Remove "Album viewes"
Post by: tonyyears on June 05, 2020, 06:30:00 am
Please How can I delete this thread?
How can I delete this thread?
Title: Re: Remove "Album viewes"
Post by: ron4mac on June 05, 2020, 02:47:38 pm
Both of the above methods will work. Perhaps you didn't enter them correctly or you didn't clear your browser cache.
Title: Re: Remove "Album viewes"
Post by: tonyyears on June 12, 2020, 08:33:39 am
Please How can I delete this thread?
How can I delete this thread?
Title: Re: Remove "Album viewes"
Post by: ron4mac on June 12, 2020, 02:15:20 pm
Please How can I delete this thread?
How can I delete this thread?
You can't.

Did you get rid of the album views count?
Title: Re: Remove "Album viewes"
Post by: tonyyears on June 14, 2020, 07:00:43 pm
Why I can’t? I wanted to remain my gallery private and I messed it up. That’s why I want to delete this thread. Is there an admin to this forums?
Title: Re: Remove "Album viewes"
Post by: ron4mac on June 14, 2020, 07:29:25 pm
I can delete the thread ... but, so far, I don't see a reason why I should. Your gallery is not linked anywhere here; so there should be no issue with your privacy. And the information in this thread could be useful to others and is, therefore, worth keeping.
Title: Re: Remove "Album viewes"
Post by: phill104 on June 15, 2020, 09:15:11 pm
Why I can’t? I wanted to remain my gallery private and I messed it up. That’s why I want to delete this thread. Is there an admin to this forums?

Hi tonyyears,

It is our policy for threads to remain to assist others. We generally only delete spam and in the past sadly peoples galleries that contain illegal content (in some cases reporting that to the relevant authorities). In your case Ron has obfuscated references to your site and in this way the thread is still a good resource for others who may want to modify their site in a similar way. Hope that is OK and you can understand how helpful threads like yours can be to others.