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.


Topics - ascanio

Pages: 1 2 3 [4] 5
46
Discussion & Troubleshooting / What does mean this error?
« on: April 15, 2005, 03:11:18 PM »
What does mean this error:
Code: [Select]
Warning: Cannot modify header information - headers already sent by (output started at /home/ascanio/domains/girlsandgirls.net/public_html/encuestas.php:166) in /home/ascanio/domains/girlsandgirls.net/public_html/details.php on line 61

47
Yesterday I was looking the code of  member_mailform.html and thanks to what i find out know the users can send me email from any template I want even new templates that you create.

Screenshots:




add this code wherevere you want in the template:

Code: [Select]
<form method="post" action="{url_member}">
  <table width="100%" border="0" cellspacing="0" cellpadding="1" id="table1">
    <tr>
      <td valign="top">
        <table width="100%" border="0" cellpadding="4" cellspacing="0" id="table2">
          <tr>
            <td class="row2" align="center">
    <input type="text" name="subject"  size="19" value="Subject" class="input2" /></td>
          </tr>
          <tr>
            <td class="row2" width="100%" align="center">
            <input type="text" name="message"  size="19" value="Name" name="message" wrap="virtual" class="textarea2"/></td>
          </tr>
           <td class="row2" width="100%" align="center">
            <input type="text" name="message"  size="19" value="Message" name="message" wrap="virtual" class="textarea2"/></td>
          </tr>
          </table>
      </td>
    </tr>
  </table>
  <input type="hidden" name="action" value="emailuser" />
  <input type="hidden" name="user_id" value="1" />
  <p align="center">
    <input type="submit" value="Enviar" />&nbsp;
  </p>
</form>

Now you have tu check your user id
(http://www.tudominio/4imges/member.php?action=showprofile&user_id=1) in my case isl 1 cuz I am the admin.
once you find you id:
find the previous coder:
Code: [Select]
<input type="hidden" name="user_id" value="1" />
where it says
Code: [Select]
value="1" replace 1 to our user id

Now you need you change the size of the text areas so add these two clases to your style.css:

Code: [Select]
.textarea2 {
  font-family: Tahoma,Verdana,Arial,Helvetica,sans-serif;
  color: #0f5475;
  font-size: 11px;
  width: 150px;
}

.input2 {
  font-family: Tahoma,Verdana,Arial,Helvetica,sans-serif;
  color: #0f5475;
  font-size: 11px;
  width: 150px;
}

That's it. now your users can send you emails from any template :)

48
Saludos:

Hola a todos, alguien sabe como podria mostrar {comment_user_email_button} en el perfil, bueno lo que quiero es que hay un boton  que lleve a member_mailform.html como en los comentarios.

49
Hi everyone,

How can I add a new textbox on member_mailform.html
I want that the content in that textbox be included on the email with the message,



I have try adding this to the  member_mailform.html but it does not work:
Code: [Select]
       
           <tr>
            <td class="row2"><b>{lang_link}</b></td>
            <td class="row2"><input type="text" name="subject"  size="30" value="{link}" class="input" /></td>
          </tr>

Any idea

50
Esto se me ocurio hoy cuando estaba viendo el codigo de member_mailform.html. Gracias a esto ahora puedo poner un mailform en cualquier plantilla. Para mi es muy util.

Demos:




Introduce este codigo en cualquiera de las platillas donde quieras que aparezca:

Code: [Select]
<form method="post" action="{url_member}">
  <table width="100%" border="0" cellspacing="0" cellpadding="1" id="table1">
    <tr>
      <td valign="top">
        <table width="100%" border="0" cellpadding="4" cellspacing="0" id="table2">
          <tr>
            <td class="row2" align="center">
    <input type="text" name="subject"  size="19" value="Escribe tu asunto" class="input2" /></td>
          </tr>
          <tr>
            <td class="row2" width="100%" align="center">
            <input type="text" name="message"  size="19" value="Tu nombre" name="message" wrap="virtual" class="textarea2"/></td>
          </tr>
           <td class="row2" width="100%" align="center">
            <input type="text" name="message"  size="19" value="Escribe tu mensaje" name="message" wrap="virtual" class="textarea2"/></td>
          </tr>
          </table>
      </td>
    </tr>
  </table>
  <input type="hidden" name="action" value="emailuser" />
  <input type="hidden" name="user_id" value="1" />
  <p align="center">
    <input type="submit" value="Enviar" />&nbsp;
  </p>
</form>

Para que los emails te lleguen a ti tienes que comprobar que id tiene tu usuario: (http://www.tudominio/4imges/member.php?action=showprofile&user_id=1) en mi caso es el 1 ya que soy eladmin.
una vez comprobado tu id tienes que ponerlo aqui:
Busca en el codigo anterior:
Code: [Select]
<input type="hidden" name="user_id" value="1" />
Donde pone
Code: [Select]
value="1" substituye el 1 por tu id.

Ahora para hacer los textareas mas pequeñios tienes que abrir style.css y añadir estasdos clases:

Code: [Select]
.textarea2 {
  font-family: Tahoma,Verdana,Arial,Helvetica,sans-serif;
  color: #0f5475;
  font-size: 11px;
  width: 150px;
}

.input2 {
  font-family: Tahoma,Verdana,Arial,Helvetica,sans-serif;
  color: #0f5475;
  font-size: 11px;
  width: 150px;
}

Ya esta. ahora tu usuarios podran enviarte email desde cualquier template :)

51
Hi everyone!
In the URL that I get in the email notificaions I get a wrong path
I got this:
http://69.56.196.226/~ascanio/girls/pm.php?action=view&mode=inbox&id=106
It shuold be:
http://69.56.196.226/~ascanio/pm.php?action=view&mode=inbox&id=106

Some time ago I had the gallery in that folder but then I move it to the root son how can I change that?

52
There are some MODs similar to this one in the forum but I found them confusing and I don't get them to work. This one it is really easy to install.

This MOD will allow to your users to select a Country and a gender when they Register. But if u don't do the step 3 it your user will have the option to select the country and the gender and the show that in their profiles.
If you just want one of these features either Select Country or Select Gender just do what it is after this words.

 :arrow: Screenshot templates/<your templates>/member_editprofile.html:



Green  :arrow:  Gender Select upgrade
Orange  :arrow: Country Select upgrade

 :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

To instal this MOD the dropdown for custom fields mod is required  :arrow: http://www.4homepages.de/forum/index.php?topic=7112.0

 :arrow: First: Open phpMyAdmin and create a new column called user_country inside of 4images_users I used type varchar (255).
      And another for the gender call user_gender inside of 4images_users I used type text.


Step 1 Open db_field_definitions.php:

Country Select:

Add before ?> :

Code: [Select]
$var = array("------------",
"---Africa---",
"Ethiopia",
"Somalia",
"South Africa",
"Other",
"---Middle East---",
"Egypt",
"Iran",
"Israel",
"Kuwait",
"Lebanon",
"Morocco",
"Saudi Arabia",
"Syria",
"Turkey",
"U. A. Emirates",
"Other",
"---Asia---",
"Armenia",
"Bangladesh",
"Cambodia",
"China",
"India",
"Indonesia",
"Japan",
"Malaysia",
"Myanmar",
"Nepal",
"Pakistan",
"Philippines",
"Singapore",
"South Korea",
"Sri Lanka",
"Taiwan",
"Thailand",
"Uzbekistan",
"Vietnam",
"Other",
"---Europe---",
"Albania",
"Austria",
"Belarus",
"Belgium",
"Bosnia",
"Bulgaria",
"Croatia",
"Cyprus",
"Czech Rep.",
"Denmark",
"Estonia",
"Finland",
"France",
"Germany",
"Greece",
"Hungary",
"Iceland",
"Ireland",
"Italy",
"Latvia",
"Liechtenstein",
"Lithuania",
"Luxembourg",
"Macedonia",
"Malta",
"Monaco",
"Netherlands",
"Norway",
"Poland",
"Portugal",
"Romania",
"Russia",
"Slovakia",
"Slovenia",
"Spain",
"Sweden",
"Switzerland",
"Ukraine",
"United Kingdom",
"Other",
"Australia",
"Australia",
"New Zealand",
"Other",
"---Latin America---",
"Costa Rica",
"Cuba",
"El Salvador",
"Guatemala",
"Haiti",
"Jamaica",
"Mexico",
"Panama",
"Other",
"---North America---",
"Canada",
"USA",
"Other",
"---South America---",
"Argentina",
"Bolivia",
"Brazil",
"Chile",
"Colombia",
"Ecuador",
"Paraguay",
"Peru",
"Suriname",
"Uruguay",
"Venezuela",
"Other"
);
$additional_user_fields['user_country'] = array($lang['user_country'], "dropdown", 0, $var, 0, 0, 0, 1);

Gender Select:

Code: [Select]
$additional_user_fields['user_gender'] = array($lang['user_gender'], "dropdown", 0, array("n" => "---","b" => "Bisex", "m" => "Male", "w" => "Female"), 1, 0, 0, 0);
Close and save


Step 2 Open main.php


Country Select:


Add before ?> :

Code: [Select]
$lang['user_country'] = "Country:";

Gender Select:


Add before ?> :

Code: [Select]
$lang['user_gender'] = "Sex:";
Close and save


Step 3 Open register_form.html:


Country Select:

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_country}</b></td>
  <td class="row1">{user_country_dropdown} </td>
