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.

 

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

Edited By: Pelele
07-Apr-10 16:20:17

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

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

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

Re: Error on SOBI2 main page

Hi Stephen,

Thank you for your help, it works.
I copied the line from your recipes, then the error should be corrected.

Regards
Harald=)

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

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

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

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".

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

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

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

Re: Error on SOBI2 main page

Hi Stephen
many, many thanks for the help. You are my hero. Your instructions work and I can use the power of Sobi2 correctly.
Best regards, big_smile
Harald

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

Board Info

Board Stats:
 
Total Topics:
1684
Total Polls:
6
Total Posts:
5940
Posts this week:
1
User Info:
 
Total Users:
5174
Newest User:
frashaomran
Members Online:
0
Guests Online:
109

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