Author Topic: New fields searchable  (Read 2344 times)

0 Members and 1 Guest are viewing this topic.

Offline ascanio

  • Hero Member
  • *****
  • Posts: 569
    • View Profile
    • http://www.surfourspace.net
New fields searchable
« on: April 11, 2005, 12:47:39 AM »
I have add this line to "includes/db_field_definitions.php":

Code: [Select]
$additional_image_fields[user_city'] = array($lang['user_city'], "text", 1);
and this into (main.php):

Code: [Select]
$lang['user_city'] = "City:";
Let's say that there is one user that is from Rome how can I (the admin) or the users can search that in the advance search?

I want to put in search_form.html something like this:

Code: [Select]
<tr>
            <td valign="top" class="row2"><b>{lang_user_city}</b></td>
            <td class="row2" valign="top">
              <input type="text" name="search_user" size="40" value="{user_city}" class="input" />
            </td>
          </tr>

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)