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

What's hot

Cara Membuat Website Menggunakan CMS Wordpress & XAMPP
Cara Membuat Website Menggunakan CMS Wordpress & XAMPPCara Membuat Website Menggunakan CMS Wordpress & XAMPP
Cara Membuat Website Menggunakan CMS Wordpress & XAMPP
Muhammad Iqbal
 
Php File Upload
Php File UploadPhp File Upload
Php File Upload
Hiroaki Kawai
 
Web htmlt1
Web   htmlt1Web   htmlt1
Web htmlt1
mjdrichards
 
Parameter Passing & Session Tracking in PHP
Parameter Passing & Session Tracking in PHPParameter Passing & Session Tracking in PHP
Parameter Passing & Session Tracking in PHP
amichoksi
 
Php talk
Php talkPhp talk
Php talk
Jamil Ramsey
 
My_sql_with_php
My_sql_with_phpMy_sql_with_php
My_sql_with_php
Ishaq Shinwari
 
PHP Programming: Intro
PHP Programming: IntroPHP Programming: Intro
PHP Programming: Intro
Things Lab
 
Manish
ManishManish
Manish
Manish Jain
 
Php 1
Php 1Php 1
Htaccess file tutorial and tips
Htaccess file tutorial and tipsHtaccess file tutorial and tips
Htaccess file tutorial and tips
Imam Rosidi
 
Php login system with admin features evolt
Php login system with admin features   evoltPhp login system with admin features   evolt
Php login system with admin features evolt
GIMT
 
Wordpress
WordpressWordpress
Wordpress
vinoth kumar
 
File Upload
File UploadFile Upload
File Upload
webhostingguy
 
How WordPress Works
How WordPress WorksHow WordPress Works
How WordPress Works
Angela Bowman
 
Using php to design a guestbook website tutorial
Using php to design a guestbook website tutorialUsing php to design a guestbook website tutorial
Using php to design a guestbook website tutorial
phillyquin
 
Deploy and Publish Web Service
Deploy and Publish Web ServiceDeploy and Publish Web Service
Deploy and Publish Web Service
pradeepfdo
 
Session handling in php
Session handling in phpSession handling in php
WordCamp Finland 2015 - WordPress Security
WordCamp Finland 2015 - WordPress SecurityWordCamp Finland 2015 - WordPress Security
WordCamp Finland 2015 - WordPress Security
Tiia Rantanen
 
Class 6 - PHP Web Programming
Class 6 - PHP Web ProgrammingClass 6 - PHP Web Programming
Class 6 - PHP Web Programming
Ahmed Swilam
 
Laravelphpmiddleware
LaravelphpmiddlewareLaravelphpmiddleware
Laravelphpmiddleware
Ducat
 

What's hot (20)

Cara Membuat Website Menggunakan CMS Wordpress & XAMPP
Cara Membuat Website Menggunakan CMS Wordpress & XAMPPCara Membuat Website Menggunakan CMS Wordpress & XAMPP
Cara Membuat Website Menggunakan CMS Wordpress & XAMPP
 
Php File Upload
Php File UploadPhp File Upload
Php File Upload
 
Web htmlt1
Web   htmlt1Web   htmlt1
Web htmlt1
 
Parameter Passing & Session Tracking in PHP
Parameter Passing & Session Tracking in PHPParameter Passing & Session Tracking in PHP
Parameter Passing & Session Tracking in PHP
 
Php talk
Php talkPhp talk
Php talk
 
My_sql_with_php
My_sql_with_phpMy_sql_with_php
My_sql_with_php
 
PHP Programming: Intro
PHP Programming: IntroPHP Programming: Intro
PHP Programming: Intro
 
Manish
ManishManish
Manish
 
Php 1
Php 1Php 1
Php 1
 
Htaccess file tutorial and tips
Htaccess file tutorial and tipsHtaccess file tutorial and tips
Htaccess file tutorial and tips
 
Php login system with admin features evolt
Php login system with admin features   evoltPhp login system with admin features   evolt
Php login system with admin features evolt
 
Wordpress
WordpressWordpress
Wordpress
 
File Upload
File UploadFile Upload
File Upload
 
How WordPress Works
How WordPress WorksHow WordPress Works
How WordPress Works
 
Using php to design a guestbook website tutorial
Using php to design a guestbook website tutorialUsing php to design a guestbook website tutorial
Using php to design a guestbook website tutorial
 
Deploy and Publish Web Service
Deploy and Publish Web ServiceDeploy and Publish Web Service
Deploy and Publish Web Service
 
Session handling in php
Session handling in phpSession handling in php
Session handling in php
 
WordCamp Finland 2015 - WordPress Security
WordCamp Finland 2015 - WordPress SecurityWordCamp Finland 2015 - WordPress Security
WordCamp Finland 2015 - WordPress Security
 
