Note: These instructions are intended for those knowledgeable in PHP and HTML.
FTP into http://custom.webedcafe.com/
Create a new folder and name it the exact same name as the domain. Example: To customize dnamededcafe.com, the new folder must be located at /home/customwe/public_html/dnamededcafe.com/
This folder will be called the "Working Directory".
Within the Working Directory you can create as many directories and files as needed. The PHP Constant "DIR_CUSTOM_PATH" will be defined as the path to this directory. For this site, the constant refers to: /home/customwe/public_html/demo.mededcafe.com/ The PHP function custom_absolute_url_from_local($local) can be used to return the absolute URL of the Working Directory.
Headers and footers may be used by creating files named main_header.php and main_footer.php. These files can be placed anywhere within the Working Directory. The Cafe System will look for files with these names and apply the appropriate code. If you need to have a different header and footer for the pages within each activity, you can do so by creating files and naming them activity_header.php and activity_footer.php. Note that the use of headers and footers is optional. If the Cafe system cannot find an activity header it will use the main header, if it exists. If no header is found, the following code will be automatically inserted:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body>
Similarly, if the Cafe system cannot find a footer, this code will be used:
</body> </html>
The home page of the site must be named home_page.php. The home page may also be unique in the sense that it can exclude the header and footer. To do this, simply include the words DISINCLUDE_HEADER and/or DISINCLUDE_FOOTER anywhere in the file home_page.php. Note: Once a home_page.php is included, this page will be replaced with your custom page. Click the following link and bookmark the page that opens so that you can view these instructions after a home page has been created: Instructions for Setup.
Custom pages may be added that also include the header and footer. These files must be placed in the Working Directory and can be named anything except:
The following section describes PHP variables that may be used.
Navigation variables
All the system pages are available in the array $_CUSTOM_NAVIGATION. Each element of the array is a separate array containing a title and a link. Click here to view the array.
All the activities that are linked to the site are available in the array $_CUSTOM_ACTIVITIES. Each element of the array is a separate array containing a title and a link. Click here to view the array.
Array
(
[0] => Array
(
[activity_id] => 256
[title] => Thyroid Disease Lib A
[link] => https://demo.mededcafe.com/frontmatter/256/5/Thyroid-A
)
[1] => Array
(
[activity_id] => 258
[title] => Thyroid Disease Lib C
[link] => https://demo.mededcafe.com/frontmatter/258/5/Thyroid-C
)
[2] => Array
(
[activity_id] => 257
[title] => Thyroid Disease Lib B
[link] => https://demo.mededcafe.com/frontmatter/257/5/Thyroid-B
)
[3] => Array
(
[activity_id] => 259
[title] => Thyroid Disease Lib D
[link] => https://demo.mededcafe.com/frontmatter/259/5/Thyroid-D
)
[4] => Array
(
[activity_id] => 265
[title] => Fragile X Lib Pretend F
[link] => https://demo.mededcafe.com/frontmatter/265/5/Fragile-X-F
)
[5] => Array
(
[activity_id] => 264
[title] => Fragile X Lib Pretend E
[link] => https://demo.mededcafe.com/frontmatter/264/5/Fragile-X-E
)
[6] => Array
(
[activity_id] => 263
[title] => Fragile X Lib Pretend D
[link] => https://demo.mededcafe.com/frontmatter/263/5/Fragile-X-D
)
[7] => Array
(
[activity_id] => 262
[title] => Fragile X Lib Pretend C
[link] => https://demo.mededcafe.com/frontmatter/262/5/Fragile-X-C
)
[8] => Array
(
[activity_id] => 261
[title] => Fragile X Lib Pretend B
[link] => https://demo.mededcafe.com/frontmatter/261/5/Fragile-X-B
)
[9] => Array
(
[activity_id] => 260
[title] => Fragile X Lib Pretend A
[link] => https://demo.mededcafe.com/frontmatter/260/5/Fragile-X-A
)
[10] => Array
(
[activity_id] => 117
[title] => 2010 Hepatitis: Update on Evolving Viral Therapy
[link] => https://demo.mededcafe.com/frontmatter/117/4/2010-Hepatitis-Update
)
[11] => Array
(
[activity_id] => 1317
[title] => Multicare Health System: Quality Urine Samples and Clinical, Process and Fiscal Outcomes
[link] => https://demo.mededcafe.com/frontmatter/1317/5/2016-UTI
)
[12] => Array
(
[activity_id] => 1351
[title] => Your Child and the HPV Vaccine: We have answers for your questions!
[link] => https://demo.mededcafe.com/frontmatter/1351/5/2016-Stoler-HPV-Vaccine
)
[13] => Array
(
[activity_id] => 2872
[title] => DGL NEO Demo
[link] => https://demo.mededcafe.com/frontmatter/2872/5/DGL-NEO-Demo
)
)