Results 1 to 3 of 3

Thread: BASIC+PREMIUM+SPONSORED cat SELECTION?

  1. #1
    m.manea is offline Registered User
    Join Date
    Aug 2008
    Posts
    9

    Default BASIC+PREMIUM+SPONSORED cat SELECTION?

    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);
    }

  2. #2
    FSGDAG's Avatar
    FSGDAG is offline Moderator
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    This is a plugin that *should* work in IndexU 1.x. It was made for me by mpdaddy and worked very well in the earlier versions of 1.x

    I would test it thoroughly before implementing it on a live site.
    Attached Files Attached Files
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

  3. #3
    m.manea is offline Registered User
    Join Date
    Aug 2008
    Posts
    9

    Default

    thanks.. not work with 1.4.2

    from admin panel the plugin not installed, help me? thanks

Similar Threads

  1. Replies: 3
    Last Post: 10-26-2009, 09:48 PM
  2. change the way basic/premium/sponsor look
    By sarahashwell in forum INDEXU DELUXE v1.x
    Replies: 1
    Last Post: 06-09-2008, 12:00 AM
  3. Replies: 1
    Last Post: 11-16-2007, 11:22 AM
  4. Replies: 9
    Last Post: 02-05-2007, 07:02 AM
  5. Replies: 2
    Last Post: 01-30-2007, 12:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •