Hot pictures plugin for cpg1.5.x - Page 3 Hot pictures plugin for cpg1.5.x - Page 3
 

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]

Main Menu

Hot pictures plugin for cpg1.5.x

Started by Αndré, March 30, 2012, 02:27:40 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Niecher

#40
Hello André,

Quote from: André on November 05, 2013, 09:24:28 AM
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).

Quote from: André on November 05, 2013, 09:24:28 AM
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".

Quote from: André on November 05, 2013, 09:24:28 AM
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.

Αndré

Quote from: Niecher on November 05, 2013, 04:46:51 PM
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.


Quote from: Niecher on November 05, 2013, 04:46:51 PM
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.


Quote from: Niecher on November 05, 2013, 04:46:51 PM
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.

Niecher

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

mitko

Quote from: Αndré on November 04, 2013, 02:45:03 PM
Open codebase.php, find
$meta_album_name = 'hotpics';
and above, add
    $superCage = Inspekt::makeSuperCage();
    if ($superCage->get->keyExists('cat')) {
        return;
    }


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

sharpo

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

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

sharpo

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

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.

sharpo

I only noticed this plugin today when reading the forum, so it was the first ever install.
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

Α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".
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é

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

sharpo

Quote from: Αndré 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.
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!!!
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