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 - masterred

Pages: 1 2 3 4 [5] 6 7 8 9 ... 32
61
Mods & Plugins (Requests & Discussions) / Re: Add new field top.php
« on: February 13, 2008, 07:05:18 PM »
hi

Apologized for confundirte with these steps, the message written above, it is because I am changing the register_form.html with more fields and one of them is {user_hobbies}

 I would like it to appear in details.php in top.php that this changed with image and {user_email} , { user_homepage} as more data, and other more changes in member.php are to add new fields in the gallery.

The write because they are all changes you make to create the {user_hobbies} field,

the profile shows me all the details of the fields that I have added to the gallery, but in top.php details.php shows or anything, so I top.php is interested in top.html display data {user_hobbies}

thank

62
Mods & Plugins (Requests & Discussions) / Re: Add new field top.php
« on: February 13, 2008, 06:36:04 AM »
hi

not working

files creates and modify

in db_field_definitions.php create this

Quote
$additional_user_fields['user_hobbies'] = array($lang['user_hobbies'], "text", 0);

in db create

Quote
ALTER TABLE `4images_users` CHANGE `user_aficiones` `user_aficiones` VARCHAR(255) NOT NULL


in member.php modify this and add

before

Quote
"user_homepage" => $user_homepage,

add this

Quote
"user_hobbies" => $user_hobbies,

before this

Quote
$user_email = (isset($HTTP_POST_VARS['user_email'])) ? un_htmlspecialchars(trim($HTTP_POST_VARS['user_email'])) : "";

add

Quote
$user_hobbies = (isset($HTTP_POST_VARS['user_hobbies'])) ? un_htmlspecialchars(trim($HTTP_POST_VARS['user_hobbies'])) : "";

before

Quote
$user_name = $user_info['user_name'];
  if (!$update_process) {

add this

Quote
$user_hobbies = $user_info['user_hobbies'];

in this line

Quote
$site_template->register_vars(array(
    "user_name" => format_text(stripslashes($user_name), 2),

before add

Quote
"user_hobbies" => format_text(stripslashes($user_hobbies), 2),

in register_form.html add this

Quote
<tr>
            <td class="row1" valign="top"><b>{lang_user_hobbies}</b></td>
            <td class="row1">
              <TEXTAREA name="user_hobbies" cols="23" rows="5" class="input" />{user_hobbies}</textarea>            </td>
          </tr>

member_profile.html add this

Quote
<tr>
            <td class="row1" valign="top"><b>{lang_user_hobbies}</b></td>
            <td class="row1">
              {user_hobbies}            </td>
          </tr>

NOTE: this result no problem, show result in line.

member_editprofile.html add this

Quote
<tr>
            <td class="row1" valign="top"><b>{lang_user_aficiones}</b></td>
            <td class="row1">
              <TEXTAREA name="user_aficiones" cols="23" rows="5" class="input" />{user_aficiones}</textarea>            </td>
          </tr>

I made all my changes in top.php by which I indicated beam and your answer and continues without showing any result, either in details.php also teaches anything,

thank










63
Mods & Plugins (Requests & Discussions) / Add new field top.php
« on: February 12, 2008, 07:53:47 PM »
hi

how cant add new fields in top.php

my change in top.php

modify top.php , new field {user_hobbies}

Code: [Select]
// Votes
$sql = "SELECT i.image_id, i.user_id, i.cat_id, i.image_name, i.image_rating, i.image_votes, c.cat_name".get_user_table_field(", u.", "user_name")." ".get_user_table_field(", u.", "user_email")."  ".get_user_table_field(", u.", "user_homepage")." ".get_user_table_field(", u.", "user_hobbies").", i.image_thumb_file

add this

Code: [Select]
$register_array['image_votes_hobbies_'.$i] .format_text($top_list[$i][$user_table_fields['user_hobbies']]);

add this

Code: [Select]
$register_array['image_votes_hobbies_'.$i] = "--";
template/my_template/top.html

add this

Code: [Select]
{lang_user_hobbies}&nbsp;{if user_hobbies}{image_votes_hobbies_1}{endif user_hobbies}
What is wrong or missing in AMENDED,
I taught in the profile data, but not in top.php

thank

64
Mods & Plugins (Requests & Discussions) / register.php diferent page
« on: February 12, 2008, 05:29:56 AM »
hi

As I create a registry of users with multiple sites, something like the operation of sending postcards that have different pages in the
(<form></form>)

ejem:

postcard create send to preview card

Code: [Select]
<input type="hidden" name="action" value="previewcard" />
<input type="hidden" name="image_id" value="{image_id}" />
<input type="hidden" name="back_url" value="{back_url}" />
                    <p align="center">
                      <input type="submit" value="{lang_preview_postcard}" class="button" />

thanks

65
Mods & Plugins (Requests & Discussions) / Re: user_email in top.php
« on: February 11, 2008, 08:13:01 PM »
hi

the problem is  solved

used this in top.html

Quote
<tr>
                            <td valign="top" class="row1" width="22%">{image_votes_thumb_1}</td>
                            <td valign="top" class="row1" width="76%">{lang_user_name}&nbsp;{image_votes_user_1}<br />
                            {lang_votes}&nbsp;{image_votes_number_1}<br />
                            {lang_category}&nbsp;{image_votes_cat_1}<br />
                            {lang_email}&nbsp;{if user_email}{image_votes_showemail_1}{endif user_email}<br />
                            </td>
                          </tr>

and top.php this

Quote
$sql = "SELECT i.image_id, i.user_id, i.cat_id, i.image_name, i.image_rating, i.image_votes, c.cat_name".get_user_table_field(", u.", "user_name")." ".get_user_table_field(", u.", "user_email").", i.image_thumb_file



Quote
$register_array['image_votes_showemail_'.$i] = "<a href=\"".$site_sess->url($user_mailform_link)."\">".format_text($top_list[$i][$user_table_fields['user_showemail']])."</a> ".format_text($top_list[$i][$user_table_fields['user_email']]);

and this

Quote
$register_array['image_votes_showemail_'.$i] = "--";

my problem is solved, now see the user_email in top.php, only used votes , not download or rating not hits, only votes

thanks

66
Mods & Plugins (Requests & Discussions) / Re: user_email in top.php
« on: February 11, 2008, 07:37:11 PM »
hi

one cuestions ?

the result in my templates/my_template/top.html gallery show this form

Code: [Select]
  <tr>
                            <td valign="top" class="row1" width="22%">{image_votes_thumb_1}</td>
                            <td valign="top" class="row1" width="76%">{lang_user_name}&nbsp;{image_votes_user_1}<br />
                            {lang_votes}&nbsp;{image_votes_number_1}<br />
                            {lang_category}&nbsp;{image_votes_cat_1}<br />
                            {lang_email}&nbsp;{if user_email}<a href="{user_mailform_link}">{user_email_save}</a>{endif user_email}<br />
                            {lang_homepage}&nbsp;{if user_homepage}<a href="{user_homepage}" tarbet="_blank">{user_homepage}</a>{endif user_homepage}</td>
                          </tr>

in top.php change to this

Quote
$sql = "SELECT i.image_id, i.user_id, i.cat_id, i.image_name, i.image_rating, i.image_votes, c.cat_name".get_user_table_field(", u.", "user_name")." ".get_user_table_field(", u.", "user_email")."

in  votes add this

Quote
$register_array['image_votes_email_'.$i] = "<a href=\"".$site_sess->url($user_mailform_link)."\">".format_text($top_list[$i][$user_table_fields['user_name']])."</a> ".format_text($top_list[$i][$user_table_fields['user_email']]);

and

Code: [Select]
else {
    $register_array['image_votes_'.$i] = "--";
    $register_array['image_votes_user_'.$i] = "--";
    $register_array['image_votes_cat_'.$i] = "--";
    $register_array['image_votes_number_'.$i] = "--";
    $register_array['image_votes_thumb_'.$i] = "--";

  }
}

add this

Code: [Select]
else {
    $register_array['image_votes_'.$i] = "--";
    $register_array['image_votes_user_'.$i] = "--";
    $register_array['image_votes_cat_'.$i] = "--";
$register_array['image_votes_email_'.$i] = "--";
    $register_array['image_votes_number_'.$i] = "--";
    $register_array['image_votes_thumb_'.$i] = "--";

  }
}

thanks


67
Mods & Plugins (Requests & Discussions) / user_email in top.php
« on: February 11, 2008, 06:43:42 PM »
hi

how cant show user_email on top.php

thanks

68
Mods & Plugins (Releases & Support) / Re: [Mod] Photo Of The Day
« on: February 10, 2008, 04:48:19 AM »
hi

Photo of the day is selected through visits to the photo is selected automatically.

69
Espaņol / Castellano / Re: AYUDA POR FAVOR GRAN PROBLEMA!!!!
« on: February 10, 2008, 04:36:28 AM »
hola

 que imagen no miras, las thumbnails ?,

por la url del sitio

hasta pronto

70
hi

this MOD work with 4images 1.7.6 for the links or image itīs bad or change

Teaches changed pictures, if I want to watch the image of someone else, showing rises by the administrator, namely mine, the name of the image does not correspond to that is watching, the image is called DIY 7, the previous image called mistake and I DIY above the previous image.

image 7 call bricolage



and you see after image in this photo



after image not call bricolage you name is error

2- If I click from page categories in the image of this photo I taught rise by another user, but I am trying not to look

image 7_2 click in this photo and show other



see this photo



Everything is reversed ,Because.

thank




71
hi
this MOD working fine in  4images 1.7.6

i see

72
Quote
1.user registers
2.Gets an email with the activation link
3. Clicks on the link

This is 4images core. You can configure in ACP - > setting page for register confirm by email.

Quote
4. msg shows on the front page:
"Welcome to our newest member:" and then show the name of the person who registered last.

I like. :)

