WordPress.org

Ready to get started?Download WordPress

Forums

WP-EMail
Here's how to create a "Lightbox" type popup..... (1 post)

  1. leeuniverse
    Member
    Posted 1 year ago #

    Here's the code you use to have your email pop-up in an Ajax whatever box.
    In this case, I have NextGen Gallery installed, and I'm using their "Thickbox" class. NextGen has the Thickbox and Shutterbox scripts installed.

    Use whatever box script you have installed in your wordpress, or add your own.
    I also have the email "pop-up" selected in the settings of WP-Email.
    Don't know if that matters since it's called below with "emailpopup=1".

    <?php if(function_exists('wp_email')) { ?><a href="<?php the_permalink()?>?emailpopup=1" class="thickbox"><img src="http://www.yourwebsite.com/wp-content/plugins/wp-email/images/email_famfamfam.png" /></a> <a href="<?php the_permalink()?>?emailpopup=1" class="thickbox">Email to Friend</a><?php } ?>

    Enjoy....

    http://wordpress.org/extend/plugins/wp-email/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags