Forums

Enable Mambots - nup...don't work...

bjamieson 08 Dec, 2008
I have a form - lets call it bert.

I have chronoforms, and Chronoconnectivity (providing a view to the filled in forms.)

On the form I have a field called Details (long text - html editor enabled)

In the field I make use of a bit of 'mambot code' :

{slimbox single images/eglr/2008/12/blue.JPG,images/eglr/2008/12/thumb/blue.JPG,Blue by Old Father Thames; images/eglr/2008/12/PoohBear.jpg,images/eglr/2008/12/thumb/PoohBear.jpg, Pooh Bear}

When I view the form - it shows this as 'passthrough code' it does not make use of the slimbox plugin to turn this 'lot' into a set of piccies.

Has ANYBODY got a mambot plugin to operate on a form (I for one can't see how it would work since you would need the chronoform substitution to 'know' that {field_name} was a 'field name' and that {slimbox...} was to be dealt with once the chronoform substitution had been completed).

Help - do I have the wrong end of the stick here - is this impossible ?

thanks for reading,

Brian
bjamieson 08 Dec, 2008
Oh,

If I have VirtueMart installed, I get an error when I want the system to 'enable mambots' on the form - clicking on a form with mambots enabled, and VirtueMart installed produces:

Fatal error: Call to undefined method stdClass::get() in C:\wamp\www\joomla\administrator\components\com_virtuemart\compat.joomla1.5.php on line 49

Bit of a downer since I want to sell dog leads ;-)

Is there some dependency on the fieldname - should I use 'body' instead of 'details' ???

cheers,

Brian
Max_admin 09 Dec, 2008
Hi Brian,

I see you found the solution to your first post, for the 2nd one I really don't know, try to change the field name or try to disable any mambots of virtuemart ? why virtuemart runs in the form page!

regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
bjamieson 09 Dec, 2008
More info:

The VirtueMart error is after the call to:
$contentConfig = &JComponentHelper::getParams( 'com_content' );
If I enable Legacy Mode I get the error:

Fatal error: Call to undefined method stdClass::toObject() in C:\wamp\www\bnjtest\libraries\joomla\application\module\helper.php on line 145

Which takes me to the following code:
$contentConfig = &JComponentHelper::getParams( 'com_content' );
foreach (get_object_vars($contentConfig->toObject()) as $k => $v)
The error comes on the foreach line...

So do I need to use a standard named 'body field' ? What would it be called...

The search continues.

cheers,

Brian
Max_admin 09 Dec, 2008
Do you have the latest Joomla and virtuemart versions ? maybe this is because of some outdated code! did you try to disable any virtuemart plugins running ? (from Joomla's plugin manager)

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
bjamieson 09 Dec, 2008
Hi,

Yeah Joomla 1.5.8 and Virtuemart 1.1.2 both check out to be the up-to-date versions.

I have checked this out on a test joomla site

Joomla 1.5.8, VirtueMart 1.1.2, ChronoForms v3, Chronoconnectivity v1.2 & Slimbox. Nothing else. And I get the same behaviour.

There are no VirtueMart plugins enabled, but with these three addins to Joomla, as soon as I enable mambot plugins on my chronoform - Boom.


Interestingly - VirtueMart 'stuff' is not normal 'content' - and you can choose to 'Enable mambots and plugins in the product and category description fields.
So I wonder if this is some kind of exception handling in order to get the plugins to run in a 'non article' page.

See ;-) no one has come back to me and said if they have been able to get the plugins to run - like which one(s) for instance...

It is a real nice to have, but not a show stopper - I love this 'suite' and I'm going to donate to the project.

Thanks for your hard work - this thing really does shine.

Brian
Max_admin 10 Dec, 2008
Hi Brian,

I wonder what makes virtuemart related to this issue then, are you sure you checked ALL the plugins page ? the system ones specifically ? does virtuemart overwrites any core joomla files ?

regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.