Additional Category Limiter Mods
|
||||||||
This is another mods that requested by our member here. The purpose of this mods is to limit additional categories based on the link type that user choose. The mods built with simple javascript function and IndexU filter to perform some validation.
For example, we create the following rule for each listing type :
- Basic Listing : no additional categories available
- Premium Listing : only 1 additional categories available
- Sponsored Listing : all 2 additional categories available
Members can download this mods for FREE here (you’ll need to login first).
Here is the installation step :
- Unzip and upload the additonal-category-limiter-mods.zip file to the corresponding IndexU folder.
- Edit /themes/your_active_theme/add_form.html
Change :To :
- Edit /themes/your_active_theme/add_form.html
Change :To :
- Edit /ajax.php
Change :To :
- Edit /add.php
Change :To :
That's it.
Please notes that the code is specific for the above rule. If you want to use different rule then you'll need to adjust the following variables :
- $cat_1_policy (from filter.additional_category_limiter.php file)
- $cat_2_policy (from filter.additional_category_limiter.php file)
- enable_premium (from the javascript function above)
- enable_sponsored (from the javascript function above)
The adjustment is quite simple, we hope you do not find difficulties on how to do this.
Ok, here is the screenshot :


We hope this mods will be useful for you.


