Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » Display Modules by author. Nothing...
Display Modules by author. Nothing seems to work.
Display Modules by author. Nothing seems to work.
I would like to display different modules based on the author of the article. I am using postnote template by gavick. I have tried both methods found here : http://www.metamodpro.com/metamod/recip … cle-author
Nothing seems to work at all. Here is the code :
if ( $content_genius->check("article_created_by = 64") return 178;
There is no specific error to report other then no matter what I try nothing seems to change anything on the frontend. Yes I enabled the module. Any ideas? Thanks
Re: Display Modules by author. Nothing seems to work.
Oh, you know what, I had a typo in the recipe Sorry about that. It was missing a closing bracket.
Try this instead:
if ( $content_genius->check("article_created_by = 64") ) return 178;
Cheers,
Stephen
Re: Display Modules by author. Nothing seems to work.
Thanks for the response. However that did not work. After playing around a bit I have concluded that no matter what the settings nothing changes. Am I overlooking a small step that allows the module to function? Plugin activation or something similar?
Re: Display Modules by author. Nothing seems to work.
Oh, right, K2. I haven't investigated K2 yet. Can you enable Advanced Debug mode in the MetaMod, then view the pages that you want to target, and paste the output of the debug mode into a forum post? That would help to create some code for you.
Re: Display Modules by author. Nothing seems to work.
Thanks for trying to help. I have switched to Advanced Module Manager. This allows me to do what I need and will work for the moment. I will continue to play around with metamod and see if I can get it to work with k2. It would be nice to automatically assign the modules based on author but for now I will have to do it manually. Thanks again.
- Index
- » MetaMod
- » MetaMod General Support
- » Display Modules by author. Nothing...
Board Info
- Board Stats:
- Total Topics:
- 1699
- Total Polls:
- 6
- Total Posts:
- 5965
- Posts this week:
- 3
- User Info:
- Total Users:
- 8012
- Newest User:
- grant1ab
- Members Online:
- 0
- Guests Online:
- 140
- 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