Javascript Enhancement for Deep Links

 Wednesday, November 14th, 2007
Mods Compatibility
IndexU 5.4.X
IndexU Deluxe
??

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 :

Content visible to member only. Please register or login first.

To :

Content visible to member only. Please register or login first.

2. Edit /themes/your_active_theme/add_form.html
Change :

Content visible to member only. Please register or login first.

To :

Content visible to member only. Please register or login first.

3. Edit /ajax.php
Change :

Content visible to member only. Please register or login first.

To :

Content visible to member only. Please register or login first.

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 :
javascript_enhancement_for_deep_links01.gif

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 :

Content visible to member only. Please register or login first.

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

4 Responses to “Javascript Enhancement for Deep Links”



  1. Wesley Says:

    Will this mod work with the Hide Payment on FREE Listing Mod?

    If yes, how do you combine the two onchange statements?

    Thanks.

  2. Wesley Says:

    Adding to my previous question, if you can combine the Mods, how do you combine the java script.

  3. Wesley Says:

    Disregard my previous posts. I got all three payment mods working together.

    Thanks!

  4. admin Says:

    Glad you can solve it on your own.
    Sorry for the delayed response, we're under heavy load at the moment.

Leave a Reply