September 14th, 2007Templates changes for the phpLD deep links MOD
After installing the 1 step deep links mod, you need to modify the following template files:
/templates/yourtemplate/submit.tpl
/templates/yourtemplate/detail.tpl
/templates/yourtemplate/header.tpl
Template coders can apply these changes to their templates and offer deep links ready templates.
1. edit header.tpl
Right before </head>, add
{* Deep Links by rakCha http://blog.rakcha.com *}
<script type="text/javascript"
src="{$smarty.const.DOC_ROOT}/javascripts/deeplinks.js"></script>
2. edit.submit.tpl
FIND
{if $price.featured}
ABOVE that, ADD
{if $price.featured_adv}
<tr><td><input type="radio" name="LINK_TYPE" value="featured_adv"
{if $LINK_TYPE eq 'featured_adv'}checked="true"{/if}
onclick="featured();"; >
Featured links +
</td>
<td>{$smarty.const.HTML_CURRENCY_CODE}{$price.featured_adv}
</td>
</tr>
{/if}
FIND
{if $price.normal gt 0}
ABOVE that, ADD
{if $price.normal_adv gt 0}
<tr>
<td><input type="radio" name="LINK_TYPE" value="normal_adv"
{if $LINK_TYPE eq 'normal_adv'}checked="true"{/if} onclick="regular();"; >
{l}Regular links +{/l}
</td>
<td>{$smarty.const.HTML_CURRENCY_CODE}{$price.normal_adv}
</td>
</tr>
{/if}
FIND:
<input type="radio" name="LINK_TYPE" value="featured"
{if $LINK_TYPE eq 'featured'}checked="true"{/if}>
REPLACE BY:
<input type="radio" name="LINK_TYPE" value="featured"
{if $LINK_TYPE eq 'featured'}checked="true"{/if}
onclick="no_deeplinks();"; >
FIND:
<input type="radio" name="LINK_TYPE" value="normal"
{if $LINK_TYPE eq 'normal'}checked="true"{/if}>
REPLACE BY:
<input type="radio" name="LINK_TYPE" value="normal"
{if $LINK_TYPE eq 'normal'}checked="true"{/if}
onclick="no_deeplinks();"; >
There are 2 Instances of this, for free and paid regular links.
FIND:
<input type="radio" name="LINK_TYPE" value="reciprocal"
{if $LINK_TYPE eq 'reciprocal'}checked="true"{/if}>
REPLACE BY:
<input type="radio" name="LINK_TYPE" value="reciprocal"
{if $LINK_TYPE eq 'reciprocal'}checked="true"{/if}
onclick="no_deeplinks();"; >
FIND:
<tr>
<td class="label">{l}Description{/l}:</td>
ABOVE it, ADD:
<tr id="field1_title" style="display:none">
<td class="label">TITLE 1</td>
<td class="field"><input type="text" id="TITLE1"
name="TITLE1" value="{$TITLE1|escape|trim}"
size="40" maxlength="255" class="text"/></td>
</tr>
<tr id="field1_url" style="display:none">
<td class="label">URL 1</td>
<td class="field"><input type="text" id="URL1"
name="URL1" value="{$URL1|escape|trim}"
size="40" maxlength="255" class="text"/>
</td>
</tr>
<tr id="field2_title" style="display:none">
<td class="label">TITLE 2</td>
<td class="field"><input type="text" id="TITLE2"
name="TITLE2" value="{$TITLE2|escape|trim}"
size="40" maxlength="255" class="text"/></td>
</tr>
<tr id="field2_url" style="display:none">
<td class="label">URL 2</td>
<td class="field"><input type="text" id="URL2"
name="URL2" value="{$URL2|escape|trim}"
size="40" maxlength="255" class="text"/></td>
</tr>
<tr id="field3_title" style="display:none">
<td class="label">TITLE 3</td>
<td class="field"><input type="text" id="TITLE3"
name="TITLE3" value="{$TITLE3|escape|trim}"
size="40" maxlength="255" class="text"/></td>
</tr>
<tr id="field3_url" style="display:none">
<td class="label">URL 3</td>
<td class="field"><input type="text" id="URL3"
name="URL3" value="{$URL3|escape|trim}"
size="40" maxlength="255" class="text"/></td>
</tr>
<tr id="field4_title" style="display:none">
<td class="label">TITLE 4</td>
<td class="field"><input type="text" id="TITLE4"
name="TITLE4" value="{$TITLE4|escape|trim}"
size="40" maxlength="255" class="text"/></td>
</tr>
<tr id="field4_url" style="display:none">
<td class="label">URL 4</td>
<td class="field"><input type="text" id="URL4"
name="URL4" value="{$URL4|escape|trim}"
size="40" maxlength="255" class="text"/></td>
</tr>
<tr id="field5_title" style="display:none">
<td class="label">TITLE 5</td>
<td class="field"><input type="text" id="TITLE5"
name="TITLE5" value="{$TITLE5|escape|trim}"
size="40" maxlength="255" class="text"/></td>
</tr>
<tr id="field5_url" style="display:none">
<td class="label">URL 5</td>
<td class="field"><input type="text" id="URL5"
name="URL5" value="{$URL5|escape|trim}"
size="40" maxlength="255" class="text"/></td>
</tr>
3. in detail.tpl
FIND:
<tr>
<td class="label">{l}Description{/l}:</td>
<td class="smallDesc" align="left">
{$DESCRIPTION|escape|trim}</td>
</tr>
BELOW, ADD:
{if $TITLE1}
<tr>
<td class="label">{l}Quick Links:{/l}</td>
<td class="smallDesc" align="left">
<a href="{$URL1|escape|trim}">
{$TITLE1|escape|trim}</a>
<a href="{$URL2|escape|trim}">
{$TITLE2|escape|trim}</a>
<a href="{$URL3|escape|trim}">
{$TITLE3|escape|trim}</a>
<a href="{$URL4|escape|trim}">
{$TITLE4|escape|trim}</a>
<a href="{$URL5|escape|trim}">
{$TITLE5|escape|trim}</a>
</td>
</tr>
{/if}
3 Responses to “Templates changes for the phpLD deep links MOD”
Leave a Reply
You must be logged in to post a comment.


October 9th, 2007 at 10:38 am
Hi Admin,
I have made all the suggested changes, But still the mod is not completely not working on my site. The number of deeplinks (URL’s) on my page are not changing when I select the options. Can u please help me with this mod on my site.
Check out http://www.addlivelinks.com/submit.php
Please help… My MSN : admin@imagefilez.com
Amit
February 3rd, 2008 at 6:43 pm
I have the deeplinks mod installed on http://www.deeplinklisting.com and it works great. I figure that by now any bugs it may have had in the past, have been worked out. Thanks for the great mod…
December 17th, 2008 at 5:52 am
Hi,
i have installed deeplink mode & is very cool.
however, when i try to submit a deeplink listing on the patment page (next page) it show some error. listing is not saved.
i noticed that the payment amount is missing. it is not passing the deeplink payment to the next page.
here is the link: demo.coolseller.co.uk
can some one help..
thanks