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 ... 32
46
Español / Castellano / Re: Carrito compra
« on: February 18, 2008, 08:30:25 AM »
hola

http://www.4homepages.de/forum/index.php?topic=5813.0

esta en dos idiomas utiliza el de ingles,

hasta pronto

47
Español / Castellano / Re: Cambio de colores
« on: February 18, 2008, 08:21:57 AM »
hola

busca en tu template el archivo header.html

en la parte de abajo donde empieza

Code: [Select]
<body bgcolor="#000000" text="FFFFFF" link="#FFFFFF" alink="FFFFFF" vlink="FFFFFF">
Aqui es donde modificas los colores tanto de enlaces como de texto, de enlaces visitados, links activos etc. creo que  es text el que debes de modificar, sino te daras cuenta al modificar uno por uno.

hasta pronto

48
Mods & Plugins (Requests & Discussions) / Re: last visite member
« on: February 17, 2008, 07:03:30 AM »
hi

work in localhost

49
Mods & Plugins (Requests & Discussions) / Re: last visite member
« on: February 16, 2008, 07:50:01 AM »
hi

you post date (« Reply #1 on: 14-02-2008, 05:08:52 ») The modification was performed perfectly with all five steps. Only that it has no results, entered as a user entered as evidence after admin revisit the user profile trial and has no notification of when was the last time you edit or visit your profile does not date

50
Mods & Plugins (Requests & Discussions) / Re: last visite member
« on: February 16, 2008, 04:16:17 AM »
hi

Look, the error of the DB or sql, salio to make changes in the files that I indicastes In includes / functions.php file, In includes / db_field_definitions.php file, In member.php file, In lang / main.php file , and that mistake member_profile.html me salio in top.php because it is not, when I put you indicated to me the error in top.php of SQL, we indicated that if it was missing create the table on the basis of data. After modificastes and agregastes step five, once we have the table disappeared in the judgement error sql. But even so it does not show results in the file member_profile.html, modification was made in a new gallery, without further modification.

this is you step 5

http://www.imagehosting.com/out.php/i1580919_dbcreate.jpg , add this in Db

NOTE error appeared before the added step 5

i see

51
@ Toso,

... make two lists ... in page_header.php ... for example ...
1. woman-list
Code: [Select]
$last_action_user_list_woman = "";
$sql = "SELECT user_name, user_id, user_gender, user_lastaction FROM ".USERS_TABLE."
        WHERE user_level >= '".GUEST."' AND user_gender == 'w'
        ORDER BY user_lastaction DESC
        LIMIT 5";
...
$last_action_user_list_woman = ...
...
unset($last_action_user_list_woman);

2. man-list
Code: [Select]
$last_action_user_list_man = "";
$sql = "SELECT user_name, user_id, user_gender, user_lastaction FROM ".USERS_TABLE."
        WHERE user_level >= '".GUEST."' AND user_gender == 'm'
        ORDER BY user_lastaction DESC
        LIMIT 5";
...
$last_action_user_list_man = ...
...
unset($last_action_user_list_man);

3. in user_last_action_box.html use for the two lists ..
Code: [Select]
{last_action_user_list_woman}
{last_action_user_list_man}





where add this line in MOD code

thanks

52
hi

work fine on 1.7.6



i see

53
Mods & Plugins (Requests & Discussions) / Re: last visite member
« on: February 15, 2008, 06:43:03 AM »
hi

yes add step 5 and nothing

data base



member_profile.html




i see

the install is clean no more MOD


54
Mods & Plugins (Requests & Discussions) / Re: last visite member
« on: February 15, 2008, 04:42:32 AM »
hi

Because already modify and create the entire table in the database and nothing, I did not see anything, nor visitandolo offline or online, I created a user test to check and nothing without results.

thank

55
hi

how cant modfy this MOD for work on 1.7.6 4images gallery

thanks

56
Mods & Plugins (Requests & Discussions) / Re: last visite member
« on: February 14, 2008, 09:04:38 PM »
hi

i have this problem in top.php because for ?

Quote
DB Error: Bad SQL Query: SELECT i.image_id, i.user_id, i.cat_id, i.image_name, i.image_rating, i.image_votes, c.cat_name, u.user_name , u.user_hobbies, u.last_time_profile_visited FROM (4images_images i, 4images_categories c) LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_active = 1 AND i.cat_id NOT IN (0) AND i.cat_id = c.cat_id ORDER BY i.image_votes DESC, i.image_name ASC LIMIT 10
Unknown column 'u.last_time_profile_visited' in 'field list'
 

i need create table on DB?

57
Mods & Plugins (Requests & Discussions) / Re: last visite member
« on: February 14, 2008, 08:32:00 PM »
Code: [Select]
[code][quote author=thunderstrike link=topic=20516.msg111620#msg111620 date=1202990932]
// Step 1

In includes/functions.php file,

add in top ?>:

[code]
if (!function_exists('update_last_profile_visited')) {
function update_last_profile_visited($user_id, $profile_visited) {
global $site_db, $config;

$result = $site_db->query("UPDATE " . USERS_TABLE . " SET " . $profile_visited . " = '" . time() . "' WHERE " . get_user_table_field("", "user_id") . " = " . $user_id);
if ($result) {

$sql = "

SELECT " . $profile_visited . "
FROM " . USERS_TABLE . "
WHERE " . get_user_table_field("", "user_id") . " = " . $user_id;

$date_row = $site_db->query_firstrow($sql);
if (isset($date_row[$profile_visited]) && !empty($date_row[$profile_visited])) {
if (function_exists('get_universal_field_date')) {
return get_universal_field_date($profile_visited);
} else {
return format_date($config['date_format'] . " " . $config['time_format'], $profile_visited);
}
}
}
}
}

// Step 2

In includes/db_field_definitions.php file,

add in top ?>:

Code: [Select]
$additional_user_fields['last_time_profile_visited'] = array($lang['last_time_profile_visited'], "text", 0);

// Step 3

In member.php file,

find:

Code: [Select]
"user_last_action" => (isset($user_row['user_lastaction'])) ? format_date($config['date_format']." ".$config['time_format'], $user_row['user_lastaction']) : REPLACE_EMPTY,

add after:

Code: [Select]
"last_time_profile_visited" => (isset($user_row['last_time_profile_visited']) && !empty($user_row['last_time_profile_visited']) && function_exists('update_last_profile_visited')) ? update_last_profile_visited($user_row['user_id'], $user_row['last_time_profile_visited']) : "",
"lang_last_time_profile_visited => $lang['last_time_profile_visited'],

// Step 3

In lang/main.php file,

add in top ?>:

Code: [Select]
$lang['last_time_profile_visited'] = "Last time profile visited";

// Step 4

In templates/your_template/member_profile.html file, use: {if last_time_profile_visited}{lang_last_time_profile_visited}{last_time_profile_visited}{endif last_time_profile_visited} where you like. ;)

Finish.
[/quote]

Quote
hi on this line

Code: [Select]
"last_time_profile_visited" => (isset($user_row['last_time_profile_visited']) && !empty($user_row['last_time_profile_visited']) && function_exists('update_last_profile_visited')) ? update_last_profile_visited($user_row['user_id'], $user_row['last_time_profile_visited']) : "",
"lang_last_time_profile_visited => $lang['last_time_profile_visited'],

modify to  this

[/code]"last_time_profile_visited" => (isset($user_row['last_time_profile_visited']) && !empty($user_row['last_time_profile_visited']) && function_exists('update_last_profile_visited')) ? update_last_profile_visited($user_row['user_id'], $user_row['last_time_profile_visited']) : "",
"lang_last_time_profile_visited" => $lang['last_time_profile_visited'],
[/code]

only add this " here

"lang_last_time_profile_visited" => $lang['last_time_profile_visited'],

i see

58
Mods & Plugins (Requests & Discussions) / last visite member
« on: February 14, 2008, 10:06:39 AM »

hi

It is possible to add the day or date of the last visit of the user in the user profile or the day that update your profile

thanks

59
Español / Castellano / Re: Acceder a install.php
« on: February 14, 2008, 08:13:09 AM »
hola

cual es el objeto de cambiar las instrucciones del archivo install.php, y si puedes cambiar los datos abriendolo con un editor de texto como Notepad, Editplus etc, el archivo install.php solo sirve para instalar la galeria, despues se elimina

saludos

60
Mods & Plugins (Requests & Discussions) / Re: Add new field top.php
« on: February 14, 2008, 05:28:20 AM »
hi

try with you changer in top.php and change in member.php for this

http://translate.google.com/translate?u=http%3A%2F%2Fwww.4homepages.de%2Fforum%2Findex.php%3Ftopic%3D15362.msg82440%23msg82440&langpair=es%7Cen&hl=es&ie=UTF-8

All changes and had done before, and had added new fields to top.php, but were fields such as those in  {image_description} , {image_keyword} , {user_email}, {user_homepages} fields that already exist in the gallery, but not new, why they need help in order to view results in top.php

You comment as I went once made changes

i see

edit details.php ****SOLVED*****


 change in top.php

Quote
$cat_id_sql = get_auth_cat_sql("auth_viewcat", "NOTIN");
$additional_sql = "";
if (isset($additional_image_fields) && is_array($additional_image_fields) && !empty($additional_image_fields)) {
   foreach ($additional_image_fields as $key => $val) {
      $additional_sql .= ", i." . $key;
   }
}
if (isset($additional_user_fields) && is_array($additional_user_fields) && !empty($additional_user_fields)) {
   foreach ($additional_user_fields as $key => $val) {
      $additional_sql .= ", u." . $key;
   }
}

// Rating

Quote
// 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") .$additional_sql ." ".get_user_table_field(", u.", "user_email")."  ".get_user_table_field(", u.", "user_homepage").", i.image_thumb_file
        FROM (".IMAGES_TABLE." i, ".CATEGORIES_TABLE." c)
        LEFT JOIN ".USERS_TABLE." u ON (".get_user_table_field("u.", "user_id")." = i.user_id)
        WHERE i.image_active = 1 AND i.cat_id NOT IN ($cat_id_sql) AND i.cat_id = c.cat_id
        $cat_match_sql
        ORDER BY i.image_votes DESC, i.image_name ASC
        LIMIT 10";

Quote
$register_array['image_votes_thumb_'.$i] = "<a href=\"".$site_sess->url(ROOT_PATH."details.php?".URL_IMAGE_ID."=".$top_list[$i]['image_id'])."\"><img class=\"pic\" src=\"data/thumbnails/".$top_list[$i]['cat_id']."/".$top_list[$i]['image_thumb_file']."\" width=\"150\" height=\"170\" border=\"0\" alt=\"\" />";
   $register_array['image_votes_hobbies_'.$i] .format_text($top_list[$i]['user_hobbies']);

   if (isset($additional_image_fields) && is_array($additional_image_fields) && !empty($additional_image_fields)) {   
    foreach ($additional_image_fields as $key => $val) {
      $register_array['image_votes'.$key_.$i] = (!empty($top_list[$i][$key])) ? format_text(trim($top_list[$i][$key]), 1) : REPLACE_EMPTY;
      $register_array['lang_'.$key] = $val[0];
    }   
}
if (isset($additional_user_fields) && is_array($additional_user_fields) && !empty($additional_user_fields)) {   
    foreach ($additional_user_fields as $key => $val) {
      $register_array['image_votes'.$key_.$i] = (!empty($top_list[$i][$key])) ? format_text(trim($top_list[$i][$key]), 1) : REPLACE_EMPTY;
      $register_array['lang_'.$key] = $val[0];
    }   
}

Quote
else {
    $register_array['image_votes_'.$i] = "--";
    $register_array['image_votes_user_'.$i] = "--";
    $register_array['image_votes_cat_'.$i] = "--";
   $register_array['image_votes_showemail_'.$i] = "--";
   $register_array['image_votes_showhomepage_'.$i] = "--";
   $register_array['image_votes_hobbies_'.$i] = "--";
    $register_array['image_votes_number_'.$i] = "--";
    $register_array['image_votes_thumb_'.$i] = "--";
  }
}

modify 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;&nbsp;&nbsp;{image_votes_showemail_1}<br />
                            {lang_homepage}&nbsp;{if user_homepage}{image_votes_showhomepage_1}{endif user_homepage}<br />
                            {lang_user_hobbies}&nbsp;{image_votes_hobbies_1}</td>
                          </tr>

What is wrong

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