H
H
hhrhhr2011-04-03 02:44:45
Online shopping
hhrhhr, 2011-04-03 02:44:45

Integration "leave a review about the product" with a forum. How?

On Dealextreme, for example, there is such a feature, for each product there is its own topic on the local forum. The first koment/review/question automatically starts the corresponding topic. Product categories correspond to forum sections. On the product page, you can leave comments in these topics, go to the full-screen forum.
dxforum.th.jpg... The question is, I'm looking for a simple forum that allows you to generate something like an iframe code to insert into a page, the code displays the content of a separate selected topic. dxforumfull.th.jpg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
pratamishus, 2011-04-03
@pratamishus

So take any forum like simplemachines or phpbb. Put a trigger in the database that will add the topic in parallel with the product (If you don’t want to mess with the trigger, just add a piece of code in the code that enters the necessary data into the forum database).
Next, just create your page among the forum files. There you take a list of discussions of this product from the database and issue a list. The whole script will take about 20 minutes, plus 40 minutes for beauty. For example, in SimpleMachines And that's it ... You can do it with the same ease in any forum.
<?php
$result = mysql_query("SELECT subject, posterTime, posterName FROM smf_messages WHERE ID_BOARD=1");
$counter=1;
while($row = mysql_fetch_array($result)){
echo $counter.') '.$row['subject'].' by '.$row['posterName'].' on '.date('Y-m-d H:i:s', $row['posterTime']).'
';
$counter++;
}
?>

P
Puma Thailand, 2011-04-03
@opium

Why iframe?
We have a topic on the forum created by a script, as probably everyone else, and then just display comments on the discussion page as you like.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question