Hot pictures plugin for cpg1.5.x - Page 2 Hot pictures plugin for cpg1.5.x - 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

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.

brynn

update - no new buttons in any theme

Αndré

I just installed a new gallery and the plugin and it worked as expected, see attached screenshot. Have you tested it as admin?

brynn

Yes, I've only tested as admin.  It's nice to see where the buttons are supposed to be, but they still aren't showing up in my gallery.  (Attachement to show.)  I wonder if some other plug-in that I've installed could be somehow affecting it?

Αndré

Quote from: brynn on October 31, 2013, 12:35:48 PM
I wonder if some other plug-in that I've installed could be somehow affecting it?
Please try to disable one by one to answer that question yourself.

brynn

Other plug-ins:

Filetypes Editor v2.1
Favorites Button v1.2
SVG Support v0.1
Remote Videos v1.8
Big Pop Ups v1.0
Flash Media Player v2.1
Hot Pictures v1.5

Ok, I will try disabling 1 by 1.  But I can't do it right now.  I'll be able to work on that tomorrow.  I'll post results.

Thanks

brynn

Is there any particular procedure I should follow?  Should I uninstall all of them, and then re-install 1 at a time?  Or start with all installed, and uninstall 1 at a time?

Αndré

It's probably easier to uninstall all of them, then install just the hot pictures plugin and check if it works as expected.

mitko

Question regarding this plugin:
1. Is it possible to hide it in category view (keep only on main)?
2. Is it possible to hide automatically "hot" sections if no any hot pics selected? Dont like empty space like here: http://www.lightphotos.net/photos/index.php?cat=12

Αndré

If we just display it in the root category, your second question is obsolete, right?

brynn

I'm just about to get started uninstalling plug-ins.  But I wanted to say that I like mitko's idea too  :)

brynn

Ok, all plug-ins uninstalled.  I even uninstalled and reinstalled Hot Pics.  But unfortunately, still no new buttons, even using Curve theme.  Awaiting further instructions  :)

Since I don't know how long it will take, I will go ahead an re-install all my plug-ins, so the gallery will function in the meanwhile.

Thanks again for your help!

mitko

Quote from: Αndré on November 01, 2013, 02:36:20 PM
If we just display it in the root category, your second question is obsolete, right?
Agreed. Not sure what would be more simple to implement.

Αndré

brynn, you just mentioned in your other thread that your gallery is bridged. In this case you probably need to adjust the group ID as described in the first post:
Quote$groups = array(1); // enter the group IDs which should be allowed to set pictures as 'hot'

Αndré

Quote from: mitko on November 01, 2013, 02:26:02 PM
Is it possible to hide it in category view (keep only on main)?
Open codebase.php, find
$meta_album_name = 'hotpics';
and above, add
    $superCage = Inspekt::makeSuperCage();
    if ($superCage->get->keyExists('cat')) {
        return;
    }

brynn

Uummm....ok, could you (or anyone) tell me where to find the group id, and tell me where to put it?  I don't know much about php.

My first guess was that I should replace the 1 with group id numbers.  But I can't find any numbers.  So maybe the group id is just the name of the group.  And in that case, I might guess that I should replace "groups" with the names of the groups.  But I really don't know.

Thanks for your help  :)

Niecher

#35
Hi brynn,

Edit codebase.php

Quote from: Αndré on March 30, 2012, 02:27:40 PM
Set pictures as 'hot' for x days and display them in a meta album 'hotpics'.

you can change those buttons
$buttons = array(1, 2, 3); // each number will create a button 'Hot for x days'
and also determine, which user groups will see the buttons
$groups = array(1); // enter the group IDs which should be allowed to set pictures as 'hot'

Group Admin = 1
Registered Group = 2
Guests Group = 3

Days for the buttons, for example: (7, 14, 21)

Regards.




Hello André
I would suggest that,

It would be interesting to registered users when they select one or more Hot pictures, these images are displayed in their personal gallery.
While, if the admin selects one or more Hot pictures these images are displayed only in the index.

Perhaps, display a message if the pictures exceeds the limit in the meta album also would be useful.

It also seems that there is a strange behavior with the buttons on the plugin when registered users activate a picture that they do not own.

Regards.

brynn

Quote from: Niecher on November 05, 2013, 04:10:35 AM
Hi brynn,

Edit codebase.php

Group Admin = 1
Registered Group = 2
Guests Group = 3

Days for the buttons, for example: (7, 14, 21)

Regards.

Thanks Niecher.  Based on that info, it would seem that I should already see buttons, since I am the admin, I'm logged on as admin, and the file already says:

$groups = array(1);

Should I enter some other number, since my gallery is bridged?


Niecher

Try this:

$groups = array(0, 1);

Regards.

Αndré

Quote from: Niecher on November 05, 2013, 04:10:35 AM
It would be interesting to registered users when they select one or more Hot pictures, these images are displayed in their personal gallery.
Not sure if I understood correctly what you suggest. 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.


Quote from: Niecher on November 05, 2013, 04:10:35 AM
Perhaps, display a message if the pictures exceeds the limit in the meta album also would be useful.
Actually there are no limits for (meta) albums.


Quote from: Niecher on November 05, 2013, 04:10:35 AM
It also seems that there is a strange behavior with the buttons on the plugin when registered users activate a picture that they do not own.
Please describe more detailed.


Quote from: brynn on November 05, 2013, 05:53:13 AM
I should already see buttons, since I am the admin, I'm logged on as admin, and the file already says:

$groups = array(1);
That just applies if the admin group in your board has also the ID "1" (like in an unbridged Coppermine gallery). As we cannot support third party apps, we cannot tell you how exactly you find out the admin group ID. Usually it's defined in the bridge file. Alternatively you could try to have a look at your browser's address bar while editing the admin group or have a look at the board's MySQL database. You should also make sure that your admin user is applied to the admin group as primary group.

brynn

Ah-HA!!

It looks like the admin's group id is 101, because replacing 1 with 101 has caused the buttons to finally appear!

Perhaps a note saying the the user id will probably be different in bridged galleries, would be helpful to include in the op.  And also possibly including:

Quote from: AndreAs we cannot support third party apps, we cannot tell you how exactly you find out the admin group ID. Usually it's defined in the bridge file. Alternatively you could try to have a look at your browser's address bar while editing the admin group or have a look at the board's MySQL database. You should also make sure that your admin user is applied to the admin group as primary group.

I actually found it by clicking the Assigned Albums button for the admin group, in the User Manager.  The proper value comes immediately after &gid= and before the next &, in the address bar....just in case others have the same issue.  I don't know if all SMF bridges will have that value or not, for the admin.

Quote from: Niecher on November 05, 2013, 04:10:35 AM

Hello André
I would suggest that,

It would be interesting to registered users when they select one or more Hot pictures, these images are displayed in their personal gallery.
....

I thought that's how it was supposed to work.  Otherwise, why give users the ability to choose which pics are hot?  You'd have users switching in their own hot pics constantly, theoretically.  But now that I finally have it working, I'll be able to figure out how it works.

Thanks for everyone's help  :)