Michael Fields
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Use Kubrick’s XHTML for commersial themes?As far as I understand – and I am not an expert on the GPL – If you take a piece of GPL code and modify it – it is totally ok to sell it so long as the new code is also licensed under the GPL and that all source code is provided in the release.
If I understand you question correctly, my answer would be “no”. If you were to create a derivative work from Kubrick, you could sell it for whatever price you want and you would not have to give it away for free. However, since it must be licensed under the GPL, anyone who pays for your theme will have the freedom to modify and distribute your theme freely.
I hope this serves to answer your question.
And again. I’m no expert on the GPL, but I have read it 3 or 4 times and listened to many others speak on it’s behalf.
Forum: Fixing WordPress
In reply to: How do I change Password Protected text?The function
esc_attr__()is not defined in you installation of WordPress… which means that you are using a version that is below 2.8.0… which means that your blog is at risk of being compromised by that new evil WordPress worm thing.Please upgrade ASAP.
If this is not an option you can always replace
esc_attr__()withattribute_escape(), but be warned this this function is deprecated which means that it may not exist in future releases of WordPress core.Best to upgrade.
Forum: Fixing WordPress
In reply to: How do I change Password Protected text?@asbo6544
1. What fatal error?
2. Did you accidentally nest the php tags?<?php ?>.Forum: Themes and Templates
In reply to: Use Kubrick’s XHTML for commersial themes?I believe that it is fine as long as the commercial theme that you release is licensed under the GPL.
Forum: Fixing WordPress
In reply to: How do I change Password Protected text?@curvaciousb: Notice that in the function I added a class to the form. You can apply styles to
.protected-post-formin your stylesheet.Forum: Fixing WordPress
In reply to: Search not working on pagesYou’re welcome 🙂
Forum: Fixing WordPress
In reply to: get warningBut I do want a theme that generates the thubms of the posts.
This will be a feature in WordPress 2.9 which should be out pretty soon… which means that it should be easy enough to convert any theme to have post thumbnails. Although it might mean waiting a week or two, I think that it would be well worth it.
Forum: Fixing WordPress
In reply to: Search not working on pagesBasically, there is no value set for the action attribute on the search form. This problem appears to have been corrected in later releases of the theme – you are using 1.2.8 while the latest release is 1.3.2 – if you have not made any modifications to the theme, the easiest solution may be to upgrade to the latest version. If this is not possible, you will want to open header.php and look for code that looks similar to:
<div class="SearchBox"> <form method="get"> <input type="text" class="SearchQuery" id="SearchQuery" value="Search here..." name="s" /> <input type="submit" name="submit" class="SearchButton" value="Find" /> </form> </div>you then need to replace this bit:
<form method="get">with:
<form method="get" action="<?php bloginfo('url') ?>/">Forum: Fixing WordPress
In reply to: Permalink dynamic pages .htaccessProblem is most likely with your regex, maybe this will work?
RewriteRule ^site/hitta-studentskiva/([0-9]{10})$ /site/hitta-studentskiva/?eventID=$1 [L]Forum: Fixing WordPress
In reply to: Password protected post modificationsThis should work if your language is English:
add_filter( 'protected_title_format', 'proctected_post_title_override' ); function proctected_post_title_override( $c ) { return str_replace( 'Protected: ', '', $c ); }Forum: Plugins
In reply to: Accessing My Plugin From A ThemeIn the header, you will want to declare
$imageRotatoras global. header.php is included via the get_header() function meaning that it’s scope is dictated by that function. I would use this block:if ( isset( $imageRotator ) ) $imageRotator->generateHtml(); else echo '<p>Nope!</p>';FYI – You would never run into this problem using actions and filters.
Forum: Requests and Feedback
In reply to: uploaded images. why absolute urls? It’s so stupid!mfields, a relative path from root would work in all those cases, wouldn’t it?
/path/someimage.jpgDefinitely not on my development machine 🙂
Forum: Plugins
In reply to: Accessing My Plugin From A ThemeEither should work, are you experiencing any errors?
Forum: Fixing WordPress
In reply to: get warningIt looks like either your theme or a plugin is trying to use GD Library to generate a post thumbnail on-the-fly, but for some reason, it is generating an incorrect path:
/home/barrento/public_html/magazine//home/barrento/public_html/magazine/wp-content/uploads/pth/recent_default64x64.png
The bold parts of the above url are most likely causing the issue – which theme are you using? Which Plugins?
Forum: Fixing WordPress
In reply to: Password protected post modificationsJust answered a similar question here:
http://ww.wp.xz.cn/support/topic/323715?replies=2