Search with only selected prefix ids
zigi Offline
Junior Member
**
Posts: 6
Joined: May 2011
Post: #3
RE: Search with only selected prefix ids
Thanks for taking time looking at my question.

In the search template its referred to $prefixselect (functions.php - as you said)

Quote:}
$prefixselect = "";
if($db->num_rows($query) > 0)
{
$multipleselect = "";
if($multiple != 0)
{
$multipleselect = " multiple=\"multiple\" size=\"5\"";
}
$prefixselect = "<select name=\"threadprefix\"{$multipleselect}>\n";
if($multiple == 1)
{
$any_selected = "";
if($selected_pid == 'any')
{
$any_selected = " selected=\"selected\"";
}
$prefixselect .= "<option value=\"any\"".$any_selected.">".$lang->any_prefix."</option>\n";
}
$default_selected = "";
if((intval($selected_pid) == 0) && $selected_pid != 'any')
{
$default_selected = " selected=\"selected\"";
}
$prefixselect .= "<option value=\"0\"".$default_selected.">".$lang->no_prefix."</option>\n";
while($prefix = $db->fetch_array($query))
{
$selected = "";
if($prefix['pid'] == $selected_pid)
{
$selected = " selected=\"selected\"";
}
$prefixselect .= "<option value=\"".$prefix['pid']."\"".$selected.">".htmlspecialchars_uni($prefix['prefix'])."</option>\n";
}
$prefixselect .= "</select>\n&nbsp;";
}
return $prefixselect;

Ive made all variants that i could but or it has no needed effect or the search.php stoped working at all Tongue.
Im sorry but i just cant read the code properly, please help me.
05-15-2011 07:16 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: Search with only selected prefix ids - zigi - 05-15-2011 07:16 AM

 Standard Tools
Forum Jump: