1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Template Modification System (TMS) 1.3.1

Make styles without template edition! Make addons without template hooks!

  1. guiltar

    guiltar Well-Known Member

    guiltar submitted a new resource:

    Template Modification System (TMS) (version Beta 1) - Modify templates before compilation

    Screenshot4.png

    Read more about this resource...
     
    Tize, faeronsayn, sandis and 12 others like this.
  2. Adam Howard

    Adam Howard Well-Known Member

    This has great potential.

    vBulletin had one of this on vBulletin.org ..... Was very useful.

    BSD?
     
    Tize and guiltar like this.
  3. guiltar

    guiltar Well-Known Member

    Yes, it will always be free and and available to change.

    Now in todo
    1) add regular expressions and callbacks.
    2) import/export modifications together with addons and styles.
    3) detailed compilation log.
     
    Tize, Mopquill and ragtek like this.
  4. Yoskaldyr

    Yoskaldyr Well-Known Member

    Good! :)

    P.S. Waiting for import/export features....
     
    cornishman, guiltar and Adam Howard like this.
  5. lasertits

    lasertits Active Member

    Interesting... gonna keep my eye on this one. (y)
     
    guiltar likes this.
  6. Dan

    Dan Well-Known Member

    Thanks guiltar!! This is a must have addon.
     
    guiltar likes this.
  7. guiltar

    guiltar Well-Known Member

    How is testing? Any suggestions, reports?
     
  8. Allan

    Allan Well-Known Member

    It's empty :(
     

    Attached Files:

    • tms.png
      tms.png
      File size:
      43.7 KB
      Views:
      123
  9. Sadik B

    Sadik B Well-Known Member

    First Resource that goes on my Watch List!

    Many Thanks Guiltar. When I finally convert my main site and use this, I will surely be sending a donation your way.
     
    guiltar likes this.
  10. guiltar

    guiltar Well-Known Member

    It should be empty since you havent created any.
    For example you want to add banner. So fill out the form and save it.
    And you may create modifications only for custom templates.
    Enable debug mode and go to master style (easiest way) or you have to do any change in your test style to create a custom template.
    ScreenshotBanner.png
    Code:
    {xen:raw $sidebar}
    <div class="section">
    <div class="secondaryContent">
    <h3 class="textHeading larger">{xen:phrase xenforo}</h3>
      <div style="text-align:center;background-color: #176093;">
        <a href="http://xenforo.com" >
                <img src="http://xenforo.com/styles/default/xfsite/logo.png">
            </a>         
      </div>
    </div>
     
  11. guiltar

    guiltar Well-Known Member

    guiltar updated Template Modification System (TMS) with a new update entry:

    New features added, usability improved.

    Read the rest of this update entry...
     
    lasertits, Yoskaldyr and yavuz like this.
  12. Adam Howard

    Adam Howard Well-Known Member

    Got the following errors when trying to upgrade

    1st try - uploaded xml


    Code:
    Server Error
     
    Mysqli statement execute error : Can't DROP 'template_final'; check that column/key exists
     
    Zend_Db_Statement_Mysqli->_execute() in Zend/Db/Statement.php at line 317
    Zend_Db_Statement->execute() in Zend/Db/Adapter/Abstract.php at line 479
    Zend_Db_Adapter_Abstract->query() in TMS/Manufacture.php at line 112
    TMS_Manufacture->_installVersion2() in TMS/Manufacture.php at line 59
    TMS_Manufacture::build()
    call_user_func() in XenForo/Model/AddOn.php at line 214
    XenForo_Model_AddOn->installAddOnXml() in XenForo/Model/AddOn.php at line 169
    XenForo_Model_AddOn->installAddOnXmlFromFile() in XenForo/ControllerAdmin/AddOn.php at line 212
    XenForo_ControllerAdmin_AddOn->actionUpgrade() in XenForo/FrontController.php at line 310
    XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
    XenForo_FrontController->run() in /var/www/forums/admin.php at line 13

    2nd try via server install (not upload)

    Code:
    Server Error
     
    Mysqli statement execute error : Unknown column 'search_string' in 'tms_modification'
     
    Zend_Db_Statement_Mysqli->_execute() in Zend/Db/Statement.php at line 317
    Zend_Db_Statement->execute() in Zend/Db/Adapter/Abstract.php at line 479
    Zend_Db_Adapter_Abstract->query() in TMS/Manufacture.php at line 106
    TMS_Manufacture->_installVersion2() in TMS/Manufacture.php at line 59
    TMS_Manufacture::build()
    call_user_func() in XenForo/Model/AddOn.php at line 214
    XenForo_Model_AddOn->installAddOnXml() in XenForo/Model/AddOn.php at line 169
    XenForo_Model_AddOn->installAddOnXmlFromFile() in XenForo/ControllerAdmin/AddOn.php at line 212
    XenForo_ControllerAdmin_AddOn->actionUpgrade() in XenForo/FrontController.php at line 310
    XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
    XenForo_FrontController->run() in /var/www/forums/admin.php at line 13
    Figured I could maybe try to un-install and do new install

    Un-install gave following error (but seemingly is un-installed)

    Code:
    Mysqli statement execute error : Can't DROP 'template_final'; check that column/key exists
     
    Zend_Db_Statement_Mysqli->_execute() in Zend/Db/Statement.php at line 317
    Zend_Db_Statement->execute() in Zend/Db/Adapter/Abstract.php at line 479
    Zend_Db_Adapter_Abstract->query() in TMS/Manufacture.php at line 152
    TMS_Manufacture->_uninstallStep1() in TMS/Manufacture.php at line 138
    TMS_Manufacture::destroy()
    call_user_func() in XenForo/DataWriter/AddOn.php at line 193
    XenForo_DataWriter_AddOn->_postDelete() in XenForo/DataWriter.php at line 1738
    XenForo_DataWriter->delete() in XenForo/ControllerAdmin/AddOn.php at line 116
    XenForo_ControllerAdmin_AddOn->actionDelete() in XenForo/FrontController.php at line 310
    XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
    XenForo_FrontController->run() in /var/www/forums/admin.php at line 13
    Tried to install RC1 with the following error (no install)

    Code:
    Server Error
     
    Mysqli statement execute error : Duplicate column name 'template_modifications'
     
    Zend_Db_Statement_Mysqli->_execute() in Zend/Db/Statement.php at line 317
    Zend_Db_Statement->execute() in Zend/Db/Adapter/Abstract.php at line 479
    Zend_Db_Adapter_Abstract->query() in TMS/Manufacture.php at line 72
    TMS_Manufacture->_installVersion1() in TMS/Manufacture.php at line 59
    TMS_Manufacture::build()
    call_user_func() in XenForo/Model/AddOn.php at line 214
    XenForo_Model_AddOn->installAddOnXml() in XenForo/Model/AddOn.php at line 169
    XenForo_Model_AddOn->installAddOnXmlFromFile() in XenForo/ControllerAdmin/AddOn.php at line 178
    XenForo_ControllerAdmin_AddOn->actionInstall() in XenForo/FrontController.php at line 310
    XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
    XenForo_FrontController->run() in /var/www/forums/admin.php at line 13
     
  13. guiltar

    guiltar Well-Known Member

    Oh. I will check it. Try following:
    drop all of these fields if they exist:
    xf_template.template_modified
    xf_template.template_modifications
    xf_template_map.template_final
    xf_template_map.template_modifications
    drop table:
    tms_modification

    Then install it from scratch. I will check installer now.
     
  14. guiltar

    guiltar Well-Known Member

    TheVisitors likes this.
  15. Adam Howard

    Adam Howard Well-Known Member

    Love the new location for the menu. Blended in nicely --vs-- giving it, it's own menu as before.

    Capture.PNG
     
    Yoskaldyr likes this.
  16. bambua

    bambua Well-Known Member

    I just installed this and on installation / saving any template I get a Server 500 error with this showing up in my apache log:

    Code:
    PHP Fatal error:  Call to undefined method XenForo_Application::getOptions() in /var/vhosts/ss/trunk/community/library/TMS/Model/Template.php on line 92, referer: http://www.shadowedsoul.net/community/admin.php?styles/save
    Any ideas?
     
  17. guiltar

    guiltar Well-Known Member

    Almost sure that you use old version of XF. The method XenForo_Application::getOptions() exists in 1.1.2
    What exactly is your version? Honestly I was doing and testing the addon only on the last 1.1.2.
     
    bambua likes this.
  18. bambua

    bambua Well-Known Member

    I feel like a complete idiot now...I forgot to update my local test server to 1.1.2

    Thanks Guiltar
     
  19. guiltar

    guiltar Well-Known Member

    Don't blame yourself :)
    I should raise minimal XF version requirement in installer.
     
  20. Syndol

    Syndol Guest

    Hi guiltar,

    First of all let me say this is an amazing add-on!
    I was looking into using this to wrap up template edits for one of my add-ons, however I have encountered a problem with template names.
    Your 'tms_modification' table has 'template_title' set to varchar(25) but it should be varchar(50) as it is in the 'xf_template' table.

    Other than that, I am still playing with it but it looks absolutely great.
     
    guiltar likes this.

Share This Page