Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ascanio

Pages: 1 ... 3 4 5 6 [7] 8 9 10 11 ... 35
91
ok thanks, i'm learning ..  i did that just to make sure :)

92
thanks :)

93
sorry i don't know how to do it  :oops: :oops: :oops:

94
thank but i get this
Parse error: parse error, unexpected T_IF

95
Mods & Plugins (Requests & Discussions) / php question (user rating)
« on: July 11, 2005, 03:17:02 PM »
hi i'm trying to make a user rating so the user can vote others users like the  Karma system in this forum

i'm a newbie in php but i have almost finished

i have this code

Code: [Select]
$total = $vote_a+$vote_b+$vote_c+$vote_d+$vote_e;
$sum = round(((($vote_a*1)+($vote_b*2)+($vote_c*3)+($vote_d*4)+($vote_e*5))/$total)*2 , 2);

but when the $total is cero i get this error

Quote
Warning: Division by zero in /home/ascanio/domains/girlsandgirls.net/public_html//index.php on line 66

what can i do?

96
 :arrow: Files to edit:

includes/db_field_definitions.php
lang/<your language>/main.php
templates/<your templates>/member_profile.html
templates/<your templates>/register_form.html
templates/<your templates>/member_editprofile.html


Step 1 Open db_field_definitions.php:

Country Select:
Code: [Select]
$additional_user_fields['user_description'] = array($lang['user_description'], "text", 0);
$additional_user_fields['user_msn'] = array($lang['user_msn'], "text", 1);
$additional_user_fields['user_yim'] = array($lang['user_yim'], "text", 1);

Close and save


Add before ?> :

Code: [Select]
$lang['user_msn'] = "MSN:";
$lang['user_yim'] = "Yahoo:";
$lang['user_description'] = "Yahoo:";
Step 3 Open register_form.html:
Find:

Code: [Select]
<tr>
   <td class="row1"><b>{lang_email}</b></td>
   <td class="row1"><input type="text" name="user_email" size="30" class="input" value="{user_email}" /></td>
</tr>


Add after:

Code: [Select]
<tr>
    <td class="row1"><b>{lang_user_msn}</b></td>
  <td class="row1">{user_msn} </td>
</tr>

do the same with the yim and description fields
also u need to modify:
templates/<your templates>/member_editprofile.html
templates/<your templates>/member_profile.html
then in ur database u need to creat those fields msn,yim,description into the user table

98
Mods & Plugins (Releases & Support) / Re: [MOD] Last comments v1
« on: July 04, 2005, 07:02:19 PM »
where is the part 2? did i miss something?

99
Espaņol / Castellano / Re: [MOD] Hot or Not
« on: July 02, 2005, 10:07:56 PM »
lo siento no me di cuenta ya cambie la URL :)

100
Espaņol / Castellano / [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



101
Chit Chat / PHP Help forums
« on: June 26, 2005, 12:36:10 AM »
hi, does anyone knows a good forum where i can get some php help about image resize on upload?

102
ola podemos ver una demo?

103
Espaņol / Castellano / Re: Imagen aleatoria
« on: June 16, 2005, 03:31:51 PM »
jejeje bueno veo que es tu primer post ya te iras acoustumbrando al foro ;) tb este tema recuerdo haberlo conestado en otros topics dentro del foro espaniol si de verdad estuviestes dos horas perdistes mucho tiempo a mi me tomo 2 segundo jejej xD

104
Espaņol / Castellano / Re: Imagen aleatoria
« on: June 16, 2005, 02:49:51 PM »
llevas 2 horas buscando eso y no lo encuentras :O jejeje era tan dificil pon random image?? es el primero que sale jejejej http://www.4homepages.de/forum/index.php?topic=1020.0 ;) ahi lo tienes! espero que te funcione

105
creo que lo puedes modificar en  las templates user_logininfo.html

Pages: 1 ... 3 4 5 6 [7] 8 9 10 11 ... 35