Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » Error on SOBI2 main page
Error on SOBI2 main page
Error on SOBI2 main page
Thanks for the great module, unfortunately I have not found any solution to my problem.
I want my display module only on the SOBI2 main page.
When I use the command:
if ($ option == "com_sobi2" and JRequest:: getVar ('sobi2Task') =='')) return 531; give out the instructions,
I get the following error message:
modules / mod_metamod / helper.php (524): eval () 'd code on line 1
How can I fix this error? Thanks for the help
It is the module at the bottom:
http://gutermarktplatz.de/marktplatz.html
07-Apr-10 17:20:17
Re: Error on SOBI2 main page
Hi Pelele,
It's just a simple typo in your PHP. You are using two ")" on the 1st line of your rule, and some spaces in places where they should not be.
Try this instead:
if ($option == "com_sobi2" and JRequest::getVar('sobi2Task') =='' ) return 531;
Cheers,
Stephen
Re: Error on SOBI2 main page
Oops! Thanks for letting me know. I've edited the web page. That solved the double-bracket thing. However in the original code there's no space after the "$" signs - that must have been added as you copied and pasted from the web browser. It's probably due to the colour coding that is added to the recipes on that page - some browsers insert extra spaces when copying and pasting those. Can you tell me what browser you used? And did you paste it directly into MetaMod from that page?
Thanks,
Stephen
Re: Error on SOBI2 main page
Hi, I use firefox and have copied the command directly. Perhaps I have caused the error itself. The module works with the predefined commands in the categories very well.
The module does not work with the recipe for the home page. The module with the command: if ($ option == "com_sobi2" and JRequest:: getVar ('sobi2Task') =='') return 531; is displayed in all categories.
It is right around the module with the name "Hi, I use firefox and have copied the command directly. Perhaps I have caused the error itself. The module works with the predefined commands in the categories very well.
The module does not work with the recipe for SOBI2 main page. The module with the command: if ($ option == "com_sobi2" and JRequest:: getVar ('sobi2Task') =='') return 531; is displayed in all categories.
It is right around the module with the name "Bitte berücksichtigen Sie".
http://gutermarktplatz.de/marktplatz.html
What can I do?
Thanks for the help".
Re: Error on SOBI2 main page
Hi Harald,
oh, you are absolutely right - the "front page" test for SOBI2 is wrong. I missed the case when the category views are showing. There are so many possibilities that sometimes I miss one...
Try this instead:
if ($option == "com_sobi2" and JRequest::getVar('sobi2Task') == '' and JRequest::getVar('catid') == '') return 531;
Sorry about that. I'm going to update that recipe page now...
Best regards,
Stephen
- Index
- » MetaMod
- » MetaMod General Support
- » Error on SOBI2 main page
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5943
- Total Posts Today:
- 1
- User Info:
- Total Users:
- 7638
- Newest User:
- moner86658
- Members Online:
- 1
- Guests Online:
- 117
- Online:
- moner86658
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked