+ Reply to Thread
Results 1 to 3 of 3

Install Dev-X(Blue) template

This is a discussion on Install Dev-X(Blue) template within the phpLD Support Help forums, part of the phpLD category; Hi, I just downloaded the dev-x(blue) phpld template. I read the installation note, in sentence No.2, 2. Open your init.php ...

  1. #1
    New Hunter teotrad is on a distinguished road
    Join Date
    Jul 2008
    Posts
    2

    Default Install Dev-X(Blue) template

    Hi,

    I just downloaded the dev-x(blue) phpld template. I read the installation note, in sentence No.2,

    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 );
    I don't understand quite clear about this sentence, can someone clarify for me? Which of the code I need to replace?

    There appear to have another similar line of code above this line

    //-------------------------------------------

    // 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);
    Please clarify. Thanks

  2. #2
    Senior Staff Hunter1 has a brilliant future Hunter1 has a brilliant future Hunter1 has a brilliant future Hunter1 has a brilliant future Hunter1 has a brilliant future Hunter1 has a brilliant future Hunter1 has a brilliant future Hunter1 has a brilliant future Hunter1 has a brilliant future Hunter1 has a brilliant future Hunter1 has a brilliant future Hunter1's Avatar
    Join Date
    Mar 2007
    Location
    Indiana USA
    Posts
    1,108

    Default

    Quote Originally Posted by teotrad View Post
    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?

    There appear to have another similar line of code above this line

    //-------------------------------------------



    Please clarify. Thanks
    You are correct with assuming the //-------------------------------------------

    That is what you take out and then replace with the code provided.

    No worries!

  3. #3
    New Hunter Cody is on a distinguished road
    Join Date
    Aug 2008
    Posts
    6

    Default

    Yeah ... dont wory ... all its good ... i think :P
    Last edited by Cody; 08-22-2008 at 01:31 PM.

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts