Forum Replies Created

Viewing 15 replies - 1 through 15 (of 16 total)
  • Thread Starter Jannes

    (@megrim)

    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.

    Thread Starter Jannes

    (@megrim)

    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.

    Thread Starter Jannes

    (@megrim)

    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.

    Thread Starter Jannes

    (@megrim)

    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.

    Thread Starter Jannes

    (@megrim)

    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.

    Thread Starter Jannes

    (@megrim)

    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
    In reply to: Smilies_init
    Thread Starter Jannes

    (@megrim)

    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);
    ?>

    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
    In reply to: Smilies_init
    Thread Starter Jannes

    (@megrim)

    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, but it’s in Dutch, and it’s only a partial solution.

    Could anyone help me out, please?

    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
    In reply to: Filter/Hook for comments

    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.

    This has helped me, something with disabling canonical redirects.

    Firefox has detected that the server is redirecting the request for this address.

    Maybe this plugin can help you out: expand-comments

    Good luck.

    The developer moved to a new domain:Here

    Good luck.

    Forum: Fixing WordPress
    In reply to: xslt

    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)