</tr>

Gender Select:

Add this:

Code: [Select]
<tr>
   <td class="row2"><b>{lang_user_gender}</b></td>b
   <td class="row2">&nbsp;<b>{user_gender_dropdown}&nbsp; </b>&nbsp;</td>>
</tr>

Close and save

Step 4 Open member_editprofile.html:
This step is optional only if you want that the users change their country once the are register.

Country Select:

Find:

Code: [Select]
          <tr>
            <td class="row2"><b>{lang_email_confirm}</b></td>
            <td class="row2"><input type="text" name="user_email2"  size="30" value="{user_email2}" class="input" /></td>
          </tr>

Add after:

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


Gender Select:

Add this:
Code: [Select]
<tr>
    <td class="row2"><b>{lang_user_gender}</b></td>
    <td class="row2">&nbsp;<b>{user_gender_dropdown}&nbsp;</b>&nbsp;<img src="{template_url}/images/{user_gender}.gif"></td>>
</tr>

Close and save

Step 5 Open member_profile.html:

Country Select:
Find:

Code: [Select]
<tr>
<td class="row1"width="40%"><b>{lang_email}</b></td>
<td class="row1">{if user_email}<a href="{user_mailform_link}">{user_email_save}</a>{endif user_email}</td>
</tr>

Add after:

Code: [Select]
<tr>
<td class="row2"width="40%"><b>{lang_user_country}</b></td>
<td class="row2">{user_country}</td>
</tr>


Gender Select:

Add this:

Code: [Select]
<tr>
<td class="row2" width="21%"><b>{lang_user_gender}</b></td>
<td class="row2" width="77%">&nbsp;<img src="{template_url}/images/{user_gender}.gif"></td>
</tr>

Close and save

ok, here you have finished, if you just have installed your gallery 4images and u don't have to much member your are fine
But if u have a lot member registered and u want to show a defualt country and gender then u can run these SQL query:

For Gender Select this will show all the users as Males if u change the 'm' for a 'w' it will show the female symbol

Code: [Select]
UPDATE 4images_users SET user_gender = 'm'
For Country Select

Code: [Select]
UPDATE 4images_users SET user_country = 'your default country'

Upload all the files to your server, and the gif to templates/<your template>/images

That's it!!.

Update: May 5, 2005, 2:42 PM
Save in data base bug solve
Update: May 6, 2005, 4:48 PM
Gender Select upgrade

53
Hola alguien podria decirme como usara los smiles y bbcode del Mod PM V2.53 desde que instale ese mod no puedo usar smiles en los comentarios.

Gracias

54
How can I change the look of the  buttons?

