June 21st, 2007Green Valley
Green Valley is a beautiful widget-ready green theme with a little froggy on it. This theme is brought to you by enQuira and Clinke.
Author: Erik Gyepes
June 21st, 2007Green Apple 1.0
June 21st, 2007Feline
June 21st, 2007Digital Grass 1.0
June 21st, 2007PITSTOP
June 19th, 2007phpLinkBid Contextual Deep Links
Contextual deep links are links to internal pages of a site inserted within a paragraph. For more information you can check the same functionality for phpld:
phpld Contextual deeplinks
and for standard deep links:
phpld deeplinks
For standard deep links for phplb:
phplb deeplinks
phplb Contextual Deep Links:
1. create a file phplb_deeplinks.sql with the content:
ALTER TABLE `tbl_links` ADD `link_deep_url1` varchar(255) NULL;
ALTER TABLE `tbl_links` ADD `link_deep_url2` varchar(255) NULL;
ALTER TABLE `tbl_links` ADD `link_deep_url3` varchar(255) NULL;
ALTER TABLE `tbl_links` ADD `link_deep_title1` varchar(255) NULL;
ALTER TABLE `tbl_links` ADD `link_deep_title2` varchar(255) NULL;
ALTER TABLE `tbl_links` ADD `link_deep_title3` varchar(255) NULL;
ALTER TABLE `tbl_links` ADD `link_deep_description1` longtext NULL;
ALTER TABLE `tbl_links` ADD `link_deep_description2` longtext NULL;
ALTER TABLE `tbl_links` ADD `link_deep_description3` longtext NULL;
ALTER TABLE `tbl_links` ADD `link_deep_description4` longtext NULL;
Import this file in phpMyadmin to update the tbl_links structure.
2. Open link.tpl of your template
FIND:
<div class="link-date">
<div class="als-bid">${bid_amount}.00</div>
<br clear="all" />
</div>
AFTER it, ADD
<div class="link-date"><b>Quick Links</b>
{link_deep_description1}
<a href="{link_deep_url1}">{link_deep_title1}</a>
{link_deep_description2}
<a href="{link_deep_url2}">{link_deep_title2}</a>
{link_deep_description3}
<a href="{link_deep_url3}">{link_deep_title3}</a>
{link_deep_description4}
</div>
3. open buy.php
FIND:
$kForm->addText('Description Line 2', 'link_desc2', '',
$cfg->getVar('link_desc_max'), $cfg->getVar('link_desc_max'),
'onKeyUp="lpUpdate();"');
AFTER it, ADD
$kForm->addText('Description Part 1', 'link_deep_description1', '', 50, 255);
$kForm->addText('Title 1', 'link_deep_title1', '', 50, 255);
$kForm->addText('Deep Link 1', 'link_deep_url1', 'http://', 50, 255);
$kForm->addText('Description Part 2', 'link_deep_description2', '', 50, 255);
$kForm->addText('Title 2', 'link_deep_title2', '', 50, 255);
$kForm->addText('Deep Link 2', 'link_deep_url2', 'http://', 50, 255);
$kForm->addText('Description Part 3', 'link_deep_description3', '', 50, 255);
$kForm->addText('Title 3', 'link_deep_title3', '', 50, 255);
$kForm->addText('Deep Link 3', 'link_deep_url3', 'http://', 50, 255);
$kForm->addText('Description Part 4', 'link_deep_description4', '', 50, 255);
4. in the same file buy.php
FIND:
$kForm->addRule('link_bid', 'bid');
AFTER it, ADD
$kForm->addRule('link_deep_title1', 'title');
$kForm->addRule('link_deep_title2', 'title');
$kForm->addRule('link_deep_title3', 'title');
$kForm->addRule('link_deep_url1', 'url');
$kForm->addRule('link_deep_url2', 'url');
$kForm->addRule('link_deep_url3', 'url');
$kForm->addRule('link_deep_description1', 'desc');
$kForm->addRule('link_deep_description2', 'desc');
$kForm->addRule('link_deep_description3', 'desc');
$kForm->addRule('link_deep_description4', 'desc');
5. Finally to edit the deep links from the admin panel, open admin/links.php
FIND:
$kForm->addText('Description Line 2', 'link_desc2', '', 50, 50);
AFTER it, ADD
$kForm->addText('Description Part 1', 'link_deep_description1', '', 50, 255);
$kForm->addText('Title 1', 'link_deep_title1', '', 50, 255);
$kForm->addText('Deep Link 1', 'link_deep_url1', '', 50, 255);
$kForm->addText('Description Part 2', 'link_deep_description2', '', 50, 255);
$kForm->addText('Title 2', 'link_deep_title2', '', 50, 255);
$kForm->addText('Deep Link 2', 'link_deep_url2', '', 50, 255);
$kForm->addText('Description Part 3', 'link_deep_description3', '', 50, 255);
$kForm->addText('Title 3', 'link_deep_title3', '', 50, 255);
$kForm->addText('Deep Link 3', 'link_deep_url3', '', 50, 255);
$kForm->addText('Description Part 4', 'link_deep_description4', '', 50, 255);
Done!
If you liked this MOD, and want to show your appreciation, you can link back to
rakCha : http://www.rakcha.com
or
enQuira : http://www.enquira.com
June 19th, 2007phpLinkBid Deep links MOD
This mod is to add deep links for phplb based directories. If you are looking for the deep links mod for phpld use these tutorials:
phpld Contextual deeplinks
phpld deeplinks
phplb Deep Links:
1. create a file phplb_deeplinks.sql with the content:
ALTER TABLE `tbl_links` ADD `link_deep_url1` varchar(255) NULL;
ALTER TABLE `tbl_links` ADD `link_deep_url2` varchar(255) NULL;
ALTER TABLE `tbl_links` ADD `link_deep_url3` varchar(255) NULL;
ALTER TABLE `tbl_links` ADD `link_deep_title1` varchar(255) NULL;
ALTER TABLE `tbl_links` ADD `link_deep_title2` varchar(255) NULL;
ALTER TABLE `tbl_links` ADD `link_deep_title3` varchar(255) NULL;
Import this file in phpMyadmin to update the tbl_links structure.
2. Open link.tpl of your template
FIND:
<div class="link-date">
<div class="als-bid">${bid_amount}.00</div>
<br clear="all" />
</div>
AFTER it, ADD
<div class="link-date"><b>Quick Links</b>
<a href="{link_deep_url1}">{link_deep_title1}</a>
<a href="{link_deep_url2}">{link_deep_title2}</a>
<a href="{link_deep_url3}">{link_deep_title3}</a>
</div>
3. open buy.php
FIND:
$kForm->addText('Description Line 2', 'link_desc2', '',
$cfg->getVar('link_desc_max'), $cfg->getVar('link_desc_max'),
'onKeyUp="lpUpdate();"');
AFTER it, ADD
$kForm->addText('Title 1', 'link_deep_title1', '', 50, 255);
$kForm->addText('Deep Link 1', 'link_deep_url1', 'http://', 50, 255);
$kForm->addText('Title 2', 'link_deep_title2', '', 50, 255);
$kForm->addText('Deep Link 2', 'link_deep_url2', 'http://', 50, 255);
$kForm->addText('Title 3', 'link_deep_title3', '', 50, 255);
$kForm->addText('Deep Link 3', 'link_deep_url3', 'http://', 50, 255);
4. in the same file buy.php
FIND:
$kForm->addRule('link_bid', 'bid');
AFTER it, ADD
$kForm->addRule('link_deep_title1', 'title');
$kForm->addRule('link_deep_title2', 'title');
$kForm->addRule('link_deep_title3', 'title');
$kForm->addRule('link_deep_url1', 'url');
$kForm->addRule('link_deep_url2', 'url');
$kForm->addRule('link_deep_url3', 'url');
5. Finally to edit the deep links from the admin panel, open admin/links.php
FIND:
$kForm->addText('Description Line 2', 'link_desc2', '', 50, 50);
AFTER it, ADD
$kForm->addText('Title 1', 'link_deep_title1', '', 50, 255);
$kForm->addText('Deep Link 1', 'link_deep_url1', '', 50, 255);
$kForm->addText('Title 2', 'link_deep_title2', '', 50, 255);
$kForm->addText('Deep Link 2', 'link_deep_url2', '', 50, 255);
$kForm->addText('Title 3', 'link_deep_title3', '', 50, 255);
$kForm->addText('Deep Link 3', 'link_deep_url3', '', 50, 255);
Done!
If you liked this MOD, and want to show your appreciation, you can link back to
rakCha : http://www.rakcha.com
or
enQuira : http://www.enquira.com
June 18th, 2007phpld - Contextual Deep Links - Step 4
After installing the contextual deep links mod, we will now modify few admin template files to allow the preview/editing of contextual links from the admin panel.
Files to edit:
admin/dir_approve_links.php,
templates/Core/admin/link_details.tpl,
templates/Core/admin/dir_links_edit.tpl.
First in admin/dir_approve_links.php
FIND:
$columns = array ('TITLE' => _L('Title'),
'URL' => _L('URL'),
'DESCRIPTION' => _L('Description'),
'CATEGORY' => _L('Category'),
'RECPR_URL' => _L('Recpr. Link URL'),
'PAGERANK' => _L('Pagerank'),
'DATE_ADDED' => _L('Date Added'));
REPLACE BY:
$columns = array ('TITLE' => _L('Title') ,
'URL' => _L('URL'), 'TITLE1' => _L('Title1'),
'URL1' => _L('URL1') , 'TITLE2' => _L('Title2'),
'URL2' => _L('URL2') , 'TITLE3' => _L('Title3'),
'URL3' => _L('URL3') ,
'DESCRIPTION1' => _L('DESCRIPTION1'),
'DESCRIPTION2' => _L('DESCRIPTION2') ,
'DESCRIPTION3' => _L('DESCRIPTION3'),
'DESCRIPTION4' => _L('DESCRIPTION4'),
'DESCRIPTION' => _L('Description'),
'CATEGORY' => _L('Category'),
'RECPR_URL' => _L('Recpr. Link URL'),
'PAGERANK' => _L('Pagerank'),
'DATE_ADDED' => _L('Date Added'));
Second, in templates/admin/link_details.tpl
FIND, around line 34:
<tr class="{cycle values="odd,even"}">
<td class="label">Description:</td>
<td class="smallDesc">{$linkInfo.DESCRIPTION|escape|trim}</td>
</tr>
BELOW it, ADD:
<tr class="{cycle values="odd,even"}">
<td class="label">Title1:</td>
<td class="smallDesc">{$linkInfo.TITLE1|escape|trim}
</td>
</tr>
<tr class="{cycle values="odd,even"}">
<td class="label">URL1:</td>
<td class="smallDesc">{$linkInfo.URL1|escape|trim}
</td>
</tr>
<tr class="{cycle values="odd,even"}">
<td class="label">Title2:</td>
<td class="smallDesc">{$linkInfo.TITLE2|escape|trim}
</td>
</tr>
<tr class="{cycle values="odd,even"}">
<td class="label">URL2:</td>
<td class="smallDesc">{$linkInfo.URL2|escape|trim}
</td>
</tr>
<tr class="{cycle values="odd,even"}">
<td class="label">Title3:</td>
<td class="smallDesc">{$linkInfo.TITLE3|escape|trim}
</td>
</tr>
<tr class="{cycle values="odd,even"}">
<td class="label">URL3:</td>
<td class="smallDesc">{$linkInfo.URL3|escape|trim}
</td>
</tr>
<tr class="{cycle values="odd,even"}">
<td class="label">Description 1:</td>
<td class="smallDesc">{$linkInfo.DESCRIPTION1|escape|trim}
</td>
</tr>
<tr class="{cycle values="odd,even"}">
<td class="label">Description 2:</td>
<td class="smallDesc">{$linkInfo.DESCRIPTION2|escape|trim}
</td>
</tr>
<tr class="{cycle values="odd,even"}">
<td class="label">Description 3:</td>
<td class="smallDesc">{$linkInfo.DESCRIPTION3|escape|trim}
</td>
</tr>
<tr class="{cycle values="odd,even"}">
<td class="label">Description 4:</td>
<td class="smallDesc">{$linkInfo.DESCRIPTION4|escape|trim}
</td>
</tr>
FINALLY in templates/admin/dir_links_edit.tpl
FIND, around line 74
$smarty.const.DESCRIPTION_MAX_LENGTH}
</td>
</tr>
BELOW it , ADD
<tr>
<td class="label"><label for="TITLE1">
Title1:</label></td>
<td class="smallDesc">
<input type="text" id="TITLE1" name="TITLE1"
value="{$TITLE1|escape|trim}" class="text" />
</td>
</tr>
<tr>
<td class="label"><label for="URL1">
URL1:</label></td>
<td class="smallDesc">
<input type="text" id="URL1" name="URL1"
value="{$URL1|escape|trim}" class="text"/>
</td>
</tr>
<tr>
<td class="label"><label for="TITLE2">
Title2:</label></td>
<td class="smallDesc">
<input type="text" id="TITLE2" name="TITLE2"
value="{$TITLE2|escape|trim}" class="text" />
</td>
</tr>
<tr>
<td class="label"><label for="URL2">
URL2:</label></td>
<td class="smallDesc">
<input type="text" id="URL2" name="URL2"
value="{$URL2|escape|trim}" class="text"/>
</td>
</tr>
<tr>
<td class="label"><label for="TITLE3">
Title3:</label></td>
<td class="smallDesc">
<input type="text" id="TITLE3" name="TITLE3"
value="{$TITLE3|escape|trim}" class="text" />
</td>
</tr>
<tr>
<td class="label"><label for="URL">
URL3:</label></td>
<td class="smallDesc">
<input type="text" id="URL3" name="URL3"
value="{$URL3|escape|trim}" class="text"/>
</td>
</tr>
<tr>
<td class="label"><label for="DESCRIPTION1">
Description 1:</label></td>
<td class="smallDesc">
<input type="text" id="DESCRIPTION1" name="DESCRIPTION1"
value="{$DESCRIPTION1|escape|trim}" class="text" />
</td>
</tr>
<tr>
<td class="label"><label for="DESCRIPTION2">
Description 2:</label></td>
<td class="smallDesc">
<input type="text" id="DESCRIPTION2" name="DESCRIPTION2"
value="{$DESCRIPTION2|escape|trim}" class="text"/>
</td>
</tr>
<tr>
<td class="label"><label for="DESCRIPTION3">
Description 3:</label></td>
<td class="smallDesc">
<input type="text" id="DESCRIPTION3" name="DESCRIPTION3"
value="{$DESCRIPTION3|escape|trim}" class="text" />
</td>
</tr>
<tr>
<td class="label"><label for="DESCRIPTION4">
Description 4:</label></td>
<td class="smallDesc">
<input type="text" id="DESCRIPTION4" name="DESCRIPTION4"
value="{$DESCRIPTION4|escape|trim}" class="text"/>
</td>
</tr>
You are done!
If you liked this MOD, and want to show your appreciation, you can link back to
rakCha : http://www.rakcha.com
or
enQuira : http://www.enquira.com
June 18th, 2007phpld - Contextual Deep Links - Step 3
In this step, we will display the keyword rich description in the details page.
1. in detail.tpl
FIND: around line 36
<tr>
<td class="label">{l}Description{/l}:</td>
</tr>
<td class="smallDesc" align="left">{$DESCRIPTION|escape|trim}</td>
AFTER it, ADD
<tr>
<td class="label"><strong>Additional Information:</strong></td>
<td class="smallDesc" align="left">
{if $DESCRIPTION1}{$DESCRIPTION1}
{/if}
{if $TITLE1 && $TITLE1 neq 'http://'}
<a href="{$URL1}" target="_blank" class="title">{$TITLE1}</a>
{/if}
{ if $DESCRIPTION2}
{$DESCRIPTION2}
{/if}
{if $TITLE2 && $TITLE2 neq 'http://'}
<a href="{$URL2}" target="_blank" class="title">{$TITLE2}</a>
{/if}
{ if $DESCRIPTION3}
{$DESCRIPTION3}
{/if}
{ if $TITLE3 && $TITLE3 neq 'http://'}
<a href="{$URL3}" target="_blank" class="title">{$TITLE3}</a>
{/if}
{ if $DESCRIPTION4}
{$DESCRIPTION4}.
{/if}
</td>
</tr>
2. in /detail.php
FIND:
$data['META_DESCRIPTION'] = $rdata['META_DESCRIPTION'];
BELOW it, ADD:
$data['TITLE1'] = $rdata['TITLE1'];
$data['URL1'] = $rdata['URL1'];
$data['TITLE2'] = $rdata['TITLE2'];
$data['URL2'] = $rdata['URL2'];
$data['TITLE3'] = $rdata['TITLE3'];
$data['URL3'] = $rdata['URL3'];
$data['DESCRIPTION1'] = $rdata['DESCRIPTION1'];
$data['DESCRIPTION2'] = $rdata['DESCRIPTION2'];
$data['DESCRIPTION3'] = $rdata['DESCRIPTION3'];
$data['DESCRIPTION4'] = $rdata['DESCRIPTION4'];
By Step 3, your directory is set to accept contextual deep links and display them in a keyword rich paragraph in the details page. The last step, we will modify the admin template files to allow preview/editing of the contextual deep links from the admin panel.
If you liked this MOD, and want to show your appreciation, you can link back to
rakCha : http://www.rakcha.com
or
enQuira : http://www.enquira.com

