Default value for Extra Fields
Currently running 68Classifieds v4.1.5 Developer Edition ... Purple Template
FYI .......
I was having trouble with the Extra Fields Drop-Down lists not showing the default value of "Search All" when searching categories that had Extra Drop-down Fields associated with them.
I think I found the solution. The fix is in the ajax.php file located in the root of your site. A little over half way down in the file, under the section that works with the "D" class of Extra Fields, you will see the following code .....
while($opt=$resultsets->fetch())
{
if($arow['sValue']==$opt['optValue']) $selected=" SELECTED";
$optdata.="<option value=\"".$opt['optValue']."\"".$selected.">".$opt['optValue']."</option>\n";
$selected="";
}
$optdata.="</select></p>";
################################################## #####
change the line that says .....
if($arow['sValue']==$opt['optValue']) $selected=" SELECTED";
to ......
if($arow['sValue']==$opt['optValue']) $selected="Search All";
################################################## #####
Seems to be the only code that needs changing. If I run accross more I will post it here. If anyone finds more, please post. Thanks.
.
__________________
MrGForce
Currently running 68Classifieds v4.1.5 Developer Edition ... Purple Template
Last edited by MrGForce; 02-20-2010 at 11:49 AM.
Reason: found the solution.
|