Edit thumbnails - Page 2 Edit thumbnails - Page 2
 

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

Edit thumbnails

Started by NewYorkIslander10, January 02, 2016, 10:02:24 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

NewYorkIslander10

Will anyone be able to help with this? The script? I tried being clear as possible.

Αndré

I've already told you in two threads how to manipulate the views in your gallery. You asked for a script, but still haven't told us what exactly it should do.

NewYorkIslander10

I'd want the script to help double or multiply thumbnail views and of possible album views. Also what you told me to do I wasn't sure how to do it. I went to php admin and I wasn't sure where to go to put the code you had given me I'm a newbie.

phill104

The method Andre outlined in one of your two other threads about the same task is not done in PHPmyadmin, but using a normal text editor and your ftp package. You download your index.php file, make the modifications then re-upload it.

Quote from: Αndré on January 15, 2016, 01:39:35 PM
It won't change with the current mod. If you want to add or multiply the actual views, undo the last mod. Instead, find
            $hit_count = (int)$nbEnr[0];
and replace with
            $hit_count = (int)$nbEnr[0];
            $hit_count = $hit_count + 1234;

The above will add 1234 to whatever the hit count currently is, you can change the 1234 to whatever value you wish.

or us this code to multiply the hit count by your selected value, in this case *2 which you can change to whatever you wish
            $hit_count = (int)$nbEnr[0];
            $hit_count = $hit_count * 2;

It is a mistake to think you can solve any major problems just with potatoes.

NewYorkIslander10

Quote from: Phill Luckhurst on January 20, 2016, 11:48:11 AM
The method Andre outlined in one of your two other threads about the same task is not done in PHPmyadmin, but using a normal text editor and your ftp package. You download your index.php file, make the modifications then re-upload it.

I did just that and nothing happened :(

NewYorkIslander10

If this helps I was referring to having something done like this --> http://forum.coppermine-gallery.net/index.php?topic=51863.0

I tried that it didn't work then I noticed it was for cpg14x

Αndré

I'll have a look at that script and make if compatible with cpg1.5.x (if needed), if that's what you're actually looking for.

NewYorkIslander10

Quote from: Αndré on January 21, 2016, 09:58:49 AM
I'll have a look at that script and make if compatible with cpg1.5.x (if needed), if that's what you're actually looking for.

Thanks I will appreciate it.


NewYorkIslander10