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-8All 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
$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
// 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";
$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];
}
}
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
<tr>
<td valign="top" class="row1" width="22%">{image_votes_thumb_1}</td>
<td valign="top" class="row1" width="76%">{lang_user_name} {image_votes_user_1}<br />
{lang_votes} {image_votes_number_1}<br />
{lang_category} {image_votes_cat_1}<br />
{lang_email} {image_votes_showemail_1}<br />
{lang_homepage} {if user_homepage}{image_votes_showhomepage_1}{endif user_homepage}<br />
{lang_user_hobbies} {image_votes_hobbies_1}</td>
</tr>
What is wrong