4
hi,
i'm using a tip who permits me to display a block when visitor is on a certain page.
under XOOPS 2.0.13.2
in header.php, near line 65
i've added this code :
if (eregi("storytopic", $_SERVER['QUERY_STRING'])) // search storytopic word in url's variables
{
$xoopsTpl->assign(array('block_welcome' => '0'));
}
else
{
$xoopsTpl->assign(array('bloc_welcome' => '1'));
}
then, in theme.html
<{foreach item=block from=$xoops_ccblocks}>
<{if $bloc_welcome == 1}>
<table align="center" cellpadding="0" cellspacing="2">
<tr>
<td> <div class="blockTitle"><{$block.title}>div>
<div class="blockContent"><{$block.content}>div>td>
tr>
table>
<{/if}>
<{/foreach}>
thus, if i'm not in any news category, i display my welcome block in center-center position.
I had to make these modifications, because I used the module news in top page, and I did not want that the welcome block is displayed when I was on a category of the news module.
I think that we can adapt this code for your case, and display a particular block on a particular category's page.
can you give us more details, with an exemple of category/url, and block name ?