Forums

Godaddy free hosting - Dashboard / Admin broken (102 posts)

  1. velese
    Member
    Posted 2 years ago #

    Thank you all for your help.
    I finally have my dashboard working properly.

    Still, there is one thing :))
    The Icoming Links, Plugins, WordPress development blog and Other wordpress news modules just say "LOADING..." and I cannot move any of the modules around, even when the four arrows appear.

    I think it might have to do with the Javascript not working (I remember from when it wasn't fixed to show up normally that it said that the javascript is not enabled, although I checked and it is - I use firefox). How can I fix that?

  2. velese
    Member
    Posted 2 years ago #

    Oh, and moebis, which files did you modify exactly with the new CSS rule? Can you please type in their names here?

  3. NuAngel
    Member
    Posted 2 years ago #

    Stefano's solution worked PERFECRTLY for me (using ADimeADozen.com hosting - a GoDaddy clone).

    I do not have the problem that others saw, with the banner ad now showing up multiple times. If you run in to that problem, you should probably try some of the FOOTER solutions suggested above. But if you can't figure out how to edit your SCRIPT-LOADER.PHP file, I have placed the complete code for the whole file below. Simply save this code as script-loader.php, and save it in your "/wp-includes" folder.

    The rest of the file is 100% the default of the 2.8.4 install.

    <?php
    /**
     * WordPress scripts and styles default loader.
     * Modified by NuAngel of WinBreak.com using suggestions of wordpress.org forum user stefano.torricelli
     * to fix jquery/ajax errors in admin dashboard, experienced by GoDaddy Banner-Ad Supported hosting customers.
     * All other code untouched and is 2.8.4 default WP install.
     * http://wordpress.org/support/topic/280162/
     *
     * Most of the functionality that existed here was moved to
     * {@link http://backpress.automattic.com/ BackPress}. WordPress themes and
     * plugins will only be concerned about the filters and actions set in this
     * file.
     *
     * Several constants are used to manage the loading, concatenating and compression of scripts and CSS:
     * define('SCRIPT_DEBUG', true); loads the development (non-minified) versions of all scripts and disables compression and concatenation
     * define('CONCATENATE_SCRIPTS', false); disables compression and concatenation,
     * define('COMPRESS_SCRIPTS', false); disables compression of scripts,
     * define('COMPRESS_CSS', false); disables compression of CSS,
     * define('ENFORCE_GZIP', true); forces gzip for compression (default is deflate).
     *
     * The globals $concatenate_scripts, $compress_scripts and $compress_css can be set by plugins
     * to temporarily override the above settings. Also a compression test is run once and the result is saved
     * as option 'can_compress_scripts' (0/1). The test will run again if that option is deleted.
     *
     * @package WordPress
     */
    
    /** BackPress: WordPress Dependencies Class */
    require( ABSPATH . WPINC . '/class.wp-dependencies.php' );
    
    /** BackPress: WordPress Scripts Class */
    require( ABSPATH . WPINC . '/class.wp-scripts.php' );
    
    /** BackPress: WordPress Scripts Functions */
    require( ABSPATH . WPINC . '/functions.wp-scripts.php' );
    
    /** BackPress: WordPress Styles Class */
    require( ABSPATH . WPINC . '/class.wp-styles.php' );
    
    /** BackPress: WordPress Styles Functions */
    require( ABSPATH . WPINC . '/functions.wp-styles.php' );
    
    /**
     * Setup WordPress scripts to load by default for Administration Panels.
     *
     * Localizes a few of the scripts.
     * $scripts->add_data( 'script-handle', 'group', 1 ); queues the script for the footer
     *
     * @since 2.6.0
     *
     * @param object $scripts WP_Scripts object.
     */
    function wp_default_scripts( &$scripts ) {
    
    	if ( !$guessurl = site_url() )
    		$guessurl = wp_guess_url();
    
    	$scripts->base_url = $guessurl;
    	$scripts->content_url = defined('WP_CONTENT_URL')? WP_CONTENT_URL : '';
    	$scripts->default_version = get_bloginfo( 'version' );
    	$scripts->default_dirs = array('/wp-admin/js/', '/wp-includes/js/');
    
    	$suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '.dev' : '';
    
    	$scripts->add( 'utils', "/wp-admin/js/utils$suffix.js", false, '20090102' );
    
    	$scripts->add( 'common', "/wp-admin/js/common$suffix.js", array('jquery', 'hoverIntent', 'utils'), '20090609' );
    	$scripts->add_data( 'common', 'group', 1 );
    	$scripts->localize( 'common', 'commonL10n', array(
    		'warnDelete' => __("You are about to delete the selected items.\n  'Cancel' to stop, 'OK' to delete."),
    		'l10n_print_after' => 'try{convertEntities(commonL10n);}catch(e){};'
    	) );
    
    	$scripts->add( 'sack', "/wp-includes/js/tw-sack$suffix.js", false, '1.6.1' );
    	$scripts->add_data( 'sack', 'group', 1 );
    
    	$scripts->add( 'quicktags', "/wp-includes/js/quicktags$suffix.js", false, '20090307' );
    	$scripts->localize( 'quicktags', 'quicktagsL10n', array(
    		'quickLinks' => __('(Quick Links)'),
    		'wordLookup' => __('Enter a word to look up:'),
    		'dictionaryLookup' => esc_attr(__('Dictionary lookup')),
    		'lookup' => esc_attr(__('lookup')),
    		'closeAllOpenTags' => esc_attr(__('Close all open tags')),
    		'closeTags' => esc_attr(__('close tags')),
    		'enterURL' => __('Enter the URL'),
    		'enterImageURL' => __('Enter the URL of the image'),
    		'enterImageDescription' => __('Enter a description of the image'),
    		'l10n_print_after' => 'try{convertEntities(quicktagsL10n);}catch(e){};'
    	) );
    
    	$scripts->add( 'colorpicker', "/wp-includes/js/colorpicker$suffix.js", array('prototype'), '3517m' );
    
    	$scripts->add( 'editor', "/wp-admin/js/editor$suffix.js", false, '20090503' );
    
    	$scripts->add( 'prototype', '/wp-includes/js/prototype.js', false, '1.6');
    
    	$scripts->add( 'wp-ajax-response', "/wp-includes/js/wp-ajax-response$suffix.js", array('jquery'), '20090128' );
    	$scripts->add_data( 'wp-ajax-response', 'group', 1 );
    	$scripts->localize( 'wp-ajax-response', 'wpAjax', array(
    		'noPerm' => __('You do not have permission to do that.'),
    		'broken' => __('An unidentified error has occurred.'),
    		'l10n_print_after' => 'try{convertEntities(wpAjax);}catch(e){};'
    	) );
    
    	$scripts->add( 'autosave', "/wp-includes/js/autosave$suffix.js", array('schedule', 'wp-ajax-response'), '20090526' );
    	$scripts->add_data( 'autosave', 'group', 1 );
    
    	$scripts->add( 'wp-lists', "/wp-includes/js/wp-lists$suffix.js", array('wp-ajax-response'), '20090504' );
    	$scripts->add_data( 'wp-lists', 'group', 1 );
    	$scripts->localize( 'wp-lists', 'wpListL10n', array(
    		'url' => admin_url('admin-ajax.php')
    	) );
    
    	$scripts->add( 'scriptaculous-root', '/wp-includes/js/scriptaculous/wp-scriptaculous.js', array('prototype'), '1.8.0');
    	$scripts->add( 'scriptaculous-builder', '/wp-includes/js/scriptaculous/builder.js', array('scriptaculous-root'), '1.8.0');
    	$scripts->add( 'scriptaculous-dragdrop', '/wp-includes/js/scriptaculous/dragdrop.js', array('scriptaculous-builder', 'scriptaculous-effects'), '1.8.0');
    	$scripts->add( 'scriptaculous-effects', '/wp-includes/js/scriptaculous/effects.js', array('scriptaculous-root'), '1.8.0');
    	$scripts->add( 'scriptaculous-slider', '/wp-includes/js/scriptaculous/slider.js', array('scriptaculous-effects'), '1.8.0');
    	$scripts->add( 'scriptaculous-sound', '/wp-includes/js/scriptaculous/sound.js', array( 'scriptaculous-root' ), '1.8.0' );
    	$scripts->add( 'scriptaculous-controls', '/wp-includes/js/scriptaculous/controls.js', array('scriptaculous-root'), '1.8.0');
    	$scripts->add( 'scriptaculous', '', array('scriptaculous-dragdrop', 'scriptaculous-slider', 'scriptaculous-controls'), '1.8.0');
    
    	$scripts->add( 'cropper', '/wp-includes/js/crop/cropper.js', array('scriptaculous-dragdrop'), '20070118');
    
    	$scripts->add( 'jquery', '/wp-includes/js/jquery/jquery.js', false, '1.3.2');
    
    	$scripts->add( 'jquery-ui-core', '/wp-includes/js/jquery/ui.core.js', array('jquery'), '1.7.1' );
    	$scripts->add_data( 'jquery-ui-core', 'group', 1 );
    
    	$scripts->add( 'jquery-ui-tabs', '/wp-includes/js/jquery/ui.tabs.js', array('jquery-ui-core'), '1.7.1' );
    	$scripts->add_data( 'jquery-ui-tabs', 'group', 1 );
    
    	$scripts->add( 'jquery-ui-sortable', '/wp-includes/js/jquery/ui.sortable.js', array('jquery-ui-core'), '1.7.1' );
    	$scripts->add_data( 'jquery-ui-sortable', 'group', 1 );
    
    	$scripts->add( 'jquery-ui-draggable', '/wp-includes/js/jquery/ui.draggable.js', array('jquery-ui-core'), '1.7.1' );
    	$scripts->add_data( 'jquery-ui-draggable', 'group', 1 );
    
    	$scripts->add( 'jquery-ui-droppable', '/wp-includes/js/jquery/ui.droppable.js', array('jquery-ui-core'), '1.7.1' );
    	$scripts->add_data( 'jquery-ui-droppable', 'group', 1 );
    
    	$scripts->add( 'jquery-ui-selectable', '/wp-includes/js/jquery/ui.selectable.js', array('jquery-ui-core'), '1.7.1' );
    	$scripts->add_data( 'jquery-ui-selectable', 'group', 1 );
    
    	$scripts->add( 'jquery-ui-resizable', '/wp-includes/js/jquery/ui.resizable.js', array('jquery-ui-core'), '1.7.1' );
    	$scripts->add_data( 'jquery-ui-resizable', 'group', 1 );
    
    	$scripts->add( 'jquery-ui-dialog', '/wp-includes/js/jquery/ui.dialog.js', array('jquery-ui-resizable', 'jquery-ui-draggable'), '1.7.1' );
    	$scripts->add_data( 'jquery-ui-dialog', 'group', 1 );
    
    	$scripts->add( 'jquery-form', "/wp-includes/js/jquery/jquery.form$suffix.js", array('jquery'), '2.02m');
    	$scripts->add_data( 'jquery-form', 'group', 1 );
    
    	$scripts->add( 'jquery-color', "/wp-includes/js/jquery/jquery.color$suffix.js", array('jquery'), '2.0-4561m');
    	$scripts->add_data( 'jquery-color', 'group', 1 );
    
    	$scripts->add( 'interface', '/wp-includes/js/jquery/interface.js', array('jquery'), '1.2' );
    
    	$scripts->add( 'suggest', "/wp-includes/js/jquery/suggest$suffix.js", array('jquery'), '1.1-20090125');
    	$scripts->add_data( 'suggest', 'group', 1 );
    
    	$scripts->add( 'schedule', '/wp-includes/js/jquery/jquery.schedule.js', array('jquery'), '20m');
    	$scripts->add_data( 'schedule', 'group', 1 );
    
    	$scripts->add( 'jquery-hotkeys', "/wp-includes/js/jquery/jquery.hotkeys$suffix.js", array('jquery'), '0.0.2m' );
    	$scripts->add_data( 'jquery-hotkeys', 'group', 1 );
    
    	$scripts->add( 'jquery-table-hotkeys', "/wp-includes/js/jquery/jquery.table-hotkeys$suffix.js", array('jquery', 'jquery-hotkeys'), '20090102' );
    	$scripts->add_data( 'jquery-table-hotkeys', 'group', 1 );
    
    	$scripts->add( 'thickbox', "/wp-includes/js/thickbox/thickbox.js", array('jquery'), '3.1-20090123');
    	$scripts->add_data( 'thickbox', 'group', 1 );
    
    	$scripts->add( 'jcrop', "/wp-includes/js/jcrop/jquery.Jcrop$suffix.js", array('jquery'), '0.9.8');
    
    	$scripts->add( 'swfobject', "/wp-includes/js/swfobject.js", false, '2.1');
    
    	$scripts->add( 'swfupload', '/wp-includes/js/swfupload/swfupload.js', false, '2201');
    	$scripts->add( 'swfupload-swfobject', '/wp-includes/js/swfupload/plugins/swfupload.swfobject.js', array('swfupload', 'swfobject'), '2201');
    	$scripts->add( 'swfupload-queue', '/wp-includes/js/swfupload/plugins/swfupload.queue.js', array('swfupload'), '2201');
    	$scripts->add( 'swfupload-speed', '/wp-includes/js/swfupload/plugins/swfupload.speed.js', array('swfupload'), '2201');
    
    	if ( defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ) {
    		// queue all SWFUpload scripts that are used by default
    		$scripts->add( 'swfupload-all', false, array('swfupload', 'swfupload-swfobject', 'swfupload-queue'), '2201');
    	} else {
    		$scripts->add( 'swfupload-all', '/wp-includes/js/swfupload/swfupload-all.js', array(), '2201');
    	}
    
    	$scripts->add( 'swfupload-handlers', "/wp-includes/js/swfupload/handlers$suffix.js", array('swfupload-all', 'jquery'), '2201-20090515');
    	// these error messages came from the sample swfupload js, they might need changing.
    	$scripts->localize( 'swfupload-handlers', 'swfuploadL10n', array(
    			'queue_limit_exceeded' => __('You have attempted to queue too many files.'),
    			'file_exceeds_size_limit' => sprintf(__('This file is too big. Your php.ini upload_max_filesize is %s.'), @ini_get('upload_max_filesize')),
    			'zero_byte_file' => __('This file is empty. Please try another.'),
    			'invalid_filetype' => __('This file type is not allowed. Please try another.'),
    			'default_error' => __('An error occurred in the upload. Please try again later.'),
    			'missing_upload_url' => __('There was a configuration error. Please contact the server administrator.'),
    			'upload_limit_exceeded' => __('You may only upload 1 file.'),
    			'http_error' => __('HTTP error.'),
    			'upload_failed' => __('Upload failed.'),
    			'io_error' => __('IO error.'),
    			'security_error' => __('Security error.'),
    			'file_cancelled' => __('File cancelled.'),
    			'upload_stopped' => __('Upload stopped.'),
    			'dismiss' => __('Dismiss'),
    			'crunching' => __('Crunching&hellip;'),
    			'deleted' => __('Deleted'),
    			'l10n_print_after' => 'try{convertEntities(swfuploadL10n);}catch(e){};'
    	) );
    
    	$scripts->add( 'comment-reply', "/wp-includes/js/comment-reply$suffix.js", false, '20090102');
    
    	if ( is_admin() ) {
    		$scripts->add( 'ajaxcat', "/wp-admin/js/cat$suffix.js", array( 'wp-lists' ), '20090102' );
    		$scripts->add_data( 'ajaxcat', 'group', 1 );
    		$scripts->localize( 'ajaxcat', 'catL10n', array(
    			'add' => esc_attr(__('Add')),
    			'how' => __('Separate multiple categories with commas.'),
    			'l10n_print_after' => 'try{convertEntities(catL10n);}catch(e){};'
    		) );
    
    		$scripts->add( 'admin-categories', "/wp-admin/js/categories$suffix.js", array('wp-lists'), '20090207' );
    		$scripts->add_data( 'admin-categories', 'group', 1 );
    
    		$scripts->add( 'admin-tags', "/wp-admin/js/tags$suffix.js", array('wp-lists'), '20090211' );
    		$scripts->add_data( 'admin-tags', 'group', 1 );
    
    		$scripts->add( 'admin-custom-fields', "/wp-admin/js/custom-fields$suffix.js", array('wp-lists'), '20090106' );
    		$scripts->add_data( 'admin-custom-fields', 'group', 1 );
    
    		$scripts->add( 'password-strength-meter', "/wp-admin/js/password-strength-meter$suffix.js", array('jquery'), '20090102' );
    		$scripts->add_data( 'password-strength-meter', 'group', 1 );
    		$scripts->localize( 'password-strength-meter', 'pwsL10n', array(
    			'empty' => __('Strength indicator'),
    			'short' => __('Very weak'),
    			'bad' => __('Weak'),
    			/* translators: password strength */
    			'good' => _x('Medium', 'password strength'),
    			'strong' => __('Strong'),
    			'l10n_print_after' => 'try{convertEntities(pwsL10n);}catch(e){};'
    		) );
    
    		$scripts->add( 'user-profile', "/wp-admin/js/user-profile$suffix.js", array('jquery'), '20090514' );
    		$scripts->add_data( 'user-profile', 'group', 1 );
    
    		$scripts->add( 'admin-comments', "/wp-admin/js/edit-comments$suffix.js", array('wp-lists', 'jquery-ui-resizable', 'quicktags'), '20090627' );
    		$scripts->add_data( 'admin-comments', 'group', 1 );
    		$scripts->localize( 'admin-comments', 'adminCommentsL10n', array(
    			'hotkeys_highlight_first' => isset($_GET['hotkeys_highlight_first']),
    			'hotkeys_highlight_last' => isset($_GET['hotkeys_highlight_last'])
    		) );
    
    		$scripts->add( 'xfn', "/wp-admin/js/xfn$suffix.js", false, '3517m' );
    
    		$scripts->add( 'postbox', "/wp-admin/js/postbox$suffix.js", array('jquery-ui-sortable'), '20090618' );
    		$scripts->add_data( 'postbox', 'group', 1 );
    		$scripts->localize( 'postbox', 'postboxL10n', array(
    			'requestFile' => admin_url('admin-ajax.php')
    		) );
    
    		$scripts->add( 'slug', "/wp-admin/js/slug$suffix.js", array('jquery'), '20090207' );
    		$scripts->add_data( 'slug', 'group', 1 );
    		$scripts->localize( 'slug', 'slugL10n', array(
    			'requestFile' => admin_url('admin-ajax.php'),
    			'save' => __('Save'),
    			'cancel' => __('Cancel'),
    			'l10n_print_after' => 'try{convertEntities(slugL10n);}catch(e){};'
    		) );
    
    		$scripts->add( 'post', "/wp-admin/js/post$suffix.js", array('suggest', 'wp-lists', 'postbox', 'slug'), '20090624' );
    		$scripts->add_data( 'post', 'group', 1 );
    		$scripts->localize( 'post', 'postL10n', array(
    			'tagsUsed' =>  __('Tags used on this post:'),
    			'add' => esc_attr(__('Add')),
    			'addTag' => esc_attr(__('Add new tag')),
    			'separate' => __('Separate tags with commas'),
    			'cancel' => __('Cancel'),
    			'edit' => __('Edit'),
    			'publishOn' => __('Publish on:'),
    			'publishOnFuture' =>  __('Schedule for:'),
    			'publishOnPast' => __('Published on:'),
    			'showcomm' => __('Show more comments'),
    			'endcomm' => __('No more comments found.'),
    			'publish' => __('Publish'),
    			'schedule' => __('Schedule'),
    			'update' => __('Update Post'),
    			'savePending' => __('Save as Pending'),
    			'saveDraft' => __('Save Draft'),
    			'private' => __('Private'),
    			'public' => __('Public'),
    			'publicSticky' => __('Public, Sticky'),
    			'password' => __('Password Protected'),
    			'privatelyPublished' => __('Privately Published'),
    			'published' => __('Published'),
    			'l10n_print_after' => 'try{convertEntities(postL10n);}catch(e){};'
    		) );
    
    		$scripts->add( 'page', "/wp-admin/js/page$suffix.js", array('jquery', 'slug', 'wp-lists', 'postbox'), '20090526' );
    		$scripts->add_data( 'page', 'group', 1 );
    		$scripts->localize( 'page', 'postL10n', array(
    			'cancel' => __('Cancel'),
    			'edit' => __('Edit'),
    			'publishOn' => __('Publish on:'),
    			'publishOnFuture' =>  __('Schedule for:'),
    			'publishOnPast' => __('Published on:'),
    			'showcomm' => __('Show more comments'),
    			'endcomm' => __('No more comments found.'),
    			'publish' => __('Publish'),
    			'schedule' => __('Schedule'),
    			'update' => __('Update Page'),
    			'savePending' => __('Save as Pending'),
    			'saveDraft' => __('Save Draft'),
    			'private' => __('Private'),
    			'public' => __('Public'),
    			'password' => __('Password Protected'),
    			'privatelyPublished' => __('Privately Published'),
    			'published' => __('Published'),
    			'l10n_print_after' => 'try{convertEntities(postL10n);}catch(e){};'
    		) );
    
    		$scripts->add( 'link', "/wp-admin/js/link$suffix.js", array('wp-lists', 'postbox'), '20090506' );
    		$scripts->add_data( 'link', 'group', 1 );
    
    		$scripts->add( 'comment', "/wp-admin/js/comment$suffix.js", array('jquery'), '20090102' );
    		$scripts->add_data( 'comment', 'group', 1 );
    		$scripts->localize( 'comment', 'commentL10n', array(
    			'cancel' => __('Cancel'),
    			'edit' => __('Edit'),
    			'submittedOn' => __('Submitted on:'),
    			'l10n_print_after' => 'try{convertEntities(commentL10n);}catch(e){};'
    		) );
    
    		$scripts->add( 'admin-gallery', "/wp-admin/js/gallery$suffix.js", array( 'jquery-ui-sortable' ), '20090516' );
    
    		$scripts->add( 'media-upload', "/wp-admin/js/media-upload$suffix.js", array( 'thickbox' ), '20090114' );
    		$scripts->add_data( 'media-upload', 'group', 1 );
    
    		$scripts->add( 'admin-widgets', "/wp-admin/js/widgets$suffix.js", array( 'jquery-ui-sortable', 'jquery-ui-draggable', 'jquery-ui-droppable' ), '20090601' );
    		$scripts->add_data( 'admin-widgets', 'group', 1 );
    
    		$scripts->add( 'word-count', "/wp-admin/js/word-count$suffix.js", array( 'jquery' ), '20090422' );
    		$scripts->add_data( 'word-count', 'group', 1 );
    		$scripts->localize( 'word-count', 'wordCountL10n', array(
    			'count' => __('Word count: %d'),
    			'l10n_print_after' => 'try{convertEntities(wordCountL10n);}catch(e){};'
    		));
    
    		$scripts->add( 'wp-gears', "/wp-admin/js/wp-gears$suffix.js", false, '20090102' );
    		$scripts->localize( 'wp-gears', 'wpGearsL10n', array(
    			'updateCompleted' => __('Update completed.'),
    			'error' => __('Error:'),
    			'l10n_print_after' => 'try{convertEntities(wpGearsL10n);}catch(e){};'
    		));
    
    		$scripts->add( 'theme-preview', "/wp-admin/js/theme-preview$suffix.js", array( 'thickbox', 'jquery' ), '20090319' );
    		$scripts->add_data( 'theme-preview', 'group', 1 );
    
    		$scripts->add( 'inline-edit-post', "/wp-admin/js/inline-edit-post$suffix.js", array( 'jquery-form', 'suggest' ), '20090125' );
    		$scripts->add_data( 'inline-edit-post', 'group', 1 );
    		$scripts->localize( 'inline-edit-post', 'inlineEditL10n', array(
    			'error' => __('Error while saving the changes.'),
    			'ntdeltitle' => __('Remove From Bulk Edit'),
    			'notitle' => __('(no title)'),
    			'l10n_print_after' => 'try{convertEntities(inlineEditL10n);}catch(e){};'
    		) );
    
    		$scripts->add( 'inline-edit-tax', "/wp-admin/js/inline-edit-tax$suffix.js", array( 'jquery-form' ), '20090211' );
    		$scripts->add_data( 'inline-edit-tax', 'group', 1 );
    		$scripts->localize( 'inline-edit-tax', 'inlineEditL10n', array(
    			'error' => __('Error while saving the changes.'),
    			'l10n_print_after' => 'try{convertEntities(inlineEditL10n);}catch(e){};'
    		) );
    
    		$scripts->add( 'plugin-install', "/wp-admin/js/plugin-install$suffix.js", array( 'jquery' ), '20090520' );
    		$scripts->add_data( 'plugin-install', 'group', 1 );
    		$scripts->localize( 'plugin-install', 'plugininstallL10n', array(
    			'plugin_information' => __('Plugin Information:'),
    			'l10n_print_after' => 'try{convertEntities(plugininstallL10n);}catch(e){};'
    		) );
    
    		$scripts->add( 'farbtastic', '/wp-admin/js/farbtastic.js', array('jquery'), '1.2' );
    
    		$scripts->add( 'dashboard', "/wp-admin/js/dashboard$suffix.js", array( 'jquery', 'admin-comments', 'postbox' ), '20090618' );
    		$scripts->add_data( 'dashboard', 'group', 1 );
    
    		$scripts->add( 'hoverIntent', "/wp-includes/js/hoverIntent$suffix.js", array('jquery'), '20090102' );
    		$scripts->add_data( 'hoverIntent', 'group', 1 );
    
    		$scripts->add( 'media', "/wp-admin/js/media$suffix.js", array( 'jquery-ui-draggable' ), '20090415' );
    		$scripts->add_data( 'media', 'group', 1 );
    
    		$scripts->add( 'codepress', '/wp-includes/js/codepress/codepress.js', false, '0.9.6' );
    		$scripts->add_data( 'codepress', 'group', 1 );
    	}
    }
    
    /**
     * Assign default styles to $styles object.
     *
     * Nothing is returned, because the $styles parameter is passed by reference.
     * Meaning that whatever object is passed will be updated without having to
     * reassign the variable that was passed back to the same value. This saves
     * memory.
     *
     * Adding default styles is not the only task, it also assigns the base_url
     * property, the default version, and text direction for the object.
     *
     * @since 2.6.0
     *
     * @param object $styles
     */
    function wp_default_styles( &$styles ) {
    	// This checks to see if site_url() returns something and if it does not
    	// then it assigns $guess_url to wp_guess_url(). Strange format, but it works.
    	if ( ! $guessurl = site_url() )
    		$guessurl = wp_guess_url();
    
    	$styles->base_url = $guessurl;
    	$styles->content_url = defined('WP_CONTENT_URL')? WP_CONTENT_URL : '';
    	$styles->default_version = get_bloginfo( 'version' );
    	$styles->text_direction = 'rtl' == get_bloginfo( 'text_direction' ) ? 'rtl' : 'ltr';
    	$styles->default_dirs = array('/wp-admin/');
    
    	$rtl_styles = array( 'global', 'colors', 'dashboard', 'ie', 'install', 'login', 'media', 'theme-editor', 'upload', 'widgets', 'press-this', 'plugin-install', 'farbtastic' );
    
    	// all colors stylesheets need to have the same query strings (cache manifest compat)
    	$colors_version = '20090625';
    
    	$styles->add( 'wp-admin', '/wp-admin/wp-admin.css', array(), '20090625' );
    	$styles->add_data( 'wp-admin', 'rtl', '/wp-admin/rtl.css' );
    
    	$styles->add( 'ie', '/wp-admin/css/ie.css', array(), '20090630' );
    	$styles->add_data( 'ie', 'conditional', 'lte IE 7' );
    
    	// Register "meta" stylesheet for admin colors. All colors-* style sheets should have the same version string.
    	$styles->add( 'colors', true, array(), $colors_version );
    
    	// do not refer to these directly, the right one is queued by the above "meta" colors handle
    	$styles->add( 'colors-fresh', '/wp-admin/css/colors-fresh.css', array(), $colors_version);
    	$styles->add_data( 'colors-fresh', 'rtl', true );
    	$styles->add( 'colors-classic', '/wp-admin/css/colors-classic.css', array(), $colors_version);
    	$styles->add_data( 'colors-classic', 'rtl', true );
    
    	$styles->add( 'global', '/wp-admin/css/global.css', array(), '20090630' );
    	$styles->add( 'media', '/wp-admin/css/media.css', array(), '20090516' );
    	$styles->add( 'widgets', '/wp-admin/css/widgets.css', array(), '20090603' );
    	$styles->add( 'dashboard', '/wp-admin/css/dashboard.css', array(), '20090514' );
    	$styles->add( 'install', '/wp-admin/css/install.css', array(), '20090514' );
    	$styles->add( 'theme-editor', '/wp-admin/css/theme-editor.css', array(), '20090625' );
    	$styles->add( 'press-this', '/wp-admin/css/press-this.css', array(), '20090514' );
    	$styles->add( 'thickbox', '/wp-includes/js/thickbox/thickbox.css', array(), '20090514' );
    	$styles->add( 'login', '/wp-admin/css/login.css', array(), '20090514' );
    	$styles->add( 'plugin-install', '/wp-admin/css/plugin-install.css', array(), '20090514' );
    	$styles->add( 'theme-install', '/wp-admin/css/theme-install.css', array(), '20090610' );
    	$styles->add( 'farbtastic', '/wp-admin/css/farbtastic.css', array(), '1.2' );
    	$styles->add( 'jcrop', '/wp-includes/js/jcrop/jquery.Jcrop.css', array(), '0.9.8' );
    
    	foreach ( $rtl_styles as $rtl_style )
    		$styles->add_data( $rtl_style, 'rtl', true );
    }
    
    /**
     * Reorder JavaScript scripts array to place prototype before jQuery.
     *
     * @since 2.3.1
     *
     * @param array $js_array JavaScript scripst array
     * @return array Reordered array, if needed.
     */
    function wp_prototype_before_jquery( $js_array ) {
    	if ( false === $jquery = array_search( 'jquery', $js_array, true ) )
    		return $js_array;
    
    	if ( false === $prototype = array_search( 'prototype', $js_array, true ) )
    		return $js_array;
    
    	if ( $prototype < $jquery )
    		return $js_array;
    
    	unset($js_array[$prototype]);
    
    	array_splice( $js_array, $jquery, 0, 'prototype' );
    
    	return $js_array;
    }
    
    /**
     * Load localized script just in time for MCE.
     *
     * These localizations require information that may not be loaded even by init.
     *
     * @since 2.5.0
     */
    function wp_just_in_time_script_localization() {
    
    	wp_localize_script( 'autosave', 'autosaveL10n', array(
    		'autosaveInterval' => AUTOSAVE_INTERVAL,
    		'previewPageText' => __('Preview this Page'),
    		'previewPostText' => __('Preview this Post'),
    		'requestFile' => admin_url('admin-ajax.php'),
    		'savingText' => __('Saving Draft…'),
    		'saveAlert' => __('The changes you made will be lost if you navigate away from this page.'),
    		'l10n_print_after' => 'try{convertEntities(autosaveL10n);}catch(e){};'
    	) );
    }
    
    /**
     * Administration Panel CSS for changing the styles.
     *
     * If installing the 'wp-admin/' directory will be replaced with './'.
     *
     * The $_wp_admin_css_colors global manages the Administration Panels CSS
     * stylesheet that is loaded. The option that is set is 'admin_color' and is the
     * color and key for the array. The value for the color key is an object with
     * a 'url' parameter that has the URL path to the CSS file.
     *
     * The query from $src parameter will be appended to the URL that is given from
     * the $_wp_admin_css_colors array value URL.
     *
     * @since 2.6.0
     * @uses $_wp_admin_css_colors
     *
     * @param string $src Source URL.
     * @param string $handle Either 'colors' or 'colors-rtl'.
     * @return string URL path to CSS stylesheet for Administration Panels.
     */
    function wp_style_loader_src( $src, $handle ) {
    	if ( defined('WP_INSTALLING') )
    		return preg_replace( '#^wp-admin/#', './', $src );
    
    	if ( 'colors' == $handle || 'colors-rtl' == $handle ) {
    		global $_wp_admin_css_colors;
    		$color = get_user_option('admin_color');
    		if ( empty($color) || !isset($_wp_admin_css_colors[$color]) )
    			$color = 'fresh';
    		$color = $_wp_admin_css_colors[$color];
    		$parsed = parse_url( $src );
    		$url = $color->url;
    		if ( isset($parsed['query']) && $parsed['query'] ) {
    			wp_parse_str( $parsed['query'], $qv );
    			$url = add_query_arg( $qv, $url );
    		}
    		return $url;
    	}
    
    	return $src;
    }
    
    /**
     * Prints the script queue in the HTML head on admin pages.
     *
     * Postpones the scripts that were queued for the footer.
     * print_footer_scripts() is called in the footer to print these scripts.
     *
     * @since 2.8
     * @see wp_print_scripts()
     */
    function print_head_scripts() {
    	global $wp_scripts, $concatenate_scripts;
    
    	if ( ! did_action('wp_print_scripts') )
    		do_action('wp_print_scripts');
    
    	if ( !is_a($wp_scripts, 'WP_Scripts') )
    		$wp_scripts = new WP_Scripts();
    
    	script_concat_settings();
    	$wp_scripts->do_concat = $concatenate_scripts;
    	$wp_scripts->do_head_items();
    
    	if ( apply_filters('print_head_scripts', true) )
    		_print_scripts();
    
    	$wp_scripts->reset();
    	return $wp_scripts->done;
    }
    
    /**
     * Prints the scripts that were queued for the footer on admin pages.
     *
     * @since 2.8
     */
    function print_footer_scripts() {
    	global $wp_scripts, $concatenate_scripts;
    
    	if ( ! did_action('wp_print_footer_scripts') )
    		do_action('wp_print_footer_scripts');
    
    	if ( !is_a($wp_scripts, 'WP_Scripts') )
    		return array(); // No need to run if not instantiated.
    
    	script_concat_settings();
    	$wp_scripts->do_concat = $concatenate_scripts;
    	$wp_scripts->do_footer_items();
    
    	if ( apply_filters('print_footer_scripts', true) )
    		_print_scripts();
    
    	$wp_scripts->reset();
    	return $wp_scripts->done;
    }
    
    function _print_scripts() {
    	global $wp_scripts, $compress_scripts;
    
    	$zip = $compress_scripts ? 1 : 0;
    	if ( $zip && defined('ENFORCE_GZIP') && ENFORCE_GZIP )
    		$zip = 'gzip';
    
    	if ( !empty($wp_scripts->concat) ) {
    
    		if ( !empty($wp_scripts->print_code) ) {
    			echo "<script type='text/javascript'>\n";
    			echo "/* <![CDATA[ */\n";
    			echo $wp_scripts->print_code;
    			echo "/* ]]> */\n";
    			echo "</script>\n";
    		}
    
    		$ver = md5("$wp_scripts->concat_version");
    		$src = $wp_scripts->base_url . "/wp-admin/load-scripts.php?c={$zip}&load=" . trim($wp_scripts->concat, ', ') . "&ver=$ver";
    		// **********************************************
    		// Clean for godaddy free hosting
    			$st_data = file_get_contents( $src );
    			$st_data = substr( $st_data, 0, strrpos( $st_data, '</iframe>' ) );
    			echo "<script type='text/javascript'>\n";
    			echo $st_data;
    			echo "</script>\n";
    		// **********************************************
    	}
    
    	if ( !empty($wp_scripts->print_html) )
    		echo $wp_scripts->print_html;
    }
    
    /**
     * Prints the script queue in the HTML head on the front end.
     *
     * Postpones the scripts that were queued for the footer.
     * wp_print_footer_scripts() is called in the footer to print these scripts.
     *
     * @since 2.8
     */
    function wp_print_head_scripts() {
    	if ( ! did_action('wp_print_scripts') )
    		do_action('wp_print_scripts');
    
    	global $wp_scripts;
    
    	if ( !is_a($wp_scripts, 'WP_Scripts') )
    		return array(); // no need to run if nothing is queued
    
    	return print_head_scripts();
    }
    
    /**
     * Prints the scripts that were queued for the footer on the front end.
     *
     * @since 2.8
     */
    function wp_print_footer_scripts() {
    	return print_footer_scripts();
    }
    
    /**
     * Wrapper for do_action('wp_enqueue_scripts')
     *
     * Allows plugins to queue scripts for the front end using wp_enqueue_script().
     * Runs first in wp_head() where all is_home(), is_page(), etc. functions are available.
     *
     * @since 2.8
     */
    function wp_enqueue_scripts() {
    	do_action('wp_enqueue_scripts');
    }
    
    function print_admin_styles() {
    	global $wp_styles, $concatenate_scripts, $compress_css;
    
    	if ( !is_a($wp_styles, 'WP_Styles') )
    		$wp_styles = new WP_Styles();
    
    	script_concat_settings();
    	$wp_styles->do_concat = $concatenate_scripts;
    	$zip = $compress_css ? 1 : 0;
    	if ( $zip && defined('ENFORCE_GZIP') && ENFORCE_GZIP )
    		$zip = 'gzip';
    
    	$wp_styles->do_items(false);
    
    	if ( apply_filters('print_admin_styles', true) ) {
    		if ( !empty($wp_styles->concat) ) {
    			$dir = $wp_styles->text_direction;
    			$ver = md5("$wp_styles->concat_version{$dir}");
    			$href = $wp_styles->base_url . "/wp-admin/load-styles.php?c={$zip}&dir={$dir}&load=" . trim($wp_styles->concat, ', ') . "&ver=$ver";
    			// **********************************************
    			// Clean for godaddy free hosting
    				$st_data = file_get_contents( $href );
    				$st_data = substr( $st_data, 0, strrpos( $st_data, '</iframe>' ) );
    				echo "<style type='text/css' media='all'>\n";
    				echo $st_data;
    				echo "</style>\n";
    			// **********************************************
    		}
    
    		if ( !empty($wp_styles->print_html) )
    			echo $wp_styles->print_html;
    	}
    
    	$wp_styles->do_concat = false;
    	$wp_styles->concat = $wp_styles->concat_version = $wp_styles->print_html = '';
    	return $wp_styles->done;
    }
    
    function script_concat_settings() {
    	global $concatenate_scripts, $compress_scripts, $compress_css;
    
    	$compressed_output = ( ini_get('zlib.output_compression') || 'ob_gzhandler' == ini_get('output_handler') );
    
    	if ( ! isset($concatenate_scripts) ) {
    		$concatenate_scripts = defined('CONCATENATE_SCRIPTS') ? CONCATENATE_SCRIPTS : true;
    		if ( ! is_admin() || ( defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ) )
    			$concatenate_scripts = false;
    	}
    
    	if ( ! isset($compress_scripts) ) {
    		$compress_scripts = defined('COMPRESS_SCRIPTS') ? COMPRESS_SCRIPTS : true;
    		if ( $compress_scripts && ( ! get_site_option('can_compress_scripts') || $compressed_output ) )
    			$compress_scripts = false;
    	}
    
    	if ( ! isset($compress_css) ) {
    		$compress_css = defined('COMPRESS_CSS') ? COMPRESS_CSS : true;
    		if ( $compress_css && ( ! get_site_option('can_compress_scripts') || $compressed_output ) )
    			$compress_css = false;
    	}
    }
    
    add_action( 'wp_default_scripts', 'wp_default_scripts' );
    add_filter( 'wp_print_scripts', 'wp_just_in_time_script_localization' );
    add_filter( 'print_scripts_array', 'wp_prototype_before_jquery' );
    
    add_action( 'wp_default_styles', 'wp_default_styles' );
    add_filter( 'style_loader_src', 'wp_style_loader_src', 10, 2 );

    NuAngel

  4. NuAngel
    Member
    Posted 2 years ago #

    I just realized how badly I butchered the word "PERFECTLY" in my post above. lmao... damn netbook keyboard. ;)

    Nu

  5. yourlancasterhome
    Member
    Posted 2 years ago #

    I just uploaded a new blog and the dasboard CSS is broken in FF. I use GD free hosting and did successfully add the CSS to ditch the ads - nice. Can't add the code in the script loader successfully, however. I even copied and pasted the entire page over from NuAngel's post. Here's what the screenshot looks like:

    Can anyone help?

  6. yourlancasterhome
    Member
    Posted 2 years ago #

    I reset the script-loader file to wordpress specs. Still broken.

  7. yourlancasterhome
    Member
    Posted 2 years ago #

    works in IE though...

  8. thorsso
    Member
    Posted 2 years ago #

    Hello yourlancasterhome,
    the php.ini file, at root of your server, has a key that enable file_get_contents and fopen with url argument.
    For security reasons the key 'allow_url_fopen' is set to off, put the value on and reload the page.

    I don't know if this solve the problem, but try it.

  9. yourlancasterhome
    Member
    Posted 2 years ago #

    Thanks Stafano!

    Got it fixed, with the glaring exception of the WYSIWYG editor issue that Moebis referred to. Did this come up for anyone and what's the fix? My editor container is white font (and thus invisible) and the HTML/Visual tab is disabled (Visual is highlighted but the text is HTML code).

    Help, thanks!

  10. thorsso
    Member
    Posted 2 years ago #

    Hello,
    this is very hard but ... there is a solution for the WYSIWIG editor.
    The problem was in the files /wp-admin/includes/post.php, put this code at line 1406 and comment the section:

    <?php
    	if ( $concatenate_scripts ) {
    		echo "<script type='text/javascript' src='$baseurl/wp-tinymce.php?c=$zip&$version'></script>\n";
    		// **********************************************
    		// Clean for godaddy free hosting
    			$st_data = file_get_contents( "$baseurl/wp-tinymce.php?c=$zip&$version" );
    			$st_data = substr( $st_data, 0, strrpos( $st_data, '</iframe></noscript>' ) );
    			echo "<script type='text/javascript'>\n";
    			echo $st_data;
    			echo "</script><!-- STEFANO -->\n";
    		// **************************************
    	}
    	else {
    		//echo "<script type='text/javascript' src='$baseurl/tiny_mce.js?$version'></script>\n";
    		// **********************************************
    		// Clean for godaddy free hosting
    			$st_data = file_get_contents( "$baseurl/tiny_mce.js?$version" );
    			$st_data = substr( $st_data, 0, strrpos( $st_data, '</iframe></noscript>' ) );
    			echo "<script type='text/javascript'>\n";
    			echo $st_data;
    			echo "</script><!-- STEFANO -->\n";
    		// **************************************
    	}
    
    	if ( 'en' != $language && isset($lang) ) {
    		echo "<script type='text/javascript'>\n$lang\n</script>\n";
    	}
    	else {
    		//echo "<script type='text/javascript' src='$baseurl/langs/wp-langs-en.js?$version'></script>\n";
    		// **********************************************
    		// Clean for godaddy free hosting
    			$st_data = file_get_contents( "$baseurl/langs/wp-langs-en.js?$version" );
    			$st_data = substr( $st_data, 0, strrpos( $st_data, '</iframe></noscript>' ) );
    			echo "<script type='text/javascript'>\n";
    			echo $st_data;
    			echo "</script><!-- STEFANO -->\n";
    		// **************************************
    	}
    ?>

    This solution after the wordpress upgrade from 2.8.4 italian to 2.8.5 italian work's, the WYSIWYG is now correct.

    Another tricks, if you correct the code the load css style in the script-loader.php from:

    // **********************************************
    // Clean for godaddy free hosting
    $st_data = file_get_contents( $href );
    $st_data = substr( $st_data, 0, strrpos( $st_data, '</iframe>' ) );
    echo "<style type='text/css' media='all'>\n";
    echo $st_data;
    echo "</style>\n";
    // **********************************************

    to

    // **********************************************
    // Clean for godaddy free hosting
    $st_data = file_get_contents( $href );
    $st_data = substr( $st_data, 0, strrpos( $st_data, '</iframe>' ) );
    echo "<style type='text/css' media='all'>\n";
    echo $st_data;
    echo "#conash3D0 { display:none; }\n";
    echo "</style>\n";
    // **********************************************

    no more ads banner were displayed.

    :-)

  11. mukmin
    Member
    Posted 2 years ago #

    Hi Stefano

    I have same problem as yourlancasterhom

    My editor container is white font (and thus invisible) and the HTML/Visual tab is disabled (Visual is highlighted but the text is HTML code).

    I already try your both method solution for the WYSIWIG editor, but still not fix the problem...

    any other method?

    TQ

  12. thorsso
    Member
    Posted 2 years ago #

    Hello mukmin,
    do you have replaced the code in /wp-admin/includes/post.php from line 1406 to line 1416 with the code above?

    The code work correctly for me.
    The problem was in the ads godaddy, when the post.php load $baseurl/wp-tinymce.php, the go daddy server add the ads at end and this break WYSIWIG editor.

    If this not work for you, use firefox and enable firebug, login in your admin section and edit a post, the browser must show the errors at bottom.
    Give me the errors, so i can help you.

  13. mukmin
    Member
    Posted 2 years ago #

    Stefano,
    Yup already replaced the code in /wp-admin/includes/post.php from line 1406 to line 1416 with your code.

    Sorry, I am not familiar with firebug, but below is screen shot the error.

    Firebug Error images

    pls help

    TQ

  14. thorsso
    Member
    Posted 2 years ago #

    Hello mukmin,
    in the solution there is an error in the first section of the code:

    <?php
    	if ( $concatenate_scripts ) {
    		echo "<script type='text/javascript' src='$baseurl/wp-tinymce.php?c=$zip&$version'></script>\n";
    		// **********************************************
    		// Clean for godaddy free hosting
    			$st_data = file_get_contents( "$baseurl/wp-tinymce.php?c=$zip&$version" );
    			$st_data = substr( $st_data, 0, strrpos( $st_data, '</iframe></noscript>' ) );
    			echo "<script type='text/javascript'>\n";
    			echo $st_data;
    			echo "</script><!-- STEFANO -->\n";
    		// **************************************
    	}

    the third line must be commented like this:

    <?php
    	if ( $concatenate_scripts ) {
    		//echo "<script type='text/javascript' src='$baseurl/wp-tinymce.php?c=$zip&$version'></script>\n";
    		// **********************************************
    		// Clean for godaddy free hosting
    			$st_data = file_get_contents( "$baseurl/wp-tinymce.php?c=$zip&$version" );
    			$st_data = substr( $st_data, 0, strrpos( $st_data, '</iframe></noscript>' ) );
    			echo "<script type='text/javascript'>\n";
    			echo $st_data;
    			echo "</script><!-- STEFANO -->\n";
    		// **************************************
    	}

    Try this and give me the new errors.

    In your post, errors image, i think there is a problem with the localization of your installation.

  15. mukmin
    Member
    Posted 2 years ago #

    Stefano,

    Already change as you suggested above and still got error :

    Error snap shot

    Sorry but I not understand what do you mean problem with the localization.

    If you don't mind please take look with my wordpress installation, this is my mail mumin@akapost.com, I will give you ftp access

    TQ

  16. kmannics
    Member
    Posted 2 years ago #

    This worked very well for me. Thank You!

  17. _cornelius_
    Member
    Posted 2 years ago #

    Here's how I fixed the WordPress WYSIWYG editor on a Godaddy site. Tested on WordPress 2.6.3, I haven't test the fix with 2.8.5 yet.

    http://www.zulius.com/how-to/fix-wordpress-editor-on-a-free-godaddy-hosted-site/

  18. glogo
    Member
    Posted 2 years ago #

    @stefano.torricelli

    brilliant! thanks so much for this life-saver!!!
    your code works very well. now have no more ads and widgets work. have not tried out the wysiwyg editor yet, but have a quick question:

    // **********************************************
    // Clean for godaddy free hosting
    $st_data = file_get_contents( $href );
    $st_data = substr( $st_data, 0, strrpos( $st_data, '</iframe>' ) );
    echo "<style type='text/css' media='all'>\n";
    echo $st_data;
    echo "#conash3D0 { display:none; }\n";
    echo "</style>\n";
    // **********************************************

    the above code works perfectly for the admin panel.
    now, would it not be possible to paste something similar to

    echo "#conash3D0 { display:none; }\n";

    somewhere to avoid having to alter all the themes you might install.
    Like somewhere where the templates are loaded in the php or perhaps in index.php could one not paste in an "include" or "require" or something?
    noob would like to know...

    thanks so much.
    G

    AH, NOW I UNDERSTOOD! put it in BOTH PLACES! takes care of everything!!!
    thanks again,
    Now am going to try out the wysiwyg.
    ;-)

  19. glogo
    Member
    Posted 2 years ago #

    @stefano.torricelli

    Ah, alas, it first worked, now does not work any more for front end.
    what happened, I don't know.
    Question is still open.
    any way to add an include or require somewhere to get rid of ads also on front end?

    Hmmm, something still does not work. Just before I was able to work with widgets, now after adding a new theme that is broken again. It only marks everything on the widgets selection page when you try to moved them around. Maybe have to play with your fix for the wysiwyg first and see if that does anything. reaching in the dark here... oh well, more experimenting.
    this will definitely work soon!!

    Greetings
    glogo

  20. glogo
    Member
    Posted 2 years ago #

    @_cornelius_

    Hi,
    I would like to try your fix for the tinymce editor, but really, there is no js_cache folder that I can find anywhere.
    I have saved a post and obviously, wp-content folder is writable. am using 2.6.8. What do you think where I can look for that cache folder? there is no uploads folder under wp-content...
    TIA
    glogo

  21. glogo
    Member
    Posted 2 years ago #

    @stefano.torricelli

    Your code worked brilliantly on one of my installs. The editor now works, little bit slow, nevertheless, no problems.

    only problem is with pictures, that interface is still hacked up by the banner ad.
    this is not a real hardship, as one can simply edit in html.
    some of the plugins do not work very well, granted, but the basic thing was to have a wordpress install here without all the hassle of the banner.

    so, some of the problems I was having were with the plugins, for sure.

    Thanks so much. You do a brilliant job!

    :) glogo

  22. billwynne
    Member
    Posted 2 years ago #

    Stefano is THE MAN!!!

  23. billwynne
    Member
    Posted 2 years ago #

    I had all the sites fixed and then it is all back again. Do you think that GoDaddy created code to undo the conash style added to the css?

    The kind of time that goes into this with a new version of wordpress coming out weekly at times makes me think $50 is really not much in order to avoid the headaches.

    Did anyone else have there dashboard go haywire today?

  24. billwynne
    Member
    Posted 2 years ago #

    Yes yes, hold your applause I am an idiot. I used the long post above from NuAngel for the scriptloader file and it is working fine now.

  25. hegrindsmygears
    Member
    Posted 2 years ago #

    @stefano.torricelli

    I am trying to use your method for fixing the WYSIWYG editor on post.php

    I am using installation 2.9 and the post.php file is different, so line 1406 is not what it was in 2.8.x

    If you could please reply or send me an email (bigboom350@gmail.com) I would appreciate it!

  26. thorsso
    Member
    Posted 2 years ago #

    Hello at all,
    i break my notebook :-(.

    WordPress 2.9 change the post.php.
    The new section was from line 1492 to ...
    Substitute the section from line 1492 the start with:
    <?php
    ...
    ...
    ...
    ?>

    with:

    <?php
    		if ( $concatenate_scripts ) {
    			$st_data = file_get_contents( "$baseurl/wp-tinymce.php?c=$zip&$version" );
    			$st_data = substr( $st_data, 0, strpos( $st_data, '</iframe></noscript>' ) );
    			echo "<script type='text/javascript'>\n";
    			echo $st_data;
    			echo "</script><!-- /wp-admin/includes/post.php -->\n";
    		}
    		else {
    			$st_data = file_get_contents( "$baseurl/tiny_mce.js?$version" );
    			$st_data = substr( $st_data, 0, strpos( $st_data, '</iframe></noscript>' ) );
    			echo "<script type='text/javascript'>\n";
    			echo $st_data;
    			echo "</script><!-- /wp-admin/includes/post.php -->\n";
    		}
    
    		if ( 'en' != $language && isset($lang) ) {
    			echo "<script type='text/javascript'>\n$lang\n</script>\n";
    		}
    		else {
    			$st_data = file_get_contents( "$baseurl/langs/wp-langs-en.js?$version" );
                            	$st_data = substr( $st_data, 0, strpos( $st_data, '</iframe></noscript>' ) );
                            	echo "<script type='text/javascript'>\n";
                            	echo $st_data;
                            	echo "</script><!-- /wp-admin/includes/post.php -->\n";
           		}
    ?>

    the WYSIWYG editor must be coorectly now.

    Happy new Year.

  27. minadin
    Member
    Posted 2 years ago #

    While I appreciate seeing all the help here how about a plain detailed explanation including directories. I used the fix to get rid of ads no problem there.

    I am using 2.9.1

    Problem #1 Dashboard not working in Firefox
    How does someone fix this? It looks fine in IE8.

    Problem #2 TinyMCE / WYSIWYG Editor not working.
    How do I fix where it will operate as it should?
    In both IE8 & Firefox I can not add photos or text, basically no posts for me. Clicking on add media, pictures etc does nothing.

    Thanks so much for your time

  28. thorsso
    Member
    Posted 2 years ago #

    Hello @minadin, @all,
    wordpress 2.9.1 work fine with the same changed applied to wordpress 2.9.0, read post up.
    But if you wont the script post.php and script-loader.php give me an email account or download its from http://stefano.torricelli.name/.

    Good work.

  29. mmenigma
    Member
    Posted 2 years ago #

    Thank you Stefano.

    I used the code for script-loader.php on your web page and I first got this error

    Parse error: syntax error, unexpected '<' in /home/content/g/o/o/goofyburg/html/wp-includes/script-loader.php on line 750

    I removed the last two lines (750 and 751)
    </iframe></noscript></object></layer></span></div></table></body></html><!-- adsok -->
    <script language='javascript' src='https://a12.alphagodaddy.com/hosting_ads/gd01.js'></script>

    And now I get no error and it the admin now works great. What did the code I removed do?

  30. thorsso
    Member
    Posted 2 years ago #

    Hello and excuse me, you must remove all lines 750 and 751, remove all characters includes '<>'.

    Line 750 start with </iframe and 751 end with /script>.
    There was an error on my post.
    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic