Forum Replies Created
-
AuthorPosts
-
Hi Mike,
Thanks for looking into this matter. Together with your “curly” corrections I worked it out. The field name is: avia_5_1For those interested, the correct code is:
function modify_autorespondermessage_func($message) { $new_message = "Geachte heer/mevrouw " . $_POST['avia_5_1']. ",<br><br>"; $new_message .= $message; return $new_message; } add_filter('avf_form_autorespondermessage', 'modify_autorespondermessage_func', 10, 1);
Note: In my case the var name is ‘avia_5_1’. Obviously this can be different for other forms. You can check the correct name with your browser dev tool
Best regards,
Jan- This reply was modified 5 years, 10 months ago by Jan_FtFA.
This reply has been marked as private.Hi,
yes okay.
FYI: I use All In One SEO Pack. The phenomenon is the same, but may be the solution is different which could explain that the proposed solution did not work.Best!
JanThis reply has been marked as private.Hi Mike,
Thanks for you answer. Unfortunately it did not solve the issue. My observations are:- When Maintenance Mode is selected with the new functions-enfold.php, the originally intended page is still shown
- Still the postions and sizes of some divs are affected
- The cookie banner is displayed again
- The cookie banner seems to be different than the original one
To simulate a non-user looking at the site I use a different browser (browser B) to look at the site once set to maintenance mode (in browser A). So the above observations are in Browser B. In Browser A, when I am still logged in as user, I can view the site but with the red remark that the site is in maintenance mode, so that part is working.
Best regards,
JanThis reply has been marked as private.Hi Thomas,
Very thoughtful of you to give this feedback. Thanks!
I have All In One SEO Pack and lo and behold, if I deactivate it, I can set the maintenance mode!
Although this presents a workaround, it would be nice if the issue could be solved.Best regards,
JanThis reply has been marked as private.Hi Victoria,
As I mentioned I also tested it with lower caps (avia_name_1). To be sure I just tested it again and the result is the same: the name is not added
I am adding the code to the functions.php in the child theme.
Please see the private section for the credentials
Best regards,
JanI have an additional observation: when I switch off the header and footer on the maintenance page, the header and footer are gone indeed (when I view the page through its normal URL). However, when I log off from WP, the header and footer return. When I log in again, the setting is still at “Blank – No Header, no Footer”
Now the interesting thing is, I made another page (testje) and when I switch of the header & footer there, it is functioning as it should, i.e. the header and footer don’t return when I log off.
Still I am surprised if it would be related to the above issue, but then again it also happens with this maintenance page.
@Thomas: do you see the same behaviour with your maintenance page?Dear Kriesi team,
Is there someone of you who can shed some light on this matter?
I added my question to this thread as it seams related, but if you want me to open another thread , please let me knowBest!
JanHi Rikard,
The login is working now on the test site. The credentials remained the same.
Best regards,
Jan
Hello!
I am trying to get this to work with small variation: only surname (and in Dutch). I use the following code (thanks to WP turned up):
function modify_autorespondermessage_func($message) { $new_message = "Geachte heer/mevrouw " . $_POST[‘avia_Name_1’]. "<br>"; $new_message .= $message; return $new_message; } add_filter(‘avf_form_autorespondermessage’, ‘modify_autorespondermessage_func’, 10, 1);
But I can’t get it to work. I tried name (no caps), Naam and naam (Dutch for name as the field names are in Dutch in my version) but to no avail.
Clearly I am doing something wrong. The question is: what? :-)Dear Enfold team,
Can anyone of you shed some light on this matter?
I also have some additional information that might help in the trouble shooting. As I realised that the main menu was not functional on the maintenance page, I switched it off. The result is as follows:
– Still the home page is shown instead of maintenance page
– But is now shown without the menu.So in building the maintenance page all goes well until the module has to start writing the actual content (presumably the body). When it comes to that it reverts to the content/body of the original URL which it returns it with a couple of errors in the layout.
I am now working on a test version. See the credentials in the private section of this message
@ Thomas: that is a nice quick and dirty workaround. Another temporarily solution would be to make a simple html maintenance page and create a redirect using the .htaccess file as explained here. This way the maintenance page is also shown if pages other than the homepage are selected
Best!!
- This reply was modified 5 years, 10 months ago by Jan_FtFA. Reason: added reamark about geust admind account in private info
-
AuthorPosts