- POSTEADO POR WAO -
Es posible vincular los comentarios con el id de descarga en un pop up y ponerle un contador de comentarios para cada descarga?
EJEMPLO: http://www.s*atelliweb.com/index.php?section=livef (sin el asterisco)
Este es el sistema de comentarios que estoy utilizando en mi web y
este es el script de descargas, esto es lo que he hecho, añadido...
[B][COLOR="DarkRed"]form.php (script comentarios):[/COLOR][/B]
[PHP]<input type="hidden" name="pageid" id="pageid" value="<?php echo (isset($download_id)) ? $download_id : '0' ?>" />
<?php
if (isset($_GET['id']) && !empty($_GET['id'])) {
$download_id = mysql_escape_string($_GET['id']);
}
?>[/PHP]
[B][COLOR="DarkRed"]index.php (script comentarios):[/COLOR][/B]
[PHP]<?php
/* Insert this for the admin header (optional) */
include_once "canny/admin_header.php";
/* Includes required configuration settings and functions */
include_once "canny/config.php";
include "canny/comments.class.php";
/* Set page id, otherwise leave as null */
$pageid = null;
/* Displays comments */
$comments = new comments();
echo $comments->gather_comments(false, $pageid);
/* Displays the comment form */
include_once "canny/form.php";
?> [/PHP]
[B][COLOR="DarkRed"]index.php (script descargas):[/COLOR][/B]
[HTML]<a href="/comments/"><img src="comments.png" border="0"></a>[/HTML]
El sistema de votaciones si he conseguido vincularlo, tengo que añadir codigo en el archivo .sql o en los archivos .php?