convert a smarty site back into php

Discussion in 'Programming' started by j634, Aug 17, 2008.

  1. #1
    Is there a program that will ease the transition from smarty back into php?
    I have a script that is using smarty(which I am sick of) and want it converted back into good ol php and html.
    If there is something that would help with the rewrite than that would be great.

    Thanks
     
    j634, Aug 17, 2008 IP
  2. rnilucero

    rnilucero Peon

    Messages:
    45
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    how much you'll offer to change back your site
     
    rnilucero, Aug 17, 2008 IP
  3. blognol

    blognol Peon

    Messages:
    87
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I can do this for you , cost is $30 per page. If its ok please PM me
     
    blognol, Aug 17, 2008 IP
  4. it career

    it career Notable Member

    Messages:
    3,562
    Likes Received:
    155
    Best Answers:
    0
    Trophy Points:
    270
    #4
    There is no script which will do it for you , you have to code it in PHP manually.
     
    it career, Aug 17, 2008 IP
  5. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #5
    Indeed, you have to do this by hand, it's almost near impossible to do this automaticly!
     
    EricBruggema, Aug 18, 2008 IP
  6. blueribbon

    blueribbon Peon

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Out of curiosity, what made you sick of smarty? Maybe we can help you with any issue that you had trouble with... Smarty should be making your life easier ;-)
     
    blueribbon, Aug 18, 2008 IP
  7. j634

    j634 Peon

    Messages:
    104
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Thanks, but prefer to try things on my own.

    That would cost me about $1200. Thanks anyway

    That was my thought, but thought I would ask.

    The frustration came from trying to include a .tpl page within another .tpl page. Nothing worked and it should be simple. I will clarify and it was my mistake - the script in question is not using smarty, only tpl files.

    I had to change and copy php code in order for the script I want on my front page to show. Now it will not redirect to the second page of registration. It is very frustrating.

    I think this is the code that is causing problems
    $tpl -> Zone("regform", "success");
    _fnc("reload", 2, "?L=registration.questionaire");
    Code (markup):
    Before the register and questionaire files were in the same folder. Now I have moved the register file 1 step up and it won't go to the questionaire file.
     
    j634, Aug 18, 2008 IP
  8. kittymcooper

    kittymcooper Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Not fancy, not beautiful but does most of the conversion for you, available at the download area of my web site (live links not available to me yet ...)

    http://openskywebdesign.com/cms/modules.php?name=Downloads&d_op=viewdownload&cid=5

    I am converting a CMS made simple site to JOOMLA so wrote this fast over the last few days. I know this is an old thread but I found it when looking for this converter, was hoping someone else had already written it.

    It does not do everything but does mmost of what I need and I will continue to add functionality to it as I go

    Kitty Cooper
    OpenSkyWebDesign.com
     
    kittymcooper, Sep 13, 2010 IP
  9. lordspace

    lordspace Peon

    Messages:
    38
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    ooh man, you should have changed the tpl file instead.
    Smarty generates php (smarty "cache" files) files based on the templates and included plugins, modifiers etc.
    At some point Smarty will regenerate the php files and your changes will be lost.

    I don't think it is a good idea to rewrite the whole thing.
    Smarty is not hard to learn.

    here is how to include a file. Source: http://www.smarty.net/manual/en/language.function.include.php

    
    {include file='page_footer.tpl'}
    
    Code (markup):
     
    lordspace, Sep 16, 2010 IP