• 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>

    https://www.ads-software.com/extend/plugins/adminer/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Adminer] Database Name’ is closed to new replies.