PDA

View Full Version : can we show partner links on "suggest link" page?


kareti rama
12-18-2006, 07:16 PM
hello,
i have two doubts.
i am using free version 1.5

1) partner links are showing up on all other pages but not on the submit link page.
please tell me how to show them on this page also.

2) When i select some links as Featured for a category, i wish them to show at the top on all its subcategories.

please suggest the necessary modifications in the code.
thank you.

John Turner
12-19-2006, 08:17 AM
Hi kareti rama,

Here the solution:

1. open '../suggest-link.php'
***find following code

/** defines page title **/
$gDirSmarty->assign_by_ref('title', $gDirLang['suggest_link']);

/** menu display **/
$gDirSmarty->assign('menu', $gDirLayout->print_menu($category['id']));


***add following code after it

/** get featured links **/
if ($gDirConfig['featured_links'])
{
$featured_links =& $gDirDb->getFeaturedLinks($category['id'], $gDirConfig['num_featured_display']);
$gDirSmarty->assign_by_ref('featured_links', $featured_links);
}

/** get partner links **/
if ($gDirConfig['partner_links'])
{
$partner_links =& $gDirDb->getPartnerLinks($category['id'], $gDirConfig['num_partner_display']);
$gDirSmarty->assign_by_ref('partner_links', $partner_links);
}


***Save and close it.

It might helps.