Home › Forums › Quform WordPress › Calling the form (fancybox) from 404.php
- This topic has 5 replies, 2 voices, and was last updated 11 years, 3 months ago by Ally.
- AuthorPosts
- September 24, 2013 at 3:47 am #6540kernelParticipant
I want to use the fancybox form with a custom 404.php page that does not call the header or footer, as this breaks my 404 page layout and defeats the use of a custom 404 page. The 404 page is in the theme main directory, and the standard protocol will not work.
This line is being used in my main navigation without issue, and the footer.php you describe in the faq section is not sufficient in this example:
- <?php if (function_exists('iphorm_popup')) echo iphorm_popup(1, 'CONTACT',
'{ overlayOpacity: 0.5 }'); ?>The 404.php at this time has no <?php variables and no echo sources other than a “your ip” call. What is the simplest way of including the iphorm plugin without calling the header or footer so the popup form will function?
For testing purposes, any broken link will do:
walkingdeadcomics.org/404
Safari shows 4 javascript errors at this time due to iphorm not being registered on the page. I don’t want any element of the wordpress theme displayed on this page other than what is in the custom 404.php, and what is required to have the fancybox form that is used on the rest of the site.
Thanks
September 24, 2013 at 5:22 pm #6554AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
September 24, 2013 at 10:55 pm #6560kernelParticipantI have tried the examples shown which eliminates most if not all errors found but this does not include the call for iphorm.
There should be something using javascript and or:
<?php
require('/wp-load.php');
?>
I really need this functionality, i would appreciate a solution. My source for 404.php is accessible for testing on your end to find a result, attached here:
Thanks
September 24, 2013 at 10:55 pm #6561kernelParticipant^lol
September 25, 2013 at 1:21 am #6563kernelParticipantOk, i am able to get this to work, but all javascript and css has to be called from the <head> section. I now have one error, from this snipit in jquery.iphorm.js:
// Preload the images in the base theme
$(window).load(function () {
window.iPhorm.preload([
'captcha-refresh-icon.png',
'date-picker.png',
'default-loading.gif',
'error.png',
'file-upload-tick.png',
'help-icon.png',
'refresh-icon.png',
'success.png'
], iphormL10n.plugin_url + '/images/');
});
The error is “Can’t find variable: iphormL10n” Please take a look at line 781 in jquery.iphorm.js, this is the only error and would greatly appreciate not having it.
Thanks
September 25, 2013 at 9:57 am #6568AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- <?php if (function_exists('iphorm_popup')) echo iphorm_popup(1, 'CONTACT',
- AuthorPosts
- You must be logged in to reply to this topic.