Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Public Forum / Main Forum / [RESOLU]Formulaire de contact - personnalisation

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

× OLD Forum post could be checked here : forum.joomprod.com

[RESOLU]Formulaire de contact - personnalisation

More
12 years 6 months ago - 12 years 6 months ago #4886 by firebird
Bonjour,
Nativement le formulaire de contact de réponse aux annonces envoie uniquement l'adresse e-mail, le sujet et le message.
Même le nom demandé sur le formulaire n'est pas envoyé.
Existe-t-il un plugin ou une solution quelconque pour personnaliser le formulaire ?
J'ai bien compris la manip pour ajouter des champs au formulaire natif, via le fichier components/com_adsmanager/message/tmpl/default.php mais je ne sais pas comment récuperer les champs créés.
Last edit: 12 years 6 months ago by firebird.
More
12 years 6 months ago #4904 by loic
Replied by loic on topic Formulaire de contact - personnalisation
Bonjour,

Les champs sont récupérés et traités dans la fonction sendmessage du fichier controller.php dans /components/com_adsmanager/.

Vous pouvez rajouter vos champs à la ligne 742 de la même manière que le champ 'body' :
$body = JRequest::getVar('body' , "" );
$votreChamp = JRequest::getVar('{nomDeVotreChamp}' , "" );

N'oubliez pas de concaténer le contenu de vos champs à celui de la variable body, sinon ils ne seront pas envoyé avec le mail.
The following user(s) said Thank You: firebird
More
12 years 6 months ago - 12 years 6 months ago #4911 by firebird
Replied by firebird on topic Formulaire de contact - personnalisation
Bonjour,
Merci de votre réponse rapide.
Problème résolu avec vos indications.
Last edit: 12 years 6 months ago by firebird. Reason: modification du message
More
12 years 6 months ago #4931 by loic
Replied by loic on topic Formulaire de contact - personnalisation
Bonjour,

Merci pour votre retour :)
More
11 years 11 months ago #7991 by raonyvf
Replied by raonyvf on topic Formulaire de contact - personnalisation
loic

Sorry I don't know speak and write in French but can you help me?

I just need add only this $votreChamp = JRequest::getVar('{nomDeVotreChamp}' , "" ); under the variable body?

Do I have to add more code in other lines?

Thanks

I will try using google translator

loic

Désolé, je ne sais pas parler et écrire en français, mais pouvez-vous me aider?

Je dois juste ajouter que cette $votreChamp = JRequest::getVar('{nomDeVotreChamp}' , "" ); sous le corps variable?

Dois-je ajouter plus de code dans d'autres secteurs?

Merci
More
11 years 11 months ago #8007 by loic
Replied by loic on topic Formulaire de contact - personnalisation
Hello,

Here is the translation of my answer :).

First, you need to add the field you want in the form of the page 'components/com_adsmanager/message/tmpl/default.php'.

Thne, the fields are recovered and processed in the sendmessage function of the file controller.php in '/components/com_adsmanager/'.

You can add your fields on line 742 by using the same syntax that the field 'body':
$body = JRequest::getVar('body' , "" );
$yourField = JRequest::getVar('{nameOfTheField}' , "" );

Do not forget to concatenate the contents of your fields with the body variable, otherwise they will not be sent with the email.

Best regards.
Moderators: perry
Time to create page: 0.128 seconds
Powered by Kunena Forum