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