ifelse
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: is_home() alternativeMake a copy of your themes index.php file (i.e. the one in your wp-content/themes/your-theme folder) and rename it to home.php
Add your additional information in that file. This page takes priority over the index file on the home page i.e. when you navigate to http://www.domain.tld, it is this page that is used.
Forum: Fixing WordPress
In reply to: changing default user websiteWhat you can do is edit the comments.php file so that the link only appears if they’ve entered a site.
In your comments.php page, you’ll should find some code which is along the lines of
<a href="<?php comment_author_url(); ?>"><?php comment_author();?></a>You can wrap this in an if check like thus:
<?php if ('' != get_comment_author_url()) { ?>
<a href="<?php comment_author_url(); ?>"><?php comment_author();?></a>
<?php } else { comment_author(); } ?>Now, the name will no longer be hyperlinked if they didn’t leave a URL.
Forum: Themes and Templates
In reply to: wordpress.org style theme“copyright notices only serve as an FYI”
That is correct. Only the original author/owner of a work is entitled to use, reproduce or distribute it unless they;ve given prior, explicit permission to do so.
The lack of a visible copyright notice does not mean that it is open for copying; copyright is implicit and does not need explicit mention.
Until Matt gives his permission, you do not have the right to copy the design.
Forum: Fixing WordPress
In reply to: Adsense Code Based on Authors on Group WeblogEstjohn, I think you’ve misunderstood the query. What the OP is asking is in a multiple author blog where each author has their own adsense account, could their own individual adsense id be used instead of a general one that is hardcoded in the template.
This is entirely doable (if/else conditions in combo with get_author_name()) and entirely in line with Google’s TOS.
Forum: Fixing WordPress
In reply to: Removing some catagories from the fromtpageIf I understand what you’re trying to say, you wish to exclude posts that belong to either one of the two specified category (and not exclude the display of the category links as Tom inferred).
If that is the case, then unfortunately the short answer is that you can’t due to the way the underlying SQL used for excluding/including categories was written in WP. To do the same, you’ll either have to
a) use a single category (i.e. called exclude) and attach posts from both categories to it
b) or carry out the effect of excluding multiple categories by including every other category but those two i.e. $cat = ‘2,3,4,6’;Forum: Requests and Feedback
In reply to: GPL Licence rulesYep. The main gist of the GPL license is that if you modify the source code and choose to distribute it, then you also have to make the code available.
There is nothing prohibiting providing paid services such as setup/customisation.
Forum: Fixing WordPress
In reply to: If/Then, Simple I know.. Please helpTry changing
<?php $nocommentsyet = "0"; ?>to<?php $nocommentsyet = 0; ?>and
<?php $numbcomments = comments_number('0', '1', '2'); ?>to<?php $numbcomments = get_comments_number($post->id); ?>That said, it’s a strange way of doing things and not at all one that I would advocate having two comment forms…
Forum: Fixing WordPress
In reply to: Question about terminating permalinks“but still not sure if I can use /word/%postname%/
That should work fine and it’ll sidestep all the above mentioned issues. The static keyword in this case faciliates the same goal as the numeric identifiers.
Forum: Plugins
In reply to: WordPress meets Flash CMS – A call to action!!!Don’t worry too much about it; in retrospect, my use of exclamation marks leaves much to be desired but if you could stick to one thread per topic (i.e. not crosspost), it’ll be great.
Thanks for your understanding and all the best with your project.
Forum: Installing WordPress
In reply to: primary keyThe intention of the plugin author was for you to run the create table SQL as is, i.e. run the query:
CREATE TABLE wieonline (
wo_id int(11) NOT NULL auto_increment,
wie varchar(255) NOT NULL default '',
tijd int(11) NOT NULL default '0',
ip varchar(255) NOT NULL default '',
cookie text NOT NULL,
PRIMARY KEY (wo_id)
) TYPE=MyISAM AUTO_INCREMENT=0 ;This will specify wo_id as the primary key so you don’t need to do anything else.
Forum: Plugins
In reply to: WordPress meets Flash CMS – A call to action!!!3Stripes,
One post is enough! Cross posting across 4 threads is bad form especially when one of the threads was dragged up from 16 months ago!
http://wordpress.org/support/topic/9602
http://wordpress.org/support/topic/4393
http://wordpress.org/support/topic/26145Can you please refrain from doing this in future?
Forum: Fixing WordPress
In reply to: How to stop content from being stolen?…“There are various techniques that you can try to make your content harder to copy. For example, there are javascript snippets that disable the right-click menu on a user’s mouse [1], and similarly you can use javascript to hide the browser’s menu bar, etc.”
BTW, this does *NOT* work at all in practice. As well as annoying any readers, it’s (extremely) trivial to bypass and fails to stop the main sources i.e. automated programs which grab your content via RSS and republish it without any manual intervention.
Forum: Themes and Templates
In reply to: New Theme Viewer !Very nice work indeed and a wonderful gift for the WP community! Well done!
Forum: Everything else WordPress
In reply to: Google Rank after server changeNot really. Generally, Google is only interested in what’s exposed in the front end. I’ve changed servers for several sites before without any drop in PR.
Forum: Installing WordPress
In reply to: Page background inexplicably stopsWhat you’ll need to do is to clear the floats. Add the following to your style.css:
#page:after{
content: ".";
display: block;
height: 0;
clear: both;
visibility:hidden;
}