thorsso
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Godaddy free hosting – Dashboard / Admin brokenHi @akshayaurora,
the problem is not limited to the banner in html page, your plugin hide this, but the CSS and JS appear corrupted.Godaddy enject an ads banner in any page loaded from free hosting web site, the general rule is to clean every runtime loaded page (css and js) from godaddy ads banner.
The my solution posted, make this, load the CSS and/or JS into a var, clean godaddy ads banner, and put the var value (cleaned) in the page.I don’t know how it’s possible to make a plugin, i’m very newbie for wordpress and i posted the solution because i will use wordpress with godaddy free hosting.
But your idea, to make a plugin, is very interesting.Another problem is the rss, i think to change rss.php or rss2.php with a script/plugin that use jQuery modal dialog, have you any idea or alternatively solution?
Thank’s.
Forum: Fixing WordPress
In reply to: Godaddy free hosting – Dashboard / Admin brokenHi @unclefarkus,
the problem may be your css.
Try with Internet Explorer.
To catch the problem i use firefox with firebug enabled and in the abose section appears the problems.Forum: Fixing WordPress
In reply to: Godaddy free hosting – Dashboard / Admin brokenHi @jlnovak,
i suppose you have installed a plugin that manage photo.
Give me the plugin name that i install and test it, if no plugin was installed please send me the step to reproduce the error.
I am newbie wordpress user.Forum: Fixing WordPress
In reply to: Godaddy free hosting – Dashboard / Admin brokenHi @all,
this faq solve several problem of wordpress 2.9.2.wordpress fix for godaddy
0) home page without godaddy ads –>
open the file /wp-content/themes/<your theme>/style.css and add at the end: #conash3D0{display:none;}1) admin login page without godady ads –>
open the file /wp-admin/css/login.css and add at the end: #conash3D0{display:none;}2) dashboard without godaddy ads and widget work fine –>
open the file /wp-includes/script-loader.php and apply the changes:substitute line 699:
echo "<link rel='stylesheet' href='" . esc_attr($href) . "' type='text/css' media='all'>\n";
with the current code:
// *************************************************************** // godaddy ads fix $st_data = file_get_contents( $href ); $st_data = substr( $st_data, 0, strpos( $st_data, '</iframe></noscript>' ) ); echo "<style type='text/css' media='all'>\n"; echo $st_data . "\n"; echo "#conash3D0 { display:none; }\n"; echo "</style><!-- /wp-includes/script-load.php -->\n"; // ***************************************************************
substitute line 632:
echo "<script type='text/javascript' src='" . esc_attr($src) . "'></script>\n";
with the current code:
// *************************************************************** // godaddy ads fix $st_data = file_get_contents( $src ); $st_data = substr( $st_data, 0, strpos( $st_data, '</iframe></noscript>' ) ); echo "<script type='text/javascript'>\n"; echo $st_data; echo "</script><!-- /wp-includes/script-load.php -->\n"; // ***************************************************************
3) post without godaddy ads and work fine –>
open the file /wp-admin/includes/post.php and apply the changes:substitute the lines form 1492 to 1502:
<?php if ( $concatenate_scripts ) echo "<script type='text/javascript' src='$baseurl/wp-tinymce.php?c=$zip&$version'></script>\n"; else echo "<script type='text/javascript' src='$baseurl/tiny_mce.js?$version'></script>\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"; ?>
with the current code:
<?php // *************************************************************** // godaddy ads fix 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"; } // *************************************************************** ?>
4) rss feed (now not work fine) i study it.
Give me a feed back for others problem.
Thanks.Forum: Fixing WordPress
In reply to: Godaddy free hosting – Dashboard / Admin brokenHello @all,
recently i changed the mantainer of stefano.torricelli.name and i was stupid, i had no backup of my wordpress.
The stefano.torricelli.name naw is a fresh install of wordpress release 2.9.2.
When i fix my wordpress blog i re-post the faq, i think … asap.
For now sorry.Forum: Fixing WordPress
In reply to: Godaddy free hosting – Dashboard / Admin brokenHello @mmenigma,
this is an hard problem.For the moment i have not a solution, if i found i post it.
Sorry ??Forum: Fixing WordPress
In reply to: Godaddy free hosting – Dashboard / Admin brokenHi mmenigma,
the solution not hide the ads banner but fix the problem in the Dashboard Administration page.
If you want to hide the ads you must add:#conash3D0 { display:none; }
at the end style sheet of your theme, usually style.css located in /wp-content/themes/default/ or /wp-content/themes/classic/ or /wp-content/themes/<your personal theme>.
That’s all.
??Forum: Fixing WordPress
In reply to: Godaddy free hosting – Dashboard / Admin brokenHello 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.Forum: Fixing WordPress
In reply to: Godaddy free hosting – Dashboard / Admin brokenHello @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 https://stefano.torricelli.name/.Good work.
Forum: Fixing WordPress
In reply to: Godaddy free hosting – Dashboard / Admin brokenHello 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.
Forum: Fixing WordPress
In reply to: Godaddy free hosting – Dashboard / Admin brokenHello 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.
Forum: Fixing WordPress
In reply to: Godaddy free hosting – Dashboard / Admin brokenHello 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.Forum: Fixing WordPress
In reply to: Godaddy free hosting – Dashboard / Admin brokenHello,
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.
??
Forum: Fixing WordPress
In reply to: Godaddy free hosting – Dashboard / Admin brokenHello 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.
Forum: Fixing WordPress
In reply to: Godaddy free hosting – Dashboard / Admin brokenThanks moebis,
your solution for hide ads godaddy is more better than mine.