it is actually very easy to achieve all you want with some tricks
as CB has the "Problem" that it does not add itemids to some pages I didi it like this. I want to display different module on the same position for the different CB pages. SO you need to set each of those modules to "all" and then in your template index.php you narrow it down with javascript whether the module should display:
You can use almost all parts of the url like "task", "option", "user"... Just look at the urls CB generates and choose the value you need.
all the values after the "REQUEST" in the following code are part of CB urls.
[code:1]<?php
if ( $_REQUEST == "usersList" ) {
mosLoadModules('your module position', -1);}
else if ( $_REQUEST == "userProfile" ) {
mosLoadModules('headerCB_P', -1);}
else if ( $_REQUEST == "userDetails" ) {
mosLoadModules('headerCB_D', -1);}
else if ( $_REQUEST == "manageConnections" ) {
mosLoadModules('headerCB_C', -1);}
else if ( $_REQUEST == "com_comprofiler_invite" ) {
mosLoadModules('headerCB_I', -1);}
else {
mosLoadModules('headerCB', -1);}
php ?>[/code:1]
I hope that helps.
Of course u do not need the else if values. you can also just create many if statements.
for register u need [code:1]
if ( $_REQUEST == "registers"[/code:1]
Fabs
Post edited by: ffaabbss, at: 2007/11/10 17:53