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 [3]   Go Down

Author Topic: Hot pictures plugin for cpg1.5.x  (Read 40051 times)

0 Members and 1 Guest are viewing this topic.

Niecher

  • LocalSupporter
  • Coppermine frequent poster
  • ***
  • Country: es
  • Offline Offline
  • Gender: Male
  • Posts: 191
Re: Hot pictures plugin for cpg1.5.x
« Reply #40 on: November 05, 2013, 04:46:51 pm »

Hello André,

Do you want to display the users' choice publicly to other users? If not, I don't get the difference to the Favorites meta album.
I think the plug-in should be a tool for that the registered user promotes those pictures most important for him, from his own personal gallery, showing these pictures in the index of his personal gallery.

Otherwise, the plug-in can be used as a tool to show the pictures than more likes the user registered (in whole gallery) and these images are displayed in the index of his personal gallery.

Two cases with different purposes.

For the administrator, the plug-in should be a tool that promotes those most important pictures of the gallery in general and these pictures will be displayed on the main index coppermine.

Favorites meta album is a private album, no one can see the pictures, only the owner (I see this so).

Actually there are no limits for (meta) albums.
The limit pictures to display is determined, if for example, we configure (hotpics,3) and (thumbcols = 3) then are displayed 9 pictures.

If we activate more pictures of this number, these no longer displayed.

My idea was to show a message that says something like "maximum pictures to activate (or to display): 9".

Please describe more detailed.
The strange behavior, I think it's because the user admin menu (edit, delete ... etc) is displayed to the user along with the buttons on the plug-in, for all the pictures in the gallery, even those pictures that user not is owner.

And if the user activates as Hot picture a picture that does is not his own, all user admin buttons for this picture, are not shown within the Hotpics meta album.

I think the buttons on the plug-in should only be displayed to the user in their own pictures.

And it being so, then the plugin can be a tool to promote the pictures that a user wants to promote from his personal gallery and these images are displayed in the index of the user's personal gallery.

Regards.
« Last Edit: November 05, 2013, 07:12:33 pm by Niecher »
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Hot pictures plugin for cpg1.5.x
« Reply #41 on: November 06, 2013, 10:51:16 am »

I think the plug-in should be a tool for that the registered user promotes those pictures most important for him, from his own personal gallery, showing these pictures in the index of his personal gallery.
That wasn't the initial purpose of the plugin and I'm not interested in modifying it accordingly, sorry.


The limit pictures to display is determined, if for example, we configure (hotpics,3) and (thumbcols = 3) then are displayed 9 pictures.

If we activate more pictures of this number, these no longer displayed.
Partly correct. You still can access the meta album via thumbnails.php?album=hotpics to see all pictures. That's why a message like "maximum pictures" may be misleading or confusing.


I think the buttons on the plug-in should only be displayed to the user in their own pictures.
If I remember correctly it should work this way.
Logged

Niecher

  • LocalSupporter
  • Coppermine frequent poster
  • ***
  • Country: es
  • Offline Offline
  • Gender: Male
  • Posts: 191
Re: Hot pictures plugin for cpg1.5.x
« Reply #42 on: November 06, 2013, 10:27:59 pm »

Yes the buttons work perfectly, I did not consider that I have some personal changes in my testbed.

I agree that the plug-in should be as you created it.

Thank you very much André.
Logged

mitko

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 119
    • World of Lighthouses
Re: Re: Hot pictures plugin for cpg1.5.x
« Reply #43 on: November 23, 2013, 11:08:49 am »

Open codebase.php, find
Code: [Select]
$meta_album_name = 'hotpics';and above, add
Code: [Select]
    $superCage = Inspekt::makeSuperCage();
    if ($superCage->get->keyExists('cat')) {
        return;
    }

Thanks very much, Andre! That's work perfect.

sharpo

  • Coppermine frequent poster
  • ***
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 332
Re: Hot pictures plugin for cpg1.5.x
« Reply #44 on: November 23, 2013, 04:02:20 pm »

Just tried installing this plugin, using the latest version 1.5 but get the errors mentioned on the first page of this topic:-



While executing query 'ALTER TABLE cpg15x_pictures ADD hot_expire int(11) default '0'' in plugins/hot_pictures/codebase.php on line 180

mySQL error: Duplicate column name 'hot_expire'

File: /home/transpor/public_html/sharpo.co.uk/cpg15test/include/functions.inc.php - Line: 270

Was I right in thinking v1.5 had corrected that problem when installing?
Logged
Sharpo (not an expert, just a Coppermine user)
3 live galleries, first started in 2006.
http://www.sharpos-world.co.uk/BB3cpg/ with over 8,000 images.
http://www.sharpos-world.co.uk/cpg/ with over 25,000 images. 1.6.25
http://www.sharpos-world.co.uk/kc/ with over 300 images. 1.6.25

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Hot pictures plugin for cpg1.5.x
« Reply #45 on: November 23, 2013, 04:04:25 pm »

Please delete the column "hot_expire" from your MySQL database and try again to install the plugin.
Logged

sharpo

  • Coppermine frequent poster
  • ***
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 332
Re: Hot pictures plugin for cpg1.5.x
« Reply #46 on: November 23, 2013, 05:14:52 pm »

Thanks Αndré,

That was fast, I wasn't expecting a reply so soon.

I deleted the column and it now installs & I can see those little red flags. I can now give it a try and see if it will be useful in my other galleries.

Just wondering though, is there still a problem with the plugin code - as I had not attempted to use this plugin before and wondered what caused the "hot_expire" column to be created?
Logged
Sharpo (not an expert, just a Coppermine user)
3 live galleries, first started in 2006.
http://www.sharpos-world.co.uk/BB3cpg/ with over 8,000 images.
http://www.sharpos-world.co.uk/cpg/ with over 25,000 images. 1.6.25
http://www.sharpos-world.co.uk/kc/ with over 300 images. 1.6.25

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Hot pictures plugin for cpg1.5.x
« Reply #47 on: November 23, 2013, 05:33:06 pm »

That column is solely created by this plugin, so you either installed it in the past and cannot remember or something went wrong during installation. I'm not aware that there's something wrong with the code.
Logged

sharpo

  • Coppermine frequent poster
  • ***
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 332
Re: Hot pictures plugin for cpg1.5.x
« Reply #48 on: November 23, 2013, 05:38:09 pm »

I only noticed this plugin today when reading the forum, so it was the first ever install.
Logged
Sharpo (not an expert, just a Coppermine user)
3 live galleries, first started in 2006.
http://www.sharpos-world.co.uk/BB3cpg/ with over 8,000 images.
http://www.sharpos-world.co.uk/cpg/ with over 25,000 images. 1.6.25
http://www.sharpos-world.co.uk/kc/ with over 300 images. 1.6.25

sharpo

  • Coppermine frequent poster
  • ***
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 332
Re: Hot pictures plugin for cpg1.5.x
« Reply #49 on: November 23, 2013, 06:37:57 pm »

Αndré,

Not a major problem, I notice that although "Hot pictures" appears above "Category" when viewing on my pc, but using mobil_light theme on my mobile there is no mention of "Hot pictures" at all. After the gallery description comes "Category".
Logged
Sharpo (not an expert, just a Coppermine user)
3 live galleries, first started in 2006.
http://www.sharpos-world.co.uk/BB3cpg/ with over 8,000 images.
http://www.sharpos-world.co.uk/cpg/ with over 25,000 images. 1.6.25
http://www.sharpos-world.co.uk/kc/ with over 300 images. 1.6.25

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Hot pictures plugin for cpg1.5.x
« Reply #50 on: November 23, 2013, 06:49:01 pm »

Maybe meta albums are disabled for mobile themes. That's not related to this plugin, but the theme.
Logged

sharpo

  • Coppermine frequent poster
  • ***
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 332
Re: Re: Hot pictures plugin for cpg1.5.x
« Reply #51 on: November 23, 2013, 07:30:29 pm »

Maybe meta albums are disabled for mobile themes. That's not related to this plugin, but the theme.
Yes, that was the answer, I added hotpics after breadcrumb in the configuration for that theme - and it worked.

Thanks - I'm learning all the time with your help!!!
Logged
Sharpo (not an expert, just a Coppermine user)
3 live galleries, first started in 2006.
http://www.sharpos-world.co.uk/BB3cpg/ with over 8,000 images.
http://www.sharpos-world.co.uk/cpg/ with over 25,000 images. 1.6.25
http://www.sharpos-world.co.uk/kc/ with over 300 images. 1.6.25
Pages: 1 2 [3]   Go Up
 

Page created in 0.033 seconds with 22 queries.