Topic: A few suggestions

Hey there! Great theme that's going on here. I run a podcast site, and I'm looking into the viability of converting my current site to this theme within the next couple months for a visual overhaul. I like to do that every couple years. Anyway, I thought I would mention a couple thoughts I've had and problems I've come across here, with hopes of maybe getting some solutions thought out while I work. I appreciate all the work, and the time spent reading these forums.

1> My first big issue deals with the site handling a specific plugin. I'm not sure how the theme creator handles which plugins he supports. However, the plugin I use for podcast is rather popular amongst podcasters. Blubrry Powerpress is pretty much the best solution we have. It's well developed, and for the most part, it works out of the box with just about every theme out there. Including this one. However, it has some issues with something going on in the theme, and I'd like to see why that is.

Notably, the plugin can include an MP3 player in the post. It can even include it in the excerpt so that I can have the player available on the first page on the website. The problem is that it doesn't work uniformly in Arras Theme. If the player is in the excerpt for Featured Post #1 (Node Based), it works well. But if that same episode shows up in Quick Preview based section, you see a garbled up mess of code, rather than the player itself.

I'm including a screenshot to show exactly what I'm talking about. Notice how the Node Based display handles it just fine, but the Quick PReview Based display just displays the code.

http://img831.imageshack.us/img831/6761/podcastproblem.jpg

Not sure what is causing that, but it's a bit of an issue. Secondly, though not nearly as big of an issue. Powerpress out of the box doesn't actually work with the theme at all. There is an option in the "Appearance" tab for Powerpress that says "Having theme issues?" and when you set that to "Yes, please try to fix" the plugin starts working. So I'm not sure what it is that it's doing to fix the problem, but the good thing is that it is fixing it. As such, there is nothing technically needed here, but I thought I would mention it, in case it ends up being the root of the first problem, or in case someone wants to investigate that.

2> The second suggestion I have is that I think the theme needs more control over the repetition of posts. Currently, the only option is "Check this to prevent duplicate posts from displaying within the slideshow and the featured posts". Granted, that's a really good start. But I actually don't mind that the slideshow duplicates posts. I just want to be able to control which of the other categories repeats previous posts.

For instance, in the above screenshot, you will notice that the Second featured posts category has "Book of the Month" as the title. Every month, the site has a Comic Book that we choose as the book of the month from our sponsor. Well, if I click  avoid duplicate posts option, then when the new post is made, it will show up in the slideshow, but not the Book of the Month section. But if I don't click it, it shows up in my Slideshow, my Book of the Month section, AND my News Posts section (Which I have changed from a per line display to a Quick Preview. So basically within like 2 pages of scrolling, you would see the post 3 times. That's a bit excessive.

What I would like to see, is a way to exclude specific categories instead of just including them. You do have the option to include everything BUT the category you want already. But from the playing around with things, it looks like sometimes (and not always), those categories include child categories. Which will pick up some posts I don't want. But if there was a way to specifically exclude a category per section, that would fix the problem in my case.

I hope that made sense.

3> I know I've seen similar suggestions around here, and this may very well be something I could code myself in a child theme. But I'm not sure how complicated it would be, since I'm only a low level coder at best and I've never messed around with child themes. I love the thumbnails, but with Podcasting multiple shows, I use the same art on every post in a certain category. On my previous theme, this meant mucking around with the theme code every time we add a new show. That also meant that I was stuck with that version of the theme, unless I wanted to recode is every time. Again, this might be something I can do with Child Themes, I'm not sure how well that lets you replace existing code. But, it would be nice if I could choose an image for specific categories. And then choose whether that overrides any images it has in the post, or if the images in the post override the category image.

Having something in the admin panel to say, "Pick a category, and add an image URL to make that your thumbnail for the category" would be a huge help.

4> It'd be nice if when viewing a specific category, it also displayed the RSS feed for that particular category.


Sorry for being so winded. I always have such bizarre problems, that it feels I need to write a book to explain them correctly. To see what we are are currently using for our site, check out http://www.geekshow.us - That should give you a good idea of where I'm trying to get to. To see what I'm fiddling around with now when it comes to this theme, that's at http://www.geekshow.us/newdev - Obviously, that's a work in progress and may change frequently.

Any help? Yep,it's much appreciated.

Thumbs up

Re: A few suggestions

1. I'm not sure, but the node uses

<?php the_excerpt() ?>

