In the block of all the ads of the main page of ads I would like that the city appeared.
I have achieved this by adding these lines in the files:
In BxAdsSearchUnit.php
Line 228 add--->$sAdCiudad = db_value("SELECT `City` FROM `bx_ads_main` WHERE `ID` = '$iAdID' LIMIT 1");
Line 273 add--->'ad_ciudad' => $sAdCiudad,
In Unit_ads.html Add---> __ad_ciudad__
With this it works fine, but I have to do a mysql query for each ad. Is there no variable already defined for city without having to make a new query?