Welcome, Guest. Please Login or Register.
September 28, 2024, 12:14:29 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Language Specific User Help  |  Español  |  mod o pack para more pool options « previous next »
Pages: [1] Reply Ignore Print
Author Topic: mod o pack para more pool options  (Read 1021 times)
PHX
Noobie
*
Posts: 47


Bad Ass Mothercrappity smacker!

ICQ - 63918674Phyrexia@hotmail.com WWW
mod o pack para more pool options
« on: April 23, 2002, 06:55:13 PM »
Reply with quote

Existe algún mod o pack para poder poner más de 8 opciones en una encuesta??  gracias de ante mano

Mi foro:

www.phyrexia.cl
Logged

. : : Phyrexia : : .
Jedi Master

ICQ#: 63918674
MSN: [email protected]

Email: [email protected]
PeterPaul
Sr. Member
****
Posts: 262


Los buenos simpre ganan, paciencia amigos.

ICQ - 92250610peterpaulxxx@hotmail.com WWW
Re:mod o pack para more pool options
« Reply #1 on: April 24, 2002, 12:12:21 PM »
Reply with quote

Vamos ainvestigar el Poll.php
Logged

==================================
Saludos Cordiales
Fdo: PeterPaul

WEBMASTERS PETERPAULXXX.COM
http://www.peterpaulxxx.com
Relatos Eroticos
http://www.peterpaulxxx.com/relatos
Foro de Oficial de PETERPAULXXX
http://www.peterpaulxxx.com/foro
==================================
PeterPaul
Sr. Member
****
Posts: 262


Los buenos simpre ganan, paciencia amigos.

ICQ - 92250610peterpaulxxx@hotmail.com WWW
Re:mod o pack para more pool options
« Reply #2 on: April 24, 2002, 12:20:11 PM »
Reply with quote

Pues muy facil querido amigo ves a tu directorio SOURCES!!

Edita con un editor de texto el archivo poll.php

y busca esta linea

$txt[yse22] 8: <input type="text" name="option8" size="25">
</font></td></tr>

y  pega encima esto otro encima


$txt[yse22] 8: <input type="text" name="option8" size="25"><br>
$txt[yse22] 9: <input type="text" name="option9" size="25"><br>
$txt[yse22] 10: <input type="text" name="option10" size="25"><br>
$txt[yse22] 11: <input type="text" name="option11" size="25"><br>
$txt[yse22] 12: <input type="text" name="option12" size="25"><br>
$txt[yse22] 13: <input type="text" name="option13" size="25"><br>
$txt[yse22] 14: <input type="text" name="option14" size="25"><br>
$txt[yse22] 15: <input type="text" name="option15" size="25"><br>
$txt[yse22] 16: <input type="text" name="option16" size="25"><br>
$txt[yse22] 17: <input type="text" name="option17" size="25"><br>
$txt[yse22] 18: <input type="text" name="option18" size="25"><br>
$txt[yse22] 19: <input type="text" name="option19" size="25"><br>
$txt[yse22] 20: <input type="text" name="option20" size="25"><br>
$txt[yse22] 21: <input type="text" name="option21" size="25"><br>
$txt[yse22] 22: <input type="text" name="option22" size="25"><br>
$txt[yse22] 23: <input type="text" name="option23" size="25"><br>
$txt[yse22] 24: <input type="text" name="option24" size="25"><br>
$txt[yse22] 25: <input type="text" name="option25" size="25">
</font></td></tr>


y asi tendras ya 25 Opciones Posibles para tus encuestas.

Importante: localizar y pegar encima!

Coñe y yo sin saber esto, ni lo habia mirado, gracias a ti ya puedo hacer polls mas grandes jeje  ;)
Logged

==================================
Saludos Cordiales
Fdo: PeterPaul

WEBMASTERS PETERPAULXXX.COM
http://www.peterpaulxxx.com
Relatos Eroticos
http://www.peterpaulxxx.com/relatos
Foro de Oficial de PETERPAULXXX
http://www.peterpaulxxx.com/foro
==================================
PHX
Noobie
*
Posts: 47


Bad Ass Mothercrappity smacker!

ICQ - 63918674Phyrexia@hotmail.com WWW
Re:mod o pack para more pool options
« Reply #3 on: April 24, 2002, 03:15:27 PM »
Reply with quote

espero funcione ya se me habia ocurrido asi pero no se si funciona cuando mustra el poll
Logged

. : : Phyrexia : : .
Jedi Master

ICQ#: 63918674
MSN: [email protected]

Email: [email protected]
PHX
Noobie
*
Posts: 47


Bad Ass Mothercrappity smacker!

ICQ - 63918674Phyrexia@hotmail.com WWW
Re:mod o pack para more pool options
« Reply #4 on: April 24, 2002, 03:17:06 PM »
Reply with quote

en efecto te muestra solo las 8 primeras :( no sirve tu idea voy a ver si puedo arreglarlo
Logged

. : : Phyrexia : : .
Jedi Master

ICQ#: 63918674
MSN: [email protected]

Email: [email protected]
PeterPaul
Sr. Member
****
Posts: 262


Los buenos simpre ganan, paciencia amigos.

ICQ - 92250610peterpaulxxx@hotmail.com WWW
Re:mod o pack para more pool options
« Reply #5 on: April 24, 2002, 03:21:17 PM »
Reply with quote

Perdona pero a mi si me funciona!

Algo has hecho mal!
Logged

==================================
Saludos Cordiales
Fdo: PeterPaul

WEBMASTERS PETERPAULXXX.COM
http://www.peterpaulxxx.com
Relatos Eroticos
http://www.peterpaulxxx.com/relatos
Foro de Oficial de PETERPAULXXX
http://www.peterpaulxxx.com/foro
==================================
PeterPaul
Sr. Member
****
Posts: 262


Los buenos simpre ganan, paciencia amigos.

ICQ - 92250610peterpaulxxx@hotmail.com WWW
Re:mod o pack para more pool options
« Reply #6 on: April 24, 2002, 03:28:13 PM »
Reply with quote

Yo con solo hacer ese cambio ya me funciona!
Logged

==================================
Saludos Cordiales
Fdo: PeterPaul

WEBMASTERS PETERPAULXXX.COM
http://www.peterpaulxxx.com
Relatos Eroticos
http://www.peterpaulxxx.com/relatos
Foro de Oficial de PETERPAULXXX
http://www.peterpaulxxx.com/foro
==================================
PHX
Noobie
*
Posts: 47


Bad Ass Mothercrappity smacker!

ICQ - 63918674Phyrexia@hotmail.com WWW
Re:mod o pack para more pool options
« Reply #7 on: April 24, 2002, 03:39:14 PM »
Reply with quote

si te funciona por que te deja agragra más options pero en realidad trata de votar en ese post pruebalo , no hay caso hay que modificar el string php , modifique display.php para que pudiese aguantar 20 opciones :

   // Create the poll info if it exists
   $pollHtml = '';
   if ($topicinfo['ID_POLL'] != '-1' && $modSettings['pollMode'] == '1')
   {
      $request = mysql_query("SELECT question,votingLocked,votedMemberIDs,option1,option2,option3,option4,option5,option6,option7,option8,option9,option10,option11,option12,option13,option14,option15,option16,option17,option18,option19,option20,votes1,votes2,votes3,votes4,votes5,votes6,votes7,votes8,votes9,votes10,votes11,votes12,votes13,votes14,votes15,votes16,votes17,votes18,votes19,votes20 FROM {$db_prefix}polls WHERE ID_POLL='$topicinfo[ID_POLL]' LIMIT 1");
      $pollinfo = mysql_fetch_assoc($request);
      $pollimage=($pollinfo['votingLocked'] != '0' )?'locked_poll':'poll';
      $pollHtml =<<<EOT
<table cellpadding="0" cellspacing="0" border="0" width="100%" bgcolor="$color[bordercolor]" class="bordercolor" align="center">
  <tr>
    <td>
    <table cellpadding="3" cellspacing="0" width="100%">
      <tr>
        <td>
         <font size="2" class="text1" color="$color[titletext]">&nbsp;<img src="$imagesdir/$pollimage.gif" alt=""> <b>$txt[yse43]</b></font>
        </td>
      </tr>
    </table>
    <table cellpadding="3" cellspacing="1" border="0" width="100%">
      <tr>
      <td valign="middle" align="left" bgcolor="$color[windowbg]" class="windowbg">
EOT;
$pollHtml.= "<table border=0><tr><td valign=\"top\"><b>$txt[yse21]:</b></td><td>".stripslashes(DoUBBC($pollinfo['question']));
      $lockVoting = '';
      $pollEdit = '';
      if ($ID_MEMBER==$topicinfo['ID_MEMBER_STARTED'] || in_array($username,$moderators) || $settings[7]=='Administrator')
         $lockVoting="<br><a href=\"$cgi;action=lockVoting;start=$start;threadid=$threadid\">".($pollinfo['votingLocked']=='0'?$txt['yse30']:$txt['yse30b'])."</a>";
      if (($ID_MEMBER==$topicinfo['ID_MEMBER_STARTED'] && $modSettings['pollEditMode']=='2') || (in_array($username,$moderators) && in_array($modSettings['pollEditMode'],array('2','1'))) || $settings[7]=='Administrator')
         $pollEdit="<a href=\"$cgi;action=editpoll;start=$start;threadid=$threadid\">$txt[yse39]</a>";

      if ($ID_MEMBER == '-1' || in_array("$ID_MEMBER", explode(",",$pollinfo['votedMemberIDs'])) || $pollinfo['votingLocked'] != '0' || $viewResults == '1')
      {
         $totalvotes =$pollinfo['votes1']+$pollinfo['votes2']+$pollinfo['votes3']+$pollinfo['votes4']+$pollinfo['votes5']+$pollinfo['votes6']+$pollinfo['votes7']+$pollinfo['votes8']+$pollinfo['votes9']+$pollinfo['votes10']+$pollinfo['votes11']+$pollinfo['votes12']+$pollinfo['votes13']+$pollinfo['votes14']+$pollinfo['votes15']+$pollinfo['votes16']+$pollinfo['votes17']+$pollinfo['votes18']+$pollinfo['votes19']+$pollinfo['votes20'];
         $divisor = ($totalvotes == 0)?1:$totalvotes;
         $pollHtml .= "<table><tr><td>";
         $pollHtml .= "<br><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n";
         for ($i = 1; $i <= 20; $i++)
            if ($pollinfo["option$i"] != '')
         {
            $bar = floor(($pollinfo["votes$i"] / $divisor) * 100);
            $barWide = ($bar==0)?1:floor(($bar*5)/3);
            $barLine = "<img src=\"$imagesdir/poll_left.gif\" alt=\"\"><img src=\"$imagesdir/poll_middle.gif\" width=\"$barWide\" height=\"12\" alt=\"\"><img src=\"$imagesdir/poll_right.gif\" alt=\"\">";
            $pollHtml .= "<tr><td>".stripslashes(DoUBBC($pollinfo["option$i"]))."</td><td width=\"7\">&nbsp;</td><td nowrap>$barLine ".$pollinfo["votes$i"]." ($bar%)</td></tr>\n";
         }
         $pollHtml.="</table>\n</td><td width=\"15\">&nbsp;</td><td valign=\"bottom\">$lockVoting&nbsp;&nbsp;$pollEdit</td></tr><tr><td><b>$txt[yse24]: $totalvotes</b></td><td>&nbsp;</td></tr></table><br>";
      }
      else
      {
         $pollHtml .= "<form action=\"$cgi;action=vote;threadid=$threadid;start=$start;poll=$topicinfo[ID_POLL]\" method=\"post\">";
         $pollHtml .= "<table><td>";
         for ($i = 1; $i <= 20; $i++)
            if ($pollinfo["option$i"] != '')
               $pollHtml .= "<input type=\"radio\" name=\"option\" value=\"$i\"> ".stripslashes(DoUBBC($pollinfo["option$i"]))."<br>\n";
         $pollHtml .= "</td><td width=\"15\">&nbsp;</td><td valign=\"bottom\"><a href=\"$cgi;action=display;start=$start;threadid=$threadid;viewResults=1\">$txt[yse29]</a>$lockVoting&nbsp;&nbsp;$pollEdit</td></tr><tr><td><input type=\"submit\" value=\"$txt[yse23]\"></td><td>&nbsp;</td></tr></table></form>";
      }

      $pollHtml .=<<<EOT
         </td></tr></table></td>
« Last Edit: April 24, 2002, 03:39:47 PM by PHX » Logged

. : : Phyrexia : : .
Jedi Master

ICQ#: 63918674
MSN: [email protected]

Email: [email protected]
PeterPaul
Sr. Member
****
Posts: 262


Los buenos simpre ganan, paciencia amigos.

ICQ - 92250610peterpaulxxx@hotmail.com WWW
Re:mod o pack para more pool options
« Reply #8 on: April 24, 2002, 03:44:15 PM »
Reply with quote

Si es cierto que has cambiado entonces!!
Logged

==================================
Saludos Cordiales
Fdo: PeterPaul

WEBMASTERS PETERPAULXXX.COM
http://www.peterpaulxxx.com
Relatos Eroticos
http://www.peterpaulxxx.com/relatos
Foro de Oficial de PETERPAULXXX
http://www.peterpaulxxx.com/foro
==================================
PHX
Noobie
*
Posts: 47


Bad Ass Mothercrappity smacker!

ICQ - 63918674Phyrexia@hotmail.com WWW
Re:mod o pack para more pool options
« Reply #9 on: April 24, 2002, 04:21:04 PM »
Reply with quote

no hubo caso , arregle todo lo pocible y no resulto :( que pena ve si tu puedes hacer algo y me mandas el display y poll
Logged

. : : Phyrexia : : .
Jedi Master

ICQ#: 63918674
MSN: [email protected]

Email: [email protected]
PeterPaul
Sr. Member
****
Posts: 262


Los buenos simpre ganan, paciencia amigos.

ICQ - 92250610peterpaulxxx@hotmail.com WWW
Re:mod o pack para more pool options
« Reply #10 on: April 24, 2002, 05:13:17 PM »
Reply with quote

He cambiado todo el poll y he puesto dos campos mas despues del 8

no me da error de sql pero creoque falla algo ahora pondre lo tuyo del display y a ver si los dos cambios hacen efecto!

Ahora te digo!

JEJEJE me mola el puto yabb!!
Logged

==================================
Saludos Cordiales
Fdo: PeterPaul

WEBMASTERS PETERPAULXXX.COM
http://www.peterpaulxxx.com
Relatos Eroticos
http://www.peterpaulxxx.com/relatos
Foro de Oficial de PETERPAULXXX
http://www.peterpaulxxx.com/foro
==================================
PHX
Noobie
*
Posts: 47


Bad Ass Mothercrappity smacker!

ICQ - 63918674Phyrexia@hotmail.com WWW
Re:mod o pack para more pool options
« Reply #11 on: April 24, 2002, 09:56:08 PM »
Reply with quote

yo cambie todo para 20 , display y poll pero me dio error se sql y no me guardaba las cosas :(
Logged

. : : Phyrexia : : .
Jedi Master

ICQ#: 63918674
MSN: [email protected]

Email: [email protected]
Gabriel
Noobie
*
Posts: 16


Entra en mi web!! Si quieres, xD.

g_trabanco_llano@hotmail.com WWW
Re:mod o pack para more pool options
« Reply #12 on: April 25, 2002, 05:31:45 PM »
Reply with quote

Hola.

Llevo 2 semanas aprendiendo php y un poco de mysql. Soy inexperto, pero creo q realmente x mucho q modifiqueis los archivos php no vais a hacer nada. Q lo q teneis q hacer es modificar la base de datos.

Ya lo mirare.

Salud2.
Logged

-----------------------------------------------------------
#############################
#             ...:::G@BöLôN[*|*]WeB:::...           #
#############################
# Url de la web: http://gabolon.cjb.net         #
# Url del foro:     http://gabolon.host.sk/foro#
#####################
PeterPaul
Sr. Member
****
Posts: 262


Los buenos simpre ganan, paciencia amigos.

ICQ - 92250610peterpaulxxx@hotmail.com WWW
Re:mod o pack para more pool options
« Reply #13 on: April 25, 2002, 11:25:48 PM »
Reply with quote

Si seguramente en las sentencias sql o en el phpadmin ahabra que añadir algun campo tantos como opciones quieras, pero no se que tabla sera!
Logged

==================================
Saludos Cordiales
Fdo: PeterPaul

WEBMASTERS PETERPAULXXX.COM
http://www.peterpaulxxx.com
Relatos Eroticos
http://www.peterpaulxxx.com/relatos
Foro de Oficial de PETERPAULXXX
http://www.peterpaulxxx.com/foro
==================================
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Language Specific User Help  |  Español  |  mod o pack para more pool options « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.015 seconds with 21 queries.