• [Mod] Keywords and Description in validatesimage.php 2 0 5 1
Currently:  

Author Topic: [Mod] Keywords and Description in validatesimage.php  (Read 7719 times)

0 Members and 1 Guest are viewing this topic.

Offline clubbu

  • Newbie
  • *
  • Posts: 47
    • View Profile
[Mod] Keywords and Description in validatesimage.php
« 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
« Last Edit: July 21, 2011, 06:34:03 AM by Rembrandt »

Rembrandt

  • Guest
[Mod] Keywords and Description in validatesimage.php
« Reply #1 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