Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: 1 [2]   Go Down

Author Topic: Edit thumbnails  (Read 9771 times)

0 Members and 1 Guest are viewing this topic.

NewYorkIslander10

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: Edit thumbnails
« Reply #20 on: January 19, 2016, 06:48:19 pm »

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

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15760
Re: Edit thumbnails
« Reply #21 on: January 19, 2016, 10:10:54 pm »

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.
Logged

NewYorkIslander10

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: Edit thumbnails
« Reply #22 on: January 20, 2016, 01:04:01 am »

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.
Logged

Phill Luckhurst

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4822
    • Windsurf.me
Re: Edit thumbnails
« Reply #23 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.

It won't change with the current mod. If you want to add or multiply the actual views, undo the last mod. Instead, find
Code: [Select]
            $hit_count = (int)$nbEnr[0];and replace with
Code: [Select]
            $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
Code: [Select]
            $hit_count = (int)$nbEnr[0];
            $hit_count = $hit_count * 2;
Logged
It is a mistake to think you can solve any major problems just with potatoes.

NewYorkIslander10

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: Re: Edit thumbnails
« Reply #24 on: January 21, 2016, 09:51:37 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 :(
Logged

NewYorkIslander10

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: Edit thumbnails
« Reply #25 on: January 21, 2016, 09:54:31 am »

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
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15760
Re: Edit thumbnails
« Reply #26 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.
Logged

NewYorkIslander10

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: Re: Edit thumbnails
« Reply #27 on: January 22, 2016, 03:32:52 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.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15760
Logged

NewYorkIslander10

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: Edit thumbnails
« Reply #29 on: January 28, 2016, 06:38:09 am »

Thank you. Solved
Logged
Pages: 1 [2]   Go Up
 

Page created in 0.026 seconds with 20 queries.