Peter Holme Obrestad
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Twenty Eleven] Featured post image not showing in IE8I’m also having this problem in IE 8… they DO show up when using “compatibility mode”, but the entire featured posts section (this of course being in the showcase template) is misplaced, to the left…
site: https://reisentilbake.dinamo.me
Using a child theme… but haven’t tampered with the showcase template. and i’ve tried using a fresh install of twenty eleven mother theme and deactivating all plugins.
Forum: Themes and Templates
In reply to: P2 Norwegian translation – a few i18n issuesthanks.. I actually discussed this with someone in the wptouch devel team (bravenewcode) – and they added it as an optional feature ??
Forum: Themes and Templates
In reply to: Mentionshmm… does that really work if the diaplay name has a space in it? Maybe the problem was just that the “author” wasn’t added to the blog.. maybe someone (ehrr..) should write a function that pops up suggestions when you start writing mentions ?? (would that be resource intensive? slow down the site?)
Forum: Themes and Templates
In reply to: Mentionsthanks for the response ?? if you’re using mentions, you have to write @username, right? but most often, the display name is not equal to the username, (like for instance zè = vanillalounge). If the username isn’t displayed as for instance a tooltip, I can’t figure out any other way to get to know what to write after the ‘@’ to mention somebody…
I went ahead and localized the rest of safecss.php as well… Here is the diff (including the hack to allow php 5.3:
Index: wp-content/plugins/safecss/safecss.php =================================================================== --- wp-content/plugins/safecss/safecss.php (revision 21) +++ wp-content/plugins/safecss/safecss.php (revision 26) @@ -9,6 +9,16 @@ */ /** + * Add local textdomain + */ +add_action( 'init', 'safecss_load_plugin_textdomain' ); + +function safecss_load_plugin_textdomain() { + load_plugin_textdomain( 'safecss', false, 'safecss/languages' ); +} + + +/** * Migration routine for moving safecss from wp_options to wp_posts to support revisions * * @return void @@ -103,8 +113,9 @@ * * @return array */ -function get_safecss_post() { - $safecss_post = get_object_vars( array_shift( get_posts( array( 'numberposts' => 1, 'post_type' => 'safecss', 'post_status' => 'publish' ) ) ) ); +function get_safecss_post() { + $a = array_shift( get_posts( array( 'numberposts' => 1, 'post_type' => 'safecss', 'post_status' => 'publish' ) ) ); + if ($a) $safecss_post = get_object_vars( $a ); // needed for php 5.3 return $safecss_post; } @@ -332,7 +343,7 @@ $css = str_replace( array( '\\0BB \\020', 'BB 20', '0BB 020' ), '0BB 020', $css ); if ( empty( $css ) ) { - $css = '/* Welcome to Custom CSS! + $css = _e('/* Welcome to Custom CSS! If you are familiar with CSS or you have a stylesheet ready to paste, you may delete these comments and get started. @@ -366,7 +377,7 @@ * sharing your CSS! * testing in several browsers! * helping others in the forum! -'; +', 'safecss'); $css .= "\n*/"; } @@ -455,7 +466,7 @@ if ( is_admin() ) return; - $message = wp_specialchars(__('Preview: changes must be saved or they will be lost'), 'single'); + $message = wp_specialchars(__('Preview: changes must be saved or they will be lost', 'safecss'), 'single'); return " <script type='text/javascript'> // <![CDATA[ @@ -625,18 +636,18 @@ ?> <div id="poststuff" class="metabox-holder<?php echo 2 == $screen_layout_columns ? ' has-right-sidebar' : ''; ?>"> <div class="wrap"> -<h2><?php _e('CSS Stylesheet Editor'); ?></h2> +<h2><?php _e('CSS Stylesheet Editor', 'safecss'); ?></h2> <form id="safecssform" action="" method="post"> <p><textarea id="safecss" name="safecss"><?php echo str_replace('</textarea>', '</textarea>', safecss()); ?></textarea></p> <p class="custom-css-help"><?php _e('For help with CSS try <a href="https://www.w3schools.com/css/default.asp">W3Schools</a>, <a href="https://alistapart.com/">A List Apart</a>, and our own <a href="https://support.wordpress.com/editing-css/">CSS documentation</a> and <a href="https://en.forums.wordpress.com/forum/css-customization">CSS Forum</a>.', 'safecss'); ?></p> <h4><?php _e("Do you want to make changes to your current theme's stylesheet, or do you want to start from scratch?", 'safecss'); ?></h4> - <p><label><input type="radio" name="add_to_existing" value="true" <?php if ( get_option( 'safecss_add') != 'no' ) echo ' checked="checked"'; ?> /> <?php printf( __('Add this to the %s theme\'s CSS stylesheet (<a href="%s">view original stylesheet</a>)'), get_current_theme(), get_bloginfo( 'stylesheet_directory' ) . '/style.css' . '?minify=false' ); ?></label><br /> - <label><input type="radio" name="add_to_existing" value="false" <?php if ( get_option( 'safecss_add') == 'no' ) echo ' checked="checked"'; ?> /> <?php _e('Start from scratch and just use this '); ?></label> + <p><label><input type="radio" name="add_to_existing" value="true" <?php if ( get_option( 'safecss_add') != 'no' ) echo ' checked="checked"'; ?> /> <?php printf( __('Add this to the %s theme\'s CSS stylesheet (<a href="%s">view original stylesheet</a>)', 'safecss'), get_current_theme(), get_bloginfo( 'stylesheet_directory' ) . '/style.css' . '?minify=false' ); ?></label><br /> + <label><input type="radio" name="add_to_existing" value="false" <?php if ( get_option( 'safecss_add') == 'no' ) echo ' checked="checked"'; ?> /> <?php _e('Start from scratch and just use this ', 'safecss'); ?></label> </p> - <h4> <?php _e("If you change the width of your main content column, make sure your media files fit. Enter the maximum width for media files in your new CSS below."); ?></h4> - <p class="custom_content_width"><label for="custom_content_width"><?php _e('Limit width to'); ?></label> - <input type="text" name="custom_content_width" id="custom_content_width" value="<?php echo $custom_content_width; ?>" size=5 /> <?php printf( __('pixels for videos, full size images, and other shortcodes. (<a href="%s">more info</a>)'), 'https://support.wordpress.com/editing-css/#limited-width'); ?></p> + <h4> <?php _e("If you change the width of your main content column, make sure your media files fit. Enter the maximum width for media files in your new CSS below.", 'safecss'); ?></h4> + <p class="custom_content_width"><label for="custom_content_width"><?php _e('Limit width to', 'safecss'); ?></label> + <input type="text" name="custom_content_width" id="custom_content_width" value="<?php echo $custom_content_width; ?>" size=5 /> <?php printf( __('pixels for videos, full size images, and other shortcodes. (<a href="%s">more info</a>)', 'safecss'), 'https://support.wordpress.com/editing-css/#limited-width'); ?></p> <p class="submit"> <input type="hidden" name="action" value="save" /> <?php wp_nonce_field('safecss') ?> @@ -663,7 +674,7 @@ wp_list_post_revisions( $safecss_post['ID'], $args ); } - add_meta_box( 'revisionsdiv', __('CSS Revisions'), 'post_revisions_meta_box', 'editcss', 'normal' ); + add_meta_box( 'revisionsdiv', __('CSS Revisions', 'safecss'), 'post_revisions_meta_box', 'editcss', 'normal' ); do_meta_boxes( 'editcss', 'normal', $safecss_post ); } ?>
Forum: Themes and Templates
In reply to: P2 Norwegian translation – a few i18n issuesok thanks! btw.. where is the function that automatically creates links out of URLs in posts? I use WPtouch for mobile access – and I wanted to make the links that I now just write flat out as URLs work in the WPtouch theme as well – ’cause it’s just sooo convenient ?? I really can’t find it anywhere in the source code!
Forum: Themes and Templates
In reply to: P2 Norwegian translation – a few i18n issuesaha…thanks! by the way, do you have any plans to address wp-signup.php? it’s looking rather ugly at the moment… guess it could be worked out with css, but I’m guessing this is a universal issue? Also – many plugins/”stuff” includes “clear:both”-type attributes (including wp-signup.php, and the way the sidebar is set up, that doesn’t cope very well..
See here: https://holme.se/wp-signup.php
Forum: Plugins
In reply to: [Plugin: Contact Form 7] Ajax: all works, except for sendHere.. this is what works for me. Just upload this document to the correct directory and rename it from classes.txt to classes.php..
https://holme.se/wp-content/plugins/contact-form-7/includes/classes.txt
If it still doesn’t work, you may have another problem..
Forum: Plugins
In reply to: [Plugin: Contact Form 7] Ajax: all works, except for sendPerfect! Worked, the reason wjrutgers’ site went down is probably because of the variable name (
$my-data-proxy
) – it won’t work. Use$mydataproxy
instead. So, line 276 in includes/classes.php goes from$query_string .= $key . '=' . urlencode( stripslashes( $data ) ) . '&';
to
$mydataproxy = $data; $query_string .= $key . '=' . urlencode( stripslashes( $mydataproxy ) ) . '&';
Thanks, reven!
Forum: Plugins
In reply to: [Plugin: Contact Form 7] Ajax: all works, except for sendGlad it worked for you.. unfortunately, it didn’t for me ?? don’t have any ‘s in my messages
Forum: Plugins
In reply to: [Plugin: Contact Form 7] Ajax: all works, except for sendWell, Iceman, it says how in the docs ?? To disable ajax, just add the following lines to your wp-config.php:
define ('WPCF7_LOAD_JS', false);
But: this isn’t what I want! I want ajax to work ?? When you use this solution, it is harder for the user to see if some fields are filled out incorrectly, or if the message has been sent.
Forum: Plugins
In reply to: [Plugin: Contact Form 7] Ajax: all works, except for sendwell I just run the form without ajax… it works, but it ain’t as pretty ?? (and it’s harder to see what errors you might have done when filling out the form)
Forum: Plugins
In reply to: [Plugin: Contact Form 7] Ajax: all works, except for sendwell I haven’t heard anything either.. so please feel free to share any thoughts on this ??
Forum: Alpha/Beta/RC
In reply to: WordPress 3.0 and Domain Mappingthat’s incredible ?? have now merged 3 previously individual WP installs into one multisite install.. with this plugin, all is working well!
Forum: Themes and Templates
In reply to: Norwegian translationoh yeah.. I saw now that the pot file supplied with 1.1.3 is actually for 1.0.5.. There are some strings that are not translated. Do you have an updated pot file? And, in my setup, the media upload buttons that are displayed above the inline post editor are “broken”.. when looking at the source, it says that it is trying to access this image:
https://themetest.holme.se/wp-admin/http:/themetest.holme.se/wp-admin/images/media-button-image.gif
do you know how to correct this?