27
Quote:
Antoine wrote:
Well it might help to answer Mithrandirs question about which theme you are using. If the theme doesn't do something like this setting the options won't help a bit:
Quote:<{if $xoops_showrblock == 1}> <{/if}>
And also as stated before allways set the options BEFORE you include header.php. The header.php starts rendering the site so a good rule of thumb I use is to include it as late as possible. Possibly even right before you let Smarty render your template.
Sorry to not answer the thread question, but I have to get this myth beaten down below the floor:
header.php does NOT render ANYTHING - unless the page is cached, in which case you WANT it to render. header.php should be included as EARLY as possible, so as FEW database queries and code processing have been executed.
What you should do before including the header.php is:
a) Check page-specific permissions (module access perm is checked, but if you want e.g. only registered users or admin users to access it, this is the place to check for that)
b) Set $xoopsOption indexes such as template_main and show_rblocks
c) Nothing more
If you wait with including the header.php, you will have done all the processing and executed all the queries - but if the page is cached, it will just display that one, leaving the processing and query executions useless.