User Guide - Templates

Published on December 2017 | Categories: Documents | Downloads: 18 | Comments: 0 | Views: 310
of 14
Download PDF   Embed   Report

Comments

Content

AdSenseBoy Automatic Website Builder Guide for Template Designers

Automatic Website Builder ...the most exciting breakthrough in website building and successful money making online

Contents Introduction ............................................................................................................... 3 Useful Information ..................................................................................................... 4 TEMPLATE FILES ............................................................................................................. 5 index.php ................................................................................................................ 5 pages.php ............................................................................................................... 5 virtual_page.php ..................................................................................................... 5 virtual_page2.php ................................................................................................... 5 VARIABLES OVERVIEW ..................................................................................................... 6 GLOBAL VARIABLES......................................................................................................... 7 LOCAL VARIABLES ........................................................................................................... 8 index.php variables ................................................................................................. 8 pages.php variables ................................................................................................ 8 virtual_page.php variables ...................................................................................... 9 virtual_page2.php variables .................................................................................... 9 FUNCTIONS OVERVIEW .................................................................................................. 10 GLOBAL FUNCTIONS ...................................................................................................... 11 LOCAL FUNCTIONS ........................................................................................................ 13 index.php functions ............................................................................................... 13 pages.php functions .............................................................................................. 13

Page 2

Introduction

Dear Customer,

Thank you for ordering Automatic Website Builder - revolutionary, all-in-one software for creating, publishing and managing websites easier than ever before.

This user guide explains templates system used by Automatic Website Builder software, and allows you personalizing default templates and making custom templates with ease.

Your order comes with 1st class customer service and professional assistance, but it does not cover web design services. It means we do not offer any assistance tweaking or designing templates, but we are glad to explain how templates system works (this is what this user guide is used for).

Still, if you have any more questions, or need any help with Automatic Website Builder templates, please simply submit a new support ticket and our web designers will be glad to assist you at small one-time payment. The fee depends on your personal requirements and predicted workload, and we always try to quote the lowest price possible.

We can also make custom and unique templates designed exclusively for you, so please contact us anytime for more details.

Attention: If you don't have lots of programming and designing experience, don't waste your valuable time; simply go to Automatic Website Builder client area and download Premium Template packs to experience the real beauty of custom high quality templates and enjoy outstanding look, better optimization for search engines and higher income today!

Page 3

Useful Information

Please take a moment to read EVERYTHING on this page. These simple tips will save your time and prevent you from making costly and embarrassing mistakes!

All templates come as files with .php extension and have standard HTML layout, so good HTML knowledge is needed designing or tweaking templates.

All template files also contain some PHP functions used by the software to output results, and all these functions will be explained in other pages. Even if PHP programming experience is not required (you can simply copy/paste all functions to your templates), basic PHP skills will help you making higher quality templates.

Before you start making your own layouts, please carefully review all default templates to understand how templates system works. As soon as you do that, you will become a master of Automatic Website Builder templates in minutes. Good luck!

Page 4

TEMPLATE FILES

index.php

The file is used to serve content on index page. It makes no difference what type of index content Automatic Website Builder is configured to use (links to latest entries, news snippets, custom content, etc.), index.php is always used to serve content on main page.

pages.php

The file is used to serve content on internal pages (posts). It's responsible for displaying text content, photos and videos, news stories, articles, comment forms, etc.

virtual_page.php

The file is used to serve content on 'About Us', 'Archives', 'Categories', 'Contacts', 'Partners', 'Privacy' and 'Sitemap' sections.

virtual_page2.php

The file is used to serve content on 'Search' and 'Tags' sections.

Page 5

VARIABLES OVERVIEW

Automatic Website Builder uses various variables to call internal functions. Some of these variables are used in template files, and they can be easily customized to match your individual needs in each template.

This section explains each single variable used in template files.

Variable names are CaSe SeNsItIvE, so make sure you use correct names (otherwise errors will be displayed, or no content will be displayed).

Usually you should call PHP 'echo' or 'print' functions to output the value of selected variable.

Page 6

GLOBAL VARIABLES

These main variables (also called global variables) work in all template files. No matter what file these variables are used on, they always output the same content.

$ROOT_URL - Outputs the URL (including http://) of website.

$DOMAIN - Outputs the hostname (without http://) of website.

$SITE_NAME - Outputs the name (title) of website.

$SITE_DESCRIPTION - Outputs the description of website.

$SITE_KEYWORDS - Outputs the keywords of website. Attention: This variable outputs meta keywords (entered during installation), NOT keywords used for building pages.

$ADMIN_NAME - Outputs the name of website administrator.

$ADMIN_EMAIL - Outputs the email address of website administrator.

$TEMPLATES_DIRECTORY - Outputs the directory of templates.

$SITE_TEMPLATE - Outputs the template used on website.

The software also contains more global variables, but these are used for internal functions only, so you should not need them in templates. In case you need full list of all global variables, see 'settings' table in MySQL database used for Automatic Website Builder.

Attention: If you make any direct change to database (all changes are logged by server logging engine, phpmyadmin and the software itself), we will NOT provide any support for the software.

Page 7

LOCAL VARIABLES

These local variables work in specified template files only.

index.php variables

$keyword - Outputs the keyword of last page published.

$meta_title - Outputs meta title of last page published.

$meta_description - Outputs meta description of last page published.

$meta_keywords - Outputs meta keywords of last page published.

pages.php variables

$keyword - Outputs the keyword of selected page.

$meta_title - Outputs meta title of selected page.

$meta_description - Outputs meta description of selected page.

$meta_keywords - Outputs meta keywords of selected page.

$published - Outputs the date (as Unix timestamp) of selected page publish time.

Page 8

virtual_page.php variables

$virtual_page_title - Outputs meta title of selected page.

$virtual_page_description - Outputs meta description of selected page.

$virtual_page_keywords - Outputs meta keywords of selected page.

$virtual_page_content - Outputs the content of selected page.

virtual_page2.php variables

$virtual_page_title - Outputs meta title of selected page.

$virtual_page_description - Outputs meta description of selected page.

$virtual_page_keywords - Outputs meta keywords of selected page.

$virtual_page_content - Outputs the content of selected page.

Page 9

FUNCTIONS OVERVIEW

Automatic Website Builder uses various PHP functions to build webpages and serve content. Some of these functions are used in template files, and they can be easily customized to match your individual needs in each template.

This section explains each single function used in template files. All functions are explained this way:

function_name($variable1, $variable2, $variable3);

function_name stands for the name of one of available functions, and you must call this function in order to perform some actions. For example, if you add code function_name_something instead of function_name, it will not work and fatal error will be displayed.

Function names are CaSe SeNsItIvE, so make sure you use correct names (otherwise errors will be displayed, or no content will be displayed).

Different functions might use different number of variables (zero or more). For example, function1 might use 10 variables, and function2 might not use any variable.

Let's take a closer look how variables work inside functions. Let's say we have this function - do_something($something, $some_stuff, $custom_thing)

In this example our function uses 3 variables. If variable is written in BOLD, it means the variable can be customized by you. If the variable is NOT bold, it means you CAN NOT customize it, and it must be left as it is when function is called.

If you change any standard variable (which is NOT bold and can not be customized), the software will not work. So make sure you customize correct variables only.

Page 10

GLOBAL FUNCTIONS

These global functions work in all template files. No matter what file these functions are used on, they always output the same content.

display_paypopup(); The function outputs InfinityAds (previously named PayPopUp) advertisements on selected webpages.

display_analytics(); The function outputs Google Analytics code and allows you tracking website via Google Analytics service.

internal_links($keyword_id, "$end", "$start"); The function outputs links to latest pages (posts). The number of displayed links is configured via administration interface. $end - code snippet to be used after each backlink. For example, if you enter "<br>", break line (empty line) will be displayed after each link. $start - code snippet to be used before each backlink. For example, if you enter ">>", >> symbols will be displayed before each link.

random_tags_cloud($min_font_size, $max_font_size); The function outputs random tags cloud using random font size. $min_font_size - minimum font size for tags. $max_font_size - maximum font size for tags.

Page 11

display_amazon_feed($keyword, "$end", "$start"); The function outputs Amazon affiliate feed. The number of displayed products is configured via administration interface. $end - code snippet to be used after each product. For example, if you enter "<br>", break line (empty line) will be displayed after each product. $start - code snippet to be used before each product. For example, if you enter ">>", >> symbols will be displayed before each product.

display_ads("$width", "$height", "$border_color", "$background_color", "$title_color", "$text_color", "$link_color"); The function outputs Google Adsense advertisements. $width - width in pixels of ads unit. $height - height in pixels of ads unit. $border_color - 6 digits hex color code (without # symbol) of border. $background_color - 6 digits hex color code (without # symbol) of background. $title_color - 6 digits hex color code (without # symbol) of title. $text_color - 6 digits hex color code (without # symbol) of text. $link_color - 6 digits hex color code (without # symbol) of link.

Page 12

LOCAL FUNCTIONS

These local functions work in specified template files only.

index.php functions

meta_data($keyword_id, $keyword, $category_id, $meta_description, $meta_keywords, $index_page);

$meta_title,

The function outputs meta data (title, description, keywords) and Google site verification tags.

index_content($keyword_id, "$end", "$start");

$keyword,

$main_content,

$news_content,

The function outputs index page content. Depending on settings configured via administration interface, it outputs links to latest pages, news stories, text content or custom index content. $end - code snippet to be used after each item. $start - code snippet to be used before each item.

pages.php functions

meta_data($keyword_id, $keyword, $category_id, $meta_description, $meta_keywords, $index_page);

$meta_title,

The function outputs meta data (title, description, keywords) and Google site verification tags.

display_tags($keyword, $published); The function outputs tags related to selected page. Page 13

bookmarking_icons($keyword); The function outputs social bookmarking icons and 'email to friend' form.

photobucket_module($keyword_id, $keyword, $photobucket_content); The function outputs relevant image(s) from PhotoBucket website.

get_news($keyword_id, $keyword, $news_content); The function outputs news stories from selected news portals.

get_articles($keyword_id, $keyword, $article_content); The function outputs content from selected article directories.

youtube_module($keyword_id, $keyword, $youtube_content); The function outputs relevant video(s) from YouTube website.

get_main_content($keyword_id, $keyword, $main_content); The function outputs content from selected search engines.

display_comments_form($keyword_id, $keyword, $message_to_display); The function displays comments form and posted comments.

Page 14

Sponsor Documents

Or use your account on DocShare.tips

Hide

Forgot your password?

Or register your new account on DocShare.tips

Hide

Lost your password? Please enter your email address. You will receive a link to create a new password.

Back to log-in

Close