This Wiki entry will describe how to add a new template to your Pligg website.
First steps to do before starting a template.
This step will include your template in the settemplate.php file so that it can be selected.
Open: /templates/templates.tpl
Add to the last line:
Create: /templates/TemplateName/ directory, replacing TemplateName with your own template title.
Copy: The contentes of a preexisting template of your choice. (ex. /templates/mollio/)
Paste: The copied template contents of your choice into the new /templates/TemplateName/ directory. This will function as a starting point for creating your new template and it will make the process a lot easier than trying to figure it out and write a template from scratch.
Let's take for example Digital nature, now the default template for the pligg beta 9.
The main file is
pligg.tpl.
header.tpl and
footer.tpl are, as you may guess the commun header and footer for all you site. the main content is
index_center.tpl.
Each entry is located in the file
link_summary.tpl sidebar.tpl contain the modules located in the directory
sidebar_modules