SlideShare a Scribd company logo
How to create new custom pages for your Etano site.
You'll need to create three files:
1. a PHP file
2. an HTML file
3. a CSS file.
1. Creating the PHP File:
First we need to create the PHP file for the page, which pulls in all the required content and basic functions. You can create the new PHP file by opening the
login.php file located in your main Etano directory with your favorite editor.
With the file open, in your editor select "save as", which is typically found under the "File" section.
When the window popups to save the file, type in the name of the new file, which will be the name you're going to use for your new page. For example, save it as
... mypage.php (make sure to include the .php extension or else your file will be saved as a text file by default).
Ok, now we need to edit a few things in our newly saved "mypage.php" file.
You can simply copy and paste the following into the php file and then edit the info shown in red:
require 'includes/common.inc.php';
require _BASEPATH_.'/includes/user_functions.inc.php';
check_login_member('all');
$tpl=new phemplate(_BASEPATH_.'/skins_site/'.get_my_skin().'/','remove_nonjs');
$tpl->set_file('content','mypage.html');
$tpl->process('content','content');
$tplvars['title']='My Page Title';
$tplvars['page_title']='My Page Title';
$tplvars['meta_keywords']='your, list, of, keywords';
$tplvars['meta_diz']='your page description';
$tplvars['page']='mypage';
$tplvars['css']='mypage.css';
include 'frame.php';
The following explains what the various lines of code shown above are for, and/or what they do:
require 'includes/common.inc.php';
require _BASEPATH_.'/includes/user_functions.inc.php';
check_login_member('all'); <- sets the access permission, use all to allow everyone, use auth to allow only members, use paid to allow access for paid members
only
$tpl=new phemplate(_BASEPATH_.'/skins_site/'.get_my_skin().'/','remove_nonjs');
$tpl->set_file('content','mypage.html'); <- adds our html content
$tpl->process('content','content');
$tplvars['title']='My Page Title'; <- adds title to top of browser
$tplvars['page_title']=' My Page Title'; <- adds title to top of html page
$tplvars['meta_keywords']='your, list, of, keywords'; <- gets added to the keyword meta tag in the header
$tplvars['meta_diz']='your page description'; <- gets added to the description meta tag in the header
$tplvars['page']='mypage'; <- ID name for page
$tplvars['css']='mypage.css'; <- adds a link to our CSS file
include 'frame.php'; <- wraps the html page with the header and footer
Be sure to save and upload your new PHP file to the main root directory where the login.php and index.php files are located.
2. Creating The HTML File:
This is very simple, open notepad or your favorite editor and leave it "BLANK" and save it as mypage.html (make sure to include the .html extension or else your
file will be saved as a text file by default).
Be sure you save it to the proper directory folder where the other HTML files reside, which is in the skins_site/def/ folder
Now you are ready to add your content to the "mypage.html" file, which can be just standard text or you can include standard html tags and markup as well. Note:
you only need to add your page content, all the header and footer HTML is included by the frame file.
3. Creating The CSS File:
This is also very simple, open notepad or your favorite editor and save it as mypage.css (once again, make sure to include the .css extension or else your file will
be saved as a text file by default).
Be sure you save it to the proper directory folder where the other CSS files reside, which is in the skins_site/def/styles/ folder.
Now copy and paste the following code into your mypage.css file:
/* This sets the main content holder to the left of the page when no left menu is desired */
#content_column1 {
float: none;
}
If you want to include any special styling to any of the content in your new page, include your CSS code in this file.
This tutorial is for creating basic html pages and is not intended for integrating 3rd party PHP scripts. Integrating 3rd party PHP scripts is more complex and
should only be attempted by those with more advanced PHP knowledge as the approaches will vary depending on the script.

More Related Content

PPT
Installation of Drupal on Windows XP with XAMPP
Rupesh Kumar
 
PPTX
Php session 3 Important topics
mohamedsaad24
 
PPT
New: Two Methods of Installing Drupal on Windows XP with XAMPP
Rupesh Kumar
 
PPT
Php - Getting good with session
Firdaus Adib
 
PPT
Installation of Drupal on Windows XP
Rupesh Kumar
 
DOC
Creating a Simple PHP and MySQL-Based Login System
Azharul Haque Shohan
 
RTF
Site Mocikut
erick
 
PDF
Best practice for WordPress theme building - WordPress North East June 2021
Peacock Carter Ltd
 
Installation of Drupal on Windows XP with XAMPP
Rupesh Kumar
 
Php session 3 Important topics
mohamedsaad24
 
New: Two Methods of Installing Drupal on Windows XP with XAMPP
Rupesh Kumar
 
Php - Getting good with session
Firdaus Adib
 
Installation of Drupal on Windows XP
Rupesh Kumar
 
Creating a Simple PHP and MySQL-Based Login System
Azharul Haque Shohan
 
Site Mocikut
erick
 
Best practice for WordPress theme building - WordPress North East June 2021
Peacock Carter Ltd
 

What's hot (20)

PPTX
Cara Membuat Website Menggunakan CMS Wordpress & XAMPP
Muhammad Iqbal
 
ODP
Php File Upload
Hiroaki Kawai
 
PPTX
Web htmlt1
mjdrichards
 
PPT
Parameter Passing & Session Tracking in PHP
amichoksi
 
PPTX
Php talk
Jamil Ramsey
 
PPTX
My_sql_with_php
Ishaq Shinwari
 
PDF
PHP Programming: Intro
Things Lab
 
PPT
Manish
Manish Jain
 
PDF
Php 1
Fajar Baskoro
 
PDF
Htaccess file tutorial and tips
Imam Rosidi
 
PDF
Php login system with admin features evolt
GIMT
 
ODP
Wordpress
vinoth kumar
 
PPT
File Upload
webhostingguy
 
PDF
How WordPress Works
Angela Bowman
 
PPTX
Using php to design a guestbook website tutorial
phillyquin
 
PPT
Deploy and Publish Web Service
pradeepfdo
 
PDF
WordCamp Finland 2015 - WordPress Security
Tiia Rantanen
 
PPT
Class 6 - PHP Web Programming
Ahmed Swilam
 
PPTX
Laravelphpmiddleware
Ducat
 
Cara Membuat Website Menggunakan CMS Wordpress & XAMPP
Muhammad Iqbal
 
Php File Upload
Hiroaki Kawai
 
Web htmlt1
mjdrichards
 
Parameter Passing & Session Tracking in PHP
amichoksi
 
Php talk
Jamil Ramsey
 
My_sql_with_php
Ishaq Shinwari
 
PHP Programming: Intro
Things Lab
 
Manish
Manish Jain
 
Htaccess file tutorial and tips
Imam Rosidi
 
Php login system with admin features evolt
GIMT
 
Wordpress
vinoth kumar
 
File Upload
webhostingguy
 
How WordPress Works
Angela Bowman
 
Using php to design a guestbook website tutorial
phillyquin
 
Deploy and Publish Web Service
pradeepfdo
 
WordCamp Finland 2015 - WordPress Security
Tiia Rantanen
 
Class 6 - PHP Web Programming
Ahmed Swilam
 
Laravelphpmiddleware
Ducat
 
Ad

Viewers also liked (13)

PDF
Ciclo natural del agua
profesorajuanita
 
PPT
2012 TLC Evolution Program
Michael Tinder
 
PPT
WIB Kosten Userguide
Lukas Ritzel
 
PDF
Vitamin d ref
Chintan Chavda
 
PDF
The Global Innovation Index 2013
WiseKnow Thailand
 
PPTX
Tu espacio , tu problema
conkrizz
 
PDF
PR-ZT-MAXXI_D.pdf
unn | UNITED NEWS NETWORK GmbH
 
PPTX
Olivia Porter: Digital Research Presentation
oliviaprter
 
PDF
Stott Interview
BertBrim
 
PPTX
Rise of rome
MrO97
 
PPT
Regional Tourism Trends by Northwest Regional Development Agency
Marketing Lancashire
 
PDF
Weltlos3
marcossage
 
PPT
Flocations THack
Kevin May
 
Ciclo natural del agua
profesorajuanita
 
2012 TLC Evolution Program
Michael Tinder
 
WIB Kosten Userguide
Lukas Ritzel
 
Vitamin d ref
Chintan Chavda
 
The Global Innovation Index 2013
WiseKnow Thailand
 
Tu espacio , tu problema
conkrizz
 
Olivia Porter: Digital Research Presentation
oliviaprter
 
Stott Interview
BertBrim
 
Rise of rome
MrO97
 
Regional Tourism Trends by Northwest Regional Development Agency
Marketing Lancashire
 
Weltlos3
marcossage
 
Flocations THack
Kevin May
 
Ad

Similar to puissance-2roue (20)

PDF
Z04 etano template_basics
Daouni Monsite
 
PDF
Designing for magento
hainutemicute
 
PDF
WordPress Theming 101
Zero Point Development
 
PPTX
lecture 9.pptx
ITNet
 
PPTX
WordPress theme development from scratch : ICT MeetUp 2013 Nepal
Chandra Prakash Thapa
 
PDF
Don't Fear the Custom Theme: How to build a custom WordPress theme with only ...
LinnAlexandra
 
PPTX
crtical points for customizing Joomla templates
amit das
 
PPTX
Custome page template
Lucky Ali
 
DOCX
Creating a basic joomla
shailendra vishwakarma
 
PDF
How to make a WordPress theme
Hardeep Asrani
 
PPTX
How to Install and Configure Drupal CMS
darandon
 
PPTX
HTML workshop for beginners just getting into front end programming
buenojacob743
 
PPTX
How to Install and Configure Drupal CMS
ffats1
 
PPTX
Customizing WordPress Themes
Laura Hartwig
 
PPTX
WordPress Structure and Best Practices
markparolisi
 
PDF
Introduction to-concrete-5
Ketan Raval
 
PDF
Introduction to-concrete-5
ketanraval
 
PPTX
Overview on WordPress theme file structure and working functionality
Rakesh Kushwaha
 
Z04 etano template_basics
Daouni Monsite
 
Designing for magento
hainutemicute
 
WordPress Theming 101
Zero Point Development
 
lecture 9.pptx
ITNet
 
WordPress theme development from scratch : ICT MeetUp 2013 Nepal
Chandra Prakash Thapa
 
Don't Fear the Custom Theme: How to build a custom WordPress theme with only ...
LinnAlexandra
 
crtical points for customizing Joomla templates
amit das
 
Custome page template
Lucky Ali
 
Creating a basic joomla
shailendra vishwakarma
 
How to make a WordPress theme
Hardeep Asrani
 
How to Install and Configure Drupal CMS
darandon
 
HTML workshop for beginners just getting into front end programming
buenojacob743
 
How to Install and Configure Drupal CMS
ffats1
 
Customizing WordPress Themes
Laura Hartwig
 
WordPress Structure and Best Practices
markparolisi
 
Introduction to-concrete-5
Ketan Raval
 
Introduction to-concrete-5
ketanraval
 
Overview on WordPress theme file structure and working functionality
Rakesh Kushwaha
 

puissance-2roue

  • 1. How to create new custom pages for your Etano site. You'll need to create three files: 1. a PHP file 2. an HTML file 3. a CSS file. 1. Creating the PHP File: First we need to create the PHP file for the page, which pulls in all the required content and basic functions. You can create the new PHP file by opening the login.php file located in your main Etano directory with your favorite editor. With the file open, in your editor select "save as", which is typically found under the "File" section. When the window popups to save the file, type in the name of the new file, which will be the name you're going to use for your new page. For example, save it as ... mypage.php (make sure to include the .php extension or else your file will be saved as a text file by default). Ok, now we need to edit a few things in our newly saved "mypage.php" file. You can simply copy and paste the following into the php file and then edit the info shown in red: require 'includes/common.inc.php'; require _BASEPATH_.'/includes/user_functions.inc.php'; check_login_member('all'); $tpl=new phemplate(_BASEPATH_.'/skins_site/'.get_my_skin().'/','remove_nonjs'); $tpl->set_file('content','mypage.html'); $tpl->process('content','content'); $tplvars['title']='My Page Title'; $tplvars['page_title']='My Page Title'; $tplvars['meta_keywords']='your, list, of, keywords'; $tplvars['meta_diz']='your page description'; $tplvars['page']='mypage'; $tplvars['css']='mypage.css'; include 'frame.php'; The following explains what the various lines of code shown above are for, and/or what they do: require 'includes/common.inc.php'; require _BASEPATH_.'/includes/user_functions.inc.php'; check_login_member('all'); <- sets the access permission, use all to allow everyone, use auth to allow only members, use paid to allow access for paid members only $tpl=new phemplate(_BASEPATH_.'/skins_site/'.get_my_skin().'/','remove_nonjs'); $tpl->set_file('content','mypage.html'); <- adds our html content $tpl->process('content','content'); $tplvars['title']='My Page Title'; <- adds title to top of browser $tplvars['page_title']=' My Page Title'; <- adds title to top of html page $tplvars['meta_keywords']='your, list, of, keywords'; <- gets added to the keyword meta tag in the header $tplvars['meta_diz']='your page description'; <- gets added to the description meta tag in the header $tplvars['page']='mypage'; <- ID name for page $tplvars['css']='mypage.css'; <- adds a link to our CSS file include 'frame.php'; <- wraps the html page with the header and footer Be sure to save and upload your new PHP file to the main root directory where the login.php and index.php files are located. 2. Creating The HTML File: This is very simple, open notepad or your favorite editor and leave it "BLANK" and save it as mypage.html (make sure to include the .html extension or else your file will be saved as a text file by default). Be sure you save it to the proper directory folder where the other HTML files reside, which is in the skins_site/def/ folder Now you are ready to add your content to the "mypage.html" file, which can be just standard text or you can include standard html tags and markup as well. Note: you only need to add your page content, all the header and footer HTML is included by the frame file. 3. Creating The CSS File: This is also very simple, open notepad or your favorite editor and save it as mypage.css (once again, make sure to include the .css extension or else your file will be saved as a text file by default). Be sure you save it to the proper directory folder where the other CSS files reside, which is in the skins_site/def/styles/ folder. Now copy and paste the following code into your mypage.css file: /* This sets the main content holder to the left of the page when no left menu is desired */ #content_column1 { float: none; } If you want to include any special styling to any of the content in your new page, include your CSS code in this file. This tutorial is for creating basic html pages and is not intended for integrating 3rd party PHP scripts. Integrating 3rd party PHP scripts is more complex and should only be attempted by those with more advanced PHP knowledge as the approaches will vary depending on the script.