Hi,
I just downloaded the dev-x(blue) phpld template. I read the installation note, in sentence No.2,
I don't understand quite clear about this sentence, can someone clarify for me? Which of the code I need to replace?2. Open your init.php in your root & search for this:
// ----------------------------------
Replace with this:
// Main categories
$mainCategs = $db->CacheGetAll("SELECT * FROM `{$tables['category']['name']}` WHERE `STATUS` = '2' AND `PARENT_ID` = 0 ORDER BY `".CATEG_FIELD_SORT."` ".CATEG_FIELD_SORT_ORDER);
$tpl->assign('mainCategs', $mainCategs);
// Latest Featured Links
$latest_feat = $db->GetAll ("SELECT * FROM `{$tables['link']['name']}` WHERE `STATUS` = '2' {$expire_where} AND `FEATURED` = '1' ORDER BY `DATE_ADDED` DESC LIMIT 0, 10");
$tpl->assign('latest_feat', $latest_feat );
There appear to have another similar line of code above this line
//-------------------------------------------
Please clarify. Thanks// Main categories
$mainCategs = $db->CacheGetAll("SELECT * FROM `{$tables['category']['name']}` WHERE `STATUS` = '2' AND `PARENT_ID` = 0 ORDER BY `".CATEG_FIELD_SORT."` ".CATEG_FIELD_SORT_ORDER);
$tpl->assign('mainCategs', $mainCategs);


LinkBack URL
About LinkBacks

Reply With Quote


Bookmarks