and the quick preview

<?php echo get_the_excerpt() ?>

Perhaps the problem is there (it's in tapestries.php).

2. You can be as specific how you want using tags, custom taxonomies, etc. I think the theme can handle things like that without having to add an exclude function. My two cents.

3. Child Themes lets you handle lots of things but not replacing functions. So the stuff about changing the whole this category use that thumbnail isn't an easy thing to do in a Child Theme. But no doubt there's a trick for it somewhere.

4. That's a simple line of code for a child theme smile

My Arras themed & Arras related site: NullCore.
Please ask questions about Arras on forum, not through mail, thanks.

Re: A few suggestions

Thanks for the response. Unfortunately, #3 is probably the biggest problem I have. I really need to find a way around that. With multiple posters on my site, I can't rely on everyone to post the same picture hundreds of times.

Thumbs up

Re: A few suggestions

Well, they don't have to of course. It's in the media folder already, they only have to attach it. But I'll think of something, it should be doable.

My Arras themed & Arras related site: NullCore.
Please ask questions about Arras on forum, not through mail, thanks.

Re: A few suggestions

Thanks for looking into it. In the previous theme I used, I just edited the code to use an If/Else for each category I needed. But I'd really rather not back myself into a corner when it comes to upgrading future themes, if I can help it.

Also, going back to issue #1, if I'm not mistaken, that blurb of code looks like it isn't parsing the shortcode. I'm not sure if that's because the shortcode has been messed up somehow, or if get_the_excerpt processes shortcode differently than the_excerpt. Is there a reason why you would use one over the other? Or is that a continuity mistake in the programming?

Edit: Found a similar problem on the PowerPress forums. Unfortunately, it looks like the solution required a function edit in the main theme files. I'm not sure I follow what actually causes the problem, though: http://forum.blubrry.com/index.php?topic=1913.0

Last edited by SaberJ (2010-10-18 12:35:28)

Thumbs up

Re: A few suggestions

You can of course try out by using the_excerpt in the quick preview too. It won't mess anything up. If you simply change <?php echo get_the_excerpt() ?> in <?php the_excerpt() ?>.
According to http://codex.wordpress.org/Function_Ref … he_excerpt a handmade excerpt will retain its html tags but weirdly enough http://codex.wordpress.org/Function_Ref … he_excerpt says the excerpt is echo get_the_excerpt. So it shouldn't make a difference.

The line of code they offer is a small piece of code you can put in functions.php to see if it works. But what it says there smells of something different though.

My Arras themed & Arras related site: NullCore.
Please ask questions about Arras on forum, not through mail, thanks.

Re: A few suggestions

SaberJ wrote:

4> It'd be nice if when viewing a specific category, it also displayed the RSS feed for that particular category.

This is the basic code for that:

function get_category_rss() {

$cats = get_the_category();

foreach ($cats as $cat) { 

if (!is_home()) { ?>

<div class="custom-rss-feed">
<a href="<?php bloginfo('url'); ?>/category/<?php echo $cat->category_nicename; ?>/feed">RSS feed for <?php echo $cat->cat_name; ?></a>
</div>

<?php
}
}
}

I've used $cat->category_nicename because of the why my permalinks are set up, this might vary per site.

My Arras themed & Arras related site: NullCore.
Please ask questions about Arras on forum, not through mail, thanks.

Re: A few suggestions

Is that code supposed to go in one of the existing files or a child theme file? I haven't taken a look around the code yet. Thanks for the help.

Thumbs up

Re: A few suggestions

It was a basic set up, it can virtually anywhere, but I'd say a child theme would be the best option.

My Arras themed & Arras related site: NullCore.
Please ask questions about Arras on forum, not through mail, thanks.

Re: A few suggestions

I don't suppose anyone has come up with a way to incorporate the idea of having a default thumbnail image for each category, have they? That's one of the things that I've been holding off switching to this theme for.

Thumbs up

Re: A few suggestions

hey i have an idea for this...and in the past few days i have been working on this
i need the help from someone who knows php better then me
check this plugin :

http://wordpress.org/extend/plugins/category-icons/

ok now after this check this function of the plugin :

http://www.category-icons.com/2010/05/h … icons-url/

As you can see..you can define a fuction in functions.php of the theme and you can get the category thumbnail url...right !!
Now see thumbnails.php of theme

$empty_thumbnail = '<img src="' . get_bloginfo('template_directory') . '/images/thumbnail.png" alt="' . get_the_excerpt() . '" title="' . get_the_title() . '" />';

there is a path for the deaulth thumbnail.......so it is required to replace on the img src part with the function caticon  used in the documentation before....but i am not that good in coding...so i am always getting an error

if anyone is willing to help....then support me in getting through !!
it can be helpful to many people

Thumbs up

Re: A few suggestions

shadowx wrote:

hey i have an idea for this...and in the past few days i have been working on this
i need the help from someone who knows php better then me
check this plugin :

http://wordpress.org/extend/plugins/category-icons/

ok now after this check this function of the plugin :

http://www.category-icons.com/2010/05/h … icons-url/

As you can see..you can define a fuction in functions.php of the theme and you can get the category thumbnail url...right !!
Now see thumbnails.php of theme

$empty_thumbnail = '<img src="' . get_bloginfo('template_directory') . '/images/thumbnail.png" alt="' . get_the_excerpt() . '" title="' . get_the_title() . '" />';

there is a path for the deaulth thumbnail.......so it is required to replace on the img src part with the function caticon  used in the documentation before....but i am not that good in coding...so i am always getting an error

if anyone is willing to help....then support me in getting through !!
it can be helpful to many people


Thanks for your input. I was beginning to think I was going to have to give up on the idea of using this theme. This at least has us thinking in (hopefully) the right direction.

So if I understand that plugin right...

First we would need the plugin installed. Then would insert that code:

$caticons_url = extract_caticonsurl(get_cat_icon('echo=false'));

That would return the URL of the pictures we have setup in the plugin as category icons. Presumably that line of code would just need to go wherever the theme is generating the thumbnail image. But I don't think you would want a straight replace of the code. You would probably want something more along the lines of IF this category has an icon assigned, use it. Otherwise, use the first image in the post. That's where I would run into problems. Maybe there is someone around that could help us figure this out. Maybe extatix is still watching this thread?

Thumbs up

Re: A few suggestions

Thanks for your input. I was beginning to think I was going to have to give up on the idea of using this theme. This at least has us thinking in (hopefully) the right direction.

hey finally after hours i got this working....
this is the solution

1.install the plugin specified above
2. set the category icons

now in the arras functions.php file define the function as explained in the document below :

http://www.category-icons.com/2010/05/h … icons-url/

now in theme editor go to thumbnails.php and search for "thumbnail.png".....
you will see the following line :-

$empty_thumbnail = '<img src="' . get_bloginfo('template_directory') . '/images/thumbnail.png" alt="' . get_the_excerpt() . '" title="' . get_the_title() . '" />';

now replace the above line with this code :

$empty_thumbnail = '<img src="' . extract_caticonsurl(get_cat_icon('echo=false')) . '" alt="' . get_the_excerpt() . '" title="' . get_the_title() . '" />';

if anything goes wrong then replace the thumbnails.php with the original one ....

see it working on http://meshedup.net/   .... the stories section

cheers,
pepe  smile

Last edited by shadowx (2011-01-18 09:25:36)

Thumbs up

Re: A few suggestions

In that case, it will only use the category picture if there isn't a picture for the post, right? It's not ideal, but I could probably make it work.

Thumbs up

Re: A few suggestions

SaberJ wrote:

In that case, it will only use the category picture if there isn't a picture for the post, right? It's not ideal, but I could probably make it work.

yes you are right if there is no post image.....this plugin will fetch the category icon set by you.....i will work on more ways to accomplish this if i have time !!!  smile

Thumbs up

Re: A few suggestions

If I wanted to replace the function in a child theme, rather than the main theme, how would I go about doing that? Anyone know?

Thumbs up

Re: A few suggestions

I'm struggling with that myself at the moment. The best solution I can come up with (and not ideal) is to:

1. copy arras/library/thumbnails.php to child-theme/library/thumbnails.php
2. make your changes to the $empty_thumbnail or arras_get_thumbnail() code
3. comment out the line "require_once ... thumbnails.php" in arras/functions.php (I don't have the code in front of me to check exactly what it is)
4. add a line "require_once ... ./library/thumbnails.php" to child-theme/functions.php (Again, I don't have the code in front of me to check exactly what it is)

Yes, I know that any upgrade to the parent theme will break this. However, remembering to comment out one line is easier than re-writing thumbnails.php after each upgrade.

Thumbs up