Class 6 - PHP Web Programming
Class 6 - PHP Web ProgrammingClass 6 - PHP Web Programming
Class 6 - PHP Web Programming
 
Laravelphpmiddleware
LaravelphpmiddlewareLaravelphpmiddleware
Laravelphpmiddleware
 

Viewers also liked

Ciclo natural del agua
Ciclo natural del aguaCiclo natural del agua
Ciclo natural del agua
profesorajuanita
 
2012 TLC Evolution Program
2012 TLC Evolution Program2012 TLC Evolution Program
2012 TLC Evolution Program
Michael Tinder
 
WIB Kosten Userguide
WIB Kosten UserguideWIB Kosten Userguide
WIB Kosten Userguide
Lukas Ritzel
 
Vitamin d ref
Vitamin d refVitamin d ref
Vitamin d ref
Chintan Chavda
 
The Global Innovation Index 2013
The Global Innovation Index 2013The Global Innovation Index 2013
The Global Innovation Index 2013
WiseKnow Thailand
 
Tu espacio , tu problema
Tu espacio , tu problemaTu espacio , tu problema
Tu espacio , tu problema
conkrizz
 
PR-ZT-MAXXI_D.pdf
PR-ZT-MAXXI_D.pdfPR-ZT-MAXXI_D.pdf
Olivia Porter: Digital Research Presentation
Olivia Porter: Digital Research PresentationOlivia Porter: Digital Research Presentation
Olivia Porter: Digital Research Presentation
oliviaprter
 
Stott Interview
Stott InterviewStott Interview
Stott Interview
BertBrim
 
Rise of rome
Rise of romeRise of rome
Rise of rome
MrO97
 
Regional Tourism Trends by Northwest Regional Development Agency
Regional Tourism Trends by Northwest Regional Development AgencyRegional Tourism Trends by Northwest Regional Development Agency
Regional Tourism Trends by Northwest Regional Development Agency
Marketing Lancashire
 
Weltlos3
Weltlos3Weltlos3
Weltlos3
marcossage
 
Flocations THack
Flocations THackFlocations THack
Flocations THack
Kevin May
 

Viewers also liked (13)

Ciclo natural del agua
Ciclo natural del aguaCiclo natural del agua
Ciclo natural del agua
 
2012 TLC Evolution Program
2012 TLC Evolution Program2012 TLC Evolution Program
2012 TLC Evolution Program
 
WIB Kosten Userguide
WIB Kosten UserguideWIB Kosten Userguide
WIB Kosten Userguide
 
Vitamin d ref
Vitamin d refVitamin d ref
Vitamin d ref
 
The Global Innovation Index 2013
The Global Innovation Index 2013The Global Innovation Index 2013
The Global Innovation Index 2013
 
Tu espacio , tu problema
Tu espacio , tu problemaTu espacio , tu problema
Tu espacio , tu problema
 
PR-ZT-MAXXI_D.pdf
PR-ZT-MAXXI_D.pdfPR-ZT-MAXXI_D.pdf
PR-ZT-MAXXI_D.pdf
 
Olivia Porter: Digital Research Presentation
Olivia Porter: Digital Research PresentationOlivia Porter: Digital Research Presentation
Olivia Porter: Digital Research Presentation
 
Stott Interview
Stott InterviewStott Interview
Stott Interview
 
Rise of rome
Rise of romeRise of rome
Rise of rome
 
Regional Tourism Trends by Northwest Regional Development Agency
Regional Tourism Trends by Northwest Regional Development AgencyRegional Tourism Trends by Northwest Regional Development Agency
Regional Tourism Trends by Northwest Regional Development Agency
 
Weltlos3
Weltlos3Weltlos3
Weltlos3
 
Flocations THack
Flocations THackFlocations THack
Flocations THack
 

Similar to puissance-2roue

Z04 etano template_basics
Z04 etano template_basicsZ04 etano template_basics
Z04 etano template_basics
Daouni Monsite
 
Designing for magento
Designing for magentoDesigning for magento
Designing for magento
hainutemicute
 
WordPress Theming 101
WordPress Theming 101WordPress Theming 101
WordPress Theming 101
Zero Point Development
 
lecture 9.pptx
lecture 9.pptxlecture 9.pptx
lecture 9.pptx
ITNet
 
WordPress theme development from scratch : ICT MeetUp 2013 Nepal
WordPress theme development from scratch : ICT MeetUp 2013 NepalWordPress theme development from scratch : ICT MeetUp 2013 Nepal
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 ...
Don't Fear the Custom Theme: How to build a custom WordPress theme with only ...Don't Fear the Custom Theme: How to build a custom WordPress theme with only ...
Don't Fear the Custom Theme: How to build a custom WordPress theme with only ...
LinnAlexandra
 
