#1 2002-12-13 02:05:17

Lucifix
Member
2002-12-12
34

rate!

On net i have found pretty good star rating script. But i have some problems with it. 
Here is mySQL code for it:

CREATE TABLE Rate (
    Item text,
    Rating int(11) default NULL,
    Votes int(11) default NULL,
    Num_Votes int(11) default NULL,
    IP text,
    id int(11) NOT NULL auto_increment,
    PRIMARY KEY  (id)
) TYPE=MyISAM;

But i have added few changes in:

CREATE TABLE Rate (
    id int(11) unsigned NOT NULL auto_increment,
    image_id smallint(5) unsigned NOT NULL default '0',
    Item text,
    Rating int(11) default NULL,
    Votes int(11) default NULL,
    Num_Votes int(11) default NULL,
    date int(11) unsigned NOT NULL default '0',
    author varchar(255) NOT NULL default '',
    PRIMARY KEY  (id)
) TYPE=MyISAM;

But it doesnt want to work. Well i am in big doubt that this will works, couse you need 2 file for that script: rate.php and test.php.

Do you think its worth to countinioun with that code? If i solve it, you could just add it to your next version of phpwebgallery.

Lucifix

Offline

 

#2 2002-12-13 02:09:53

Lucifix
Member
2002-12-12
34

Re: rate!

here is the code for rate.php file:
Acutaly i dont want to post here, couse its little big, but you will find it here:
** Broken link**

Offline

 

#3 2002-12-14 14:51:36

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13911

Re: rate!

wow...
To tell the truth, I don't want to spend time to understand and adapt a script that I will completely recode for this feature. It will be in the next version, but if you want to have it earlier, you can try by yourself with code...
good luck, it won't be easy

Offline

 

#4 2002-12-14 15:15:13

Lucifix
Member
2002-12-12
34

Re: rate!

i will sure need luck lol 
thanks, 
Lucifix

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2025 · Contact