Forums

mambot outside content: ignored when rendering page

minimalniemand 14 Jan, 2009
Hi there,

we have somebody coding a simple job application component for us. I'd like to use a contact form in it, I created with chronoforms.
I told that to the developer and he inserted the tag inside the *.html.php, below the createdate of the particular posting:

[...]
		<div class="createdate">
			Created: <?php echo $job->created; ?><br/>
			<?php if( $job->created != $job->modified ) echo "Updated: ".$job->modified; ?><br/>
		</div>		
		<br/><br/>
		{chronocontact}application{/chronocontact}
		<br/><br/>
		<?php
		mosHTML::BackButton ( $params, $hide_js );

[...]


but this does not work. The tag doesn't get rendered into my form. Is it possible to do this at all? Where does the tag has to be, to get this to work?

thanks a lot, michael

I'm using the latest version of the componenent and the mambot exisiting for J1.0
GreyHead 14 Jan, 2009
Hi Michael,

The component will need to be written to support Joomla plugins. I see that your developer is writing in Joomla 1.0 legacy code - I imagine that the PlugIn syntax may have changed between the two versions.

Bob
minimalniemand 14 Jan, 2009
Unfortunately we have very old versions oh PHP and mySQL (Database Version: 3.23.58; PHP Version: 4.3.2) , which forces our developer to use some functions that maybe outdated.

Could you specify what you mean by "The component will need to be written to support Joomla plugins"?

Thank you very much,
Michael

P.S: the mambot(plugin) is published and works flawlessly when putted whithin content elements
GreyHead 14 Jan, 2009
Hi Michael,

Metaphorically Joomla plugins are a toolkit that hangs on the shelf until some other Joomla component decides to use them. The PlugIns advertise their wares by saying that they can be implemented on certain specific system events . . . but it's up to the component to use them. The Content Component has a pretty full set of calls to content PlugIns to they all work, including the ChronoForms PlugIn.

ChronoForms also has the capability to support content plugins so you could use - for example the image plugin in a form; though in ChronoForms this ability is turned off by default.

So, your developer will need to add the code to allow plugins to run in your application - if that's still the best way to go. I don't think that the code is particularly difficult - you'll find a ChronoForms example around line 300 of chronocontact.html.php in the current release.

Bob

PS Your setup is (just) OK to run Joomla 1.5, might be better to code for that (and maybe a new host too?)
This topic is locked and no more replies can be posted.