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.

 

Module displays on all pages when defining with php

Module displays on all pages when defining with php

Hi there, I confess I'm a novice but have attempted to restrict the display of a specific module to a single page. I am using Cobalt 3 and needed to identify the page using the advanced debugger. I copied the php and pasted it into the module, then changed the module number to the one I require.

If I set the menu assignment to none, the module obviously doesn't show on any page, including the one designated in the php script. If I set to all, it shows in all. I have tried setting to all except those selected then selecting all but that doesn't help either.

Please can you assist. This is really critical for me and I'm now delaying my site live testing until I can resolve this.

I would really appreciate your urgent attention.

Thanks,
Jude

Judah Raine
Beginner Modder
ranks
useravatar
Offline
4 Posts
Administrator has disabled public posting

Re: Module displays on all pages when defining with php

Never mind (red face) lol I set it to all included modules and it works fine. I'm a dork, what can I say.

Judah Raine
Beginner Modder
ranks
useravatar
Offline
4 Posts
Administrator has disabled public posting

Re: Module displays on all pages when defining with php

Well, perhaps I'm losing my mind, but it no longer works sad

It is now displaying on the "home page" (category) but not on the submission form. I checked the page code.

The correct one is:

if (
$option == 'com_cobalt'
and $view == 'form'
and $jinput->get('section_id') == '1' /*!*/
and $Itemid == '306'
and $jinput->get('cat_user_id') == '506' /*!*/
and $jinput->get('type_id') == '1' /*!*/
and $jinput->get('return') == 'aHR0cDovL3d3dy5jbGFzc2ljcm9tYW5jZXJldml2YWwuY29tL2NvbXBvbmVudC9jb2JhbHQvdXNlci1pdGVtcy9jcmVhdGVkLzEtbGlicmFyeS81MDYtanVkYWgtcmFpbmU'
) return 128; /* replace XXX with the module ID or position to display */

That is what is in the module php, and it matches the page debug info.

The page that it displays incorrectly on is:

if (
$option == 'com_cobalt'
and $view == 'records'
and $jinput->get('section_id') == '1' /*!*/
and $Itemid == NULL
and $jinput->get('limitstart') == '0' /*!*/
and $jinput->get('user_id') == '506' /*!*/
and $jinput->get('view_what') == 'created' /*!*/
) return XXX; /* replace XXX with the module ID or position to display */

(Of course, the return xxx would be return 128)

I simply cannot understand why it seems to be ignoring the php in the module and displaying on the category / section page?

I'm desperate, having expended a great time on trying to resolve this. Your help would be appreciated.

Thank you
Jude

Judah Raine
Beginner Modder
ranks
useravatar
Offline
4 Posts
Administrator has disabled public posting

Re: Module displays on all pages when defining with php

Hi there - don't see any place to highlight this as critical. I do understand that it's weekend, and therefore I will only get a response by tomorrow at the earliest. But this is holding up my site and it's my unfortunate position to only be able to work on the site after hours.

My request is only that this be treated as critical as and when your support team is back on duty after the weekend.

Many thanks,
Jude

Judah Raine
Beginner Modder
ranks
useravatar
Offline
4 Posts
Administrator has disabled public posting

Re: Module displays on all pages when defining with php

I do understand that it's weekend, and therefore I will only get a response by tomorrow at the earliest. But this is holding up my site and it's my unfortunate position to only be able to work on the site after hours.


[[admin: removed spam link]]

regarder44
Beginner Modder
ranks
useravatar
Offline
1 Posts
Administrator has disabled public posting

Re: Module displays on all pages when defining with php

Hi,

If you have a new question can you please ask it in a new forum post.

Stephen [admin]

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
3312 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1667
Total Polls:
6
Total Posts:
5909
Posts this week:
1
User Info:
 
Total Users:
10137
Newest User:
lexispoker1
Members Online:
1
Guests Online:
260

Online: 
liaskas

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked