Customize
|
This page describes how to customize phpYellow. |
- Overview
- Changing Open Source Code
- Constants
- CSS
- Front page
- Search Type
- Search Default
- Change the data shown
- Change the structure of the page layout
Overview
Quite a lot can be customized including:- DATABASE data
- PHP front end files
- CSS
data
Use admin > Manage categories to add, edit or remove data categories.PHP front end files
Wherever possible move formatting out of PHP front end files and into a single /css/generic.css style sheet. This gives you point and click control over appearances.css file
For look and feel changes start here, you'll be glad you did. Edit /css/generic.css in your favorite css editor.Use your own banner
Creating a custom header image also will dramatically alter the look and feel. Upload your new 800x115 header.jpg file into the /images folder. Find the image code in /templates/header.phpChanging Open Source Code
Use an editor which will not introduce unnecessary characters into the source code.What HTML editor can be used?
For Windows operating system, you may use Edit Plus from
http://www.editplus.com.
Download (free edition available) install > click File New > HTML page.
Click on the magnifying glass to preview the page, and click same location again
to get the source code. Edit Plus is clean, powerful and has good learning features.
You may also browse http://www.download.com and find other good html editors.
Constants
To customize the constants on util.php will make the most initial dramatic change to your directory. Constants like IMPLEMENTATION_NAME, your BENEFIT and other highly visible data may be changed in util.php or in admin > Setup > Edit Configuration
CSS - Cascasding Style sheet - generic.css
You may easily make profound visual changes to the look and feel by using a css
editor and editing the file /css/generic.css
In particular, modify the body, class=universal, class=favcolor, h1 through
to h6 and any other html object as needed. With a css editor this is all
point and click and no programming is needed. When finished, simply upload the file to
overwrite the existing generic.css file. In this way you may easily build a
custom look and feel with no coding needed.
CSS Rendered Background image
To render a background image on all pages of the site do this:a. use a css editor b. open /css/generic.css c. find the selector called: universal d. set the background-image property to the image location e. save generic.css and upload it back to the css folder
Now all pages will display the characteristics you put into class='universal'. For your reference, almost every page has a call to: class='universal' in the html body tag and that is what pulls in the universal characteristics/properties across the entire site.
If you build a unique css file and you would like to share with others send it to us and we can distribute it in the download area.
Front page
It is common to customize the front page. Open up index.php and modify to suit. If the application fails or otherwise reports warnings or errors then in such cases the normal remedy is to replace the file and start afresh.
Search Type
Browse search_advanced.php to see available search types. There are many different search forms and scripts you may use in the Pro Edition. See files that start with the word "search_".
Index Search Default
The default search used on index.php (only) is set in util.php
define("DEFAULT_SEARCH", "custom");
DEFAULT_SEARCH is displayed on the frontpage named index.php.
Combine two or more search types
You may also build your own search default by combining two or more search types. Open search_default.php in an editor to view more help about changing the default search. Refer back to the main search page for examples.Search by Biz
Search by Biz is used as the default Lite Edition search. More information on how to edit is here.Change the data shown
When search results are shown certain data is shown. You can change the data shown.
Edit listing template in the /templates folder
All data in the database is available. You decide what data to display by modifying the look and feel of these files:- /templates/universal_display.php
- fullpage.php
For variable names to use when changing the data shown see the SQL definitions that came with your license. Review the support related buttons found in the /admin area.
Change the structure of the page layout
phpYellow is designed with a "horseshoe" structure like this:
To change, edit in codeview and uncomment or comment out the unwanted files /templates/left or /templates/right.php (use 2 php forward slashes like this: // )