ifelse
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Single.php how can I make it go to comments box not to the titleAdd
<a name="comments"></a>
to where you want the readers to jump to i.e. add it to just before the comments area in comments.php. Now in your links to the comments, use (for example)
<a href="http://www.roadstoiraq.com/?p=247#comments">Forum: Your WordPress
In reply to: actionBERG.com (Feedback please)To exclude the categories from being displayed in the sidebar list, you can use:
<?php wp_list_cats('exclude=1,2'); ?>
where 1 and 2 are the category_id’s for Journey or Thoughts.Hiding it from the post categories (I assume you mean hiding from the list of categories that is shown on the right when people are posting) is a bit more difficult and will require modification to the base WP files however.
Forum: Your WordPress
In reply to: actionBERG.com (Feedback please)The following snippet should help you along the way:
<?php
foreach((get_the_category()) as $cat) {
echo(get_category_parents($cat->category_id,fales,'')); ?>
} ?>Forum: Fixing WordPress
In reply to: Image with a caption and text surroundIs this what you’re looking for?
Forum: Your WordPress
In reply to: actionBERG.com (Feedback please)Looks fine in Firefox 1.02 and degrades gracefully in IE 6 (no transparency in header). Regarding parent categories, can you provide an example/scenario?
Forum: Fixing WordPress
In reply to: How to make the forums a better and more useful place.Quick note: Bumping is actually counter-productive if there have been no replies. The titles of posts with no replies are in bold which helps them stand out. Bumping a post will remove this emphasis and make it that much less likely to receive a reply.
Forum: Themes and Templates
In reply to: Gespaa 2 ColumnsBTW, how did you solve no 1?
Forum: Themes and Templates
In reply to: Gespaa 2 ColumnsTry downloading the gespaa_v2.zip and then uploading the single.php file to your theme directory.
Forum: Plugins
In reply to: Question: Looking for a quick blog like what Photomatt.net hasBaub has written a fantastic plugin call mini-blogs which does pretty much what you’re looking for.
Forum: Plugins
In reply to: Looping the LoopYou can try this;
on the first loop, do as you would normally. On the second loop however, you create a new WP_Query object (which is what handles the actions and properties for the_loop) via:
<?php $sub_query = new WP_Query('category_name=site&showposts=5'); ?>Now you can loop through this wp_query object as you would normally:
<?php while ($sub_query->have_posts()) : $sub_query->the_post(); ?>
<?php
the_excerpt();
?>
<?php endwhile; ?>Forum: Fixing WordPress
In reply to: Text from comments box spilling over into siteFor question 1:
This is a html/css issue. If you write a comment in which a word is larger than the displayable comments area then it will continue to overflow. As it is a contiguous word, there is no way for the browser to reasonably determine where to break it.Hence the easy solutions are to tell it to
a) not show the overflowing text by adding the following to your css
.commentlist li p{
overflow:hidden;
}
or
b) add a scroll bar
.commentlist li p{
overflow:auto;
}…or you could tell people to use the space-bar every once in a while:-)
Forum: Plugins
In reply to: External LoginIt’s difficult to properly recommend a solution without knowing
a) how you plan to manage user/password lists
b) how your own tables are definedIf the table tables are broadly similar i.e. similar datatypes and columns, you may be able to get away with using MySQL views (whether this is a view on the WP tables or your own tables is a judgement call). However, I wouldn’t recommend this approach at all.
A better solution (besides rewriting the code) may be to write a data migration scripts i.e. some SQL/code that maps WP user tables to your own data tables (or vice versa). Just my 2 pence.
Unfortunatly, I don’t really see a perfect solution with the info provided.
Forum: Your WordPress
In reply to: IfElse redesigned: 3col to 2 col and other experimentations“basicly what i’m wondering is how did you make the 2nd column of posts (the ‘shorts’ section)? and what is this called?”
Shorts is my own terminology. They’re also known as asides, remainders and miniblogs.
For my own site, I had to develop it from scratch but Khaled (of Manji/Rin fame) pointed out that there’s a plugin written by BauB that does the same thing. I’ve tested it out in my sandbox and it’s a fantastic plugin and one I wished I had 3 months ago.
Forum: Fixing WordPress
In reply to: visitors can’t see images from my blogThere are references to localhost in your css instead of the actual blog url
Forum: Themes and Templates
In reply to: URL’s breaking the pageActually, please don’t use target=_blank… Nothing annoys me more than a site that doesn’t let me decide whether or not I want a new window…