Hack to add the link ID to link search page
While in the admin center, I wanted to be able to search the links for a specific link ID - hey, I'm an accountant, I like numbers!
First, add the following to link_search_form.html ( I put mine just before the Title section ):
<tr class=tbl_light>
<td>ID: </td>
<td width=280><input type=text size=10 name=link_id></td>
</tr>
Then in link_search.php, find the section like:
while($i<count($fields)) {
$field = $fields[$i];
global $$field;
if($field=='category_id' && !empty($cat))
$query .= "and $field = $cat ";
and right after it add:
// mod to add the link field
elseif($field=='link_id' && !empty($link_id))
$query .= "and $field = $link_id ";
Finally, you could add <%link_id%> to the link_view_rows.html if you wanted to actually see the ID print ( or just mouseover the [edit] hyperlink on the right ).
As I recall, that is all that needs to be done.
BTW, if you add something that will cause multiple pages you will need to adjust the line further down that reads:
$links_obj->more_param = "&pflag=search&title=$title&url=$url&description=$ description&cat=$cat&contact_name=$contact_name&em ail=$email".$custom_field_param;
esm
"The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."
.