// Step 1

In register.php file,

find:

Quote
$site_email->set_body("activation_success", $config['language_dir']);
        $site_email->send_email();
      }
    }
  }

add after:

Code: [Select]
$welcome_activation_msg = str_replace(array("{welcome_user_name}", "{site_name}"), array(format_text(trim($row[$user_table_fields['user_name']]), 2), format_text($config['site_name'], 2)), $lang['welcome_activation_message']);
$welcome_activation_template = $site_template->parse_template("member_activation_content"); 
$site_template->register_vars("welcome_activation_msg", trim($welcome_activation_msg));

find:

Quote
"msg" => $msg,

add after:

Code: [Select]
"welcome_activation_template" => trim($welcome_activation_template),

// Step 2

In lang/english/main.php file,

add top of ?>:

Code: [Select]
$lang['welcome_activation_message'] = "Dear {welcome_user_name},<br /><br />we would like to welcome you to our gallery: <b>{site_name}</b>.";

// Step 3

In templates/your_template folder, create file: member_activation_content.html .

Use: {if welcome_activation_msg}{welcome_activation_msg}{endif welcome_activation_msg} .

// Step 4

In templates/your_template/member.html file,

use: {if welcome_activation_template}{welcome_activation_template}{endif welcome_activation_template} where you want in file.

dont show nothing message welcome in member

create template

member_activation_content.html

modify lang/main.php

Code: [Select]
$lang['welcome_activation_message'] = "Dear {welcome_user_name},<br /><br />we would like to welcome you to our gallery: <b>{site_name}</b>.";
insert in member this

Quote
<table border="0" cellpadding="0" cellspacing="0" width="100%">
   <tr>
      <td class="row2" valign="top">{if welcome_activation_template}{welcome_activation_template}{endif welcome_activation_template}</td>
   </tr>
</table>
Quote

other step register change

thanks

73
hi

As can be registered users of the gallery change the image of themselves, in the ACP expensive option of changing their own images, but it is not true only amending the name, description and keywords and not the image as indicated. This is a problem writing the gallery because of image editing user NO editing for nothing.


Allow users to edit their own images

And how it could change to all registered users modify their comments in the gallery written by them

thank

74
Espaņol / Castellano / Re: editar comentarios
« on: February 08, 2008, 02:52:42 AM »
hola

estube revisando las escrituras de la galeria y en efecto, no se puede, pero lo que te indica en el ACP los permisos de modificacion, son como lo dice, (de sus propias imagenes y/o comentarios),

1- si pones comentarios en otras imagenes no podras editarlos como usuario normal.

2- la edicion de imagenes solo modiica el nombre, la descripcion y la palabra clave. y esa se modifica en la misma parte donde se modifica como admin, bajo la imagen en details.html

3- la edicion desde el admin es diferente, esa funcion es llamada desde la carpeta admin/images.php

saludos

75
Espaņol / Castellano / Re: Error y no se porque
« on: February 08, 2008, 01:51:05 AM »
hola

puede ser error del servidor, mandame un privado y te dare como buscar talvez no todas pero si algunas imagenes, dado que no se cuantas categorias tienes, pero algunas parece o aparecen vacias, otras si tienen imgenes y puedes bajarlas

saludos

Pages: 1 2 3 4 [5] 6 7 8 9 ... 32