Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

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?

Zombipocok
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

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

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3313 Posts
User info in posts
Administrator has disabled public posting

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! smile

( Once registered, and logged in, all works fine. )

Zombipocok
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

Re: Filtered display

The solvation is:

if ( $my->id > 0 || $task == registers || $task == lostPassword )  return;
else return 33;

smile


Thanks anyway!

Zombipocok
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

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

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3313 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5914
Total Posts Today:
1
User Info:
 
Total Users:
10816
Newest User:
sakmy567q
Members Online:
0
Guests Online:
123

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