WordPress.org

Ready to get started?Download WordPress

Forums

Comment Popups (12 posts)

  1. bbommarito
    Member
    Posted 10 years ago #

    Now, I know how to setup comment popups, that's pretty simple, but I was wondering if there was a way to do so, without using the built in functions? In other words, let's say I want to do the popups with SoopaPop, how could I do it?

  2. southerngal
    Member
    Posted 10 years ago #

    Are you talking about just a pop-up window? I'm not sure what you mean...

  3. bbommarito
    Member
    Posted 10 years ago #

    I'm talking about generating a popup with the comment form in, and the comments for the post, but not by using the built in functions to do it.
    In other words, I would like to use, as I said SoopaPop, to open the comment popup.

  4. southerngal
    Member
    Posted 10 years ago #

    I have no idea how to do that. Why don't you want to use the form that comes with WP? What is SoopaPop?

  5. Cena
    Member
    Posted 10 years ago #

    Deb, it's in your index.php. Look in your <head> for a line that looks like this:
    <?php // comments_popup_script(); //off by default ?> (near the bottom of the <head>
    Just take out the sets of // and 'off by default' and you'll be popping up your comments in no time.

  6. debwire
    Member
    Posted 10 years ago #

    Thanks, Cena. I just did that but when I click on a comment it still goes to a page and doesn't pop up. :-( I have it looking like this now:
    <?php // comments_popup_script(); ?>
    Is that correct?

  7. Cena
    Member
    Posted 10 years ago #

    No...take out that other '//' . :) (That's how PHP says 'don't pay attention to any of this stuff'.)

  8. debwire
    Member
    Posted 10 years ago #

    Thank you Cena! It works. :-)

  9. debwire
    Member
    Posted 10 years ago #

    Uhm...gotta 'nother problem, I think. Now that I've set up comments in a popup, the trackback URL seems to have disappeared. How will visitors know what URL to trackback to for my blog posts? The URL was displayed when comments were in a popup, now URLs aren't.

  10. Anonymous
    Unregistered
    Posted 10 years ago #

    how to change the width and height of the comments pop up page?

  11. notthatugly
    Member
    Posted 10 years ago #

    from the readme:

    <?php comments_popup_script() ?>
    This will include the javascript that is required to open comments, trackback and pingback in popup windows.
    You should put this tag before the </head> tag in your template.
    Parameters:
    * width (default is 400)
    * height (default is 400)
    * file name, in case you want to use a different template for comments (default is b2commentspopup.php)

    So to get a 300x200 window, you'd use < ?php comments_popup_script('300','200') ?>

  12. dulcechick
    Member
    Posted 10 years ago #

    Yay, It's working, thank you! :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.