Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » Display a module only on a logged in...
Page:
1
Display a module only on a logged in user CB page
Re: Display a module only on a logged in user CB page
ok, usually the Profile is linked to by a menu item. So the best way is often to do this:
if (
$option == 'com_comprofiler'
and $Itemid == '576' // adjust as necessary!
and JRequest::getVar('task') == ''
) return XXX;
The Itemid has to relate to the itemid of the menu item with the "user profile" on it.
So that PHP code checks to see if you are on that menu item, and that there's no "task". If you have navigated within that menu item to other CB pages then any of those other pages will have set a "task" as far as I know.
I think that will do what you want - test and see.
Cheers,
Stephen
Administrator has disabled public posting
Page:
1
- Index
- » MetaMod
- » MetaMod General Support
- » Display a module only on a logged in...
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5943
- Posts this week:
- 2
- User Info:
- Total Users:
- 7639
- Newest User:
- corwin8669
- Members Online:
- 0
- Guests Online:
- 171
- Online:
- There are no members online
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked