Jump to content

Diferent Templates For Each Language


drtduarte

Recommended Posts

Hello to all,

 

I wil start to use whmcs in 2008.

I have installed the script without problems and it works great.

I was using whmap and tried the importation with success, but as I only have 50 users, I will do everything manually.

 

I just have some questions cause I was using whmap for 2 diferent languages.

 

How do I use different header and footer for each language, can this be with 2 templates? Can I choose the template with a link?

 

How can I have 2 different Terms of Service links, one for each language?

 

Regards

David

Link to comment
Share on other sites

You'll need to either:

a) disable the language system and use different templates for each language (yes, you can choose the template in a link to the system: filename.php?systemtemplate=templatename)

 

b) Store the entire header and footer of your site in the language files under two variables, and replace the header and footer.tpl files' contents with {$LANG.header} and {$LANG.footer}, respectively. (Or replace 'header' and 'footer' with whatever you call the variables in your language files.)

Link to comment
Share on other sites

  • 1 month later...

b) Store the entire header and footer of your site in the language files under two variables, and replace the header and footer.tpl files' contents with {$LANG.header} and {$LANG.footer}, respectively. (Or replace 'header' and 'footer' with whatever you call the variables in your language files.)

 

 

This is what I did and it did not work.

I removed all contents in header.tple and put the following code in there

 

{$LANG.header}

 

then in my lang file I put the following code

$_LANG["header"] = "

and put all my html previously in heade.tpl

like

<html>

<title>

bla bla bla

 

";It did not wok can any please please tell me how to achive this?

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