• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Insert a contact form in K2 items.

Insert a contact form in K2 items. 11 years 8 months ago #24866

Hi all,

I already purchased RSform pro, working well.

I want to insert a conact form into a K2 item. The form must be on all itempages.
I want the admin mail containing some values of the K2 item, so the receiver knows from which K2 item the form is sent.

Is that possible? How can I do this?

Thanks in advance!

I use joomla 2.5.14 and K2 2.6.5
The administrator has disabled public write access.

Insert a contact form in K2 items. 11 years 8 months ago #24867

  • silviup
  • silviup's Avatar
  • OFFLINE
  • Moderator
  • Posts: 309
  • Thank you received: 49
Note that you can use the System Plugin to display an RSForm!Pro form anywhere on your website. You can read more on how to set this up here:

www.rsjoomla.com/support/documentation/v...o-system-plugin.html

However, there is no K2 integration available for RSForm!Pro. Therefore, if you wish to add some K2 item-related information to your form's submission, you will need to use some custom scripting in order to get the information from the database.

The following article, provides a good starting point for this, as it was written for a similar implementation:

www.rsjoomla.com/support/documentation/v...mmunity-builder.html
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.

Insert a contact form in K2 items. 11 years 8 months ago #24874

Thanks for the quick reply!!

I am not that good in SQL queries.

I use the code:
//<code>
$my = & JFactory::getUser();
$db = JFactory::getDBO();
if ($my->get('id'))
{
$db->setQuery("SELECT `title` FROM `uecyn_k2_items` WHERE `id`='".$my->get('id')."' LIMIT 1");
return $db->loadResult();
}
//</code>

What I want is to select the title (of K2 item) from 'uecyn_k2_items' and output it into a field.
I place the code in the Default value, but no result.

What do I wrong?
Can you help me out?

Thanks a lot!
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!