Go Back   Pligg CMS Forum > Other > Suggestions

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-19-2007, 09:25 AM
dollars5's Avatar
Pligg is my love :)
 
Join Date: Dec 2006
Location: India
Posts: 2,154
Thanks: 290
Thanked 266 Times in 177 Posts
Smile Easy template switching

Hello,

Just a small suggestion from my end on the template switching. currently from Configuration, you have to enter the template name into the textbox next to the template to use and it picks up and uses it.

Have you looked into the Wordpress or drupal or phpBB template system - all it does is to enumerate the folders present in the themes folder and lists them as a dropdown for admins to select one. It even picks up an screenshot of the template and displays next to it.

References:
File: functions.php
Function: get_themes()
SVN file location: http://trac.wordpress.org/browser/tr.../theme.php#L91

I think such a system for Pligg will make it much easier for the admins to configure and use.

A a note: The success of Wordpress, Drupal, Joomla or any CMS for that matter was attributed to the easiness to configure and use, when admins can get it run easily - he would recommend it to more admins - thus more users, more contributors, better system.

Just my $0.02.
Reply With Quote
  #2 (permalink)  
Old 02-19-2007, 11:30 AM
Constant Pligger
 
Join Date: Apr 2006
Location: USA
Posts: 576
Thanks: 31
Thanked 24 Times in 20 Posts
Good idea, I think it would be a nice feature to have, although I think there are other things higher on the priority list.
__________________
God bless,
-en3r0

Torrop.com - Torrent and P2P News
MemeVote.com - Find and vote on Memes
Reply With Quote
  #3 (permalink)  
Old 02-19-2007, 01:55 PM
dollars5's Avatar
Pligg is my love :)
 
Join Date: Dec 2006
Location: India
Posts: 2,154
Thanks: 290
Thanked 266 Times in 177 Posts
If time permits - I plan to get started with it..
Reply With Quote
  #4 (permalink)  
Old 02-19-2007, 02:06 PM
Yankidank's Avatar
Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 1,822
Thanks: 110
Thanked 182 Times in 128 Posts
Send a message via AIM to Yankidank Send a message via Skype™ to Yankidank
Did you know about settemplate.php?
Example: http://demo.pligg.com/settemplate.php
__________________
Need a Pligg Host?
Get 3 free months
when you buy a year of hosting.
Use the coupon PLIGG at either...
MidPhase hosting starting at $7.95/month.
ANhosting hosting starting as low as $4.95/month.
Reply With Quote
  #5 (permalink)  
Old 02-19-2007, 07:00 PM
dollars5's Avatar
Pligg is my love :)
 
Join Date: Dec 2006
Location: India
Posts: 2,154
Thanks: 290
Thanked 266 Times in 177 Posts
Wow, it already exists - very good, But from Admin Control panel - almost I have never noted it.

Thanks for helping Yankidank.
Reply With Quote
  #6 (permalink)  
Old 02-19-2007, 08:15 PM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,547
Thanks: 254
Thanked 649 Times in 513 Posts
Just a little info if you're wondering what settemplate is. It's a file that we keep forgetting to implement into the templates that lets your users use their own template. Even though the admin has yget set in the admin panel, users can select whichever one they want to use. A cookie is saved on their machine so the template settings are saved until they choose a different template or delete the cookie.
__________________
I accept donations for my time helping users like you on the forum and IRC.
Reply With Quote
  #7 (permalink)  
Old 02-19-2007, 11:38 PM
dollars5's Avatar
Pligg is my love :)
 
Join Date: Dec 2006
Location: India
Posts: 2,154
Thanks: 290
Thanked 266 Times in 177 Posts
Just played around with it - it is for the users to set templates, but are the template names hard-coded instead of being picked from folders (as we have the modules do)? if it picks up automatically it would be great.

I was originally referring to the Admin Panel template setting as many get struck with wrong name, frequently.

Such a great thing shouldn't be missed - looking forward to have it integrated into core very soon.

Thanks for the good work guys.
Reply With Quote
  #8 (permalink)  
Old 02-19-2007, 11:56 PM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,547
Thanks: 254
Thanked 649 Times in 513 Posts
Quote:
Originally Posted by dollars5 View Post
but are the template names hard-coded instead of being picked from folders (as we have the modules do)? if it picks up automatically it would be great.
No, the templates in set template are not hard coded. Links are shown only for templates in the /templates directory.
__________________
I accept donations for my time helping users like you on the forum and IRC.
Reply With Quote
  #9 (permalink)  
Old 02-19-2007, 11:59 PM
dollars5's Avatar
Pligg is my love :)
 
Join Date: Dec 2006
Location: India
Posts: 2,154
Thanks: 290
Thanked 266 Times in 177 Posts
But when i tried with older version (Beta 9) - it just showed only mollio-beat always though I have all templates in place. but the newer version (Beta 9.1) showed all templates - that made me think it was hard-coded.

My mistake and Thanks for clarifying.
Reply With Quote
  #10 (permalink)  
Old 02-20-2007, 12:01 AM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,547
Thanks: 254
Thanked 649 Times in 513 Posts
Quote:
Originally Posted by dollars5 View Post
But when i tried with older version (Beta 9) - it just showed only mollio-beat always though I have all templates in place. but the newer version (Beta 9.1) showed all templates - that made me think it was hard-coded.

My mistake and Thanks for clarifying.
Actually, I was wrong. I am looking at the latest files and didn't know Jit had removed all the links to the other templates and it was only displaying yget (the only template I have) so I thought it wasn't hard coded. It shouldn't be too hard to fix.
__________________
I accept donations for my time helping users like you on the forum and IRC.
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

BB code is On
Smilies are On
[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
LemonTwist Template (Free) by Yankidank Yankidank Pligg Templates 29 11-20-2008 01:44 AM
MacBlue Free Pligg Template by Yankidank Yankidank Pligg Templates 13 11-10-2008 05:37 PM
How to make / change a template in Pligg Beta 7 jimbeam General Help 0 12-05-2006 01:19 PM


Search Engine Friendly URLs by vBSEO 3.2.0