WordPress.org

Forums

Adminer
[resolved] Database Name (3 posts)

  1. Dinesh Kesarwani
    Member
    Posted 3 years ago #

    Currently the adminer is not showing current working database name when opening in tools menu. It is displaying only host, user and password.

    And, after clicking the "Start Adminer inside" or "Start Adminer in a new tab", it is showing the all database on current instead of displaying the current database. Here are the changes:

    To display database name add these lines:

    <tr valign="top">
    	<th scope="row"><?php _e('Database', FB_ADM_TEXTDOMAIN); ?></th>
    	<td><?php echo DB_NAME; ?></td>
    </tr>

    after:

    <tr valign="top">
    	<th scope="row"><?php _e('Server', FB_ADM_TEXTDOMAIN); ?></th>
    	<td><?php echo DB_HOST; ?></td>
    </tr>

    And to display the current database after clicking the buttons. Find and replace the following codes:

    Search this :
    document.write('<a onclick="return false;" href="<?php echo WP_PLUGIN_URL . '/' . FB_ADM_BASEDIR; ?>/inc/adminer/loader.php?username=<?php echo DB_USER; ?>&?KeepThis=true&TB_iframe=true&height='+viewportheight+'&width='+viewportwidth+'" class="thickbox button"><?php _e( 'Start Adminer inside', FB_ADM_TEXTDOMAIN ); ?></a>' );

    Replace with :
    document.write('<a onclick="return false;" href="<?php echo WP_PLUGIN_URL . '/' . FB_ADM_BASEDIR; ?>/inc/adminer/loader.php?username=<?php echo DB_USER; ?>&db=<?php echo DB_NAME; ?>&?KeepThis=true&TB_iframe=true&height='+viewportheight+'&width='+viewportwidth+'" class="thickbox button"><?php _e( 'Start Adminer inside', FB_ADM_TEXTDOMAIN ); ?></a>' );

    And, Search this :
    <a target="_blank" href="<?php echo WP_PLUGIN_URL . '/' . FB_ADM_BASEDIR; ?>/inc/adminer/loader.php?username=<?php echo DB_USER; ?>" class="button"><?php _e( 'Start Adminer in a new tab', FB_ADM_TEXTDOMAIN ); ?></a>

    Replace with :
    <a target="_blank" href="<?php echo WP_PLUGIN_URL . '/' . FB_ADM_BASEDIR; ?>/inc/adminer/loader.php?username=<?php echo DB_USER; ?>&db=<?php echo DB_NAME; ?>" class="button"><?php _e( 'Start Adminer in a new tab', FB_ADM_TEXTDOMAIN ); ?></a>

    http://wordpress.org/extend/plugins/adminer/

  2. Frank Bueltge
    Member
    Plugin Author

    Posted 3 years ago #

    Thanks for the hints; 1.1.1 have include this idea.

  3. Dinesh Kesarwani
    Member
    Posted 3 years ago #

    Thanks buddy...

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Adminer
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags