The WorksForWeb Community Forums
Welcome to the WorksForWeb community forums. Here you can discuss WorksForWeb products with others and contribute to the rapidly growing WorksForWeb community. Please note that while WorksForWeb staff try to maintain presence on the forums, this is not the most reliable way to contact WorksForWeb staff. In case you require a timely response from WorksForWeb on an issue, please open a support ticket here. For pre-sales questions, please open a sales ticket here.

Welcome, Guest. Please login or register.
May 21, 2012, 09:25:28 PM

Login with username, password and session length
Search:     Advanced search
Added the iLister-related Boards

Rate My Site Boards Added

Merged iAuto and iRealty Support Forums together

Several new tips in the Tips and Tricks section
1,604 Posts in 625 Topics by 1,179 Members
Latest Member: bobsteam
* Home Help Search Login Register
+  The iAuto/iRealty/iLister Support Forum
|-+  iAuto, iRealty and iLister v.4.x
| |-+  Bugs and Patches
| | |-+  The "Theme Cloning Failure" Issue
« previous next »
Pages: [1] Print
Author Topic: The "Theme Cloning Failure" Issue  (Read 1531 times)
Smart Girl
Administrator
Full Member
*****

Karma: 5
Posts: 224


View Profile
« on: October 17, 2007, 04:31:20 PM »

Description:
In order to create a new theme, you need to clone one of the old themes. The system fails to clone theme, thus you are unable to create a new theme.

Affected versions and products:
iAuto 4.0.0. -- 4.0.1.
iRealty 4.0.0. -- 4.0.1.

Instructions:

1. Add the following lines:

function getAbsoluteThemeCachePath($theme){
      return System::getSystemSettings('COMPILED_TEMPLATES_DIR').'user/'.$theme;
   }


between (lines approx. # 3-4):

class TemplatePathManager
 {


and (lines approx. # 6-7):

    function getAbsoluteTemplatesPath ($access_type = null)
    {


to the system/core/TemplatePathManager.php file.


2. Add the following line:

FileSystem :: delete(TemplatePathManager::getAbsoluteThemeCachePath ($theme_name));

between (lines approx. #205-207):

return false;

   FileSystem :: delete(TemplatePathManager::getAbsoluteThemePath ($theme_name, $this->access_class));


and (lines approx. #208-209):

return true;
   }


to the system/lib/template_manager/TemplateEditor.php file.

3. Add the following line:

FileSystem :: mkpath(TemplatePathManager::getAbsoluteThemeCachePath ($to));

between (lines approx. #215-217):

$from_path = TemplatePathManager::getAbsoluteThemePath ($from, $this->access_class);
$to_path = TemplatePathManager::getAbsoluteThemePath ($to, $this->access_class);
FileSystem :: copy($from_path, $to_path);


and (line approx. #218):

}

to the system/lib/template_manager/TemplateEditor.php file.


If you find similar issues with your copy of iAuto or iRealty, please let us know.
Logged

apn3a
Newbie
*

Karma: 0
Posts: 23


View Profile
« Reply #1 on: November 04, 2007, 03:04:33 AM »

Hello,

although i got a full updated version (4.1) it seems that this bug was not fixed in there.

Also, the code you are posting here does not work.

Thanks,

Minas
« Last Edit: November 04, 2007, 03:24:45 AM by apn3a » Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Classified Software by Worksforweb Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!