c'est un peu laborieux, et il y aura surement d'autres fichiers où il faudra commenter ou enlever des bouts de code
Comme toujours faire une sauvegarde avant ce genre de modifications- Pour enlever
prix et
son menu déroulant (ferme, maximum, négociable) etc..., et enlever aussi
usureTu commentes les lignes pour les désactiver (en php en début de code tu mets /* et en fin de code *\ , en html au début <!-- et à la fin -->)
dans le fichier modules/adslight/add.phpvers la ligne 319
/// Etat de l'objet
/*$usure_form= new XoopsFormSelect(_ADSLIGHT_TYPE_USURE, "typeusure", "", "1");
while (list($nom_usure) = $xoopsDB->fetchRow($result3)) {
$usure_form->addOption($nom_usure, $nom_usure);
}*/
vers la ligne 329
/*$form->addElement(new XoopsFormText(_ADSLIGHT_PRICE2 , "price", 40, 50, ""), true);
$sel_form= new XoopsFormSelect(_ADSLIGHT_PRICETYPE, "typeprice", "", "1");
while (list($nom_price) = $xoopsDB->fetchRow($result1)) {
$sel_form->addOption($nom_price, $nom_price);
}
$form->addElement($sel_form);*/
dans le fichier modules/adslight/search.phpvers la ligne 230
/*echo "".$xoopsModuleConfig["adslight_money"]."
".$myts->htmlSpecialChars($results[$i]['price'])."</a> ".$myts->htmlSpecialChars($results[$i]['typeprice'])."</a>";*/
vers la ligne 323
/*echo "".$xoopsModuleConfig["adslight_money"]."
".$myts->htmlSpecialChars($results[$i]['price'])."</a> ".$myts->htmlSpecialChars($results[$i]['typeprice'])."</a>";*/
dans le fichier modules/adslight/modify.phpvers la ligne 239
/*echo "<tr><td class="head">"._ADSLIGHT_PRICE2." </td><td class="head">". $xoopsModuleConfig["adslight_money"]."<input type="text" name="price" size="20" value="$price" />";
$result3 = $xoopsDB->query("select nom_price from ".$xoopsDB->prefix("adslight_price")." order by id_price");
echo " <select name="typeprice"><option value="$typeprice">$typeprice</option>";
while(list($nom_price) = $xoopsDB->fetchRow($result3)) {
echo "<option value="$nom_price">$nom_price</option>";
}*/
vers la ligne 283
/*echo "<tr>
<td class="head">"._ADSLIGHT_TYPE_USURE." </td><td class="head"><select name="typeusure">";
$result6=$xoopsDB->query("select nom_usure from ".$xoopsDB->prefix("adslight_usure")." order by nom_usure");
while(list($nom_usure) = $xoopsDB->fetchRow($result6)) {
$sel = "";
if ($nom_usure == $typeusure) {
$sel = "selected";
}
echo "<option value="$nom_usure" $sel>$nom_usure</option>";
}
echo "</select></td></tr>";*/
dans le fichier modules/adslight/admin/modify_ads.phpvers la ligne 221
/*echo "<tr class='head' border='1'>
<td>"._AM_ADSLIGHT_TYPE_USURE." </td><td><select name="typeusure">";
$result6=$xoopsDB->query("select nom_usure from ".$xoopsDB->prefix("adslight_usure")." order by nom_usure");
while(list($nom_usure) = $xoopsDB->fetchRow($result6)) {
$sel = "";
if ($nom_usure == $typeusure) {
$sel = "selected";
}
echo "<option value="$nom_usure" $sel>$nom_usure</option>";
}
echo "</select></td></tr>";
echo "<tr class='head' border='1'><td>"._AM_ADSLIGHT_PRICE2." </td><td><input type="text" name="price" size="20" value="$price"> ".$xoopsModuleConfig["adslight_money"]."";
$result = $xoopsDB->query("select nom_price from ".$xoopsDB->prefix("adslight_price")." order by nom_price");
echo " <select name="typeprice"><option value="$typeprice">$typeprice</option>";
while(list($nom_price) = $xoopsDB->fetchRow($result)) {
$nom_price = $myts->htmlSpecialChars($nom_price);
echo "<option value="$nom_price">$nom_price</option>";
}
echo "</select></td>";*/
dans le fichier modules/adslight/admin/view_ads.phpvers la ligne 307
/*echo "<tr class='head' border='1'>
<td>"._AM_ADSLIGHT_TYPE_USURE." </td><td><select name="typeusure">";
$result6=$xoopsDB->query("select nom_usure from ".$xoopsDB->prefix("adslight_usure")." order by nom_usure");
while(list($nom_usure) = $xoopsDB->fetchRow($result6)) {
$sel = "";
if ($nom_usure == $typeusure) {
$sel = "selected";
}
echo "<option value="$nom_usure" $sel>$nom_usure</option>";
}
echo "</select></td></tr>";
echo "<tr class='head' border='1'><td>"._AM_ADSLIGHT_PRICE2." </td><td><input type="text" name="price" size="20" value="$price"> ".$xoopsModuleConfig["adslight_money"]."";
$result3 = $xoopsDB->query("select nom_price from ".$xoopsDB->prefix("adslight_price")." order by id_price");
echo " <select name="typeprice"><option value="$typeprice">$typeprice</option>";
while(list($nom_price) = $xoopsDB->fetchRow($result3)) {
echo "<option value="$nom_price">$nom_price</option>";
}
echo "</select></td></tr>";*/
dans le fichier modules/adslight/admin/validate_ads.phpvers la ligne 324
/*echo "<tr class='head' border='1'>
<td>"._AM_ADSLIGHT_TYPE_USURE." </td><td><select name="typeusure">";
$result6=$xoopsDB->query("select nom_usure from ".$xoopsDB->prefix("adslight_usure")." order by nom_usure");
while(list($nom_usure) = $xoopsDB->fetchRow($result6)) {
$sel = "";
if ($nom_usure == $typeusure) {
$sel = "selected";
}
echo "<option value="$nom_usure" $sel>$nom_usure</option>";
}
echo "</select></td></tr>";
echo "<tr class='head' border='1'><td>"._AM_ADSLIGHT_PRICE2." </td><td><input type="text" name="price" size="20" value="$price"> ".$xoopsModuleConfig["adslight_money"]."";
$result3 = $xoopsDB->query("select nom_price from ".$xoopsDB->prefix("adslight_price")." order by id_price");
echo " <select name="typeprice"><option value="$typeprice">$typeprice</option>";
while(list($nom_price) = $xoopsDB->fetchRow($result3)) {
echo "<option value="$nom_price">$nom_price</option>";
}
echo "</select></td></tr>";*/
vers la ligne 465
/*echo "<tr class='head' border='1'>
<td>"._AM_ADSLIGHT_TYPE_USURE." </td><td><select name="typeusure">";
$result6=$xoopsDB->query("select nom_usure from ".$xoopsDB->prefix("adslight_usure")." order by nom_usure");
while(list($nom_usure) = $xoopsDB->fetchRow($result6)) {
$sel = "";
if ($nom_usure == $typeusure) {
$sel = "selected";
}
echo "<option value="$nom_usure" $sel>$nom_usure</option>";
}
echo "</select></td></tr>";
echo "<tr class='head' border='1'><td>"._AM_ADSLIGHT_PRICE2." </td><td><input type="text" name="price" size="20" value="$price"> ".$xoopsModuleConfig["adslight_money"]."";
$result = $xoopsDB->query("select nom_price from ".$xoopsDB->prefix("adslight_price")." order by nom_price");
echo " <select name="typeprice"><option value="$typeprice">$typeprice</option>";
while(list($nom_price) = $xoopsDB->fetchRow($result)) {
$nom_price = $myts->htmlSpecialChars($nom_price);
echo "<option value="$nom_price">$nom_price</option>";
}
echo "</select></td>";*/
dans le fichier modules/adslight/templates/adslight_index.htmlvers la ligne 179
<!--<{if $item.price!=""}><b><{$item.price}></b> - <{$item.price_typeprice}>
<{else}>
<{/if}><br />-->
vers la ligne209
<!--<{if $item.price!=""}><b><{$item.price}></b> - <{$item.price_typeprice}>
<{else}>
<{/if}><br />-->
dans le fichier modules/adslight/templates/adslight_item.htmlvers la ligne 132
<!--<{$price_price}>
</b></font><font color="#DE090E"> - <{$price_typeprice}></font>-->
vers la ligne 136
<!-- » <{$usure_typeusure}>-->