Instead of updating the phplb deep links mod, I prefer to post this here to leave both options available. Either deeplinks should be required, this was done in the previous mod or optional, instructions below.

Step 1: Apply the mod in phpLinkBid Deep links MOD

Step 2:
1. in file buy.php
FIND:

$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');

REPLACE BY

$kForm->addRule('link_deep_title1', 'deep-title');
$kForm->addRule('link_deep_title2', 'deep-title');
$kForm->addRule('link_deep_title3', 'deep-title');
$kForm->addRule('link_deep_url1', 'deep-url');
$kForm->addRule('link_deep_url2', 'deep-url');
$kForm->addRule('link_deep_url3', 'deep-url');

2. in /klib/class.kForm.php
FIND

case 'url':
if(!$validate->is_url($data[$name]))
$this->controls[$name]['errors'][] = 'Invalid URL';
break;

AFTER IT ADD

case 'deep-url':
if(!$validate->is_url($data[$name]) && ($data[$name] != 'http://'))				
$this->controls[$name]['errors'][] = 'Invalid URL';
break;	

case 'deep-title':
if(!$validate->is_title($data[$name]) && ($data[$name]))	
$this->controls[$name]['errors'][] = 'Invalid title';
break;

July 1st, 2007phplb Description

With this mod you get rid of the two lines description and replace it with a regular text area. After installing this mod you will have to adjust previous listing to this new format (last step of this tutorial).

1. in buy.php
FIND

$kForm->addText('Description Line 1', 'link_desc1', '',
 $cfg->getVar('link_desc_max'),$cfg->getVar('link_desc_max'),
   'onKeyUp="lpUpdate();"');
$kForm->addText('Description Line 2', 'link_desc2', '',
 $cfg->getVar('link_desc_max'),$cfg->getVar('link_desc_max'),
   'onKeyUp="lpUpdate();"');

REPLACE BY

$kForm->addTextArea('Description', 'link_description', '', 3, 50);

FIND

$kForm->addRule('link_desc1', 'desc');
$kForm->addRule('link_desc2', 'desc');

REPLACE BY

$kForm->addRule('link_description', 'desc');

2. in link.tpl
FIND

<div class="link-desc">{link_desc1}<br />{link_desc2}</div>

REPLACE BY

<div class="link-desc">{link_description}</div>

3. in links.tpl
FIND

{link_desc1}<br />{link_desc2}

REPLACE BY

{link_description}

4. in admin/links.php
FIND

$kForm->addText('Description Line 1', 'link_desc1', '', 50, 50);
$kForm->addText('Description Line 2', 'link_desc2', '', 50, 50);

REPLACE BY

$kForm->addTextArea('Description', 'link_description', '', 3, 50);

FIND

$kForm->addRule('link_desc1', 'required');

REPLACE BY

$kForm->addRule('link_description', 'required');

5. in link_preview.tpl
REPLACE everything by:

<br />
<h1>Link Preview</h1>

<table width="100%" cellpadding="0px" cellspacing="0px" border="0px">
<tr>
<td valign="top" class="link-bidbg" nowrap>
      <div id="link-bid" class="link-bid">${bid_amount}</div>
<div class="link-place">Current Bid</div></td>
<td class="link-cell">
    <div id="link-title" class="link-title">Link Title</div>
    <div id="link-desc" class="link-desc">Link description</div>
</td>
</tr>
</table>
<br />

<script language="JavaScript" type="text/javascript">
<!--
function lpUpdate()
{
chHtml("link-title", document.getElementById("link_title").value);
chHtml("link-desc", document.getElementById("link_description").value);
chHtml("link-bid", "$" + document.getElementById("link_bid").value);
}
lpUpdate();
//-->
</script>

6. Adjust previous listings. To do so, create a file migrate-desc.php with the following content:

<?php
include("inc/sql_config.php");
mysql_connect(DB_HOST, DB_USERNAME,DB_PASSWORD)
 or die("cannot to connect to server");
mysql_select_db(DB_NAME) or die("cannot to connect to the database");
$query = "SELECT link_desc1,link_desc2,link_id FROM tbl_links WHERE 1";
$result = mysql_query($query) or die('Query failed: ' . mysql_error());
while($row = @mysql_fetch_array($result)) {
extract($row);
$link_description =  $link_desc1 . ' ' . $link_desc2;
$query = "UPDATE tbl_links SET link_description = \"" . 
          $link_description . "\" WHERE link_id=" . $link_id;
mysql_query($query);
}
?>

Upload the file to the root of your directory and open it in the browser http://www.youdirectory.com/migrate-desc.php

Everything should be fine now! please delete migrate-desc.php from your root.
Please visit our supporters!

Mysterious Illusion is the latest wordpress theme supported by enQuira and rakCha.

Mysterious Illusion Wordpress Theme

Download
Test run

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

Green Apple Wordpress Theme

Download
Test run

June 21st, 2007Green Apple 1.0

Green Apple is a modern widget-ready green & blue theme designed by enQuira and supported by rakCha.

Green Apple Wordpress Theme

Download
Test run

June 21st, 2007Feline

A theme for your best friend, Feline, was designed by Jinsona and supported by rakCha and enQuira.

Green Apple Wordpress Theme

Download
Test run

June 21st, 2007Digital Grass 1.0

Cool theme with a cool menu designed by Jinsona and sponsored by enQuira rakCha and namestead.

Digital Grass Wordpress Theme

Download
Test run

June 21st, 2007PITSTOP

a piece of craftwork theme designed by Jinsona and was supported in part by enQuira.

Pitstop Wordpress Theme

Download
Test run

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


© 2007 rakCha resources | Powered by Wordpress | rakCha web directory