Business Database
Home Recent Index Add Login Graph Search  
Search in

Index - Admin - FAQ - Install - Configure - Customize - Payment - Security - Database

Customize

This page contains information or links to the following:

Changing Open Source Code

phpYellow has some unencrypted open source code written in text format. You may change the code to suit yourself (subject to the license). When changing open source code:

  1. make a backup file first so you may always restore the most recent working code
  2. use a non-invasive HTML editor

Non-invasive HTML editors

A few popular HTML editors - which previously included Microsoft Frontpage and others - changed the source code on every page loaded. The change could be minimal, for example adding line breaks, non-breaking spaces or non visible output. However the result of an invasive change can be and frequently is the failure of php scripts to run. If your scripts fail to work then this is an issue. The solution is to use a non-invasive HTML editor - or to use the options within your editor to turn non-invasive mode on.

example: a common issue maker is to edit the util.php file for your needs, then to save and upload the file. Unfortunately, this frequently results in multiple warnings about failed session handling because the editor has introduced unnecessary characters into the source code. The solution is to open a fresh, unused copy of util.php in non invasive mode, or alternatively to use admin > Setup > Edit Configuration

What HTML editor can be used?

Download Edit Plus 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

Make directory wide changes to html tags using a css editor like TopStyle. Tags like <h1>, <p>, <ul>, <table>, <td> and many others are easily changed across all pages using just a css editor and just one main file - generic.css. You may also create your own .class styles.

Front page

It is common to customize the front page. Open up index.php and modify to suit. Make sure your editor opens php files in "non-invasive" mode. Any other mode may change your php code and cause the application to fail. In such cases the normal remedy is to replace the file and start afresh.

Search Type

Browse search.php to see available search types. At last count there were seven different searches you could use in the Pro Edition.

Search Default

The default search is set in util.php

define("DEFAULT_SEARCH", "browse");

DEFAULT_SEARCH is displayed on the frontpage named index.php and also at the bottom of search results.

Combine two or more search types

You may also build your own search default by combining two or more search types. Open searchDefault.php in an editor to view more help about changing the default search. Refer back to the search.php 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:
  • bronze.php
  • silver.php
  • gold.php
  • sponsor.php
The default data displayed corresponds to the Listing Type descriptions found in the Client Control panel, and as set in the admin > Setup > Edit Configuration.

For variable names to use when changing the data shown see the database create table definition.

Change the structure of the page layout

phpYellow is designed with a "horseshoe" structure like this:

horseshoe structure

To change, edit in codeview and uncomment or comment out the unwanted files left or right.php (use 2 php forward slashes like this: // )


Index - Admin - FAQ - Install - Configure - Customize - Payment - Security - Database



Powered by phpYellow  
All content Copyright©2024 Russian-American Business. All rights reserved. Terms of Use. Privacy. Documentation. Contact Us.