Advanced search  

News:

cpg1.5.46 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter recently discovered vulnerabilities. It is important that all users who run version cpg1.5.44 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 21507 times)

0 Members and 1 Guest are viewing this topic.

brynn

  • Coppermine frequent poster
  • ***
  • Country: us
  • Offline Offline
  • Gender: Female
  • Posts: 193
    • Inkscape Commmunity
Re: Hot pictures plugin for cpg1.5.x
« Reply #20 on: October 31, 2013, 08:03:02 am »

update - no new buttons in any theme
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15369
Re: Hot pictures plugin for cpg1.5.x
« Reply #21 on: October 31, 2013, 10:29:44 am »

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

brynn

  • Coppermine frequent poster
  • ***
  • Country: us
  • Offline Offline
  • Gender: Female
  • Posts: 193
    • Inkscape Commmunity
Re: Hot pictures plugin for cpg1.5.x
« Reply #22 on: October 31, 2013, 12:35:48 pm »

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

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15369
Re: Hot pictures plugin for cpg1.5.x
« Reply #23 on: October 31, 2013, 12:37:52 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.
Logged

brynn

  • Coppermine frequent poster
  • ***
  • Country: us
  • Offline Offline
  • Gender: Female
  • Posts: 193
    • Inkscape Commmunity
Re: Hot pictures plugin for cpg1.5.x
« Reply #24 on: October 31, 2013, 12:43:34 pm »

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
Logged

brynn

  • Coppermine frequent poster
  • ***
  • Country: us
  • Offline Offline
  • Gender: Female
  • Posts: 193
    • Inkscape Commmunity
Re: Hot pictures plugin for cpg1.5.x
« Reply #25 on: October 31, 2013, 12:46:43 pm »

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

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15369
Re: Hot pictures plugin for cpg1.5.x
« Reply #26 on: October 31, 2013, 01:14:31 pm »

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

mitko

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 112
    • World of Lighthouses
Re: Hot pictures plugin for cpg1.5.x
« Reply #27 on: November 01, 2013, 02:26:02 pm »

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é

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15369
Re: Hot pictures plugin for cpg1.5.x
« Reply #28 on: November 01, 2013, 02:36:20 pm »

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

brynn

  • Coppermine frequent poster
  • ***
  • Country: us
  • Offline Offline
  • Gender: Female
  • Posts: 193
    • Inkscape Commmunity
Re: Hot pictures plugin for cpg1.5.x
« Reply #29 on: November 01, 2013, 06:56:34 pm »

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

brynn

  • Coppermine frequent poster
  • ***
  • Country: us
  • Offline Offline
  • Gender: Female
  • Posts: 193
    • Inkscape Commmunity
Re: Hot pictures plugin for cpg1.5.x
« Reply #30 on: November 01, 2013, 07:07:59 pm »

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

mitko

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 112
    • World of Lighthouses
Re: Re: Hot pictures plugin for cpg1.5.x
« Reply #31 on: November 02, 2013, 09:02:05 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é

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15369
Re: Hot pictures plugin for cpg1.5.x
« Reply #32 on: November 04, 2013, 02:36:30 pm »

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

Αndré

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

Is it possible to hide it in category view (keep only on main)?
Open codebase.php, find
Code: [Select]
$meta_album_name = 'hotpics';and above, add
Code: [Select]
    $superCage = Inspekt::makeSuperCage();
    if ($superCage->get->keyExists('cat')) {
        return;
    }
Logged

brynn

  • Coppermine frequent poster
  • ***
  • Country: us
  • Offline Offline
  • Gender: Female
  • Posts: 193
    • Inkscape Commmunity
Re: Hot pictures plugin for cpg1.5.x
« Reply #34 on: November 05, 2013, 03:38:46 am »

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  :)
Logged

Niecher

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

Hi brynn,

Edit codebase.php

Set pictures as 'hot' for x days and display them in a meta album 'hotpics'.

you can change those buttons
Code: [Select]
$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
Code: [Select]
$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.
« Last Edit: November 05, 2013, 05:25:53 am by Niecher »
Logged

brynn

  • Coppermine frequent poster
  • ***
  • Country: us
  • Offline Offline
  • Gender: Female
  • Posts: 193
    • Inkscape Commmunity
Re: Hot pictures plugin for cpg1.5.x
« Reply #36 on: November 05, 2013, 05:53:13 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:

Code: [Select]
$groups = array(1);
Should I enter some other number, since my gallery is bridged?

Logged

Niecher

  • LocalSupporter
  • Coppermine frequent poster
  • ***
  • Country: es
  • Offline Offline
  • Gender: Male
  • Posts: 191
Re: Hot pictures plugin for cpg1.5.x
« Reply #37 on: November 05, 2013, 07:01:29 am »

Try this:

Code: [Select]
$groups = array(0, 1);
Regards.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15369
Re: Hot pictures plugin for cpg1.5.x
« Reply #38 on: November 05, 2013, 09:24:28 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.


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.


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.


I should already see buttons, since I am the admin, I'm logged on as admin, and the file already says:

Code: [Select]
$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.
Logged

brynn

  • Coppermine frequent poster
  • ***
  • Country: us
  • Offline Offline
  • Gender: Female
  • Posts: 193
    • Inkscape Commmunity
Re: Hot pictures plugin for cpg1.5.x
« Reply #39 on: November 05, 2013, 09:56:33 am »

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: Andre
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.

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.


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  :)
Logged
Pages: 1 [2] 3   Go Up
 

Page created in 0.021 seconds with 20 queries.