Ok Made a mod for the Admin CP which I spend most of my days trying to figure out what I can add to make my life that little bit easier.
I thought it would be a nice idea to have the date and time displayed. Also by moving a few links around seemed to make things more accessible.
--------------------
Open admin/index.php
Remember to back up this file before you edit it
Find:
<b><a href="<?php echo $site_sess->url(ROOT_PATH); ?>" target="_blank"><?php echo $lang['goto_homepage']; ?></a> </b>
And delete it.
Now find:
<b><a href=<?php echo $site_sess->url("home.php?action=home"); ?> target=main>Control Panel Home</a></b>
And delete it.
Next find:
Version: <b><?php echo SCRIPT_VERSION; ?></b>
Replace with:
<?php echo date("l d F, Y");
echo <<<END
<span id=tick2>
</span>
<script>
<!--
/*By JavaScript Kit
http://javascriptkit.com
Credit MUST stay intact for use
*/
function show2(){
if (!document.all&&!document.getElementById)
return
thelement=document.getElementById? document.getElementById("tick2"): document.all.tick2
var Digital=new Date()
var hours=Digital.getHours()
var minutes=Digital.getMinutes()
var seconds=Digital.getSeconds()
var dn="pm"
if (hours<12)
dn="am"
if (hours>12)
hours=hours-12
if (hours==0)
hours=12
if (minutes<=9)
minutes="0"+minutes
var ctime=hours+":"+minutes+""+dn
thelement.innerHTML=" "+ctime+""
setTimeout("show2()",1000)
}
window.onload=show2
//-->
</script>
END;
?>
Please be sure that there is no spaces after END; and echo <<<END
Find:
show_nav_header($lang['nav_categories_main']);
show_nav_option($lang['nav_categories_edit'], "categories.php?action=modifycats");
show_nav_option($lang['nav_categories_add'], "categories.php?action=addcat");
Add above:
$root_path = $site_sess->url(ROOT_PATH);
show_nav_header($lang['nav_navigation_main']);
show_nav_option($lang['nav_navigation_admin_index'], "home.php?action=home");
show_nav_option($lang['nav_navigation_site_home'], "$root_path");
show_nav_option($lang['nav_navigation_phpmyadmin'], "PHPMYADMIN LINK");
Where it says PHPMYADMIN LINK enter the exact location to your phpMyAdmin manager.
--------------------
Open lang/<your language>/admin.php
Find:$lang['nav_categories_main'] = "Categories";
Add above:
$lang['nav_navigation_main'] = "Navigation";
$lang['nav_navigation_admin_index'] = "Admin index";
$lang['nav_navigation_site_home'] = "Site home";
$lang['nav_navigation_phpmyadmin'] = "phpMyAdmin";
--------------------
That's it. Save and close files.
Log in to your admin CP to see the changes.
Feedback about this mod would be well appreciated thanks.
Carl