Support » Fixing WordPress » Popup link in Links Manager Help

  • Ok… i’ve looked and looked in both the Wiki and Support boards as well as in the online documentation.
    Here’s my question. I want certain offsite links to appear in a popup window that has a pre-determined size without scrollbars and things like that. I know it is normally done via javascript, or in wordpress, with the line <?php comments_popup_script(width, height, 'file'); ?>.
    But how does that work within the Links Manager? When I put that command in the URI field, it simply appends the site url (http://www.homocoit.us/hc/) to the php code and doesn’t actually run the request.
    Now, I don’t want ALL links added through the Links Manager to popup in new windows, and I don’t want all of them to popup in sized windows… target=”_blank” works fine for the majority of them.
    Is there a way to reference the <?php comments_popup_script(width, height, 'file'); ?> line from the Links Manager, Add Link option and have it actually run the php code?
    Oh… and I’m a novice with both php and wordpress, so if my terminology sounds a little childish… please forgive me 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • Mark (podz)

    (@podz)

    Support Maven

    I would avoid the Link Manager for this, and instead add your links manually by editing ‘index.php’.
    That way you avoid whatever the Link Manager actually does to links.
    If you can find the way that the javascript works in a regular html file, it should work the same in your index.php

    that sounds a little complicated every time you want to add a new link to the menu. i’ll see if i can find something out, anyone off the top of their head?

    thanks guys, i’ll try editing the index.php and see if it works that way.

    The problem is I don’t want all of them to popup in sized windows. If that is the case, then I would separate out those I want to pop-up and put them directly in the index above (or below) the generated links list. Much much less complicated than trying to do it in the function itself.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Popup link in Links Manager Help’ is closed to new replies.