Română (România)English (United Kingdom)



 
The support for all extensions was moved to jVitals.com.

Please post there the new questions or suggestions you have with them.

This forum was set to be read-only so the information in it is still available.

If you use aiContactSafe, please post a rating and a review at the Joomla! Extensions Directory.

You can now also join aiContactSafe Fan Club on Joomla! People
http://people.joomla.org/groups/viewgroup/813-aiContactSafe+Fan+Club.html

Field to display Title and Username

Field to display Title and Username

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.

Bob Jenson
useravatar
Offline
18 Mesaje
Informatii despre utilizator in mesaje
Administratorul a dezactivat postarea publica.

Re: Field to display Title and Username

Hi,

Bob Jenson a scris:


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 a scris:


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 :

Cod:

$postData[JUtility::getToken()] = 1;

something like this:

Cod:

$postData['aics_field_name'] = $value_to_record;

This will send in the field "aics_field_name" the value in $value_to_record.

Alex Dobrin
useravatar
Offline
5886 Mesaje
Informatii despre utilizator in mesaje
Administratorul a dezactivat postarea publica.

Re: Field to display Title and Username

Thanks for the reply Alex. Unfortunetely I'm not great on PHP but thanks for the info anyway.

Bob Jenson
useravatar
Offline
18 Mesaje
Informatii despre utilizator in mesaje
Administratorul a dezactivat postarea publica.

Informatii forum

Statistici forum:
 
Subiecte:
2281
Sondaje:
0
Mesaje:
10380
Inactiv:
Informatii utilizatori:
 
Utilizatori:
60163
Ultimul inscris:
KevinNeil
Utilizatori activi:
0
Vizitatori activi:
54

Activ: 
Nici un utilizator activ

Legenda forum:

 Subiect
 Nou
 Blocat
 Peren
 Activ
 Nou/Activ
 Nou/Blocat
 Nou/Peren
 Blocat/Activ
 Activ/Peren
 Peren/Blocat
 Peren/Activ/Blocat