MyLiveSignature at the bottom of every post Version: 0.2.5 Author: miCRoSCoPiC^eaRthLinG Author URI: http://chaos-laboratory.com License: GPL Last modified: 2008-05-17 12:30pm */ // Database Version $livesig_db_version = "1.0"; // Script folder $script_folder = str_replace( "livesig.php", "", __FILE__ ); // Database: Table installation function livesig_install () { global $wpdb; global $livesig_db_version; $table_name = $wpdb->prefix . "livesig"; if( $wpdb->get_var( "show tables like '$table_name'" ) != $table_name ) { $sql = "CREATE TABLE " . $table_name . " ( id bigint(20) NOT NULL, livesig_code text NOT NULL, UNIQUE KEY id (id) );"; require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); dbDelta( $sql ); // Add database version add_option( "livesig_db_version", $livesig_db_version ); } // if } // livesig_install // Admin Panel function livesig_add_pages() { add_options_page( 'LiveSig Options', 'LiveSig', 8, __FILE__, 'livesig_options_page' ); } // livesig_add_pages // Options Page function livesig_options_page() { global $script_folder; // If form was submitted if( isset( $_POST['livesig_update'] ) ) { // LiveSig Code if( empty( $_POST['livesig_code'] ) ) { // Delete the option from the DB if it's empty delete_option( 'livesig_code' ); $msg_status = "LiveSig Code deleted from the WordPress database."; } else { $livesig_code = $_POST['livesig_code']; update_option( 'livesig_code', $livesig_code ); $msg_status = "MyLiveSignature Code saved."; } // Show message _e( '
' . $msg_status . '
Usage: Select the Role and User from the list on the left and paste the signature code snippet provided by MyLiveSignature in the space below and hit Save. If you don\'t have your Live Signature yet, please head over to the MyLiveSignature site and get yourself one for free.
Disabling: If you wish to stop displaying your Signature, simply delete the code here for the respective user and press Save. Alternatively, disabling this plug-in should also do the trick - but this will disable the signature for all users.
Paste the MyLiveSignature code here exactly as provided - without any alteration, unless you\'re an an advanced user and know what you are doing.