Hello,
I would want that when a new site becomes part us it is the possibility:
nr.1 category for BASIC (only cat1)
nr.2 categories for PREMIUM (only cat1+cat2)
nr.3 categories for SPONSORED (only cat1+cat2+cat3)
Currently all can be selected the 3 categories are for basic, premium, sponsored. I have the version of indexu 1.4.2.
It is possible to modify the management ajax (add.php)?
// get category path
$category_obj = new clsCategory;
$category_obj->table_name = "idx_category";
$category_obj->link_table_name = "idx_link";
$category_obj->separator = $category_separator;
$cat = (!$cat) ? -1 : $cat;
$category = $category_obj->DisplayCategoryListBox($cat);
$category = str_replace("<option value=\"\">", "<option value=\"0\">", $category);
// additional category
$add_cat1 = (!$add_cat1) ? -1 : $add_cat1;
$add_cat1 = $category_obj->DisplayCategoryListBox($add_cat1);
$add_cat1 = str_replace("<option value=\"\">", "<option value=\"0\">", $add_cat1);
$add_cat2 = (!$add_cat2) ? -1 : $add_cat2;
$add_cat2 = $category_obj->DisplayCategoryListBox($add_cat2);
$add_cat2 = str_replace("<option value=\"\">", "<option value=\"0\">", $add_cat2);
if (!$enable_category_ajax) {
$category = str_replace("<select name=\"cat\">", "<select name=\"cat\" onchange=\"onchangeCategories('cat','add_cat1','ad d_cat1,add_cat2'); FetchPricing(); return false\">",
$category);
$add_cat1 = str_replace("<select name=\"cat\">", "<select name=\"add_cat1\" onchange=\"onchangeCategories('add_cat1','add_cat2 ','add_cat2'); FetchPricing(); return false\">",
$add_cat1);
$add_cat2 = str_replace("<select name=\"cat\">", "<select name=\"add_cat2\" onchange=\"FetchPricing(); return false\">",
$add_cat2);
}
else {
$category = str_replace("<select name=\"cat\">", "<select name=\"cat\" onchange=\"onchangeCategories('cat','add_cat1','ad d_cat1,add_cat2'); FetchPricing(); FetchSubCategory(this.options[this.selectedIndex].value, 'cat', 'cat_div'); return false\">",
$category);
$add_cat1 = str_replace("<select name=\"cat\">", "<select name=\"add_cat1\" onchange=\"onchangeCategories('add_cat1','add_cat2 ','add_cat2'); FetchPricing(); FetchSubCategory(this.options[this.selectedIndex].value, 'add_cat1', 'add_cat1_div'); return false\">",
$add_cat1);
$add_cat2 = str_replace("<select name=\"cat\">", "<select name=\"add_cat2\" onchange=\"FetchPricing(); FetchSubCategory(this.options[this.selectedIndex].value, 'add_cat2', 'add_cat2_div'); return false\">",
$add_cat2);
}


LinkBack URL
About LinkBacks
