Author Topic: [MOD] Hot or Not  (Read 30259 times)

0 Members and 2 Guests are viewing this topic.

Offline ascanio

  • Hero Member
  • *****
  • Posts: 569
    • View Profile
    • http://www.surfourspace.net
[MOD] Hot or Not
« on: July 02, 2005, 09:52:21 PM »
Demo: http://www.girlsandgirls.net/details.php?image_id=6197


abrir rate_form.html borra todo el contenido y substituyelo por este

Code: [Select]
<FORM action={self} method=post target=_top>
  <TABLE borderColor=#000000 cellSpacing=0 cellPadding=0 width=331>
    <TBODY>
      <TR vAlign=center>
        <TD align=middle width="462"> <TABLE borderColor=#000000 cellSpacing=0 cellPadding=1 width="100%" border=1>
            <TBODY>
              <TR vAlign=center>
                <TD align=middle> <TABLE width=254 border=0>
                    <TBODY>
                      <TR>
                        <TD align=middle colSpan=3 width="418"> <b class="title"> <font size="4">{image_name}</font></b>{if image_is_new} <sup class="new">{lang_new}</sup>{endif image_is_new} <font size="2"><b>&nbsp; Vota Me!</b></font></TD>
                      </TR>
                      <TR>
                        <TD width="62"></TD>
                        <TD align=middle width="319"> <table border="0" cellspacing="1" width="100%">
                            <tr>
                              <td align="center">1</td>
                              <td align="center">2</td>
                              <td align="center">3</td>
                              <td align="center">4</td>
                              <td align="center">5</td>
                              <td align="center">6</td>
                              <td align="center">7</td>
                              <td align="center">8</td>
                              <td align="center">9</td>
                              <td align="center">10</td>
                            </tr>
                            <tr>
                              <td><input type="radio" value="1" name="rating"></td>
                              <td><input onclick=submit() type="radio" value="2" name="rating"></td>
                              <td><input onclick=submit() type="radio" value="3" name="rating"></td>
                              <td><input onclick=submit() type="radio" value="4" name="rating"></td>
                              <td><input onclick=submit() type="radio" value="5" name="rating"></td>
                              <td><input onclick=submit() type="radio" value="6" name="rating"></td>
                              <td><input onclick=submit() type="radio" value="7" name="rating"></td>
                              <td><input onclick=submit() type="radio" value="8" name="rating"></td>
                              <td><input onclick=submit() type="radio" value="9" name="rating"></td>
                              <td><input onclick=submit() type="radio" value="10" name="rating"></td>
                            </tr>
                          </table></TD>
                        <TD width="29"></TD>
                      </TR>
                      <TR>
                        <TD width="62"><FONT color=#006699 size=2><B>NOT</B></FONT></TD>
                        <TD align=middle width="319"> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                            <TBODY>
                              <TR height=5>
                                <TD bgColor=#f00000> <img border="0" src="{template_url}/images/hotornot.png" width="261" height="12"></TD>
                              </TR>
                            </TBODY>
                          </TABLE></TD>
                        <TD width="29"><FONT color=#cc3300 size=2><B>HOT</B></FONT></TD>
                      </TR>
                    </TBODY>
                  </TABLE></TD>
              </TR>
            </TBODY>
          </TABLE></TD>
      </TR>
    </TBODY>
  </TABLE>
  <input type="hidden" name="action" value="rateimage">
  <input type="hidden" name="id" value="{image_id}">
</FORM>


salva esta imagen en template/tutemplate/images/

http://69.56.196.226/~ascanio/myspacepics/show.php/144/hotornot.jpg
abrir include constants.php

buscar

Code: [Select]

// Max rating value
define('MAX_RATING', 5);


Code: [Select]
// Max rating value
define('MAX_RATING', 10);

en details.html

pon {rate_form} donde kieras que aparezca la tabla de votacion hot or not



Offline benzo

  • Moderator
  • Hero Member
  • *****
  • Posts: 748
  • El que nada duda, nada sabe. :-)
    • View Profile
Re: [MOD] Hot or Not
« Reply #1 on: July 02, 2005, 10:03:58 PM »
Demo: http://www.girlsandgirls.net/details.php?image_id=12355

Ascanio gracías por el MOD, pero sería mejor una demo en la que no te obligasen a registrarte.
¡ Antes de actualizar o modificar el script, realiza una copia de seguridad de todos los archivos y datos !

Tenemos una pequeña faq en español, también la faq oficial ( en inglés  ) y un buscador muy hermoso

Offline ascanio

  • Hero Member
  • *****
  • Posts: 569
    • View Profile
    • http://www.surfourspace.net
Re: [MOD] Hot or Not
« Reply #2 on: July 02, 2005, 10:07:56 PM »
lo siento no me di cuenta ya cambie la URL :)

Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: [MOD] Hot or Not
« Reply #3 on: March 11, 2006, 09:54:40 AM »
pues a mi no me va, ¿qué hace este mod?
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline masterred

  • Sr. Member
  • ****
  • Posts: 494
    • View Profile
Re: [MOD] Hot or Not
« Reply #4 on: July 19, 2006, 07:46:49 PM »
ya lo instale y quedo bien, solo me gfustaria saber si es posible agregarle este MOD, a una pagina aparte es decir:

en vez que sea en details.php, que sea otra pero que tenga las mismas opciones, una pagina nueva, trate de crearla como details.php y details.html y me blokea la galeria,como digamos algo tipo memberlist.php

gracias
Apache/2.2.21 (Win32)
PHP/5.3.5
Mysql Version: 5.5.19
4images Version: 1.7.?



Offline masterred

  • Sr. Member
  • ****
  • Posts: 494
    • View Profile
Re: [MOD] Hot or Not
« Reply #5 on: July 24, 2006, 09:22:23 PM »
hola de nuevo

puede hacerse que se tengan dos paginas details.php, la original y otra (nombre_quesea). es dedir, la details.php, sea para mirar la imagen y poder realizar comentarios, y la otra poder votar nada mas en ella,

gracias
Apache/2.2.21 (Win32)
PHP/5.3.5
Mysql Version: 5.5.19
4images Version: 1.7.?



Offline ccsakuweb

  • Sr. Member
  • ****
  • Posts: 498
  • Patri
    • View Profile
    • My Art
Re: [MOD] Hot or Not
« Reply #6 on: August 08, 2006, 11:31:57 PM »
pero... para q es este mod? q hace? no va la demo asiq lo nose...
:arrow: 4images Paid Mods: Links, Blog, Albums, Subdomains for users, Diferent templates for user profile, Related picture in details, Last pictures in details.
And the mod that you request me.   Demo: http://www.myart.es

A website dedicated to artist people who loves drawing, design, writing and more

Offline masterred

  • Sr. Member
  • ****
  • Posts: 494
    • View Profile
Re: [MOD] Hot or Not
« Reply #7 on: August 09, 2006, 12:39:03 AM »
hola, es para votar la imagen,

hot or not

dale una puntuacion,, como la que tiene por defecto raiting, solo que en esta miras la grafica y tienes se puede decir, la opcion de aumentar la votacion de 5 a 10 se puede decir que es parecido a esto


http://www.hotornot.com/

desde luego con las funciones de details.php o details.html, solo cambia la manera de votar o clasificar

saludos
Apache/2.2.21 (Win32)
PHP/5.3.5
Mysql Version: 5.5.19
4images Version: 1.7.?



Offline not_real_presence

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: [MOD] Hot or Not
« Reply #8 on: February 03, 2007, 06:37:43 AM »
ke imagen era para salvar ahi ?? ya no se la puede descargar!!   alguien la tiene ??   po dria subirla!!     :wink:

