Hi,
First Question:
I'd like to use the ai contact module to allow people to give feedback on lots of different pages. As the module will be displayed on many different pages, I need to include a special hidden field to display what page (I guess the page Title is best) the user was on re the feedback.
EG. I'll have the same aicontact module on 3 pages; PCs, Macs, Other. The module will allow people to type in their feedback on a particular page. So John Smith goes to the Macs page and types 'great page'. So when the site owner gets the email, it will contain the 'great page' feedback and 'Macs', to show the feedback is to do with the Macs page.
Second Question:
I'd also like to include the Joomla username and name of the person giving the feedback. Is that possible?
Many thanks for your help in advance and thanks for this great extension, I love it!
Cheers,
Bob.
Hi,
Bob Jenson wrote:
First Question:
I'd like to use the ai contact module to allow people to give feedback on lots of different pages. As the module will be displayed on many different pages, I need to include a special hidden field to display what page (I guess the page Title is best) the user was on re the feedback.
You can do this only by modifying the code of the extension.
First you need to add the hidden field and then modify the module code to send in it any information you think is relevant.
You can even have more then one hidden fields.
Bob Jenson wrote:
Second Question:
I'd also like to include the Joomla username and name of the person giving the feedback. Is that possible?
Yes, you need to retrieve them and then send them in other hidden fields.
You will need some php knowledge.
If you use the module you need to modify the file modules\mod_aicontactsafe\mod_aicontactsafe.php and add above the line :
$postData[JUtility::getToken()] = 1;
something like this:
$postData['aics_field_name'] = $value_to_record;
This will send in the field "aics_field_name" the value in $value_to_record.
Alex Dobrin
Algis Info Grup
Follow me on Twitter
Forum Legend: