ChronoForms + SOBI2

dalbeck 01 May, 2008
Hey Everyone,

Does anyone know if it is possible to combine chronoforms with SOBI2 in the details page of a listing? The way I have this setup is we monitor company's selling our products and we have a letter we send out if they are in violation so I want to make a form in chronoforms and implement it in the SOBI2 details page.

Can this be accomplished? Appreciate anyone's help!
GreyHead 01 May, 2008
Hi dalbeck,

See the SOBI2 wiki here . . . the "Other Data (Non-SOBI2 fields related)" is what you want. Not tested - good luck!.

Bob
dalbeck 01 May, 2008
Thank you I actually just stumbled across that thank you! I am having a brain fart at the moment would someone be able to help me out here? This is what I want to accomplish:

A form that just has an upload box, it will already have a message setup to send in an email, and when they upload the file it will attach to the email. Could someone give me a tip on this and where I should be posting these things.

Thanks againπŸ™‚
Max_admin 01 May, 2008
Hi, so you want to show a Chronoforms form inside the SOBI2 details page ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
dalbeck 01 May, 2008
Yeah, I will attach a screen shot of how my setup is. Where it says "Email Section" I am using mailto links that generate the users email from the SOBI2 details page a message and signature but I want to be able to attach files directly form there and be able to paste a message that is a full page long that the mailto function isn't allowing me to do.

Post edited by: dalbeck, at: 2008/05/01 18:56<br><br>Post edited by: dalbeck, at: 2008/05/01 18:56
dalbeck 01 May, 2008
Sorry couldn't attach my image to last post here it is. ChronoForms + SOBI2 image 1
Max_admin 03 May, 2008
Hi dalbeck,

If I understand you correctly then why you dont make those mailto links to a Chronoforms form ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
dalbeck 03 May, 2008
That is what I need help with, I am not that great with forms lol. I am trying to make a form that has a body of text alread there and will be able to pull data from my SOBI2 entry by placing the php codes in. But I want to also have the form be able to pull an attachment off of the Intranet server automaticlly so when you click on the link to send warning letter it will pop up with the letter already typed in and the pdf already attached.

Any help? I appreciate your responses!
Max_admin 04 May, 2008
Hi dalbeck,

I see pretty good amount of work, I didn't do it before so cant give quick examples too!πŸ™‚
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
dalbeck 05 May, 2008
Well I know the code for the PHP with SOBI so I just need help making a form that already has a body of text typed in to it, and either the file automactically attached to it or and upload box to select the file. Any examples with that? Thanks again for your help!
Max_admin 05 May, 2008
which file is attached ? you can add the normal field code of type file, whats the problem with this ? or if you need to attach some file automatically on submit then add the file path to the attachments[] array onsubmit before email!πŸ˜‰

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
dalbeck 05 May, 2008
All of these options sound fine, its just I am not sure what code to enter where in ChronoForms.
GreyHead 07 May, 2008
Hi dalbeck,

In your form html add the text you want and either a file upload field or a select box to identify the form. Include hidden fields for your SOBI2 data.

In the 'OnSubmit before email' set the values for the hidden fields by doing a lookup in the SOBI2 table, and look up and set the attachment values for your file.

In the Email template field construct the email you want to send including field values as needed.

Bob
dalbeck 12 May, 2008
Thanks for all your support, 2 more questions; would you be able t give me an example of what to put in the "on submit before email sent" area and what is the line of code I would need to add an upload field? I have in the email template the message I want to send formatted to my likings, and then I have "<?php echo $fieldsObjects['field_contact_person']->data; ?>" in the On Submit Before Sending section (dont think that is right though).

Not sure what yo put in the HTML section or JavaScript section.
udaydahale 16 Dec, 2009
sir,
i having issue of sobi2

i include in sobi2 listing

{chronocontact}HotelBook{/chronocontact}
{chronocontact}HotelBook&hotelid=231415{/chronocontact}

but the form not showing

regards,
Uday
GreyHead 16 Dec, 2009
Hi Uday,

You'll need to check with the SOBI2 docs what needs to be done to enable third-party plugins inside SOBI2.

The link earlier in this thread was for the Joomla 1.0 version I think and is now dead.

Bob
udaydahale 17 Dec, 2009
thank you for reply

but i dont know about the plugin


which plugin?
GreyHead 17 Dec, 2009
Hi Uday,

You are trying to use the ChronoForms Plugin inside SOBI2.

The ChronoForms Plugin uses the {chronocontact}HotelBook{/chronocontact} syntax. To make this work (a) you must have the ChronoForms Plugin installed and enabled and (b) you must have SOBI2 configured so that it recognises the Plugin.

Bob
udaydahale 17 Dec, 2009
i have installed the chronocontact plugin and also publish

and in sobi2 which type of configured?


i also attached the two image one for problem and another for the sobi2 cofigration
GreyHead 17 Dec, 2009
Hi Uday,

I have no idea how you enable a plugin in SOBI2 (or if you can). You'll need to check the SOBI2 site.

Bob
GreyHead 17 Dec, 2009
Hi Uday,

Excellent, thank you for posting the link.

Bob
sgonline 04 Feb, 2010
Thanks for the information. i have managed to include a chrono form on the details page. I'm just wondering, is it possible to have the system automatically include some data of the sobi entry in the chrono form fields? For example, if I have a product listing directory, at the bottom of the details page, there will be an inquiry form and the default value for "Subject" will be something like "Inquiry on product ABCD", where ABCD is the product model number. The visitor doesn't have to copy the model number from this page as the system will automatically do it.
GreyHead 04 Feb, 2010
Hi sgonline,

It's certainly possible to get info out of SOBI and into a form but SOBI's structure is complex and it may not be simple.

Bob
sgonline 05 Feb, 2010
Hi Bob,

Thanks for the quick response.
Actually I just want to get the value of one or two fields from Sobi and pass to a chrono form. The values will be of String type and it's already available on Sobi's details page template. What I need is to pass the value to the form while the page is displayed, not while submitting the form.

It could be something like this:
<?php 
echo HTML_SOBI::execMambots( "{chronocontact}{form1}{title}$mySobi->title{/title}{email}$mySobi->email{/email}{message}{/message}{/form1}{/chronocontact}" ); 
?>
Does chrono form support something like this?
GreyHead 05 Feb, 2010
Hi sgonline,

I've no idea. ChronoForms supports Joomal mambots (I don't know if the SOBI mambots are SOBI only or Joomla standard).

You can turn mambot/plugin support on for your form near the bottom of the General tab if I remember correctly.

Test and debug . . .

Bob
This topic is locked and no more replies can be posted.