Merhaba arkadaşlar,
Sitemin bir çok sayfasında contact 7 form ekli. Gelen mesajların hangi sayfadan geldiğini anlayabilmem için ne yapabilirim?
Mesela otomatik hangi url den gönderildiğini forma ekleyebilir miyim?
Contact 7 form hk.
9
●290
- 10-04-2019, 18:02:04
- 10-04-2019, 18:13:25En basit yolu forma bir adet hidden ve sadece okunabilir bir input alanı oluşturup varsayılan değerini hangi sayfa ismi ya da nasıl tanımak istiyorsanız onu yazarak gönderebilirsiniz. Bu da gelen mailde size nereden geldiği konusunda bilgi verecektir. URL okumaktan daha kolay bir işlem olur.
- 11-04-2019, 09:34:17Çok teşekkür ederim. Yanlış anlamadıysam her tavsiye edilen yöntemde biraz işimi zorlaştırıyor. Site içinde belkide 70-80 tane form olacak. Buda 70-80 form tasarımı demek. 1 adet form tasarımı yapıp hangi sayfadan geldiğini anlamak mümkün değil sanırım..
- 11-04-2019, 09:41:37Üyeliği durduruldu80 form varsa, 80 form için tanımlayıcı bir kimlik edindirmen gerekli. ID numarası, bölüm adı gibi belirteçler yapmazsan sonuca nasıl varacaksın?irfanbarutcu adlı üyeden alıntı: mesajı görüntüle
Sonuç olarak bu formun içine özel olarak kod yazsan işin daha da zorlaşacak. En basit yolla, bu şekilde çözebilirsin. - 11-04-2019, 10:04:59Centox adlı üyeden alıntı: mesajı görüntüle
Şimdi baktım ve daha sempatik bir yol buldum hemde çok kolay bir çözüm yukarıda bir arkadaş bahsetmiş ama detay vermemiş veya aynı yöntemi anlatmak istememiş.
Contact formu tasarldığınız sayfanın hemenyanında mail kısmı var ya oraya girin message body kısmında sizin düzenlediğiniz şekil var en üst satırına
Special Mail Tags for Submissions [_remote_ip] This tag is replaced by the submitters IP address. [_user_agent] This tag is replaced by the submitters user agent (browser) information. [_url] This tag is replaced by the URL of the page in which the contact form is placed. [_date] This tag is replaced by the date of the submission. [_time] This tag is replaced by the time of the submission. [_invalid_fields] This tag is replaced by the number of form fields with invalid input. [_serial_number] This tag is replaced by a numeric string whose value increments, so this tag can work as the serial number of each submission. Requires Flamingo 1.5+ be installed. Post-Related Special Mail Tags These special mail-tags provide information about the post that contains the contact form. Be aware that these [_post_*] tags work only when the contact form is placed inside post content. In cases where the contact form is outside of post content, such as when the contact form is placed in a sidebar widget or embedded in a themes template file, a blank text will replace the tag. [_post_id] This tag is replaced by the ID of the post. [_post_name] This tag is replaced by the name (slug) of the post. [_post_title] This tag is replaced by the title of the post. [_post_url] This tag is replaced by the permalink URL of the post. [_post_author] This tag is replaced by the author name of the post. [_post_author_email] This tag is replaced by the author email of the post. Site-Related Special Mail Tags These special mail-tags provide information about the WordPress website on which you manage the contact forms. Youll find them especially useful when you want to reuse the same set of contact form templates between many websites, because you are freed from manual modification of the site information for each website. [_site_title] This tag is replaced by the title of the website. [_site_description] This tag is replaced by the description (tagline) of the website. [_site_url] This tag is replaced by the home URL of the website. [_site_admin_email] This tag is replaced by the email address of the primary admin user of the website. User-Related Special Mail Tags These special mail-tags provide information about the current logged-in user. Since these [_user_*] tags work only when the submitter has an account on the WordPress site and is logged in, it is recommended to turn on the subscribers-only mode setting anytime you use these tags. If you want to use these tags but dont want to use the subscribers-only mode, explicitly turn on the nonce setting. Otherwise, the logged-in user data will be reset by the WP REST API, and a blank text will replace the tag. [_user_login] This tag is replaced by the login name of the user. [_user_email] This tag is replaced by the email address of the user. [_user_url] This tag is replaced by the website URL of the user. [_user_first_name] This tag is replaced by the first name of the user. [_user_last_name] This tag is replaced by the last name of the user. [_user_nickname] This tag is replaced by the nickname of the user. [_user_display_name] This tag is replaced by the display name of the user.
istediğinizi ekleyebilirsiniz sorunsuz çalışıyor. mesela
Bu form [_post_url] linkinden gönderilmiştir.
dediğimde linki alabildim ben.
Kodlar için kaynak : https://contactform7.com/special-mail-tags/