Please login or register.
Login with username, password and session length
May 26, 2013, 06:33:41 AM
News: We're back! And here to stay!
collapse

* User Info

 
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

* Recent Posts

you must provide a description by kasix
[May 24, 2013, 11:48:59 PM]


Fatal error: by mailtobala04
[May 17, 2013, 04:36:20 PM]


Backend Items (Images) don't work by bauchinj
[May 15, 2013, 04:18:55 PM]


Permissions issue: a user can upload images in other user galleries by guidocx84
[May 11, 2013, 05:17:44 PM]


Payment after loggin by mirjam
[May 11, 2013, 03:02:56 PM]


image titles without dashes by mirjam
[May 11, 2013, 02:57:48 PM]


Batch Upload Fails by mirjam
[May 11, 2013, 02:52:08 PM]


Slow Gallery with many Photos by mirjam
[May 11, 2013, 02:49:36 PM]

Advertisement


Pages: [1]   Go Down

Author Topic: Voting and comments only in some galleries?  (Read 1884 times)

Offline ecmjazz

  • Newbie
  • *
  • Posts: 4

Voting and comments only in some galleries?
« on: October 07, 2011, 06:39:49 PM »
Hello! I would like to have two galleries on one and the same site - one with voting and comments, and one without them - is that possible?

Thanks.

Offline ecmjazz

  • Newbie
  • *
  • Posts: 4

Re: Voting and comments only in some galleries?
« Reply #1 on: October 07, 2011, 07:41:28 PM »
And one more question related to the above: how does the voting limitation work - I tried to turn on "User can only vote once(cookie based)" but still I can vote without being logged in as many times as I wish..?

Offline ecmjazz

  • Newbie
  • *
  • Posts: 4

Re: Voting and comments only in some galleries?
« Reply #2 on: October 07, 2011, 07:51:34 PM »
Well the problem with the voting was that I was logged in as administrator in the backend as well. When I logged out, it started working, but unfortunately when I clear the cookies in the browser history, I can vote as many times for a photo again - I just have to clear the cookies after each voting. Is the limit by IP addess already implemented - I see some quite old posts on that topic, but no replies..?

Offline mirjam

  • Dev Team
  • Hero Member
  • *****
  • Posts: 558

Re: Voting and comments only in some galleries?
« Reply #3 on: October 07, 2011, 08:15:30 PM »
The settings "Comments enabled" and "Voting enabled" in 3.0 are used for the entire site, not per gallery.

In 2.x there is a permissions system that allows you to set vote permission for Public/Registered per gallery (I've never used it though). I think that in the RSG2 Configuration you have to set "Enable Access Control" to Yes. It hasn't been implemented in 3.x.

It should be possible to implement Permission to vote or comment just like the permissions to Create, Delete, Edit, Edit State and Edit Own in 3.x. Are there more people who would like this?

Is the limit by IP addess already implemented - I see some quite old posts on that topic, but no replies..?
Can you point me to those posts? I don't see it implemented in any way, there is no IP logging in the database...
Suddenly on maternity leave: our baby boy was born a few weeks early, he's doing well now.
For the next couple of weeks I won't available, for true emergences pm locutusweb please.

I hope that RSGallery2 users will help each other out in the mean time.

Offline ecmjazz

  • Newbie
  • *
  • Posts: 4

Re: Voting and comments only in some galleries?
« Reply #4 on: October 10, 2011, 07:17:36 PM »
Hi!

Thanks for the quick reply!

I already installed v3, and as I am in a hurry, I wouldn't try going back to v2 right now. Is there any chance to do some hacking like template cloning or even changing the code itself?

As far as IP address limit for voting is concerned, here is at least one post from 2007 where it is said it is under development:

http://www.rsgallery2.nl/features/why_everyone_can_vote_so_many_times_6364.msg9194.html#msg9194

Finally, is there a place I could read how to setup user's photo uploads from front-end? Should there be a per-user gallery in that case or they could all upload to one and the same gallery?

Thanks.

Offline mirjam

  • Dev Team
  • Hero Member
  • *****
  • Posts: 558

Re: Voting and comments only in some galleries?
« Reply #5 on: October 11, 2011, 11:31:37 AM »
Voting per IP address
The post you mentioned is from april 2007, when there apparently was no voting system yet, or no check if a user already voted (?). From old developer communication I can tell that the voting class was finished in september 2007 and the choice was made to use cookies instead of storing IP addresses because of the size of the database table used for that storage on bigger websites. The developers that created the voting class are 'retired', no longer active in RSGallery2. (These conversations were in a time that I probably did not know RSGallery2 and perhaps did not now Joomla yet.)

For me personally, there are just too many other things that have a higher priority than implementing voting per IP address. As always, people who want to (and can) implement it and share the code are welcome just as any new volunteers for the development team.

Voting/comment permission
To get the permission itself is relatively easy: just introduce actions rsgallery2.comment and rsgallery2.vote in the access.xml where also the core.edit and other permissions are defined. Then the template needs to be adjusted so that being allowed to comment/vote is checked before showing the possibility to comment/vote.
These are my notes from when I was learning how the permissions system worked: http://docs.joomla.org/How_to_implement_actions_in_your_code

My galleries - frontend upload
Documentation is not the strong point of RSGallery2 ;) (again, volunteers are welcome).
Basically, users can only create a gallery if they have Create Permission. Users can only upload to galleries for which they have Create Permission.
For users that can set Permissions, there is a second Help button (the left one) in the Backend > Components > RSGallery2 > Control Panel, this tries to explain how the Permissions are implemented in RSGallery2 (copy of text is copied below).
If you know how to allow users to only create articles in a certain category, then you know how to allow user to only upload images (analogous to articles) in a certain gallery (analogous to a category). Similarly to categories that can have subcategories, galleries can have subgalleries. So if you understand Joomla ACL Permissions, then you can work with RSGallery2 Permissions (at least, that was the goal).

Contents of 2nd Help screen
RSGallery2 Options (ACL) Help
To see RSGallery2's Control Panel in the backend users need

    * Admin Login Permission to login to the backend (set in Global Configuration > Permissions; default groups Manager, Super Users and their children have that permission)
    * Viewing Acces level set to Special (set in Users > Access Levels; default groups Manager, Author and Super Users and their children have that)
    * Access Component Permission for the component (set in Component Options or in Global Configuration > Permissions; default groups Administrator and Super Users have that set in Global Configuration)

With those permissions set you can see the buttons

    * Upload
    * Batch upload
    * Manage Items
    * Manage Galleries

in RSGallery2's Control Panel.

To properly be able to use those buttons you'll need Create, Delete, Edit, Edit State and Edit Own permissions set. Those permissions can be set in the Global Configuration, RSGallery2's component options or a specific gallery or item. Be sure to read and understand ACL Tutorial for Joomla 1.6 to get an idea of how J!1.6 ACL works, it is implemented like that in RSGallery2.

Create Permission
When allowed in Global Configuration or component options: allows to create a gallery with 'Top gallery' as a parent and allows to upload images in these galleries. Of course by inheritance it is allowed to create subgalleries and upload images in all the subgalleries as well, unless explicitly denied.
When allowed for a gallery: allows to create subgalleries to this gallery and allows to upload images in these galleries. Of course by inheritance it is allowed to create subgalleries and upload images in all the subgalleries as well, unless explicitly denied.

Delete Permission
At the moment (v3.0.0) deleting galleries or items is only possible if you have Delete permission on the component level (set in the Component Options or in the Global Configuration).

Edit/Edit Own Permission
You may edit galleries or items that you have either Edit permission for or Edit Own permission if you are the owner of the gallery or item. This allows you to change the name, alias and/or description and move a gallery or item to another parent gallery if you have create permission for the new gallery.

Edit State Permission
With Edit State permission you are allowed to (un)publish a gallery or item and/or change the ordering.

With Configure permission you'll also see the Configuration Panel buttons

    * Configuration
    * Maintenance
    * Template Manager
    * Options (toolbar button to set permissions for the component)
Suddenly on maternity leave: our baby boy was born a few weeks early, he's doing well now.
For the next couple of weeks I won't available, for true emergences pm locutusweb please.

I hope that RSGallery2 users will help each other out in the mean time.

Offline mirjam

  • Dev Team
  • Hero Member
  • *****
  • Posts: 558

Re: Voting and comments only in some galleries?
« Reply #6 on: November 28, 2011, 12:01:51 PM »
Hello! I would like to have two galleries on one and the same site - one with voting and comments, and one without them - is that possible?

Yes, this is possible now! (Available for testing in 3.x SVN1051, it should be in the next release: 3.0.2).

Check out the Nightly Build to try this: http://www.rsgallery2.nl/topicseen,/nightly_builds_rsgallery2_joomla_1.61.7/available_nightly_builds_posting_guidelines_download_16673.msg43677.html#new

In 3.x Vote and Comment are permissions like Create, Delete, Edit, Edit State and Edit Own and can be set per gallery and per usergroup.
Suddenly on maternity leave: our baby boy was born a few weeks early, he's doing well now.
For the next couple of weeks I won't available, for true emergences pm locutusweb please.

I hope that RSGallery2 users will help each other out in the mean time.
Pages: [1]   Go Up