Add this line to "includes/db_field_definitions.php":
$additional_image_fields['honored'] = array($lang['honored'], "radio", 1);
Then add this line to your language files (main.php):
$lang['honored'] = "Honored:";
create an new field (honored) in the 4images_images table...
ALTER TABLE 4images_images ADD honored TINYINT(1) DEFAULT '0' NOT NULL;
Create a new column in the table
4images_wordmatch called
honored_matchALTER TABLE 4images_wordmatch ADD honored_match TINYINT(1) DEFAULT '0' NOT NULL;
Open
includes/search_utils.php and find this part
$search_match_fields = array(
"image_name" => "name_match",
"image_description" => "desc_match",
"image_keywords" => "keys_match"
);
add a new line to the array:
$search_match_fields = array(
"image_name" => "name_match",
"image_description" => "desc_match",
"image_keywords" => "keys_match",
"honored" => "honored_match"
);
Note the comma added behind the third line!
Go in the control panel and edit one image, in the bottom of the site you will find a new radio button...
Rebuild the search index.
You can use the plugin from
here.
For the List on the main page i will give you the next hint when these modifications will work...
I hope you are now enable to use .../search.php?honor=1
GOOD SPEED!