THT Community
New Menu Client Sidebar - Printable Version

+- THT Community (https://thehostingtool.com/forum)
+-- Forum: THT Development (https://thehostingtool.com/forum/forum-4.html)
+--- Forum: Help for Developers (https://thehostingtool.com/forum/forum-6.html)
+---- Forum: Tutorials and FAQs (https://thehostingtool.com/forum/forum-11.html)
+---- Thread: New Menu Client Sidebar (/thread-1473.html)



New Menu Client Sidebar - hachet - 07-10-2011

New menu Tab In Client area Siesbar.

Screenshot
[attachment=218]

1. go To Your myphpadmin [Database] click tht_clientnav then at top click Incert Then input name image link ONLY leave id blank
name=the name you want the link [ie] cpanel image=your icon [ie] cpanel.png Link=your link [ie] cpanel then click go and you should see it in the tht_clientnav now...
2. make a file called [ie] cpanel.php and put this code in it
Quote:<?php
//////////////////////
// TheHostingTool
// By Jonny H
//////////////////////

class page{
public function content(){
global $db;
if($db->config('cpanel')){
$array['ALERTS'] = $db->config('cpanel');
global $style;
echo $style->replaceVar('tpl/cpanel.tpl', $array);
} #closes if
else{

}
}
}
?>
then upload to /public_html/tht/client/pages
like this: /public_html/tht/client/pages/cpanel.php
3. then create a tpl file and put what you want in it [html]
[ie] <p align="center">go To Your Cpanel link etc</p>
and upload it to /public_html/tht/includes/tpl
like this: /public_html/tht/includes/tpl/cpanel.tpl

Thats It!!
If Some One Knows A better Way Please Add It Here