Voting in G2

mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2006-04-28 04:21

This module is new in 2.1, there is no 2.0.x version.

 
intellivision

Joined: 2005-11-28
Posts: 22
Posted: Sat, 2006-11-04 01:06

Is there any way to replace an image (that has ratings), but keep the ratings?

I want to improve the quality of some images (upload higher rez images) that have 4 or 5 ratings each. I don't want to lose the votes.

 
rizzo
rizzo's picture

Joined: 2005-11-10
Posts: 29
Posted: Sat, 2006-11-04 18:10

chivas12, it's all CSS based, you can override the default images by specifying the path to your own images in CSS. I believe instructions are on the Rating module page.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sun, 2006-11-05 23:22

intellivision, try the reupload module.

 
majortom

Joined: 2006-01-01
Posts: 40
Posted: Tue, 2006-11-28 09:07

Have you considered allowing votes to go to greater than 5? For example a settable scale? How hard would that be to implement in your current system? Also, in your current implementation, do you save what each user has voted on an image and then calculate the ratings on the fly, or do you save just the number of 0 votes, the number of 1 votes, the number of 2 votes, etc.? Thanks for all your hard work. You are doing a great job!

/carmi

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2006-11-28 11:01

all votes are stored in the database. there are 2 tables for rating and the schema can hold any integer number as vote value.
the number 5 is hardcoded in:
rating/module.inc function getItemSummaries.inc (1 occurrence)
rating/classes/RatingHelper.class (1 occurrence)
rating/Callbacks.inc (1 occurrence)
rating/rating.js (1 occurrence)

 
etiennesky

Joined: 2005-09-28
Posts: 40
Posted: Sun, 2007-02-18 23:45

install in 2.2RC1 - the "Rating interface" does not appear.

I did the following steps, using 2.2rc1 from svn:

1) I activated the rating module (1.0.7)
2) I checked and saved the Rating options
3) allowed Everybody full access to Ratings
4) Added "Ratings interface" on the sidebar, album and photo pages with the Matrix theme (1.1.2) and others as well

And nothing appears!

I tested and the Rating block is called, but nothing appears at all.
And the "Ratings Album" is empty (as it should be) and shows: "Rating Album: 3.5 [...] This album is empty."

Is this a theme issue? thanks

 
etiennesky

Joined: 2005-09-28
Posts: 40
Posted: Mon, 2007-02-19 00:10

I just did and additional step, which is check the "Enable rating for this album " option in Edit Album->Album->Rating .

And now I can see the ratings interface!

I have 3 points to discuss:

1) the option should remain checked when it is selected (after saving)
2) this is confusing, why the need to enable permissions in 2 places: in "Edit permissions" and in "Edit Album"->"Album"->"Rating"?
3) In konqueror 3.5.2 the stars do not appear in the photo view (but OK in album and sidebar)

now that it's working it looks good!

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2007-08-27 15:48

The rating module was not introduced until version 2.1. There is no module for version 2.0.4.

If you post about your upgrade problems in the Installation and Configuration Help forum, then you should be able to get help. Be sure to fill-out the template when posting a new topic and tell us what version you are upgrading from and what version you are upgrading too.

____________________________________________

Like Gallery? Like the support? Donate now!!! See G2 live here

 
chivas12

Joined: 2005-05-31
Posts: 43
Posted: Fri, 2007-08-31 07:35

I like the rating module a lot! So I'm now upgrading from 2.04 to 2.23. Thanks everybody!

-----------------------------------------------
My Album:Photo Album

 
songlines

Joined: 2007-11-09
Posts: 14
Posted: Sat, 2008-02-16 16:07

I just upgraded from 2.1.4 (if I am not mistaken) to 2.2.4 only to use the latest voting module (v 1.0.8). I carefully read this thread and the page

http://codex.gallery2.org/Gallery2:Modules:rating

however I am not capable to sort the pictures of one album according to their average vote (my aim is to rank the album photos because I want to run a competition and I need an easy way to establish a winner, the display of the NUMBER corresponding to the average vote will do as well). Where do I find that option? I only manage to vote the pictures.

thank u for your attention

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sat, 2008-02-16 17:01

songlines, please start a new topic in the Troubleshooting and Problems forum
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
mareluna
mareluna's picture

Joined: 2006-11-05
Posts: 41
Posted: Sun, 2008-02-17 19:41

But Installing owner permission plugin, I've seen that an user can vote only its own photo !!!
How it possible to avoid it ! An user have to obtain the possibility to vote all photos of the gallery, also of the other user.
The restriction have to be only on photo/album permission (insert, modify and cancels)

Tnx for your help


Versione di Gallery = 2.2.4 core 1.2.0.6
Versione PHP = 4.4.7 apache2handler
Webserver = Apache/2.0.52 (CentOS)

 
pinkpari

Joined: 2008-01-08
Posts: 16
Posted: Tue, 2008-04-22 06:14

hi all
Can some one help me on this- i want rating module to be activated for all the albums by default and not let the user go and enable it.

Best Regards

 
Spack

Joined: 2008-08-31
Posts: 32
Posted: Tue, 2009-04-07 15:47

Just wondering what happened to the enhancements alluded to on page one? G1 had the option of a ranking system with scoring which I put to use on my own site, allowing registered users to vote on up to 3 items and give them a rank of 1st/2nd/3rd. This was ideal for use in, for instance, competitions where users would post pictures of items and the other users would vote once all the photos were in the album and entries were closed. This also appears to be #4 in the Feature Requests here: http://codex.gallery2.org/Gallery2:Modules:rating

Is it safe to assume that no progress was ever made on this?

 
lightpainter

Joined: 2005-11-25
Posts: 64
Posted: Sun, 2009-10-04 09:50

I cannot find any way to activate ratings on dynamic albums- is this possible?
-----------------------------
www.lightpainter.co.uk

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sun, 2009-10-04 11:58

No, dynamic albums are not like regular albums and are "created" on the fly, there is no information or settings you can have or save about them.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
lightpainter

Joined: 2005-11-25
Posts: 64
Posted: Mon, 2009-10-05 15:40

Ah, I see I was being silly- the pictures displayed in the dynamic albums take on the album ratings settings for their own 'real' album- but the one album I had not enabled ratings on was the one my dynamic album was showing images from when I was testing. Sorry about that!
-----------------------------
www.lightpainter.co.uk