Foros del Web » Creando para Internet » Sistemas de gestión de contenidos »

5 hearts rating system

Estas en el tema de 5 hearts rating system en el foro de Sistemas de gestión de contenidos en Foros del Web. Ayuda para crear 5 hearts rating system usando php y MySQL Hola, este es mi primer topic, con el que me gustaría obtener algo de ...
  #1 (permalink)  
Antiguo 10/09/2012, 09:25
 
Fecha de Ingreso: septiembre-2012
Mensajes: 4
Antigüedad: 11 años, 6 meses
Puntos: 0
Pregunta 5 hearts rating system

Ayuda para crear 5 hearts rating system usando php y MySQL

Hola, este es mi primer topic, con el que me gustaría obtener algo de ayuda o informacion acerca de un sistema de votaciones de 5 corazones que encontré en una página (http://msteigerwalt.com/widgets/ratings/v1.5/#), pero que no sé como meterlo en mi página web (http://top100-best-pictures-of-women-on-the-internet.com/).

He creado una base de datos MySQL en la página donde tengo comprado el hosting y he seguido los pasos que indicaba el archivo Léeme del ratings, pero no consigo nada más que ver un pequeño simbolito de php en el lugar donde quiero que salgan los 5 corazones para votar.

Uso Dreamweaver CS5 y mi nivel de html, php y js es bajo ya que empezé con lo de crear páginas web hace poco mas de un mes.

Gracias

Pd. No sé si está prohibido aquí agregar links a páginas web con contenido "erótico", en mi opinión no es nada malo , quitándole importancia al tema de mi página solo me gustaría saber como agregar ratings a cada una de las fotos que tiene ahora y que tendrá mi página web. Gracias
  #2 (permalink)  
Antiguo 10/09/2012, 18:22
 
Fecha de Ingreso: septiembre-2012
Mensajes: 4
Antigüedad: 11 años, 6 meses
Puntos: 0
Respuesta: 5 hearts rating system

bueno, despues de un rato sin respuestas, voy a especificar y a detallar más en lo que necesito ayuda, a ver si alguien se anima de esta manera xd.

Lo primero de todo es que no se si el documento donde quiero emplazar el rating debe ser html o php, en el caso del ejemplo que voy a usar es el Top1_Page.html de my pagina web. A ese documente le he añadido varias lineas de códigos php y js:

<?php require_once("ratings.php"); $rr = new RabidRatings(); ?>
<div id="info">
<html xmlns="http://www.w3.org/1999/xhtml">

<script src="js/mootools-v1.2.js"></script>
<script src="js/ratings.js"></script>
<link rel="stylesheet" href="styles/ratings.css" />

<?php $rr->showStars("Top1"); ?>

y todo el sourcecode queda de la siguiente manera:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<?php require_once("ratings.php"); $rr = new RabidRatings(); ?>
<div id="info">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Top 1 - Page</title>
<script src="js/mootools-v1.2.js"></script>
<script src="js/ratings.js"></script>
<link rel="stylesheet" href="styles/ratings.css" />
<style type="text/css">
.Top1_Image {
height: 1200px;
width: 1200px;
background-color: #FFF;
}
#fondo {
height: 1500px;
width: 1500px;
background-image: url(Background.jpg);
}
#fondo #top_numero {
float: left;
height: 215px;
width: 275px;
margin-top: 10px;
margin-right: 512px;
margin-left: 512px;
background-image: url(Top1_amarillo.jpg);
}
#fondo div #numero {
height: 215px;
width: 275px;
float: left;
margin-top: 5px;
margin-right: 512px;
margin-left: 512px;
background-image: url(Top1_amarillo.jpg);
border-top-width: 3px;
border-top-style: solid;
border-right-width: 3px;
border-bottom-width: 3px;
border-left-width: 3px;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
}
#fondo div #vista_previa {
float: left;
height: 900px;
width: 600px;
margin-top: 50px;
margin-left: 350px;
background-image: url(Top1_Preview.jpg);
}
#fondo div #info {
float: left;
}
#fondo div #vista_previa #info {
margin-top: 15px;
width: 600px;
height: 225px;
background-image: url(METART_logo.jpg);
background-repeat: no-repeat;
background-position: 1px 45px;
font-size: 18px;
}
</style>
</head>

<body>
<div id="fondo">
<p align="right">&nbsp;</p>
<div>
<div id="numero"></div>
<div id="vista_previa"><a href="Sabina_A_MET_Art_Top1.html"><img src="Top1_Preview.jpg"/></a>
<div id="info">
<p><strong><center>
Sabina A - <a href="http://www.met-art.com/">MET-Art.com </a>
<?php $rr->showStars("Top1"); ?>
</center></strong></p>
</div>
</div>
</div>
</div>
</body>
</html>
</div>


Espero que así alguien me pueda aclarar qué hago mal o qué falta para hacer el rating.

Gracias
  #3 (permalink)  
Antiguo 12/09/2012, 08:18
 
Fecha de Ingreso: septiembre-2012
Mensajes: 4
Antigüedad: 11 años, 6 meses
Puntos: 0
Respuesta: 5 hearts rating system

http://imgur.com/cj8H8

algo así estaría bien
  #4 (permalink)  
Antiguo 18/09/2012, 08:29
 
Fecha de Ingreso: septiembre-2012
Mensajes: 4
Antigüedad: 11 años, 6 meses
Puntos: 0
Respuesta: 5 hearts rating system

he probado a copiar también el source code de la demo.php de la página y lo he pegado en la mía, pero me sale un mensaje de que la página contiene archivos dinámicos que sólo los puede detectar el servidor, cuando le doy a discover me sale un error que no se puede encontrar el servidor (http://imgur.com/GjA2j)

Aqui el código de la fuente copiado en mi pag:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Rate Things!</title>
<!-- Make sure you change these to point to your actual files. -->
<script type="text/javascript" src="mootools-1.2.5-core-nc.js"></script>
<script type="text/javascript" src="ratings.js"></script>
<link rel="stylesheet" href="ratings.css" />
</head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Top 1 - Page</title>
<style type="text/css">
.Top1_Image {
height: 1200px;
width: 1200px;
background-color: #FFF;
}
#fondo {
height: 1500px;
width: 1500px;
background-image: url(Background.jpg);
}
#fondo #top_numero {
float: left;
height: 215px;
width: 275px;
margin-top: 10px;
margin-right: 512px;
margin-left: 512px;
background-image: url(Top1_amarillo.jpg);
}
#fondo div #numero {
height: 215px;
width: 275px;
float: left;
margin-top: 5px;
margin-right: 512px;
margin-left: 512px;
background-image: url(Top1_amarillo.jpg);
border-top-width: 3px;
border-top-style: solid;
border-right-width: 3px;
border-bottom-width: 3px;
border-left-width: 3px;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
}
#fondo div #vista_previa {
float: left;
height: 900px;
width: 600px;
margin-top: 50px;
margin-left: 350px;
background-image: url(Top1_Preview.jpg);
}
#fondo div #info {
float: left;
}
#fondo div #vista_previa #info {
margin-top: 15px;
width: 600px;
height: 225px;
background-image: none;
background-repeat: no-repeat;
background-position: 1px 45px;
font-size: 18px;
}
</style>
</head>

<body>
<div id="fondo">
<p align="right">&nbsp;</p>
<div>
<div id="numero"></div>
<div id="vista_previa"><a href="Sabina_A_MET_Art_Top1.html"><img src="Top1_Preview.jpg"/></a>
<div id="info">
<p><strong><center>
Sabina A - <a href="http://www.met-art.com/">MET-Art.com </a>
<div id="rabidRating-1-3.9_5" class="rabidRating"><div id="rabidRating-1-description" class="ratingText">3.9/5 stars (18261 votes)</div><div class="wrapper"><span class="ratingFill" style="width:78%;"><span class="ratingStars"></span></span></div></div><div id="rabidRating-3-3.8_5" class="rabidRating"><div id="rabidRating-3-description" class="ratingText">3.8/5 stars (18160 votes)</div><div class="wrapper"><span class="ratingFill" style="width:76%;"><span class="ratingStars"></span></span></div></div><div id="rabidRating-4-3.8_5" class="rabidRating"><div id="rabidRating-4-description" class="ratingText">3.8/5 stars (17680 votes)</div><div class="wrapper"><span class="ratingFill" style="width:76%;"><span class="ratingStars"></span></span></div></div><div id="rabidRating-5-3.8_5" class="rabidRating"><div id="rabidRating-5-description" class="ratingText">3.8/5 stars (17212 votes)</div><div class="wrapper"><span class="ratingFill" style="width:75%;"><span class="ratingStars"></span></span></div></div>

</center></strong></p>
</div>
</div>
</div>
</div>
</body>
</html>
</div>

Etiquetas: html, mysql, rating, system
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 12:54.