Aha, ja sam skontao da prvi kod treba postaviti u index.php od predložka, a za drugi nisam siguran pa sam nešto pokušavao ali ništa... ti meni napiši koje bi ti ja trebao fajlove postaviti pa da ti ubacis te kodove u njih ...
Ja bih ovako da to izgleda ako je moguće, da se gostima prikaže taj modul a prijavljenim da se ne prikazuje ni taj modul a niti zamjenski
Evo ja sam nasao još jedno riješenje ali neide mi nikako ...
Ja bih ovako da to izgleda ako je moguće, da se gostima prikaže taj modul a prijavljenim da se ne prikazuje ni taj modul a niti zamjenski
Evo ja sam nasao još jedno riješenje ali neide mi nikako ...
Citat:Joomla is very good at hiding stuffs from PUBLIC and revealing them when an user LOGS IN. But what,if we want to hide something from a LOGGED IN user ? Have you ever thought about it ? Well,Joomla has no such inbuilt function for this, but we cna do it with a little small hack into the template's index.php file.
Open up your index.php file of your active template.
You should already be familar for how Joomla displays a module position (with one of those <jdoc: ... /> tags). Find the module position that you want to hide and then wrap it in the following code:
Kod [Odaberi]
{xtypo_rounded1}<?php
// Get the user object
$user = &JFactory::getUser();
// Now work out the User ID
$userId = $user->get('id');
// Now hide the module if user is logged in
if ($userId == 0) :
// Now we break out of the PHP tags and display the JDOC tag to include the module
?>
<jdoc:include type="modules" name="public-right" style="xhtml" />
<?php endif; ?>{/xtypo_rounded1}
Citat:Thats it..
You can do this for the module positions,you want and they will work perfectly.