March 30th, 2007eSyndicat 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:
{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
<BODY leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">
REPLACE BY
<BODY leftMargin=0 topMargin=0 marginheight="0" marginwidth="0"
onload="p3()">
in suggest-link.tpl
1. FIND
{include file="header.tpl"}
REPLACE BY
{include file="header-suggest.tpl"}
2. FIND
<input type="radio" name="plan" value="{$plan.id}" id="p{$plan.id}"
{if $smarty.foreach.plans_dsp.iteration eq 1} checked{/if}/>
REPLACE BY
<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.
6 Responses to “eSyndicat deeplinks mod - hide fields”
Leave a Reply
You must be logged in to post a comment.

July 2nd, 2007 at 3:05 am
Is this for current version of Pro License? If so…I cannot find:
In the new template page: header-suggest.tpl
Would be great if i could get this mod to work,
Thanks, Martin.
July 2nd, 2007 at 3:07 am
Dang! it did not produce the code on my previous comment:
This line of code is the culprit for me.
July 2nd, 2007 at 3:08 am
Its instruction number 2 on your list. Thanks, Martin.
July 2nd, 2007 at 5:05 am
the code for the radio button should be in suggest-link.tpl not in header-suggest.tpl.
July 2nd, 2007 at 12:21 pm
I meant the first instruction number 2. The “Body” css.
I’m using the 2.1.3 pro version and this line of code is not there.
I’m sorry to be cluttering up your comments section. Maybe I’m just being incredibly thick.
July 2nd, 2007 at 4:45 pm
Yes Martin I am also using version 2.1.3
just add
onload="p3()"to you body line before>.