Please is there a way to integrate Chronoform into community builder? I am trying to place a contact link somewhere on the main community builder user profile page so that logged in users can click the link and contact us through Chronoforms. I am a newbie to both community builder and Chronoforms and I would appreciate it so much if you could bring it a little bit down to my level. Thanks very much for your time.
Hi boncf,
Since you need to place a link on the CB page then this is a CB question, unfortunately I have no idea how you can do this in CB.
I think you should check the CB forums for how to edit a page.
Regards,
Max
Since you need to place a link on the CB page then this is a CB question, unfortunately I have no idea how you can do this in CB.
I think you should check the CB forums for how to edit a page.
Regards,
Max
Hi boncf,
It's kind of easy to make that.
I did it yesterday and work excellent, the only problem is that is a core hack (I don't like core hacks v.v)
By FTP connection go to "/components/com_comprofiler/plugin/templates/default", There you can see the positions o article.
In my case I did this:
(Line 109)
And created the code for a button to link to form page:
In my case, I wanted to remove the CB Buttons and set mine to edit profile. If you don't want to remove it, just don't comment the line.๐
Hope it helps you.
BN
It's kind of easy to make that.
I did it yesterday and work excellent, the only problem is that is a core hack (I don't like core hacks v.v)
By FTP connection go to "/components/com_comprofiler/plugin/templates/default", There you can see the positions o article.
In my case I did this:
if ( isset( $this->userViewTabs['cb_head'] ) ) {
echo '<div class="cbPosHead">';
echo $this->userViewTabs['cb_head'];
echo '</div><div class="cbClr"></div>';
}
(Line 109)
And created the code for a button to link to form page:
if ( isset( $this->userViewTabs['cb_head'] ) ) {
echo '<div class="cbPosHead">';
//echo $this->userViewTabs['cb_head'];
echo '<button type="button" id="bEditPerfil" name="bEditPerfil" class="bEditPerfil" onclick="window.location=\''.JURI::base().'editar-perfil\';">Editar Perfil</button>';
echo '</div><div class="cbClr"></div>';
}
In my case, I wanted to remove the CB Buttons and set mine to edit profile. If you don't want to remove it, just don't comment the line.๐
Hope it helps you.
BN
Please thank you very much. however, the code didn't work. I removed the "echo" and added a dot (.). The current code is
. '<button type="button" id="bEditPerfil" name="bEditPerfil" class="bEditPerfil" onclick="window.location=\''.JURI::base().'editar-perfil\';">Editar Perfil</button>'
The button now shows up "editar perfil" but when you click on it, it gives a 404 error. Is "editar perfill" another name for chronoforms? How do I link this button to chronoforms? Thanks very much.
. '<button type="button" id="bEditPerfil" name="bEditPerfil" class="bEditPerfil" onclick="window.location=\''.JURI::base().'editar-perfil\';">Editar Perfil</button>'
The button now shows up "editar perfil" but when you click on it, it gives a 404 error. Is "editar perfill" another name for chronoforms? How do I link this button to chronoforms? Thanks very much.
Hi boncf,
Strange it don't work, it worked for me, but I'm glad that you figure out how to do it๐
Well, "editar perfil"(Edit profile in portuguese) is a Menu where I have my form.
That's the part where you customize the code๐
Just need two things to make it work:
1->Have a menu item with the form (I use a hide menu, because I only want to show the button in user profile)
2->Indicate the correct path to button
Imagine that you have a menu called "ChornoForms User Form" and it is a lv0 item, so you chatch the alias of it (shloud be some like "chornoforms-user-form") and in the button code become like:
Hope it helps๐
BN
Strange it don't work, it worked for me, but I'm glad that you figure out how to do it๐
Well, "editar perfil"(Edit profile in portuguese) is a Menu where I have my form.
That's the part where you customize the code๐
Just need two things to make it work:
1->Have a menu item with the form (I use a hide menu, because I only want to show the button in user profile)
2->Indicate the correct path to button
Imagine that you have a menu called "ChornoForms User Form" and it is a lv0 item, so you chatch the alias of it (shloud be some like "chornoforms-user-form") and in the button code become like:
<button type="button" id="bEditPerfil" name="bEditPerfil" class="bEditPerfil" onclick="window.location=\''.JURI::base().'chornoforms-user-form\';">User Form Name</button>
Hope it helps๐
BN
This topic is locked and no more replies can be posted.