Recent Topics

1 Feb 21, 2007 22:12    

My b2evolution Version: 1.8.7

How can I add a word that I want to appear after each category that is displayed under the title of a post.

Here's the blog:

www.moralquotes.com

After each post appear the categories: author, subject, etc.

ie "Albert Einstein, humor, science"

I want to keep these as my category names, but in the cat list under each title, I want to add the word "Quote"...

ie "Albert Einstein Quote, Humor Quote, Science Quote"...

Is this possible by inserting code in the main skin file?

Also, what determines the order that the categories appear in this list. Is it based on the number of posts in each category?

Also, is it possible to increase the allowed length of a title of a post?

Thanks.

2 Feb 21, 2007 22:38

Try using this in your skins/yourskin/_main.php file:

categories( '#', '<strong>', ' Quote</strong>', '', ' Quote', '<em>', ' Quote</em>' );


This will always put " Quote" after each and every category listed.

Cats show up in numerical order. If you want to change that you can, but it gets a bit tricky. The only change I'm any good with is making the main cat be first followed by all subcats, where the subcats are still in numerical order. Like so:

categories( '#', '<strong>', ' Quote</strong>', 'hide', 'hide', 'hide', 'hide', '' );
categories( '#', 'hide', 'hide', ', ', ' Quote', '<em>, ', ' Quote</em>', '' );

Too see how this comes about doing what you want check out http://doc.b2evolution.net/v-1-8/evocore/Item.html#methodcategories

As to the post title length, it's probably possible but I have no idea how to do it.

3 Feb 22, 2007 00:09

As always EdB, thank you for your help...


Form is loading...