WordPress.org

Ready to get started?Download WordPress

Forums

Sweet Custom Dashboard
Duplicated footer statement (11 posts)

  1. Raphael Suzuki
    Member
    Posted 1 year ago #

    Hi!

    Great plugin!

    This statement seems to be duplicated: <?php include( ABSPATH . 'wp-admin/admin-footer.php' );

    WP includes footer by default in all pages.

    Also, how do we manage tabs within WP admin?

    http://wordpress.org/extend/plugins/sweet-custom-dashboard/

  2. Remi Corson
    Member
    Plugin Author

    Posted 1 year ago #

    Hi, can you please give me more details, i'm not having that issue, or at leat i'm not not able to replicate it.

  3. randomusernamehere
    Member
    Posted 1 year ago #

    Not the OP but same issue. I just downloaded this plugin today directly through my blog, so it's a fresh install.

    Essentially, there is a "Thank you for creating with WordPress Version 3.5 at the bottom of every "screenful" of information.

    If you only have enough content on the dashboard to keep it without a scroll bar, there's no duplicated footer (http://imageshack.us/photo/my-images/6/cudash01.jpg/ - shown at full screen width).

    If you have enough content for one screen and a bit of another, this is what shows up (http://imageshack.us/photo/my-images/717/cudash02.jpg/ - notice the dual "Thank you for creating with WordPress Version 3.5" at the bottom).

    If you have way more content for just one screen, you see this (http://imageshack.us/photo/my-images/839/cudash03.jpg/).

  4. Remi Corson
    Member
    Plugin Author

    Posted 1 year ago #

    Ok, i see, thanks for the update

  5. randomusernamehere
    Member
    Posted 1 year ago #

    Do you know how to fix this?

  6. Remi Corson
    Member
    Plugin Author

    Posted 1 year ago #

    not yet, but i will! ;-)

  7. Malkev
    Member
    Posted 1 year ago #

    no response?

  8. randomusernamehere
    Member
    Posted 1 year ago #

    I ultimately had to turn it off, it's just that annoying with the dupe messages.

  9. Remi Corson
    Member
    Plugin Author

    Posted 1 year ago #

    yes i understand this is pretty bad, but i've been very busy and wasn't able to sort it our for the moment.

  10. ramiabraham
    Member
    Posted 1 year ago #

    hello,

    Unless the site is modifying or removing wp-admin/admin-footer.php elsewhere, you can remove line 45 from custom_dashboard.php.

    thanks for the plugin, Remi - great time-saver :)

  11. Iftekhar
    Member
    Posted 11 months ago #

    How do we manage tabs within WP admin?

    Answer:

    At the beginning of custom-dashboard.php add the following code snippet:
    <?php $active_tab = isset( $_GET[ 'tab' ] ) ? $_GET[ 'tab' ] : 'Step1_options'; ?>

    Then replace the following code with the existing code:

    <h2 class="nav-tab-wrapper">
    	<a href="?page=custom-dashboard&tab=Step1_options" class="nav-tab <?php echo $active_tab == 'Step1_options' ? 'nav-tab-active' : ''; ?>">
    		<?php _e( 'Step 1' ); ?>
    	</a><a href="?page=custom-dashboard&tab=Step2_options" class="nav-tab <?php echo $active_tab == 'Step2_options' ? 'nav-tab-active' : ''; ?>">
    		<?php _e( 'Step 2' ); ?>
    	</a><a href="?page=custom-dashboard&tab=Step3_options" class="nav-tab <?php echo $active_tab == 'Step3_options' ? 'nav-tab-active' : ''; ?>">
    		<?php _e( 'Step 3' ); ?>
    	</a>
    </h2>

    Finally, give a condition as follow:

    <?php if( $active_tab == 'Step1_options' ) { ?>
    <div class="changelog">
    //First tab options
    </div>
    <?php } elseif( $active_tab == 'Step2_options' ) { ?>
    <div class="changelog">
    //Second tab options
    </div>
    <?php } else { ?>
    <div class="changelog">
    //Third tab options
    </div>
    <?php } ?>

    And you r done!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.