Title: Jannes's Replies | WordPress.org

---

# Jannes

  [  ](https://wordpress.org/support/users/megrim/)

 *   [Profile](https://wordpress.org/support/users/megrim/)
 *   [Topics Started](https://wordpress.org/support/users/megrim/topics/)
 *   [Replies Created](https://wordpress.org/support/users/megrim/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/megrim/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/megrim/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/megrim/engagements/)
 *   [Favorites](https://wordpress.org/support/users/megrim/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/users/megrim/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/megrim/replies/page/2/?output_format=md)

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Modify CSS Carrington Blog](https://wordpress.org/support/topic/modify-css-carrington-blog/)
 *  Thread Starter [Jannes](https://wordpress.org/support/users/megrim/)
 * (@megrim)
 * [16 years ago](https://wordpress.org/support/topic/modify-css-carrington-blog/#post-1684790)
 * This is already pretty good:
 *     ```
       #main {
           padding-top:24px;
           background:#242D36;
       }
       #content {
       	float: left;
       	padding-bottom: 24px;
       	width: 530px;
           padding-left:10px;
           padding-right:10px;
           background-color: #FFFFFF;
       ```
   
 * Thanks for all your input.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Modify CSS Carrington Blog](https://wordpress.org/support/topic/modify-css-carrington-blog/)
 *  Thread Starter [Jannes](https://wordpress.org/support/users/megrim/)
 * (@megrim)
 * [16 years ago](https://wordpress.org/support/topic/modify-css-carrington-blog/#post-1684785)
 * Right, that’s close to what I’m looking for. But now the content column should
   be white again. The content and widgets should have a white background, floating
   on top of a sea of #242D36.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Modify CSS Carrington Blog](https://wordpress.org/support/topic/modify-css-carrington-blog/)
 *  Thread Starter [Jannes](https://wordpress.org/support/users/megrim/)
 * (@megrim)
 * [16 years ago](https://wordpress.org/support/topic/modify-css-carrington-blog/#post-1684778)
 * No problem.
 * I have a WAMP instance with a fresh test WP install running on my computer, and
   I know my way around with filezilla.
 * Are you sure it’s not possible at all in just the css?
 * I’ll make sure to document it all, and feed back to the community.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Modify CSS Carrington Blog](https://wordpress.org/support/topic/modify-css-carrington-blog/)
 *  Thread Starter [Jannes](https://wordpress.org/support/users/megrim/)
 * (@megrim)
 * [16 years ago](https://wordpress.org/support/topic/modify-css-carrington-blog/#post-1684764)
 * Thanks for your reply.
 * Yes, there is an admin panel for Carrington. Unfortunately there’s no option 
   to change the global background. The only options for colors:
 * Header Background Color: #
    Header Text Color: # Header Link Color: # Header 
   Nav Background Color: # Header Nav Link Color: # Header Nav Text Color: # Page
   Title Color: # Page Subtitle Color: # Link Color: # Footer Background Color: #
   Footer Text Color: # Footer Link Color: #
 * My current theme has a
    `body {background: #242D36}` How can I make that happen
   to Carrington too?
 * I’ve reverted to v2.2 on my test site for compatibility purposes.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Filter posts by is_category](https://wordpress.org/support/topic/filter-posts-by-category/)
 *  Thread Starter [Jannes](https://wordpress.org/support/users/megrim/)
 * (@megrim)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/filter-posts-by-category/#post-1135470)
 * I’m sorry, but I don’t understand your suggestion. Can you clarify a bit more,
   please?
 * Let me try to explain what I would like: if a post is posted in a specific single
   category (like “event”) I want to hide it from the front page. But NOT if the
   post has more than one category to it (like “event” & “news”). Was that clear
   enough?
 * Helpful link to the [codex](http://codex.wordpress.org/Template_Tags/query_posts).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Filter posts by is_category](https://wordpress.org/support/topic/filter-posts-by-category/)
 *  Thread Starter [Jannes](https://wordpress.org/support/users/megrim/)
 * (@megrim)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/filter-posts-by-category/#post-1135234)
 * I keep mixing up the php “!” with sql “not”. Sorry about that.
 * `<?php if(!is_category(array(1,2,3)) {query_posts('cat=-4');} ?>`
 * Examine the first part: if condition returns true (thus no category 1, 2 or 3)
   then the query_posts will execute. Because of the minus-sign posts in category
   4 will be excluded in the loop.
 * I would like to exclude specific posts (in the example it’s category 4), but 
   not if there’s more than one category to the post.
 * And thanks for your quick reply.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Smilies_init](https://wordpress.org/support/topic/smilies_init/)
 *  Thread Starter [Jannes](https://wordpress.org/support/users/megrim/)
 * (@megrim)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/smilies_init/#post-949845)
 * Just to be complete, here’s all of my plugin’s code:
 *     ```
       <?php
       /*
       Plugin Name: <a href=http://www.vikingsinspace.nl>My Smilies Init</a>
       Description: Adds card symbols to the smilies directory.
       Version: 0.1
       Author: Jannes van 't Oever
       Author URI: http://www.vikingsinspace.nl/
       */
   
       function my_smilies_init() {
       	global $wpsmiliestrans, $wp_smiliessearch, $wp_smiliesreplace;
   
       	// don't bother setting up smilies if they are disabled
       	if ( !get_option( 'use_smilies' ) )
       		return;
   
       	if ( !isset( $wpsmiliestrans ) ) {
       		$wpsmiliestrans = array(
       		       ':mrgreen:' => 'icon_mrgreen.gif',
       		       ':(' => 'icon_sad.gif',
       		       ':)' => 'icon_smile.gif',
       		       ':?' => 'icon_confused.gif',
       		       ':-D' => 'icon_biggrin.gif',
       		       ':P' => 'icon_razz.gif',
       		       ':o' => 'icon_surprised.gif',
       		       ':x' => 'icon_mad.gif',
       		       ':|' => 'icon_neutral.gif',
       		       ';)' => 'icon_wink.gif',
       		       ':!:' => 'icon_exclaim.gif',
       		       ':?:' => 'icon_question.gif',
       			  ':C' => 'icon_clubs.gif',
       			  ':D' => 'icon_diamond.gif',
       			  ':H' => 'icon_heart.gif',
       			  ':S' => 'icon_spade.gif'
       		);
       	}
       	$siteurl = get_option( 'siteurl' );
       	foreach ( (array) $wpsmiliestrans as $smiley => $img ) {
       	$wp_smiliessearch[] = '/(\s|^)' . preg_quote( $smiley, '/' ) . '(\s|$)/';
       	$smiley_masked = attribute_escape( trim( $smiley ) );
       	$wp_smiliesreplace[] = " <img src='$siteurl/wp-includes/images/smilies/$img' alt='$smiley_masked' class='wp-smiley' /> ";
       	}
       }
   
       remove_action('init', 'smilies_init', 5);
       add_action('init', 'my_smilies_init', 5);
       ?>
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to write a simple smiley plugin with $wpsmiliestrans? :)](https://wordpress.org/support/topic/how-to-write-a-simple-smiley-plugin-with-wpsmiliestrans/)
 *  [Jannes](https://wordpress.org/support/users/megrim/)
 * (@megrim)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/how-to-write-a-simple-smiley-plugin-with-wpsmiliestrans/#post-922306)
 * I’ve created a custom smilies_init as well, but I have a small problem remaining.
 * WP is kinda strict that there should be a space in front of and after the smiley.
   I would like to circumvent that. Is that possible?
 *     ```
       $siteurl = get_option( 'siteurl' );
       foreach ( (array) $wpsmiliestrans as $smiley => $img ) {
       $wp_smiliessearch[] = '/(\s|^)' . preg_quote( $smiley, '/' ) . '(\s|$)/';
       $smiley_masked = attribute_escape( trim( $smiley ) );
       $wp_smiliesreplace[] = " <img src='$siteurl/wp-includes/images/smilies/$img' alt='$smiley_masked' class='wp-smiley' /> ";
       ```
   
 * I think I need to edit some line here, but I don’t really understand what’s happening
   here.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Smilies_init](https://wordpress.org/support/topic/smilies_init/)
 *  Thread Starter [Jannes](https://wordpress.org/support/users/megrim/)
 * (@megrim)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/smilies_init/#post-949844)
 * I would like every instance of :C, :D, :H and :S be replaced by it’s corresponding
   symbol/smiley by my function. And I don’t want to worry whether or not there 
   is or isn’t a space needed.
 * I have found some information [here](http://www.hetlab.tk/cms/wordpress-212),
   but it’s in Dutch, and it’s only a partial solution.
 * Could anyone help me out, please?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to modify AJAX inline comments](https://wordpress.org/support/topic/how-to-modify-ajax-inline-comments/)
 *  [Jannes](https://wordpress.org/support/users/megrim/)
 * (@megrim)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/how-to-modify-ajax-inline-comments/#post-799503)
 * Hi plaidgirl
 * Somewhere in the bottom of your css-file you’ll find:
 * .commentlist li {
    margin:0px 0pt 3px; padding:0px 10px; }
 * Change the padding to 0px, that’ll solve your problem.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Filter/Hook for comments](https://wordpress.org/support/topic/filterhook-for-comments/)
 *  [Jannes](https://wordpress.org/support/users/megrim/)
 * (@megrim)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/filterhook-for-comments/#post-739453)
 * I’m interested if you have found a solution/or have actually written the plugin
   already.
 * I myself would like to replace custom strings of text with smilies or other pictures
   in the comments area.
 *   Forum: [Installing WordPress](https://wordpress.org/support/forum/installation/)
   
   In reply to: [Firefox has detected that the server is redirecting the request for this address](https://wordpress.org/support/topic/firefox-has-detected-that-the-server-is-redirecting-the-request-for-this-address/)
 *  [Jannes](https://wordpress.org/support/users/megrim/)
 * (@megrim)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/firefox-has-detected-that-the-server-is-redirecting-the-request-for-this-address/#post-827178)
 * This has helped me, something with disabling canonical redirects.
 * [Firefox has detected that the server is redirecting the request for this address.](http://txfx.net/files/wordpress/disable-canonical-redirects.phps)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Is there plugin that show ajax comment “form” inline?](https://wordpress.org/support/topic/is-there-plugin-that-show-ajax-comment-form-inline/)
 *  [Jannes](https://wordpress.org/support/users/megrim/)
 * (@megrim)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/is-there-plugin-that-show-ajax-comment-form-inline/#post-629229)
 * Maybe this plugin can help you out: [expand-comments](http://voidsplat.org/code/wordpress/expand-comments/)
 * Good luck.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [i request “expand comments” on nymb.us](https://wordpress.org/support/topic/i-request-expand-comments-on-nymbus/)
 *  [Jannes](https://wordpress.org/support/users/megrim/)
 * (@megrim)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/i-request-expand-comments-on-nymbus/#post-616179)
 * The developer moved to a new domain:[Here](http://voidsplat.org/code/wordpress/expand-comments/)
 * Good luck.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [xslt](https://wordpress.org/support/topic/xslt/)
 *  [Jannes](https://wordpress.org/support/users/megrim/)
 * (@megrim)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/xslt/#post-276471)
 * Okay, your reply sounds really interesting. Can you push me (us?) in the right
   direction where to find this plugin?
 * And second, this translation of xml, how does it work? Via a plugin? My knowledge
   of xml and xslt is next to nothing.
 * Thanks for your advice.

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/users/megrim/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/megrim/replies/page/2/?output_format=md)