Go Back   Pligg CMS Forum > Pligg Help > Customization Assistance

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-11-2008, 06:30 PM
New Pligger
 
Join Date: Jul 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
After switching templates, yget still shows

Hi,

I'm new to Pligg and I apologize if this question has been asked and answered already. I did a quick search but did not see anyone with my exact problem.

I created a copy of the yget template directory and renamed it to ygetnew. To test if I was seeing the new or old version of yget, I added the text 'ygetnew' as the first line of templates/ygetnew/header.tpl.

Then I went to admin / configure / template and changed the template from yget to ygetnew (and then confirmed it had been changed in the database).

Then I deleted everything in templates_c.

I still see the original yget on every page. If I edit templates/yget/header.tpl, then I see the change.

I installed some 3rd party templates and tried switching to them, but all I ever see is the original yget.

What is going on?

Thanks.

Josh in Berkeley, CA
Reply With Quote
  #2 (permalink)  
Old 08-11-2008, 06:49 PM
Yankidank's Avatar
Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 1,832
Thanks: 110
Thanked 183 Times in 129 Posts
Send a message via AIM to Yankidank Send a message via Skype™ to Yankidank
Thats odd, you seemed to take all the right steps even the extra mile of clearing the templates_c directory. My first idea is clear your cookies and refresh the page.

You could check your mysql to make sure that it changed templates in the database. Log into phpmyadmin then view the tables for pligg_config. The template should be row 52. It should read lik this this if it took the change correctly:
Code:
52     Template     $thetemp     ygetnew     yget     text     Template     Default template     normal     '
Try doing the settemplate.php trick to see if you can change templates using your cookies. If at some point you may have clicked on a link like the one below it will make the template cookie based and you won't see the changes no matter what.

/settemplate.php?template=ygetnew

Last thing to do is view your page source and see what template it's directing to. Search for something like a .css file that is in the template directory.
__________________
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
  #3 (permalink)  
Old 08-11-2008, 07:23 PM
New Pligger
 
Join Date: Jul 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Hi Yankidank,

Thanks for the ideas. Here's some more info:

1. I confirmed using phpmyadmin that my change had taken.
2. I looked at the cookies and the template was being set, but even after clearing all cookies the problem still exists.
3. If I manually edit the cookies and change template to ygetnew, then it works.
4. If I try to use settemplate.php to change the template from yget to anything (even from yget to yget), I get this error:

"Warning: Template "yget" does not exist! " or "Warning: Template "ygetnew" does not exist!"

5. Viewing the source of the page confirms that the css files are coming from templates/yget/css no matter what I try to change the template to.

6. I don't know if it's relevant or not, but earlier in the day, before I started having this problem, I tried to get some 3rd party templates working. There was an error about missing libs/lang.conf file, and I had to re-upload templates/yget

Josh

Quote:
Originally Posted by Yankidank View Post
Thats odd, you seemed to take all the right steps even the extra mile of clearing the templates_c directory. My first idea is clear your cookies and refresh the page.

You could check your mysql to make sure that it changed templates in the database. Log into phpmyadmin then view the tables for pligg_config. The template should be row 52. It should read lik this this if it took the change correctly:
Code:
52     Template     $thetemp     ygetnew     yget     text     Template     Default template     normal     '
Try doing the settemplate.php trick to see if you can change templates using your cookies. If at some point you may have clicked on a link like the one below it will make the template cookie based and you won't see the changes no matter what.

/settemplate.php?template=ygetnew

Last thing to do is view your page source and see what template it's directing to. Search for something like a .css file that is in the template directory.
Reply With Quote
  #4 (permalink)  
Old 08-11-2008, 10:24 PM
catchpen's Avatar
Pligg Donor
 
Join Date: Jan 2008
Posts: 210
Thanks: 30
Thanked 18 Times in 13 Posts
maybe this will work -
Check your template_details.php in your template directory.
Code:
<?php
	$template_info['name'] = 'yget'; // do not use the _ character. use - instead
	$template_info['desc'] = 'yget';
	$template_info['author'] = 'Pligg Team';
	$template_info['support'] = 'http://forums.pligg.com/yget/';
	$template_info['version'] = 0.990;
	$template_info['designed_for_pligg_version'] = '9.9.0';
?>
change the yget parts here for Pligg to distinguish it's a different template
Reply With Quote
  #5 (permalink)  
Old 08-11-2008, 10:25 PM
Yankidank's Avatar
Coder/Designer
Pligg Version: SVN
Pligg Template: Wistie
 
Join Date: Dec 2005
Location: Ocala, FL
Posts: 1,832
Thanks: 110
Thanked 183 Times in 129 Posts
Send a message via AIM to Yankidank Send a message via Skype™ to Yankidank
Catchpen, I was just about to suggest that. I wasn't sure if this could cause the error or not though.
__________________
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
  #6 (permalink)  
Old 08-11-2008, 11:28 PM
chuckroast's Avatar
Coder/Designer
Pligg Version: 1.0
Pligg Template: ExpertVision
 
Join Date: Jun 2006
Location: PA
Posts: 2,399
Thanks: 171
Thanked 440 Times in 279 Posts
Yep, you need to change the template_details.php otherwise pligg still thinks it's the same template.

This post really should be under customization assistance, so I'm moving it there.
__________________
Visit PliggPro the official Pligg Mods & Template Shop!

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 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
Warning message after switching templates rtofvnt Installation and Upgrade Help 3 03-13-2008 04:56 PM
Pligg Templates for Sale / Custom Templates Available carpathios Template Sales 3 11-15-2007 10:47 AM
Toggling between templates techsmeks Template Support 3 07-19-2007 03:09 PM
[Fixed] cann't list friends list in the yget templates haxhax Bug Report 5 02-11-2007 02:44 PM
login.php shows errors outside of templates dwg Bug Report 3 04-11-2006 05:06 PM


Search Engine Friendly URLs by vBSEO 3.2.0