I am wanting to create a feedback system for individual site advisors whereby the feedback for each advisor will be available for the site users to read. I looked at the feedback module but it appears that just sends a message and does nothing else from what I could make out. I took a look at the Reviews module and came to the conclusion that I could make copies of the module and database for each advisor and add a link to their pages, but I'm not quite sure what code etc., I would need to change to ensure that the copied module matches the copied database as each copy would be renamed to match the advisors name and no longer be called Review. I hope this makes sense, I'd really appreciate any help with this or even suggestions of any other way I could achieve a feedback system.
I have copied the Review module and the database, and renamed both the copied module and database but I'm finding that when I send a review through the copied module, both databases (original and copied) collect the info submitted and its the same if I submit info through the original module too. How can I make them be completely separate databases?
Joined: Aug 29, 2004 Posts: 9136 Location: Arizona
Posted:
Sat Jul 11, 2009 4:12 pm
jane1965, I think you are really wanting to say "completely separate tables" instead of "databases". You must find every instance of the old table names within the copied code and give them the new names of your tables.
Thanks for your reply Montego, that is probably what I mean to say I'm still learning when it comes to databases so would just like to double check what you mean - I assume the tables are $id, $title etc., and that I would have to rename them all in the database as well as change them all in the files too?
After taking a look at the database I see that what I called databases are in fact called Tables, so I think I misunderstood what you meant by Tables so please ignore my previous message
I attempted to change all the table names in the files but neither the original or the copied databases are receiving the reviews that are sent so I must be doing something very wrong. I've also come to the conclusion that maybe that wasn't a good way to achieve a feedback system as I would need to copy and change the files for each new advisor.
I don't know much about arrays, but the Review module sorts the reviews alphabetically, so I am thinking that maybe I could change the array so that it sorts by name instead of letters but even though I have looked up arrays on the web, I'm none the wiser how to change this. I tried deleting the alphabet and added names instead, but when I sent a reviews, it added the same review to 2 out of the 3 names that existed, and basically I just want it to add the review to a specific advisor not any others. Please could someone tell me what I need to change on this code below in order to get it sorting by names and will also add the review to that name only.
View next topic View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum