Jump to content

masgra

Retired Forum Member
  • Posts

    13
  • Joined

  • Last visited

About masgra

masgra's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. Try it without the trailing / in the img tag: {if $hometitle=='Inicio'} [img=../../../images/your_spanish.jpg] {else} [img=../../../images/your_english.jpg] {/if} Also replace 'Inicio' with what ever you have in your Spanish language file for $hometitle.
  2. skmd, Here is a solution for you using a known variable value from the language files - $hometitle: {if $hometitle=='Inicio'} [img=../../../images/your_spanish.jpg] {else} [img=../../../images/your_english.jpg] {/if} $hometitle is avaiable throughout the client area, so should work for what you are trying to do.
  3. skmd, I put a {debug} in my code and there is no reference to the currently selected language available. You will probably need to raise a ticket to see if Matt can add a SMARTY variable for the current language before what you are trying to do will be possible.
  4. Just to confirm, the following did NOT work: {php} if (setlanguage=true&language=spanish) { echo '[img=../../../images/pict1.jpg]'; } else { echo '[img=../../../images/pict2.jpg]'; } {/php}
  5. skmd, WHMCS uses SMARTY templates, so you have to replace the php opening tag (<?php) with {php}, and the php closing tag (?>) with {/php}.
  6. noxcon, The Register link in your piece of code has this: [url="register.php"]{$LANG.clientregister}[/url] It should have this: [url="register.php"]{$LANG.clientregistertitle}[/url] $LANG.clientregistertitle rather than $LANG.clientregister. This should fix it for you.
  7. The piece of code that robbo is referring to is in header.tpl. Your Register link isn't showing because you have a trailing / in the <a> tag after register.php": [url="register.php"]{$LANG.clientregistertitle}[/url] This need to be replaced by: [url="register.php"]{$LANG.clientregistertitle}[/url] As for the templates, the way works is that basically there is a tpl file for every php file. So if you want to change a particular page/file, get it's name from the link of from your browser address bar and then see if there is a tpl file with the same name.
  8. noxcon, The table that has the "Please login or register" in it is within a <td> of a table that has the css class "wrapper" assigned to it, to this table will never be greater than 100% of the "wrapper" class width. You will either need to edit the styles.css file to make "wrapper" width greater, or move the table containing the "Please login or register" outside the "wrapper" table. Hope this make sense.
  9. wdalessi, What happens if you run the command from tcl in ssh? Run your command minus the cron timings at tcl: php -q /home/*****/domains/*******/public_html/whmcs/admin/cron.php Then check in WHMCS>UTILITIES>Activity Log to see if it has run.
  10. chick, Your code will add a link back to your main index page, but you will loose the link back to the client area homepage. You would probably be better adding a new row: <tr> <td class="navbutton" onmouseover="this.className='navbuttonover';" onmouseout="this.className='navbutton';" onclick="window.location='http://mysite/index.htm'">Home</td> </tr> and then amend the language file entry for 'hometitle' to something like 'Support Area', so that your clients still have access to the client area homepage: /whmcspath/lang/English.txt (502) $_LANG["hometitle"] = "Support Area"; Hope this helps.
  11. bear, Try the following: {if $productinfo} {$LANG.orderproduct}: [b]{$productinfo.groupname} - {$productinfo.name}[/b]</p> {/if} Works for me.
×
×
  • 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