• [Mod] Star Rating 5 0 5 1
Currently:  

Author Topic: [Mod] Star Rating  (Read 131962 times)

0 Members and 1 Guest are viewing this topic.

Offline ashfaq

  • Full Member
  • ***
  • Posts: 128
    • View Profile
Re: [Mod] Star Rating
« Reply #90 on: January 10, 2009, 03:24:55 AM »
@ mawenzi

Your given star rating link is very difficult but this mod is very easy so i ask some modifications for it.

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [Mod] Star Rating
« Reply #91 on: January 10, 2009, 03:46:08 PM »
... mmm ... I think, it is only copy and past by a excelent mod description of KurtW ...
... so it can't be difficult ... ;)
... I do not think that Nicky this modification will continue develop ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Fere

  • Newbie
  • *
  • Posts: 19
  • echo "Hello world!"
    • View Profile
    • www.aribrushart.ro
Re: [Mod] Star Rating
« Reply #92 on: January 27, 2009, 10:32:02 PM »
Hello and welcome to 4images forum.

First of all, please read our forum rules (link in my signature). This is regarding the PM you've sent.

Second, replace:
Code: [Select]
  if ($image_row['image_rating'] == '5.00') {
     $rating_pic = "5.gif";
  } elseif ($image_row['image_rating'] >= '4.00') {
     $rating_pic = "4.gif";
  } elseif ($image_row['image_rating'] >= '3.00') {
     $rating_pic = "3.gif";
  } elseif ($image_row['image_rating'] >= '2.00') {
     $rating_pic = "2.gif";
  } elseif ($image_row['image_rating'] >= '1.00') {
     $rating_pic = "1.gif";
  } else {
     $rating_pic = "0.gif";
  }

With this:
Code: [Select]
  $ratings = array("0", "0.5", "1", "1.5", "2", "2.5", "3", "3.5", "4", "4.5", "5");
  foreach ($ratings as $num)
  {
    if ($image_row['image_rating'] >= $num)
    {
      $rating_pic = $num;
    }
  }
  $rating_pic .= ".gif";

nice mod, thanks!

Offline 4ella

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • http://www.dancersrecruit.com/pictures/
Re: [Mod] Star Rating
« Reply #93 on: May 14, 2009, 03:08:44 PM »
Quote
@ ashfaq  written by Mawenzi  in January 2009
  ... why you don't use the ajax starrating mod by KurtW ... ?
... http://www.4homepages.de/forum/index.php?topic=17829.0 ...
... this version of image rating will solved all your problems ...
Hello I was searching for some AJAX Star Rating but there's no mod at all , what happened with them ? or they are off my limits like the forum info is telling me ?

The topic or board you are looking for appears to be either missing or off limits to you.

http://www.dancersrecruit.com/pictures/
4IMAGES 1.7.6 version/default theme
Apache version   2.2.11 (Unix)
PHP version   5.2.9
MySQL version   5.0.75-community-log
Architecture   x86_64
Operating system   Linux

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: [Mod] Star Rating
« Reply #94 on: May 14, 2009, 03:36:24 PM »
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline 4ella

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • http://www.dancersrecruit.com/pictures/
Re: [Mod] Star Rating
« Reply #95 on: May 14, 2009, 04:33:27 PM »
Ahh ok  :(  ,  It's a pity , I understand him , he did good , some people doesn't respect others works , to put his copyright below is the smallest thing what people who knows nothing about programming and creating Mods like me can do . Nicky thanks for you reply .

so finally I use this Mod when Kurts are not available anymore and I'm satisfied too
 wanting to know 2 things :

1. How can I use this star rating for every category ? My categories serves also like Girls and nightclub profiles so it would be convenient to have this Mod there too .

2, How can I use it below every thumbnail ? in index.php or in categories.php
« Last Edit: June 13, 2009, 01:27:01 PM by 4ella »

http://www.dancersrecruit.com/pictures/
4IMAGES 1.7.6 version/default theme
Apache version   2.2.11 (Unix)
PHP version   5.2.9
MySQL version   5.0.75-community-log
Architecture   x86_64
Operating system   Linux

Offline waynenort

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: [Mod] Star Rating
« Reply #96 on: July 31, 2009, 03:25:12 PM »
Cool mod Nicky.  :wink:

Offline alekseyn1

  • Full Member
  • ***
  • Posts: 102
    • View Profile
    • My Project
Re: [Mod] Star Rating
« Reply #97 on: November 24, 2009, 10:53:53 PM »
Can someone modify this script so, that I don't have to use the dropdown to rate an image but instead can click on the stars itself?... maybe also with a mouse-over event highlighting the star that the user is about to pick? For a rating with 5 stars, this would reuire 5 seperate stars with 3 conditions.... active / not active and highlighted... This way I can combine showing the rating and the rating process itself into one simple line, just showing the 5 stars.... Would be cool...

Anyone ever tried this?

the only other mode (AJAX rating) rates images in non-rounded figures... most of the users need 1,2,3,4,5... and that's it) therefore this mod would be great if implemented like I quoted above.

Offline Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
Re: [Mod] Star Rating
« Reply #98 on: November 25, 2009, 07:32:38 AM »
Can someone modify this script so, that I don't have to use the dropdown to rate an image but instead can click on the stars itself?... maybe also with a mouse-over event highlighting the star that the user is about to pick? For a rating with 5 stars, this would reuire 5 seperate stars with 3 conditions.... active / not active and highlighted... This way I can combine showing the rating and the rating process itself into one simple line, just showing the 5 stars.... Would be cool...

Anyone ever tried this?

the only other mode (AJAX rating) rates images in non-rounded figures... most of the users need 1,2,3,4,5... and that's it) therefore this mod would be great if implemented like I quoted above.

I presume that you are looking something like this:
http://orkans-tmp.22web.net/star_rating/

I've implented this is my gallery, but if you look at that code (link above) you'll see that this is not so hard to do ;)

Offline alekseyn1

  • Full Member
  • ***
  • Posts: 102
    • View Profile
    • My Project
Re: [Mod] Star Rating
« Reply #99 on: November 25, 2009, 08:29:47 AM »

I presume that you are looking something like this:
http://orkans-tmp.22web.net/star_rating/

I've implented this is my gallery, but if you look at that code (link above) you'll see that this is not so hard to do ;)

Great link! thanks very much..
But I do not have enough knowledge to rework the version i like (demo6) to implement to my site ((((

Offline Sumale.my

  • Addicted member
  • ******
  • Posts: 1.790
  • I ♥ 4I
    • View Profile
Re: [Mod] Star Rating
« Reply #100 on: April 23, 2010, 10:08:55 AM »
Ist es denn eigentlich möglich, dass man in einzelnen Templates extra bewerten kann?
z.B ich lege eine seite an index.php?template=xtra-image
Ist es möglich auch dort zu bewerten?
Beste Grüße
Sumale.my

 

Post your comments here