You are here:  » User Reviews - add extra fields = second option

Support Forum



User Reviews - add extra fields = second option

Submitted by Bob on Tue, 2009-07-28 09:01 in

Hi there,

I would like to add two more fields for reviews such as User and Date. Unfortunately this serialize mod does not work for me as I heavily modified the reviews files and added more complexity with login mods and it's just taking too much time to debug it really. I am now looking to go for the second option and add extra fields to the table. I would be greateful if you could point me to the files I have to modify to add those extra fields.

Many Thanks.

Bob

Submitted by support on Tue, 2009-07-28 09:15

Hi Bob,

After adding the new fields to the reviews table, the main modifications would need to go in reviews.php.

The SQL is constructed around line 14, and the associated form in html/ratings.php.

If you wanted to be able to moderate / edit the new fields, you would also need to add the relevant fields to the moderation form in admin/moderate.php.

The debug version of database.php might help if you have any problems with your modified SQL, and of course if you're still not sure email me your modified files and I'll check them over for you...

Cheers,
David.

Submitted by Bob on Tue, 2009-07-28 09:31

Thanks David,

I'll have a go at it.

Regards.

Bob