Jannes
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Modify CSS Carrington BlogThis 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
In reply to: Modify CSS Carrington BlogRight, 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
In reply to: Modify CSS Carrington BlogNo 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
In reply to: Modify CSS Carrington BlogThanks 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
In reply to: Filter posts by is_categoryI’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.
Forum: Fixing WordPress
In reply to: Filter posts by is_categoryI 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_initJust 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
In reply to: How to write a simple smiley plugin with $wpsmiliestrans? :)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_initI 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?
Forum: Fixing WordPress
In reply to: How to modify AJAX inline commentsHi 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 commentsI’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.
Forum: Plugins
In reply to: Is there plugin that show ajax comment “form” inline?Maybe this plugin can help you out: expand-comments
Good luck.
Forum: Plugins
In reply to: i request “expand comments” on nymb.usThe developer moved to a new domain:Here
Good luck.
Forum: Fixing WordPress
In reply to: xsltOkay, 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.