Author Topic: [REQ] Rating directly from the thumbnails  (Read 24503 times)

0 Members and 1 Guest are viewing this topic.

Offline ch€ri{Bi}²

  • Sr. Member
  • ****
  • Posts: 315
  • A PRoBLeM wIthOUt SoLuTioN Is NoT rEAllY a PRoBLeM
    • View Profile
    • Pat's Gallery
[REQ] Rating directly from the thumbnails
« on: August 20, 2005, 11:08:34 AM »
After this mod, I wonder if it is possible to go farther:
 :?: Is it possible to allow the vote of the users from the thumbnails?

This would be translated by a dropdown list and a button of vote directly in thumbs 8) (for example below the lightbox button).

Any help will largely be appreciated.

ch€ri{Bi}²


TheOracle

  • Guest
Re: [REQ] Rating directly from the thumbnails
« Reply #1 on: August 20, 2005, 01:47:31 PM »

Offline ch€ri{Bi}²

  • Sr. Member
  • ****
  • Posts: 315
  • A PRoBLeM wIthOUt SoLuTioN Is NoT rEAllY a PRoBLeM
    • View Profile
    • Pat's Gallery
Re: [REQ] Rating directly from the thumbnails
« Reply #2 on: August 20, 2005, 03:00:43 PM »
yes i saw this mod  :?  but it is not exactly what i want : the published mod allows user to rate several pics with the same note in a single operation (It is what I understood).

 :arrow: I want: to be able to note each picture individually (i mean one notes for one picture) from the thumbnails (in categories, lightbox or search).
Is there a way to do it?
ch€ri{Bi}²


TheOracle

  • Guest
Re: [REQ] Rating directly from the thumbnails
« Reply #3 on: August 20, 2005, 03:31:19 PM »
Quote

Is there a way to do it?


Sorry. There are no planifications for these types of modifications yet. Next time, please post on the appropriate thread.  :?

Offline ch€ri{Bi}²

  • Sr. Member
  • ****
  • Posts: 315
  • A PRoBLeM wIthOUt SoLuTioN Is NoT rEAllY a PRoBLeM
    • View Profile
    • Pat's Gallery
Re: [REQ] Rating directly from the thumbnails
« Reply #4 on: August 20, 2005, 04:58:36 PM »
Next time, please post on the appropriate thread.  :?

humm....  :?  what thread are you talkink about ?
my request concerns a new mod and was posted in Mods & Plugins (Requests & Discussions) board... Did I miss something?
ch€ri{Bi}²


TheOracle

  • Guest
Re: [REQ] Rating directly from the thumbnails
« Reply #5 on: August 20, 2005, 05:07:13 PM »
Quote

my request concerns a new mod and was posted in Mods & Plugins


If you mean that this sorth of MOD was already posted in the forum in the past ... I don't remember seeing it but it's always possible. However, since my version of this release is pretty much close to what you're looking for - you should use it until the next solution is being discovered. ;)

Offline ch€ri{Bi}²

  • Sr. Member
  • ****
  • Posts: 315
  • A PRoBLeM wIthOUt SoLuTioN Is NoT rEAllY a PRoBLeM
    • View Profile
    • Pat's Gallery
Re: [REQ] Rating directly from the thumbnails
« Reply #6 on: August 20, 2005, 05:36:48 PM »
i mean it is a new request for a new mod and this mod has never existed to my knowledge (i think nobody asked for it until now)!

ok, I am going to work on this mod  :wink:
Let me know if somebody is interested, whether it is to help me or to use this mod.

Regards.
ch€ri{Bi}²


Offline ch€ri{Bi}²

  • Sr. Member
  • ****
  • Posts: 315
  • A PRoBLeM wIthOUt SoLuTioN Is NoT rEAllY a PRoBLeM
    • View Profile
    • Pat's Gallery
Re: [REQ] Rating directly from the thumbnails
« Reply #7 on: August 21, 2005, 08:57:30 PM »
hehe !!!  8)
Who would have believed that it would be so simple?

 :arrow: to allow users to rate directly from the thumbnails, open thumbnail_bit.html from your template
and add at the end:
Code: [Select]
{if rate_form} 
<div align="center">{rate_form}</div>
{endif rate_form}

After this, all your thumbs will have a rate form where users can rate pics without open detail page.  :D :D
ch€ri{Bi}²


TheOracle

  • Guest
Re: [REQ] Rating directly from the thumbnails
« Reply #8 on: August 21, 2005, 08:59:13 PM »
And does it actually update the right fields ?

Offline ch€ri{Bi}²

  • Sr. Member
  • ****
  • Posts: 315
  • A PRoBLeM wIthOUt SoLuTioN Is NoT rEAllY a PRoBLeM
    • View Profile
    • Pat's Gallery
Re: [REQ] Rating directly from the thumbnails
« Reply #9 on: August 21, 2005, 09:53:33 PM »
well, at the moment I am testing all my modification because i use those 2 mods :  Rating Button Disabled After VoteVotes saved in DB.

Until now, everything seems to work correctly  :D :D :D 

here an example : look at the bottom of thumbs for rate form.



the differents fields used for count and rate seems to be ok (tested with 2 users).
ch€ri{Bi}²


TheOracle

  • Guest
Re: [REQ] Rating directly from the thumbnails
« Reply #10 on: August 21, 2005, 09:58:01 PM »
Quote

the differents fields used for count and rate seems to be ok (tested with 2 users).


You ... do know that these votes would go all in the image_votes field from 4images_images table by applying the {rate_form} tag - right ?

Offline ch€ri{Bi}²

  • Sr. Member
  • ****
  • Posts: 315
  • A PRoBLeM wIthOUt SoLuTioN Is NoT rEAllY a PRoBLeM
    • View Profile
    • Pat's Gallery
Re: [REQ] Rating directly from the thumbnails
« Reply #11 on: August 21, 2005, 10:32:32 PM »
hummm... the {rate_form} tag uses:
Quote
function update_image_rating($image_id, $rating) {
in includes/functions.php.
it updates  the image_votes field and image_rating fields from 4images_images table for current picture and it also add new data in the 3 fields from 4images_voted table for those who use the MOD Votes saved in DB (version a).

 :? Do you see a problem somewhere?

ch€ri{Bi}²


TheOracle

  • Guest
Re: [REQ] Rating directly from the thumbnails
« Reply #12 on: August 21, 2005, 10:43:25 PM »
Quote

Do you see a problem somewhere?


Actually, I do.

You're using the {rate_form} on two places :

- Categories has : {rate_form}
- Details has : {rate_form}

See what I mean ?

What I'm trying to explain here is that you're using the same tag twice which goes into the same field names under the images table. Meaning, If you rate the picture from the category that has the same ID has the details page, you won't be able to vote twice for a while (still - on that same picture) since it's being called from the ' auth_vote ' field during the action in includes/functions.php file.

That said, that is the reason why I created a auth_cat_vote in my other MOD - to avoid the actions to be applied on the same fields since I also created : cat_votes and cat_rating fields. ;)

See where I'm going ? 8)

Offline ch€ri{Bi}²

  • Sr. Member
  • ****
  • Posts: 315
  • A PRoBLeM wIthOUt SoLuTioN Is NoT rEAllY a PRoBLeM
    • View Profile
    • Pat's Gallery
Re: [REQ] Rating directly from the thumbnails
« Reply #13 on: August 22, 2005, 01:26:28 AM »
Yes I understand what you want to say and why you made it like that. Your mod seems to be interesting but...  :?  it does not correspond to the fact that I look.

You're using the {rate_form} on two places :

- Categories has : {rate_form}
- Details has : {rate_form}
Actually, all the pages using thumbnail_bit.html file will use the tag {rate_form} (including home, categories, details, search, lightbox).
The tag works in a identical way for every thumbs and it is generated in the demand. Thus no risk of confusion or conflict.

If you rate the picture from the category that has the same ID has the details page, you won't be able to vote twice for a while
The users cannot vote twice? no problem. They will be warned of it.

i simply want that users can rate pics everywhere they want and now they can!!!  :D

now i will try to insert [MOD] - Restrict users to use e-card and download if they have not voted first, I  am curious to see how's it is going to take place with the lightbox.  :wink:

thank you for your help.
Best regards.
ch€ri{Bi}²


Offline RuthE

  • Newbie
  • *
  • Posts: 23
    • View Profile
    • Discover Kate Gallery
Re: [REQ] Rating directly from the thumbnails
« Reply #14 on: October 12, 2005, 02:30:22 AM »
here an example : look at the bottom of thumbs for rate form.




I really like this graphic form for the rating, does it show the current rating or what you rated it? Where can I find that mod?