Adding Templates

Register an Account
 
 
Article Tools Display Modes
  #1 (permalink)  
Old 09-03-2007, 05:16 PM
Yankidank's Avatar
Pligg Founder/Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 4,934
Send a message via AIM to Yankidank
Reserved for future use.

The Twitter Module for Pligg CMS!
Register, Login, and Submit Stories with Twitter. An absolute MUST HAVE for all Pligg sites!

Last edited by Yankidank; 09-03-2007 at 07:15 PM.
Reply With Quote
  #2  

Adding Templates

« Previous Chapter   Templates

This Wiki entry will describe how to add a new template to your Pligg website.
 

Templates - Contents

Starting a New Template.


Create: /templates/TEMPLATENAME / directory, replacing TEMPLATENAME with your own template title.
Copy: The contents of a preexisting template of your choice. Make sure that you are copying a template that is compatible with yoru version of Pligg. (ex. /templates/wistie/)
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.

This step will include your template in the settemplate.php file so that it can be selected.
Open: /templates/templates.tpl
Copy/Paste the list item line for Wistie. Then rename Wistie to your template name:
HTML Code:
<li><a href = "{$my_pligg_base}/settemplate.php?template=TEMPLATENAME">TEMPLATENAME</a></li>

Modifying a Template


Pligg offers a built in template editor (located at /admin/admin_editor.php), but we recommend that you make edits to the tpl files from your local computer and then uploading the altered .tpl files to your server when making changes.

The quickest way to change the look of your site is to simply modify the stylesheet file (.css), by editing only that file you can dramatically change the look of site. For some templates, replacing images is a quick way to change the look of parts of a template.

« Previous Chapter   Templates

Contributors: Yankidank
Created by Yankidank, 09-03-2007 at 05:16 PM
Last edited by Yankidank, 12-06-2008 at 04:05 PM
1 Comments , 4790 Views
 

Article Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Started a few free templates Danny Questions and Comments 10 10-23-2010 12:46 AM
Uploaded Templates do not show in the list exstatic Questions and Comments 2 08-11-2008 09:24 PM
New Fresh Series v9.7 Pligg Templates!! crakez Templates for Sale 17 12-05-2007 04:40 AM
Pligg Templates for Sale / Custom Templates Available carpathios Templates for Sale 3 11-15-2007 11:47 AM
Templates tbronson Wiki Articles 2 11-04-2007 05:37 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development