thorsso
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Godaddy free hosting – Dashboard / Admin brokenHello velese,
you don’t need to modify any script, after the installation the login page must load every css correctly, if that is not the problem is in the installation process.
The first href in your login page is “../wordpress/wp-includes/https://velese.com/wp-admin/css/login.css?ver=20090514″ rel=”stylesheet”> but about me that must be href=”https://velese.com/wp-admin/css/login.css?ver=20090514″ rel=”stylesheet”>, i don’t know why your href is not correct, and in your home page every href are correct.Compare your login page with my: https://www.stefano.torricelli.name/wp-login, look the source code, i only added the script to hide godaddy ads at end of the page, no other modify was maded.
I suppose that your href was bad in your administration page too, but i don’t see your source code…
Excuse me if can’t you a definitive solution.Forum: Fixing WordPress
In reply to: Godaddy free hosting – Dashboard / Admin brokenHello velese,
the source of header for your login page is:<head> <title>Velese's Blog ? Log In</title> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/> <link id="login-css" media="all" type="text/css" href="../wordpress/wp-includes/https://velese.com/wp-admin/css/login.css?ver=20090514" rel="stylesheet"> </link> <link id="colors-fresh-css" media="all" type="text/css" href="../wordpress/wp-includes/https://velese.com/wp-admin/css/colors-fresh.css?ver=20090625" rel="stylesheet"> </link> <meta content="noindex,nofollow" name="robots"/> </head>
but the source of my login page is:
<head> <title>Stefano Torricelli › Collegati</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link rel='stylesheet' id='login-css' href='https://www.stefano.torricelli.name/wp-admin/css/login.css?ver=20090514' type='text/css' media='all' /> <link rel='stylesheet' id='colors-fresh-css' href='https://www.stefano.torricelli.name/wp-admin/css/colors-fresh.css?ver=20090625' type='text/css' media='all' /> <meta name='robots' content='noindex,nofollow' /> </head>
the values of href in my installation was correctly and my login page appear good, but in your not, your login page appear without stylesheet css loaded.
Check your installation.
Forum: Fixing WordPress
In reply to: Godaddy free hosting – Dashboard / Admin brokenFinally i found where is the problem.
The dashboard load every plugin with the jquery function load (ajax load) that produce a GET function, for every GET godaddy server add an ads.
Then i modified my function with that:<script type="text/javascript"> // ADS godaddy son's 1 per plugin in dashboard function hideGoDaddy(){ var bd = document.body; if( bd.childNodes.length > 0 ) { for( j = 0; j < bd.childNodes.length; j++ ) { if( 'IFRAME' === bd.childNodes[j].nodeName ) { gDaddy = bd.childNodes[j]; if( 'conash3D0' === gDaddy.id ) { if( 'none' === gDaddy.style.display ) {} else { gDaddy.style.display = 'none'; } } } } } } setInterval("hideGoDaddy()", 2000); </script>
Put this code at the end of wp-admin/admin-footer.php before of:
</body> </html>
This work fine for me, ad appear and then hide.
A productive day of study…Forum: Fixing WordPress
In reply to: Godaddy free hosting – Dashboard / Admin brokenAds godaddy is very very very …
Godaddy add ads as an iframe at end of the page this is the very problem.
I add this script at end every page where i want to hide ads …I use in my wordpress site the theme pyrmont-v2 this is located in:
/wp-content/themes/pyrmont-v2, change the pyrmont-v2 with your theme, then open the script footer.php, this ends with </body></html>.
Replace </body></html> with:</body> <script type="text/javascript"> function hideGoDaddy(){ if( ! ( null === document.getElementById( "conash3D0" ) ) ) { gDaddy = document.getElementById( "conash3D0" ); if( 'none' === gDaddy.style.display ) {} else { gDaddy.style.display = 'none'; } } } setInterval("hideGoDaddy()", 1500); </script> </html>
Now when you access to your wordpress home page the godaddy banner show for little time then this hide.
The script is very sample if you apply this to:
/wp-admin/admin-footer.php (limit the number of banner from dashboard).
/wp-login.php (hide the banner from login page)Try this and give me a feedback.
Thanks.Forum: Fixing WordPress
In reply to: Godaddy free hosting – Dashboard / Admin brokenHello ckliffames1,
i work with wordpress 2.8.4, italian version.
Replace line 619 in function _print_scripts():
echo “<script type=’text/javascript’ src='” . esc_attr($src) . “‘></script>\n”;
with:
// **********************************************
// 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”;
// **********************************************and replace line 686 in function print_admin_styles():
echo “<link rel=’stylesheet’ href='” . esc_attr($href) . “‘ type=’text/css’ media=’all’ />\n”;
with:
// **********************************************
// 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”;
// **********************************************My dashbord work fine, with this changes and godaddy free hosting.
Forum: Fixing WordPress
In reply to: Godaddy free hosting – Dashboard / Admin brokenHello,
the script was modified in 2 points.First point the script load JS:
// **********************************************
// 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”;
// **********************************************
// echo “<script type=’text/javascript’ src='” . esc_attr($src) . “‘></script>\n”;Second point the script load stylesheet:
// **********************************************
// 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”;
// **********************************************
//echo “<link rel=’stylesheet’ href='” . esc_attr($href) . “‘ type=’text/css’ media=’all’ />\n”;In all 2 points, the line commented was originally in the source of wordpress 2.8.4.
I had commented that and i had added the code over that.The JS or stylesheet was loaded into $st_data var ($st_data = file_get_contents( $href );), then cleaned for the tag added by godaddy ($st_data = substr( $st_data, 0, strrpos( $st_data, ‘</iframe>’ ) );) and finally included in the output page (echo $st_data;) with the apposite start and end section tag.
This code work fine for me.
I hope that work fine for all.Forum: Fixing WordPress
In reply to: Godaddy free hosting – Dashboard / Admin brokenHello, excuse for my english. The problem on admin interface is in the free hosting solution of godaddy, infact godaddy web server append this code at end of the page:
<<
</iframe></noscript></object></layer></span></div></table></body></html><!– adsok –>
<script language=’javascript’ src=’https://a12.alphagodaddy.com/hosting_ads/gd01.js’></script>
>>The procedure of dynamic include, in the admin interface, of CSS and JS produce a file with the code added from godaddy webserver, the browser interpreter fails to recognize the mime type.
The solution is to modify the script that load dynamically JS and CSS, in the file: wp-includes/script-loader.php.
The admin interface is more slowly but work fine …That’s all!