dpskipper
Forum Replies Created
-
Forum: Hacks
In reply to: Plugin Code QuestionI 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’;
}
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🙁
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 36Forum: Hacks
In reply to: Plugin Code QuestionWhere 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 QuestionAny way to add CSS classes as the image on the sidebar?
Forum: Hacks
In reply to: Plugin Code Question? Sorry for being so incompetent. But i really don’t know what your talking about. example code?
Forum: Hacks
In reply to: Plugin Code QuestionVery 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 470Forum: Hacks
In reply to: Plugin Code QuestionHmm, when i remove ‘null or ‘Options.php’ just breaks my site
Forum: Hacks
In reply to: Plugin Code QuestionOk, i will use your wise information and try it out 🙂
Forum: Hacks
In reply to: Plugin Code QuestionI 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”;
?>Forum: Fixing WordPress
In reply to: What does the 'Must Use' area in the plugins do?So in stead of putting a plugin in the plugins folder you put it in mu-plugins?
Forum: Fixing WordPress
In reply to: What does the 'Must Use' area in the plugins do?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 QuestionOk, thanks for all your help, do you want to be added a a contribute for the plugin?
Forum: Hacks
In reply to: Plugin Code QuestionOk, 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,
WilliamForum: Plugins
In reply to: [WP-Invoice - Web Invoice and Billing] Invoice shortcode will not workNo, 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,
WilliamForum: Plugins
In reply to: [WP-Invoice - Web Invoice and Billing] Invoice shortcode will not workI’m having the same problem, only difference, i’m not using a custom template