Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter explor1ng

    (@explor1ng)

    anyone can answer this?

    check sidebar.php

    Forum: Plugins
    In reply to: Checking if a hook exists?
    Thread Starter explor1ng

    (@explor1ng)

    ah I got this one, based on answer of another question from whoami, thanks.

    Forum: Plugins
    In reply to: Plugin security
    Thread Starter explor1ng

    (@explor1ng)

    ah okay, I’ll try it, thanks.
    You seem quite expert in WP, if it’s possible, could you answer my other questions, please and please? ?? ??

    Forum: Plugins
    In reply to: Checking if a hook exists?
    Thread Starter explor1ng

    (@explor1ng)

    since there’s no answer, I’m thinking for a workaround, I’m going to test what the current admin page is, but again, I’m stuck in not knowing what function to get current admin page, or do I need to just test $_GET[‘page’]?

    Forum: Plugins
    In reply to: Setup Top Level Admin Menu
    Thread Starter explor1ng

    (@explor1ng)

    can anyone confirm this?

    ah okay, I’ve guessed about shutdown action hook but don’t know yet about init hook, I’ll try that. As for gzip compression, sure I think my plugin won’t run if gzip enabled, thanks for reminding me.
    And thanks for your help.

    Forum: Plugins
    In reply to: Setup Top Level Admin Menu
    Thread Starter explor1ng

    (@explor1ng)

    Need help on this.

    What I have tried is:

    add_menu_page('Test Toplevel', 'Test Toplevel', 8, '../wp-content/plugins/myplugindir/myplugin.php');
    add_submenu_page('../wp-content/plugins/myplugindir/myplugin.php', 'Test Sublevel', 'Test Sublevel', 8, '../wp-content/plugins/myplugindir/myplugin.php', 'mt_sublevel_page');
    add_submenu_page('../wp-content/plugins/myplugindir/myplugin.php', 'Test Sublevel 2', 'Test Sublevel 2', 8, 'sub-page2', 'mt_sublevel_page2');

    It works, but looks bad, please tell me if there’s a better way.

    I’m sorry, I thought my last post was representing my case, but okay, let me elaborate, I need to find certain tags, let’s say the tag is <!–mytag–>, it can be anywhere, in the post, on template etc, so I need to find all of <!–mytag–>’s in a whole page (actually, between <body> and </body> if we’re talking about html page, but let’s assume the whole page if it can make more simple).

    So I need to capture the page before it’s being sent to browser (therefore I can find those tags and replace some of them, leave it to me how to find and what to replace), what I couldn’t figure out is how to capture the page contents before being sent to browser. So I don’t think it’s limited to specific pages or part of a page.

    One idea I’m thinking right now is using output buffering, if you think this is the way please suggest me where to hook the ob_start and ob_end. That’s what I’m thinking, I don’t know if it’s the best way to do this (or maybe even not possible at all), that’s why I’m asking this here.

    I hope it’s detail enough, it can be very long if I tell you everything but what I’m writing and asking here is the part that I don’t know how to do it. Thanks in advance if you can help me here.

    I think you need to do in reverse way, you need to setup all of adsense channels on your adsense account and then use it on adsense manager.
    As for tracking the clicks, I’m not sure if adsense manager can do that, try googling ‘adsense tracking’, maybe you can get some information.

    Here I paste my case again:

    I also need to implement something like this, basically I need to write a plugin which is scanning all certain tags (I’m thinking to use html comment tag) on a page and then replace some of the tags (only some, not all), based on some algorithm. Can anyone suggest me a direction how to do this?

    I know that, I have read the Action hook and Filters, but could you tell me which one can be applied to my case?

    nobody knows?

    Hello,

    I also need to implement something like this, basically I need to write a plugin which is scanning all certain tags (I’m thinking to use html comment tag) on a page and then replace some of the tags (only some, not all), based on some algorithm. Can anyone suggest me a direction how to do this?

    Thanks.

Viewing 14 replies - 1 through 14 (of 14 total)