Results 1 to 10 of 62

Hybrid View

  1. #1
    Join Date
    Sep 2008
    Posts
    220
    Plugin Contributions
    0

    Default Re: template switch

    Anyone else having problem with this? As one of the users wrote in the beginning of this thread i also get the classic view, and i cannot switch to other templates in my admin

    I have 1.3.8a off course, and i have enabled the templateswitch sidebox to "Yes" for all of my templates.

    The templates.txt file is put into www/images/

    but still no work.

    Anyone please??

  2. #2
    Join Date
    Sep 2008
    Posts
    220
    Plugin Contributions
    0

    Default Re: template switch

    I deleted the "init_templates.php" from included/init_includes/overrides and now my template is ok and i can switch between the templates in my admin.

    But off course the file init_tempaltes.php should not be deleted..is it maybe supposed to be in the " included/init_includes" folder?

  3. #3
    Join Date
    Sep 2008
    Posts
    220
    Plugin Contributions
    0

    Default Re: template switch

    Anyone please?

  4. #4
    Join Date
    Jun 2008
    Location
    Osprey, Florida
    Posts
    151
    Plugin Contributions
    14

    Default Re: template switch

    I have a temporary solution that worked for me. Find your file includes\init_includes\overrides\init_templates.php. On that file find the following code on line 41:

    PHP Code:
     $template_dir 'classic'
       if(isset(
    $_GET['template_switch_id'])){
        
    zen_setcookie("zctemplate"$_GET['template_switch_id'], time()+(60*60*24*365));
        
    $template_dir $_GET['template_switch_id'];
      } else {
          if(isset(
    $_COOKIE["zctemplate"])){
            
    $template_dir $_COOKIE["zctemplate"];
            
    zen_setcookie("zctemplate"$_COOKIE["zctemplate"], time()+(60*60*24*365)); 
          }
      } 
    and change it to:
    PHP Code:
     $template_dir 'classic'
       if(isset(
    $_GET['template_switch_id'])){
        
    zen_setcookie("zctemplate"$_GET['template_switch_id'], time()+(60*60*24*365));
        
    $template_dir $_GET['template_switch_id'];
      } 
    the only problem with this solution is that the chosen template will not be stored in a cookie for future visits.

    I have this addon installed in one of my websites and works fine. I installed the same files on a different website and ran into the same problem you did.

    If I find a better solution I'll post it here.

 

 

Similar Threads

  1. v151 Title tag on my template pages missing - cannot switch to default template
    By mrcastle in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 6 Aug 2014, 12:00 AM
  2. Lose my template style when I switch to my URL
    By ak6000 in forum Upgrading to 1.5.x
    Replies: 2
    Last Post: 19 Jun 2012, 04:30 PM
  3. Template overide/switch for one category
    By Davx in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 12 Sep 2011, 06:15 PM
  4. trying to install and switch to another template
    By sdpamperin in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 7 Sep 2009, 09:32 PM
  5. Fatal Error in UK Switch/Maesto cc_uk addon
    By hutting in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 16 May 2006, 10:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg