Toolbar and Sidebar Backend Upgraded
Published by KermMartian 15 years, 5 months ago (2005-05-23T04:00:00+00:00) | Discuss this article

In preparation for giving other Cemetech members some limited admin powers over the Cemetech website, specifically uploading files and adding news for The BASIC Elite project, today I built a pair of PHP scripts. These replace three javascripts, header.js, toolbar.js, and sidebar.js, which rendered the variable definitions, logo and links bar at the top, and the sidebar at left respectively. However, these had to be completely recoded and copied into each new directory that was created. However, my new PHP scripts, which are dynamic and scaled so that they will still be useful if the site expands or moves to a new host, need only to exist in one place. When called from anywhere in the site, they detect the location of the calling page and update the relative paths for links and images acccordingly. In addition, I will be able to easily add or remove a sidebar item or a link button without having to go through each and every page. So far I have the new system deployed in the main directory, Projects, and the Forum. I should finish the conversion of the rest of the siteby tomorrow.