Re: Where do I put this custom code to open a popup contact-us window?

Originally Posted by
diamond1
(Add the following code anywhere you want to have the Ajax Contact Us Pop Up link to show up:)
<a href="#contact-us-popup-wrapper" id="contact-us-popup-link"><?php echo CONTACT_US_POP_UP_LINK; ?></a>
<!--bof contact us popup-->
<?php require($template->get_template_dir('tpl_modules_contact_us_popup.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_contact_us_popup.php'); ?>
<!--eof contact us popup-->
OK... different ways of doing popups, I like colorbox myself... you may have to drop it on a page to see what the link is if 'CONTACT_US_POP_UP_LINK' is not calling to a page like this index.php?main_page=contact_us_popup which should be what you would use when creating the EZPage link. Now the required page code would have to exist wherever the EZPage link is or the popup would fail to exist. I would use say the common/tpl_header.php so that the code is where the link is. I never tried to load and decode a php page into an EZPage, don't think it would work right.
Dave
Always forward thinking... Lost my mind!
Bookmarks