Photo Gallery ~ Front-End Sample

You can easily integrate the Front-End to your web design page.
Please refer to the guidelines below.


 Search Photo
By Category
By Keyword

Browse Gallery
Category A
Description for Category A
Category B
Description for Category B
Category C
Description for Category C

Gallery Thumbnails


UHRI African Farm Project

Latest Photos


UHRI African Farm Project

Member Login
Username
Password
Forget Password?



HomeSubmit Your Photo

Showing 1 - 3 Of 16 Next
UHRI African Farm Project
UHRI African Farm Project
UHRI African Farm Project
UHRI African Farm Project
UHRI African Farm Project
UHRI African Farm Project



Front-End Integration Guidelines

You can easily integrate the front-end with your web design pages.
Before   After Integration


Integration Instructions
1. Using a text editor, open your web page file (.php file), and put the code below to the top of the file (line 1), to call the 'config.php' file. This will load all the necessary database connection, class declaration files and load session.
 <?php include_once("document_path_of_oneadmin_folder/config.php"); include_once($path["docroot"]."common/session.php"); include_once($path["docroot"]."common/css.php"); ?>
 * Note: Always insert the above code to the line 1, without any preceding character(s), not even a space.
2. To display the dynamic title, put the line below between the title tag.
 <?php include($path["docroot"]."photogallery/home.title.php"); ?>
3. In your HTML code, put the line below to call the menu area such as photo search, photo categories, random photo, etc.
 <?php include($path["docroot"]."photogallery/home.category.php"); ?>
4. In the body content of your .php web page file, put the line below to show the gallery's content.
 <?php include($path["docroot"]."photogallery/home.gallery.php") ?>
5. For sample integration code, please refer to the source of this file. To do this, open it with your text editor.
** To find your 'document_path_of_oneadmin_folder', check the path['docroot'] value from the oneadmin/config.php file