Breaking News
Loading...

Category Tree 1.3

Category Tree 1.3

1#. Upload files to the server.
#2. open ./index.php:

Find
$tpl->set ( '{speedbar}', $tpl->result['speedbar'] );

Add After:
$tpl->set ( '{catlist}', $catlist );

#3. open ./engine/init.php

Find:
?>

Add Before:
require_once ROOT_DIR . '/engine/modules/category.php';

#4. open main.tpl:

Find :
</head>

Add Before:
<link rel="StyleSheet" href="{THEME}/css/dtree.css" type="text/css" />
<script type="text/javascript" src="{THEME}/css/dtree.js"></script>

#5. insert this code in main.tpl inside any block you want:
<script type="text/javascript">
d = new dTree('d', '{THEME}/images/category/');
d.add(0,-1, 'Site Categories');
{catlist}
document.write(d);
</script>


Download:

0 comments:

Post a Comment

Quick Message
Press Esc to close
Copyright © 2013 PHPNulled All Right Reserved