55
Español / Castellano / [MOD] Selecion de Pais y sexo al registrase
« on: April 11, 2005, 03:23:33 AM »
Este es el primer mod que hago y gracias a excitex2 lo puede terminar, hay algunos parecidos en este forum pero sonmuy confusos o no funcionan. Este es muy facil de instalar:

Con Este MOD los nuevos usuarios podran elegir su pais y su sexo.


 :arrow: Screenshot templates/<your templates>/member_editprofile.html:



Green  :arrow:  Selecionar sexo upgrade
Orange  :arrow: Selecionar Pais upgrade

 :arrow: Archivos a editar:

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

Nesesistas este MOD para que funcione esta modificaion :arrow: http://www.4homepages.de/forum/index.php?topic=7112.0

 :arrow: Primero: Abre phpMyAdmin y crea una nueva columna llamada user_country dentro de 4images_users yo utilize tipo varchar (255).

      Luego otra para el sexo columna llamada user_gender inside of 4images_users yo use tipo text.


Paso 1 Abre db_field_definitions.php:

Country Select:

Añade antes ?> :

Code: [Select]
$var = array("------------",
"---Africa---",
"Ethiopia",
"Somalia",
"South Africa",
"Other",
"---Middle East---",
"Egypt",
"Iran",
"Israel",
"Kuwait",
"Lebanon",
"Morocco",
"Saudi Arabia",
"Syria",
"Turkey",
"U. A. Emirates",
"Other",
"---Asia---",
"Armenia",
"Bangladesh",
"Cambodia",
"China",
"India",
"Indonesia",
"Japan",
"Malaysia",
"Myanmar",
"Nepal",
"Pakistan",
"Philippines",
"Singapore",
"South Korea",
"Sri Lanka",
"Taiwan",
"Thailand",
"Uzbekistan",
"Vietnam",
"Other",
"---Europe---",
"Albania",
"Austria",
"Belarus",
"Belgium",
"Bosnia",
"Bulgaria",
"Croatia",
"Cyprus",
"Czech Rep.",
"Denmark",
"Estonia",
"Finland",
"France",
"Germany",
"Greece",
"Hungary",
"Iceland",
"Ireland",
"Italy",
"Latvia",
"Liechtenstein",
"Lithuania",
"Luxembourg",
"Macedonia",
"Malta",
"Monaco",
"Netherlands",
"Norway",
"Poland",
"Portugal",
"Romania",
"Russia",
"Slovakia",
"Slovenia",
"Spain",
"Sweden",
"Switzerland",
"Ukraine",
"United Kingdom",
"Other",
"Australia",
"Australia",
"New Zealand",
"Other",
"---Latin America---",
"Costa Rica",
"Cuba",
"El Salvador",
"Guatemala",
"Haiti",
"Jamaica",
"Mexico",
"Panama",
"Other",
"---North America---",
"Canada",
"USA",
"Other",
"---South America---",
"Argentina",
"Bolivia",
"Brazil",
"Chile",
"Colombia",
"Ecuador",
"Paraguay",
"Peru",
"Suriname",
"Uruguay",
"Venezuela",
"Other"
);
$additional_user_fields['user_country'] = array($lang['user_country'], "dropdown", 0, $var, 0, 0, 0, 1);

Gender Select:

Code: [Select]
$additional_user_fields['user_gender'] = array($lang['user_gender'], "dropdown", 0, array("n" => "---","b" => "Bisex", "m" => "Male", "w" => "Female"), 1, 0, 0, 0);
Cierra y salva los ficheros.


Paso 2 Abre main.php


Country Select:


Añade Antes de ?> :

Code: [Select]
$lang['user_country'] = "Country:";

Gender Select:


Añade Antes de ?> :

Code: [Select]
$lang['user_gender'] = "Sex:";
Close and save


Step 3 Open register_form.html:


Country Select:

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>


Añade despues:

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

Gender Select:

Añade despues:

Code: [Select]
<tr>
   <td class="row2"><b>{lang_user_gender}</b></td>b
   <td class="row2">&nbsp;<b>{user_gender_dropdown}&nbsp; </b>&nbsp;</td>>
</tr>

Cierra y salva los ficheros.

Step 4 Open member_editprofile.html:


Country Select:

Find:

Code: [Select]
          <tr>
            <td class="row2"><b>{lang_email_confirm}</b></td>
            <td class="row2"><input type="text" name="user_email2"  size="30" value="{user_email2}" class="input" /></td>
          </tr>

Añade despues:

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


Gender Select:

Añade despues:
Code: [Select]
<tr>
    <td class="row2"><b>{lang_user_gender}</b></td>
    <td class="row2">&nbsp;<b>{user_gender_dropdown}&nbsp;</b>&nbsp;<img src="{template_url}/images/{user_gender}.gif"></td>>
</tr>

Cierra y salva los ficheros.

Step 5 Open member_profile.html:

Country Select:
Find:

Code: [Select]
<tr>
<td class="row1"width="40%"><b>{lang_email}</b></td>
<td class="row1">{if user_email}<a href="{user_mailform_link}">{user_email_save}</a>{endif user_email}</td>
</tr>

Añade despues:

Code: [Select]
<tr>
<td class="row2"width="40%"><b>{lang_user_country}</b></td>
<td class="row2">{user_country}</td>
</tr>


Gender Select:

Añade despues:

Code: [Select]
<tr>
<td class="row2" width="21%"><b>{lang_user_gender}</b></td>
<td class="row2" width="77%">&nbsp;<img src="{template_url}/images/{user_gender}.gif"></td>
</tr>

Cierra y salva los ficheros.

Ya has terminado ahora si quieres puedes actualiazr la base de datos para que aquellos usuarios que ya estaban registrados y no pudieron seleccionar el pais ni el sexo
tengan uno como defecto(este paso es opcional)

Para el sexo Esto hara que todo los usuarios que estaban registrados sean hombre por defecto, si quieres que sean mujer cambia 'm' por 'w'

Code: [Select]
UPDATE 4images_users SET user_sex = 'm'
Para la selecion de pais

Code: [Select]
UPDATE 4images_users SET user_sex = 'España'

Sube los archivos a tu server y pon estos gifs en templates/<your template>/images



============================
changed inculdes/ to includes/
Nicky 12.04.2005

56
Discussion & Troubleshooting / New fields searchable
« on: April 11, 2005, 12:47:39 AM »
I have add this line to "includes/db_field_definitions.php":

Code: [Select]
$additional_image_fields[user_city'] = array($lang['user_city'], "text", 1);
and this into (main.php):

Code: [Select]
$lang['user_city'] = "City:";
Let's say that there is one user that is from Rome how can I (the admin) or the users can search that in the advance search?

I want to put in search_form.html something like this:

Code: [Select]
<tr>
            <td valign="top" class="row2"><b>{lang_user_city}</b></td>
            <td class="row2" valign="top">
              <input type="text" name="search_user" size="40" value="{user_city}" class="input" />
            </td>
          </tr>

57
Español / Castellano / Traducion de nuevas palabras en las templates
« on: April 10, 2005, 11:05:34 PM »
Hola he insertado esto para poder ponerlos tb en el main de english y asi poder traducirlo pero no veo ningun cambio que otra cosa tengo k hacer?

templates/blue//user_loginform.html
Code: [Select]
{lang_contact}lang/spanish/main.php
Code: [Select]
$lang['contact'] = "Contactanos";lang/english/main.php
Code: [Select]
$lang['contact'] = "Contact Us";

58
Mods & Plugins (Requests & Discussions) / Sticky Comment
« on: April 09, 2005, 02:27:03 AM »
Hi I am interested in some modification to put some comments as Sticky, what i mean with that is that remains at the top of the comments list of each image

Thanks

59
Español / Castellano / Mostar avatar en memberlist
« on: April 05, 2005, 10:19:57 PM »
Hola me gustaria saber como se podrian mostar los avatares de los usuarios en la memberlist muchas gracias

60
Mods & Plugins (Requests & Discussions) / Hit Counter on the main page
« on: April 04, 2005, 06:30:48 AM »
Hi I would like to see the numbers of hits of the home page of my gallery and control the hits from the control panel and to be abel to reset them ... Is there any MOD to do that?

Pages: 1 2 3 [4] 5