Forums

Trying to get my own plugin to work, but "Sufficient permissions" (3 posts)

  1. mrwpjr
    Member
    Posted 2 years ago #

    Hi everybody,

    I'm developing my own plugin, and so far it works great.

    I've added an add_menu_page() function and some add_submenu_page() functions to my plugin. In one of the submenus, I would like to set up a thickbox popup. Basically, the idea is: when you click a link on a submenu page, it opens the thickbox, which would load a little page into its iframe where you can set things.

    I've managed to integrate wp's thickbox into the code, but I don't know how can I open a page in the thickbox's iframe that would work through wordpress (so I could use wp functions).

    If I load a php from my plugin folder, that's an individual code, it wouldn't recognize wp functions, nor have head, or foot, etc.
    If I load admin.php?page=myplugin, the whole wp admin panel loads into the iframe. I only want a customized code with some functions.

    How could I solve this?

    Thanks in advance :)

  2. mrwpjr
    Member
    Posted 2 years ago #

    probably I need to do something like this: http://wordpress.org/support/topic/307288?replies=3, but I don't get how to do that

  3. mrwpjr
    Member
    Posted 2 years ago #

    okay, solved it with inline instead of iframe. thanks anyway :D

Topic Closed

This topic has been closed to new replies.

About this Topic