Hi,

I am using Advanced Forum 6.x-2.x-dev and on the advanced forum main page with the list of containers and forums, folder icons don't appear, i tried with garland and i don't have this problem, so i think something in the theme override this function.

In the topics list, it's works fine.

It seems that issue comes from blueprint theme.

Thanks for your help.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Michelle’s picture

Project: Advanced Forum » Blueprint

Nothing I can do from AF if the theme overrides the background images on the table. Moving this to the Blueprint theme queue.

Michelle

designerbrent’s picture

Status: Active » Needs review
FileSize
2.16 KB

Michelle & MasterChief,

How about something like the attached. Does that take care of the issues? I've never used forums in production and never downloaded advanced_forums before today so I don't know what all it does but the basic icon overrides seem to be taken care of.

Please look over the patch and let me know if that works for you.

-Brent

MasterChief’s picture

Hi designerbrent,

i apply your patch, but nothing change.

I will be happy to test patches provided here.

designerbrent’s picture

You might want to try clearing your theme cache via Drush (drush cc theme) or by visiting the theme page. I tried that and it seemed to work fine, as far as I could tell.

MasterChief’s picture

I flush all caches and the problem is still here, the problem is only on the main page with folder icons.

designerbrent’s picture

That's strange as on my test site when I apply the patch above and have Advanced Forums running, the icons do change.

MasterChief’s picture

Did you have create forums ?

The folder icon appears in the legend at the bottom, but nothing at the left of forum's name.

designerbrent’s picture

Alright, after playing around with it, I think I have found the icons you are referring to. The problems comes down to the way that not just Blueprint the theme handles it but the way that Blueprint the framework handles it. I don't have control over the framework. The offending rule is as follows:

tr.even td {
background:none repeat scroll 0 0 #E5ECF9;
}

There are two ways to fix it:

  1. First would be to add the styles to your custom style sheet. You would need to add something like the following:
    .forum-folder, tr.even td.forum-folder, tr.odd td.forum-folder {
      background: transparent url(images/forum-folder.png) no-repeat center center;
    }
    
    .forum-folder, tr.even td.forum-folder-new-posts, tr.odd td.forum-folder-new-posts {
      background: transparent url(images/forum-folder-new-posts.png) no-repeat center center;
    }
    
    .forum-folder, tr.even td.forum-folder-locked, tr.odd td.forum-folder-locked {
      background: transparent url(images/forum-folder-locked.png) no-repeat center center;
    }

    except that you will need to either relink to the correct images or move the images into your theme folder.

  2. The other option would be to patch Advanced forums with the attached patch that will override the Blueprint themes CSS files. Ultimately it would be helpful to get Michelle to commit this patch to her Advanced forums module but that is up to her.

I hope that helps.

Michelle’s picture

Title: Avanced Forum Folder Icons don't appear » Consider making forum folder CSS more specific
Project: Blueprint » Advanced Forum

I'm waffling... My first thought was that I don't want to patch AF with something to override one theme. On the other hand, this isn't really Blueprint specific CSS, just making the CSS more specific. So it probably wouldn't hurt. I'm pulling this back to my queue so I don't forget about it and will look into it further the next time I work on AF.

Michelle

designerbrent’s picture

Thanks for looking at that. If there was some way to override it on my end, I'd be happy to try that but after playing with it and looking at it, I realized that i couldn't find a way and the best place to be would be in the Advanced Forums theme.

I'll be adding the following patch that sidesteps all the forum_* overrides if advanced_forum exists.

Michelle’s picture

Well, it's your call, of course, but I think it makes less sense for you to put a conditional check for AF in your theme than for me to add more specific markup to AF. :)

Michelle

designerbrent’s picture

Well, it's a two step problem. First is that I am overriding a bunch of forum functions. The second is the specificity of the css of your module. In a future version, I may pull out much of this theme code. I have left it in because I rarely use it and haven't wanted to deal with it. The prior maintainer put it in to start with. For now, I'll patch my part.

MasterChief’s picture

I applied your patches designerbrentb and all works fine now :)

Thank you very much for your work (^_^)

Michelle’s picture

Status: Needs review » Fixed

Committed, thanks. Tested to be sure the forum folders still show up under Garland but not tested to see if the patch had any effect on Blueprint.

Michelle

MasterChief’s picture

Hi michelle!

i just install the new 6.x-2.x-dev and i confirm it works fine with blueprint.

Otherwise I saw two problems:

I didn't update since 17 november, and now the "last post" link at the beginning in threads doesn't show anymore, is it normal ?

When i did install the 17th, with the views list (good work on this!), the legend at the bottom of topic lists like new topics weren't inline anymore.

Thanks for your work, the new buttons are better, it's great!

Michelle’s picture

There's lots of problems with the current dev. It's still in really rough shape. I'm working on it as much as I can.

Michelle

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.