Forum Replies Created

Viewing 15 replies - 31 through 45 (of 59 total)
  • Forum: Hacks
    In reply to: Plugin Code Question
    Thread Starter dpskipper

    (@dpskipper)

    I tried exactly that. No avail.
    Here is all the main code except for the CSS:
    <?php
    /*

    function custom_login_css(){
    echo ‘<link rel=”stylesheet” type=”text/css” href=”‘ . plugins_url( ‘/style.css’ , __FILE__ ) . ‘”/> ‘;
    }
    add_action (‘login_head’,’custom_login_css’);

    add_filter(‘login_headerurl’, ‘custom_login_header_url’);
    function custom_login_header_url($url){
    return ‘http://titan-websites.com.com&#8217;;
    }
    add_filter(‘login_headertitle’, ‘custom_login_header_title’);

    function custom_login_header_title($title){

    return ‘Designed and Developed by Titan Websites’;

    }

    function register_my_custom_menu(){
    add_menu_page( ‘Custom WP Login’, ‘Williams Custom WP Login Plugin’, ‘manage_options’, ‘custom_login’, ‘my_custom_menu_page_callback’, plugins_url( ‘logo.png’, __FILE__ ));
    add_submenu_page( ‘custom_login’, ‘My Custom Submenu Page’, ‘My Custom Submenu Page’, ‘manage_options’, ‘custom_login_subpage’, ‘my_custom_submenu_page_callback’);
    }

    add_action( ‘admin_menu’, ‘register_my_custom_menu’ );

    function my_custom_menu_page_callback( ) [
    echo ‘<p>Main custom page</p>’;
    }

    function my_custom_submenu_page_callback( ) [
    echo ‘<p>Sub custom page</p>’;
    }

    Forum: Hacks
    In reply to: Plugin Code Question
    Thread Starter dpskipper

    (@dpskipper)

    🙁
    Parse error: syntax error, unexpected ‘[‘, expecting ‘{‘ in /home2/greennin/public_html/dj-party-planner.com/wp-content/plugins/williams-custom-wp-login-plugin/william-custom-login.php on line 36

    Forum: Hacks
    In reply to: Plugin Code Question
    Thread Starter dpskipper

    (@dpskipper)

    Where do I paste this code?
    Thanks for taking the time to code this BTW 🙂 It means a lot to me.

    Forum: Hacks
    In reply to: Plugin Code Question
    Thread Starter dpskipper

    (@dpskipper)

    Any way to add CSS classes as the image on the sidebar?

    Forum: Hacks
    In reply to: Plugin Code Question
    Thread Starter dpskipper

    (@dpskipper)

    ? Sorry for being so incompetent. But i really don’t know what your talking about. example code?

    Forum: Hacks
    In reply to: Plugin Code Question
    Thread Starter dpskipper

    (@dpskipper)

    Very happy for your help, just got a callback error on the page which needs tiding up.
    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘my_custom_submenu_page_callback’ not found or invalid function name in /home2/greennin/public_html/dj-party-planner.com/wp-includes/plugin.php on line 470

    Forum: Hacks
    In reply to: Plugin Code Question
    Thread Starter dpskipper

    (@dpskipper)

    Hmm, when i remove ‘null or ‘Options.php’ just breaks my site

    Forum: Hacks
    In reply to: Plugin Code Question
    Thread Starter dpskipper

    (@dpskipper)

    Ok, i will use your wise information and try it out 🙂

    Forum: Hacks
    In reply to: Plugin Code Question
    Thread Starter dpskipper

    (@dpskipper)

    I have another question. After some very hard work and coding i have some problems with adding a settings tab on the wordpress sidebar.
    For some reason the menu is added fine, but no subpages appear. The image is broken and when i click on the menu it comes up with a 404 error.
    Here is the code for the menu and subpages:
    add_action( ‘admin_menu’, ‘register_my_custom_menu_page’ );

    function register_my_custom_menu_page(){
    add_menu_page( ‘custom menu title’, ‘Williams Custom WP Login Plugin’, ‘manage_options’, ‘/public_html/dj-party-planner.com/wp-content/plugins/williams-custom-wp-login-plugin/settings-page.php’, ”, plugins_url( ‘/public_html/dj-party-planner.com/wp-content/plugins/williams-custom-wp-login-plugin/logo.png’ ), 6 );
    }

    add_action(‘admin_menu’, ‘register_my_custom_submenu_page’);

    function register_my_custom_submenu_page() {

    add_submenu_page(
    null //or ‘options.php’
    , ‘My Custom Submenu Page’
    , ‘My Custom Submenu Page’
    , ‘manage_options’
    , ‘my-custom-submenu-page’
    , ‘my_custom_submenu_page_callback’
    );

    }

    Here is the code for the settings page i’m trying to get to work.
    <?php
    echo “Admin Page Test”;
    ?>

    Thread Starter dpskipper

    (@dpskipper)

    So in stead of putting a plugin in the plugins folder you put it in mu-plugins?

    Thread Starter dpskipper

    (@dpskipper)

    What code do you put in the PHP files thats in mu-plugins? What code do I use in that file to tell WP what plugin is Must Use?

    Forum: Hacks
    In reply to: Plugin Code Question
    Thread Starter dpskipper

    (@dpskipper)

    Ok, thanks for all your help, do you want to be added a a contribute for the plugin?

    Forum: Hacks
    In reply to: Plugin Code Question
    Thread Starter dpskipper

    (@dpskipper)

    Ok, thanks, i was unsure how to make code work after having changing options in the settings. Do you have any other tips on how to add my plugin settings to the side bar and how to make the code in the plugin work with the custom information set in the setttings?
    If you want i can add you as a contributor to my plugin.
    Thanks,
    William

    No, unfortunately,
    I’m having a hard time configuring this plugin, maybe you can help…
    What i’m trying to do is have an invoice show up on a page with the shortcode (this is not working) and then have the client view the invoice on that page (NB the client is not logged into wp)the page is only password protected. How do i make not logged in people view invoices, and how do I get that shortcode to work?
    Thanks,
    William

    I’m having the same problem, only difference, i’m not using a custom template

Viewing 15 replies - 31 through 45 (of 59 total)