Go Back   Pligg Forum > Pligg Help > Pligg Tutorials
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-18-2007, 10:43 PM
fatbyjhnsn fatbyjhnsn is offline
New Pligger
 
Join Date: Aug 2007
Posts: 3
Downloads: 0
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Creating new template pages

I've searched a bunch, but I haven't found an answer to this question yet:

I'm developing a pligg site with a custom template. I want to add some new pages to my template that don't come with the standard pligg install. For example, I want to create an "About" page explaining the site. I also want to create a "Contact" page and a blog. I'd like these pages to include the pligg header, footer, and sidebar, so I assume I need a new .tpl file.

Creating the .tpl is easy (just a text file), but how do I link to it? How do I make sure that when that URL is called from a link on my pligg site, the header, footer, and sidebar are included in the resulting page? I don't even know exactly how to call the URL, all the URLs in pligg are something like <a href="{$URL_submit}">

Basically, how do I add more templated pages to pligg?

Thanks for the help!
Reply With Quote
Sponsored Links
Check out the New Templates at the Pligg Pro Shop.
  #2 (permalink)  
Old 09-18-2007, 11:19 PM
chuckroast's Avatar
chuckroast chuckroast is online now
Pligg Developer
Pligg Version: 9.9
Pligg Template: Arbuckle
 
Join Date: Jun 2006
Location: PA
Posts: 1,914
Downloads: 47
Uploads: 15
Thanks: 138
Thanked 385 Times in 234 Posts
Pligg comes with an about page template in which you can edit at template/faq-eng_center.tpl
Pligg also comes with a contact module which will do exactly as you described above.
You may also want to check out Understanding Pligg Template Files
__________________
Visit PliggPro the official Pligg Mods & Template Shop!

Reply With Quote
  #3 (permalink)  
Old 09-20-2007, 11:17 PM
fatbyjhnsn fatbyjhnsn is offline
New Pligger
 
Join Date: Aug 2007
Posts: 3
Downloads: 0
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks Chuck, that's helpful. But I still have the need to add some other pages that don't come with pligg.

I've checked out the understanding pligg template files post, which is helpful, but I guess I'm still not there yet. For example, when I create my new .tpl file, do I just need to put {config_load file=”/libs/lang.conf”} in the top and that's it?

Then, how do I call that new .tpl page? What should I link my internal navigation to? I assume this involves setting up a new variable or something, but I'm not sure how or where to do that.
Reply With Quote
  #4 (permalink)  
Old 09-20-2007, 11:48 PM
chuckroast's Avatar
chuckroast chuckroast is online now
Pligg Developer
Pligg Version: 9.9
Pligg Template: Arbuckle
 
Join Date: Jun 2006
Location: PA
Posts: 1,914
Downloads: 47
Uploads: 15
Thanks: 138
Thanked 385 Times in 234 Posts
If you look at faq.php and faq-eng_center.tpl you can see how everything is called, you can also copy those and create a new name, edit the php file to point to the newly named tpl file and just add anything you want in there to easily create new pages. Then you can freely add links to those pages anywhere you want..
__________________
Visit PliggPro the official Pligg Mods & Template Shop!

Reply With Quote
  #5 (permalink)  
Old 09-21-2007, 05:58 AM
nothingman nothingman is offline
Constant Pligger
Pligg Version: 9.7
Pligg Template: Yget
 
Join Date: Nov 2006
Posts: 160
Downloads: 25
Uploads: 0
Thanks: 25
Thanked 1 Time in 1 Post
fatbyjhnsn, if you're looking at creating custom pligg pages, take a look at this.
Simple Static Page Support...

Check out the reply from disier, I think that's what you're looking for.
Reply With Quote
  #6 (permalink)  
Old 09-21-2007, 08:55 PM
not2serious's Avatar
not2serious not2serious is offline
Pligg Donor
Pligg Version: v0.96 w/modifications
Pligg Template: Yget w/modifications
 
Join Date: Apr 2007
Location: East Coast, USA
Posts: 227
Downloads: 29
Uploads: 0
Thanks: 16
Thanked 16 Times in 15 Posts
You may also want to take a look at this thread: Howto Ad additional navigation to nav bar?
__________________
My Pligg Site: Critique My Art
My Arts Directory: Links 2 Arts
Reply With Quote
  #7 (permalink)  
Old 09-28-2007, 11:16 PM
davemackey's Avatar
davemackey davemackey is offline
Pligg Donor
Pligg Version: 9.9.
Pligg Template: siChunkBlue
 
Join Date: Aug 2007
Location: Langhorne, PA
Posts: 230
Downloads: 7
Uploads: 0
Thanks: 10
Thanked 21 Times in 15 Posts
Just figured I'd say thanks to all who posted here. I had the same question and you guys gave some great material to read up on.
David.
Reply With Quote
  #8 (permalink)  
Old 10-01-2007, 08:35 PM
fatbyjhnsn fatbyjhnsn is offline
New Pligger
 
Join Date: Aug 2007
Posts: 3
Downloads: 0
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks everyone! nothingman, I think you gave me exactly what I want. Back to work...
Reply With Quote
  #9 (permalink)  
Old 10-17-2007, 03:25 AM
mozer mozer is offline
New Pligger
 
Join Date: Oct 2007
Posts: 1
Downloads: 3
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks, that's helpful
Reply With Quote
  #10 (permalink)  
Old 02-08-2008, 12:36 PM
giltron giltron is offline
New Pligger
Pligg Version: 9.8.1
Pligg Template: Blue-Eye Template
 
Join Date: Nov 2007
Location: USA
Posts: 7
Downloads: 9
Uploads: 0
Thanks: 0
Thanked 2 Times in 1 Post
Applying these mods I get a Fatal error

Fatal error: Cannot redeclare shortentext() (previously declared in /home/gilberto/domains/real-estate-mini-sites.com/public_html/sidebar_comments.php:45) in /home/gilberto/domains/real-estate-mini-sites.com/public_html/sidebar_comments.php on line 45
Reply With Quote
Reply



Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
help:You may have typed the template name wrong or it does not exist llmsn Installation and Upgrade Help 4 03-17-2008 07:31 PM
Creating Static Pages... SoapTaco General Help 2 06-02-2007 03:11 PM
Error: You may have typed the template name wrong or it does not exist. phlexus Installation and Upgrade Help 2 06-02-2007 12:42 AM
9.1 :: Errors keep pouring in after succesfully Creating Tables The Edifier Installation and Upgrade Help 1 05-01-2007 12:15 PM
How to make / change a template in Pligg Beta 7 jimbeam General Help 0 12-05-2006 12:19 PM


LinkBacks Enabled by vBSEO 3.0.0