Offline topdolla

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: [MOD] Hot or Not
« Reply #9 on: February 20, 2007, 06:18:35 PM »
Even though I don't understand spanish, I managed to get it working, however, how can I make it go to the next image after a vote?
« Last Edit: February 20, 2007, 10:22:08 PM by topdolla »

Offline tini1975

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: [MOD] Hot or Not
« Reply #10 on: December 19, 2010, 04:27:13 AM »
en la versión nueva tengo problemas con este mod, cuando se vota aparece el siguiente error:
CSRF check failed.

Offline pablogross

  • Jr. Member
  • **
  • Posts: 81
    • View Profile
Re: [MOD] Hot or Not
« Reply #11 on: September 12, 2012, 07:15:38 PM »
en la versión nueva tengo problemas con este mod, cuando se vota aparece el siguiente error:
CSRF check failed.

Code: [Select]
<form method="post" action="{self}">
  <TABLE borderColor=#000000 cellSpacing=0 cellPadding=0 width=331>
    <TBODY>
      <TR vAlign=center>
        <TD align=middle width="462"> <TABLE borderColor=#000000 cellSpacing=0 cellPadding=1 width="100%" border=1>
            <TBODY>
              <TR vAlign=center>
                <TD align=middle> <TABLE width=254 border=0>
                    <TBODY>
                      <TR>
                        <TD align=middle colSpan=3 width="418"> <b class="title"> <font size="4">{image_name}</font></b>{if image_is_new} <sup class="new">{lang_new}</sup>{endif image_is_new} <font size="2"><b>&nbsp; Vota Me!</b></font></TD>
                      </TR>
                      <TR>
                        <TD width="62"></TD>
                        <TD align=middle width="319"> <table border="0" cellspacing="1" width="100%">
                            <tr>
                              <td align="center">1</td>
                              <td align="center">2</td>
                              <td align="center">3</td>
                              <td align="center">4</td>
                              <td align="center">5</td>
                              <td align="center">6</td>
                              <td align="center">7</td>
                              <td align="center">8</td>
                              <td align="center">9</td>
                              <td align="center">10</td>
                            </tr>
                            <tr>
                              <td><input type="radio" value="1" name="rating"></td>
                              <td><input onclick=submit() type="radio" value="2" name="rating"></td>
                              <td><input onclick=submit() type="radio" value="3" name="rating"></td>
                              <td><input onclick=submit() type="radio" value="4" name="rating"></td>
                              <td><input onclick=submit() type="radio" value="5" name="rating"></td>
                              <td><input onclick=submit() type="radio" value="6" name="rating"></td>
                              <td><input onclick=submit() type="radio" value="7" name="rating"></td>
                              <td><input onclick=submit() type="radio" value="8" name="rating"></td>
                              <td><input onclick=submit() type="radio" value="9" name="rating"></td>
                              <td><input onclick=submit() type="radio" value="10" name="rating"></td>
                            </tr>
                          </table></TD>
                        <TD width="29"></TD>
                      </TR>
                      <TR>
                        <TD width="62"><FONT color=#006699 size=2><B>NOT</B></FONT></TD>
                        <TD align=middle width="319"> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                            <TBODY>
                              <TR height=5>
                                <TD bgColor=#f00000> <img border="0" src="{template_url}/images/hotornot.png" width="261" height="12"></TD>
                              </TR>
                            </TBODY>
                          </TABLE></TD>
                        <TD width="29"><FONT color=#cc3300 size=2><B>HOT</B></FONT></TD>
                      </TR>
                    </TBODY>
                  </TABLE></TD>
              </TR>
            </TBODY>
          </TABLE></TD>
      </TR>
    </TBODY>
  </TABLE>
  <input type="hidden" name="action" value="rateimage">
  <input type="hidden" name="id" value="{image_id}">
</FORM>
« Last Edit: September 12, 2012, 08:03:59 PM by Rembrandt »