Javascript Enhancement for Deep Links
|
||||||||
A few months ago we release a mods on how to build deep links with IndexU. Today we release a small javascript enhancement for deep links, as requested by one of our member here. With this mods now you can enable/disable any number of deep links based on the listing type that user choose, it is quite flexible.
For example, we create the following rule for each listing type :
- Basic Listing : no deep links available
- Premium Listing : only 1 deep links available
- Sponsored Listing : all 3 deep links available
So here is the changes needed :
1. Edit /themes/your_active_theme/add_form.html
Change :
To :
2. Edit /themes/your_active_theme/add_form.html
Change :
To :
3. Edit /ajax.php
Change :
To :
That's it.
Please notes that the code is specific for the above rule and the deep links is build based on our previous article. If you're using different rule or using different variable name for "deep links", simply adjust the following javascript variables :
- enable_basic
- enable_premium
- enable_sponsored
- disable_basic
- disable_premium
- disable_sponsored
The adjustment is quite simple, we hope you do not find difficulties on how to do this.
Ok, here is the screenshot :

Another thing to add, you'll also need to adjust your detail_link.html to display the deep links properly. So based on the above rule, your detail_link.html should contain something like this :
Deep link 1 is for premium and sponsored
Deep link 2 and 3 is for sponsored only
We hope this mods will be useful for you.
| Related Mods |
| - Deep Link Mods |



July 5th, 2008 at 12:38 pm
Will this mod work with the Hide Payment on FREE Listing Mod?
If yes, how do you combine the two onchange statements?
Thanks.
July 6th, 2008 at 11:15 pm
Adding to my previous question, if you can combine the Mods, how do you combine the java script.
July 9th, 2008 at 2:30 am
Disregard my previous posts. I got all three payment mods working together.
Thanks!
July 9th, 2008 at 11:37 pm
Glad you can solve it on your own.
Sorry for the delayed response, we're under heavy load at the moment.