4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Releases & Support) => Topic started by: clubbu on July 14, 2011, 09:31:36 AM

Title: [Mod] Keywords and Description in validatesimage.php
Post by: clubbu on July 14, 2011, 09:31:36 AM
Good morning,
i have a question for you.

It possibile in this page validatesimages.php view more object than "Name image" "categories" "username" "date" "option"?

I would like to see the keywords
Title: [Mod] Keywords and Description in validatesimage.php
Post by: Rembrandt on July 21, 2011, 06:30:05 AM
Hi!

1.)  search in admin/validateimage.php:

echo "<td class=\"tableseparator\">".$lang['validate']."</td>\n<td class=\"tableseparator\">".$lang['delete']."</td>\n<td class=\"tableseparator\"> </td>\n<td class=\"tableseparator\">".$lang['field_image_name']."</td>\n<td class=\"tableseparator\">".$lang['field_category']."</td>\n<td class=\"tableseparator\">".$lang['field_username']."</td>\n<td class=\"tableseparator\">".$lang['field_date']."</td>\n<td class=\"tableseparator\">".$lang['options']."</td>\n</tr>\n";

replace:

echo "<td class=\"tableseparator\">".$lang['validate']."</td>\n<td class=\"tableseparator\">".$lang['delete']."</td>\n<td class=\"tableseparator\"> </td>\n<td class=\"tableseparator\">".$lang['field_image_name']."</td>\n <td class=\"tableseparator\">".$lang['field_keywords']."</td>\n<td class=\"tableseparator\">".$lang['field_description']."</td>\n<td class=\"tableseparator\">".$lang['field_category']."</td>\n<td class=\"tableseparator\">".$lang['field_username']."</td>\n<td class=\"tableseparator\">".$lang['field_date']."</td>\n<td class=\"tableseparator\">".$lang['options']."</td>\n</tr>\n";


1.2) search:

$sql = "SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_date, i.image_media_file".get_user_table_field(", u.", "user_name")."

replace:

$sql = "SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_keywords, i.image_description, i.image_date, i.image_media_file".get_user_table_field(", u.", "user_name")."


1.3) search:

echo "<td><a href=\"".$site_sess->url(ROOT_PATH."categories.php?".URL_CAT_ID."=".$image_row['cat_id'])."\" target=\"_blank\">".format_text($cat_cache[$image_row['cat_id']]['cat_name'], 2)."</a></td>\n";

insert above:

echo "<td>".$image_row['image_keywords']."</td>";
echo "<td>".$image_row['image_description']."</td>";


now they can also see "image keywords" and "image description"

mfg Andi