Forums

WP-Table Reloaded
[resolved] Custom Name in the Admin Menu (2 posts)

  1. lloydacris
    Member
    Posted 4 months ago #

    I get the following error when I try to activate the WP-Table Reloaded Extensions plugin:

    Plugin could not be activated because it triggered a fatal error.
    Parse error: syntax error, unexpected T_FUNCTION in /home7/givingt1/public_html/stgeorges/wp-content/plugins/wp-table-reloaded-extensions.php on line 15

    Here is the code in the 'wp-table-reloaded-extensions.php' file located in “/wp-contents/plugins/”:

    <?php
    /*
    Plugin Name: WP-Table Reloaded Extensions
    Plugin URI: http://tobias.baethge.com/wordpress-plugins/wp-table-reloaded-english/extensions/
    Description: Custom Extensions for WP-Table Reloaded
    Version: 1.0
    Author: YOU, Tobias Baethge
    */
     
    /**
     * Changes the WP Admin Menu entry from "WP-Table Reloaded" to "Tables"
     * @author Tobias Baethge
     * @see http://tobias.baethge.com/2010/01/extension-2-custom-name-in-the-menu/
     */
    function wp_table_reloaded_admin_menu_entry( $name ) {
        return 'Tables';
    }
    add_filter( 'wp_table_reloaded_plugin_display_name', 'wp_table_reloaded_admin_menu_entry' ); 
    
    ?>

    http://wordpress.org/extend/plugins/wp-table-reloaded/

  2. TobiasBg
    Member
    Posted 3 months ago #

    Hi,

    from your answer in http://wordpress.org/support/topic/wp-table-reloaded-easy-way-for-client-to-right-align-currency-data , I assume that this is now working for you.

    For others: This seems to be an issue with invisible white-space. Usually, opening the file in a plain text editor and saving again as UTF-8 (without BOM!) works.
    If not, one can also try to just paste the relevant lines of PHP code in the theme's "functions.php". That way, the extension is not really necessary but the code should work.

    Best wishes,
    Tobias

Reply

You must log in to post.

About this Plugin

About this Topic