Go Back   Themers Club : Computers , Mobiles and Web Development Themes > Webmaster forum > Scripts and Tools

Scripts and Tools Share your free scripts , tools , icons, fontz, screen savers , etc here.

Reply
 
Thread Tools Display Modes
  #1  
Old 08-27-2008, 09:56 AM
Spiral's Avatar
Spiral Spiral is offline
Super Moderator
 
Join Date: Apr 2008
Posts: 1,451
Rep Power: 18
Spiral is on a distinguished road
Default eSyndicat deeplinks mod - hide fields

If you have different sponsored plans in your eSyndicat directory and want to hide the fields for the extra deeplinks for a certain plan, with id 3 for example and show it for another plan with id 5, you should use this modification after installing the eSyndicat deep links mod.
In this example I assume that you are offering 3 deeplinks for featured listings (id 5) and none for regular ones (id 3). And that the names of the fields for deep links are (title1,url1),(title2,url2),(title3,url3).
Make a copy of header.tpl in the same template folder and call it header-suggest.tpl.
Now edit header-suggest.tpl:
1. Before </head> ADD:
Code:
{literal} <script language="JavaScript"> function setVisibility(id, visibility) { document.getElementById(id).style.display = visibility; } function p3(){ setVisibility('title1', 'none'); setVisibility('url1', 'none'); setVisibility('title2', 'none'); setVisibility('url2', 'none'); setVisibility('title3', 'none'); setVisibility('url3', 'none'); } function p5(){ setVisibility('title1', ''); setVisibility('url1', ''); setVisibility('title2', ''); setVisibility('url2', ''); setVisibility('title3', ''); setVisibility('url3', ''); } </script> {/literal}
2. FIND
Code:
<BODY leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">
REPLACE BY
Code:
<BODY leftMargin=0 topMargin=0 marginheight="0" marginwidth="0" onload="p3()">
in suggest-link.tpl
1. FIND
Code:
{include file="header.tpl"}
REPLACE BY
Code:
{include file="header-suggest.tpl"}
2. FIND
Code:
<input type="radio" name="plan" value="{$plan.id}" id="p{$plan.id}" {if $smarty.foreach.plans_dsp.iteration eq 1} checked{/if}/>
REPLACE BY
Code:
<input type="radio" name="plan" value="{$plan.id}" id="p{$plan.id}" {if $smarty.foreach.plans_dsp.iteration eq 1} checked{/if} {if $plan.id==3} onclick="p3();"; {elseif $plan.id==5} onclick="p5();";{/if}/>
This MOD was not tested but should work just fine. Please report any problems.
Reply With Quote
Reply

Bookmarks

Tags
deeplinks, esyndicat, mod


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 04:24 AM.


Powered by vBulletin® Version 3.7.6
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.