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
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
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