Jump to content

.tpl file


Swannie

Recommended Posts

Well lets see... I use Dreamweaver, Crimson Editor, RF TextED, NotePad.... :)

 

Editor's are like good girl friends. Once you find one you like it's hard to switch to another. The RF TextED is nice and free. Also fast. I use it a lot for other scripts as well. Crimson Editor is another freebie but old. It's pluses are very fast, handles huge files, syntax color coding.

 

Dreamweaver is expensive, slow but does a lot of stuff the others don't.

Link to comment
Share on other sites

:!: Be careful using programs like Dreamweaver, especially when editing the header.tpl etc.

 

Dreamweaver likes to "complete" a table/div by adding a closing </div> or </table> tag (depends how you have coded your template files). This messes up your site layout as that closing tag should actually be in the footer.tpl (as an example).

 

My solution is to simply put what Dreamweaver needs so it is happy, but never actually use it...i.e at the end of the header.tpl I add...

{if $dreamweaver=='glitch'} </table>{/if}

Which of course is always false, so never loads on your actual web pages.

 

You will know which files Dreamweaver adds these closing tags to by simply opening a .tpl file and you will see that the file has changed, even though you haven't made an changes yourself. :roll:

 

Cheers,

Paul

Link to comment
Share on other sites

Tanks guys.

I have one more question and I'm not sure if this is the right forum. I got an email this morning with subject "Cron <intouchw@za1> 0 9 * * * php -q /home/intouchw/public_html/billing/whmcs/admin/cron.php" and body "/bin/sh: 0: command not found".

 

Does this mean there is an error with the cron job, or just nothing to process at this time?

 

 

Thanks

 

 

Swannie

Link to comment
Share on other sites

Tanks guys.

I have one more question and I'm not sure if this is the right forum. I got an email this morning with subject "Cron <intouchw@za1> 0 9 * * * php -q /home/intouchw/public_html/billing/whmcs/admin/cron.php" and body "/bin/sh: 0: command not found".

 

Does this mean there is an error with the cron job, or just nothing to process at this time?

Hi,

 

Check the path to "php". For example for my server I have to have something like this:

/<root path to php4>/bin/php-cli -q /<path to script>/cron.php

 

Cheers,

Paul

Link to comment
Share on other sites

  • 8 months later...

thanks iceman,

 

i was using dreamweaver and my page alignment was going haywire... and was totally unusable..

i am using portal template

with the homepage content appearing below the footer... it was a mess..

 

i used notepad and changed header.tpl & footer.tpl files..

 

and now it works perfectly... thanks i had to search the whole forum for this..

 

check it out www.LivelySite.com

Link to comment
Share on other sites

hey all you clever people...

 

What is the best program to edit the template files with?

 

:lol:

 

 

I would definately have to say that the best, not only for tpl, but all web pages (html, php, etc.) is notepad... Simple and straight-forward... No program to mess up your custom code.

Link to comment
Share on other sites

I would definately have to say that the best, not only for tpl, but all web pages (html, php, etc.) is notepad... Simple and straight-forward... No program to mess up your custom code.

 

Except Notepad itself, which I've seen first hand introduce odd line break chars that broke PERL/PHP scripts. :)

There are better text editors. For raw coding, I use UltraEdit, Note Tab Pro and a few others. On the server, I prefer Nano.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated