1. Note: This is your first module. Open the module plus the template file to see how everything works!
  2. To 'catch' a smarty variable just use <{$example}>, this will result in
    <{$example}>
    For the language you must put them into smarty var by doing to same but please add lang to the name to avoid conflicts and to keep it all clear.
  3. DO NOT use any echo in your php files, this will result in getting all that text above the xoops text, and that isn't exactly what you want huh?
  4. To have more templates, define them in xoops_version.php and update module.
  5. You can include other templates files (wich is really needed in complex modules), do it with <{include file="db:sample_secondfile"}<, wich would result in this case:
    <{include file="db:sample_secondfile"}>
  6. You can use too if's in template files, here a example plus the result:
    CODE:

    <{if $sample}>
    $sample is defined
    <{else}>
    $sample is not defined
    <{/if}>
    RESULT:

    <{if $sample}> $sample is defined <{else}> $sample is not defined <{/if}>
  7. For any other information about xoops and/or smarty, please use Wiki.