crtical points for customizing Joomla templates
crtical points for customizing Joomla templatescrtical points for customizing Joomla templates
crtical points for customizing Joomla templates
amit das
 
Custome page template
Custome page templateCustome page template
Custome page template
Lucky Ali
 
Hpage
HpageHpage
Creating a basic joomla
Creating a basic joomlaCreating a basic joomla
Creating a basic joomla
shailendra vishwakarma
 
How to make a WordPress theme
How to make a WordPress themeHow to make a WordPress theme
How to make a WordPress theme
Hardeep Asrani
 
How to Install and Configure Drupal CMS
How to Install and Configure Drupal CMSHow to Install and Configure Drupal CMS
How to Install and Configure Drupal CMS
darandon
 
How to Install and Configure Drupal CMS
How to Install and Configure Drupal CMSHow to Install and Configure Drupal CMS
How to Install and Configure Drupal CMS
ffats1
 
Manual
ManualManual
Customizing WordPress Themes
Customizing WordPress ThemesCustomizing WordPress Themes
Customizing WordPress Themes
Laura Hartwig
 
WordPress Structure and Best Practices
WordPress Structure and Best PracticesWordPress Structure and Best Practices
WordPress Structure and Best Practices
markparolisi
 
Introduction to-concrete-5
Introduction to-concrete-5Introduction to-concrete-5
Introduction to-concrete-5
ketanraval
 
Introduction to-concrete-5
Introduction to-concrete-5Introduction to-concrete-5
Introduction to-concrete-5
Ketan Raval
 
Overview on WordPress theme file structure and working functionality
Overview on WordPress theme file structure and working functionality Overview on WordPress theme file structure and working functionality
Overview on WordPress theme file structure and working functionality
Rakesh Kushwaha
 
How to Install a PHP Script in cPanel.pdf
How to Install a PHP Script in cPanel.pdfHow to Install a PHP Script in cPanel.pdf
How to Install a PHP Script in cPanel.pdf
Host It Smart
 

Similar to puissance-2roue (20)

Z04 etano template_basics
Z04 etano template_basicsZ04 etano template_basics
Z04 etano template_basics
 
Designing for magento
Designing for magentoDesigning for magento
Designing for magento
 
WordPress Theming 101
WordPress Theming 101WordPress Theming 101
WordPress Theming 101
 
lecture 9.pptx
lecture 9.pptxlecture 9.pptx
lecture 9.pptx
 
WordPress theme development from scratch : ICT MeetUp 2013 Nepal
WordPress theme development from scratch : ICT MeetUp 2013 NepalWordPress theme development from scratch : ICT MeetUp 2013 Nepal
WordPress theme development from scratch : ICT MeetUp 2013 Nepal
 
Don't Fear the Custom Theme: How to build a custom WordPress theme with only ...
Don't Fear the Custom Theme: How to build a custom WordPress theme with only ...Don't Fear the Custom Theme: How to build a custom WordPress theme with only ...
Don't Fear the Custom Theme: How to build a custom WordPress theme with only ...
 
crtical points for customizing Joomla templates
crtical points for customizing Joomla templatescrtical points for customizing Joomla templates
crtical points for customizing Joomla templates
 
Custome page template
Custome page templateCustome page template
Custome page template
 
Hpage
HpageHpage
Hpage
 
Creating a basic joomla
Creating a basic joomlaCreating a basic joomla
Creating a basic joomla
 
How to make a WordPress theme
How to make a WordPress themeHow to make a WordPress theme
How to make a WordPress theme
 
How to Install and Configure Drupal CMS
How to Install and Configure Drupal CMSHow to Install and Configure Drupal CMS
How to Install and Configure Drupal CMS
 
How to Install and Configure Drupal CMS
How to Install and Configure Drupal CMSHow to Install and Configure Drupal CMS
How to Install and Configure Drupal CMS
 
Manual
ManualManual
Manual
 
Customizing WordPress Themes
Customizing WordPress ThemesCustomizing WordPress Themes
Customizing WordPress Themes
 
WordPress Structure and Best Practices
WordPress Structure and Best PracticesWordPress Structure and Best Practices
WordPress Structure and Best Practices
 
Introduction to-concrete-5
Introduction to-concrete-5Introduction to-concrete-5
Introduction to-concrete-5
 
Introduction to-concrete-5
Introduction to-concrete-5Introduction to-concrete-5
Introduction to-concrete-5
 
Overview on WordPress theme file structure and working functionality
Overview on WordPress theme file structure and working functionality Overview on WordPress theme file structure and working functionality
Overview on WordPress theme file structure and working functionality
 
How to Install a PHP Script in cPanel.pdf
How to Install a PHP Script in cPanel.pdfHow to Install a PHP Script in cPanel.pdf
How to Install a PHP Script in cPanel.pdf
 

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.