Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » Filtered display
Filtered display
Filtered display
Hi Stephen!
I have joomla 1.0 and the metamod for it, with CB. You helped before, how to set some mods to appear only to logged in users. Is there a way to identify useres registering at the moment or reclaiming their lost passwords in CB login?
Because the metamod works fine, but as I use this code:
if ($my->id > 0) return 33;
else return;
the 33 appears to users in the registration form, or wrote wrong pass, and any other
option, under CB login. Is it possible to filter them?
Re: Filtered display
That's hard to know... I don't have a 1.0 installation around any more to check this.
I wonder though, if someone hasn't yet registered, or has forgotten their password, the rule above should not be showing module 33 until after they are logged in. So are you saying that it's showing on the page after they finally logged in? How should Joomla distinguish between someone that's on that page (after logging in, after retrieving their password), and someone that has just logged in normally? Is is exactly the same page that they land on?
Is there any way that you can set things up so that someone registering for the first time gets pushed onto one page, and someone logging in normally gets pushed to a different page? Then you could set a different module on each page.
Cheers,
Stephen
Re: Filtered display
In CB login, there is an option of Login Redirection URL. But I just dont know, how to set up a new, blank page, where only the registration form will appear.
The links of register and lost pass has a variable, task.
( index.php?option=com_comprofiler&task=lostPassword )
( index.php?option=com_comprofiler&task=registers )
Is it possible to filter it in metamod? Maybe with :
if ($my->id > 0) or ( $task > 0 ) return;
else return 33;
Would it work? I'm poor with php syntax!
( Once registered, and logged in, all works fine. )
Re: Filtered display
Hey I'm glad that worked - sorry I couldn't provide the answer for you.
I would definitely put the words "registers" and "lostPassword" into quotes though - it's better PHP. It might not be giving you errors at the moment, but internally, PHP is quietly muttering away to itself about unrecognised keywords...
Cheers,
Stephen
- Index
- » MetaMod
- » MetaMod General Support
- » Filtered display
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:
- 174
- 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