Hello,
I'm trying to display the form I've created on the user profile page.
Actually, it should appear hidden so I could display it in BS3 modal when user will click a button.
The form is working fine, but I don't know how can I embed form inside User Profile page using PHP.
I was trying to include it using plugin and just outputting
Also, I've found recommendation on this forum to use something like:
I've tried to search all the code of Joomla for
Could you suggest me how can I display my form using PHP from Joomla template?
I'm trying to display the form I've created on the user profile page.
Actually, it should appear hidden so I could display it in BS3 modal when user will click a button.
The form is working fine, but I don't know how can I embed form inside User Profile page using PHP.
I was trying to include it using plugin and just outputting
{chronoforms5}form_name{/chronoforms5}
from my template, but this didn't work. I saw just {chronoforms5}form_name{/chronoforms5} as a plain text on my user page.
Also, I've found recommendation on this forum to use something like:
require_once( JPATH_SITE.DS.'components'.DS.'com_chronocontact'.DS.'libraries'.DS.'chronoform.php');
$formname = 'some form name';//if left empty then it will be grabbed from the URL
$MyForm =& CFChronoForm::getInstance($formname);
$MyForm->showForm($formname);
I've tried to search all the code of Joomla for
function showForm
but nothing was found. So, I think it was changed in CFv5
Could you suggest me how can I display my form using PHP from Joomla template?