Posted by samwarren on February 25, 2009 at 4:52am
Jump to:
| Project: | Advanced Forum |
| Version: | 6.x-2.0-alpha1 |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
The terms cannot be shown in any post after enabling advanced forum. I just disabled the module and the original terms come up right away. It is for sure due to the module.
I searched and could not find others with this issue. Did I do something wrong?
Comments
#1
AF doesn't currently show taxonomy terms in forum nodes. This is something I planned to address in 2.x, so adding it to the list. In the mean time, you can always add <?print $terms ?> to your own template.
Michelle
#2
#3
If I could just second this one. Terms are pretty central to drupal and the entire user experience.
In the mean time, where can we add this <?print $terms ?> ?
Thank you for a great module!
#4
Copy advf-forum-post.tpl.php to your theme and add it there.
Michelle
#5
Linking to #484174: Tagging
Michelle
#6
Added to 2.x
Michelle
#7
Automatically closed -- issue fixed for 2 weeks with no activity.
#8
Some info for those still interested (though it looks like the 2.0 release that includes terms is very close).
The advf-forum-post.tpl.php
file is in: advanced_forum/styles/naked/
I made this change by copying that file into the top level of my theme directory ([path]/sites/all/themes/[themedirectory]) and making this portion of the code:
<div class="forum-post-footer clear-block">
<div class="forum-jump-links">
<a href="#top" title="Jump to top of page"><?php print t("Top"); ?></a>
</div>
Read like this:
<div class="forum-post-footer clear-block"><div class="forum-jump-links">
<a href="#top" title="Jump to top of page"><?php print t("Top"); ?></a>
</div>
<? /** the next line was added to print taxonomy terms on forum topics--it is styled in the accompanying Advanced Forum CSS file**/?>
<div class="advf-term-container"><?php print $terms ?></div>
I'm using the 'Blue Lagoon - stacked' Advanced forum theme, so I then copied the advanced_forum.css file from the [path]/sites/all/modules/advanced_forum/styles/blue_lagoon_stacked directory into my theme directory ([path]/sites/all/themes/[themedirectory]), and added these lines to the end of that file:
/* Taxonomy Terms *//* CSS accompanies $print statement added to advf-forum-post.tpl.php*/
.advf-term-container .vocab-term {
display: inline;
}
The CSS could be improved, but it allows the terms to display horizontally.
#9
Maybe important to note that if you move the advanced_forum.css file into [path]/sites/all/themes/[themedirectory], that CSS will always override what you choose as a theme for Advanced Forum -- so you can no longer change the Advanced Forum theme -- maybe better to change the CSS in the theme folder directly.
#10
Hi Michelle, I tried the 6.X-2.x-Alpha and dev releases of Advanced Forum (which did pull the tags), but lost all the content (text, images, and links) contained in my forum nodes. I also tried reverting to AF 6.x-1.1 and implementing the <?print $terms ?> string inside a file named advf-forum-post.tpl.php (placed in my theme's directory) and had the same results. I further tried moving the patch file and testing under the default "blue lagoon" theme, yet still encountered the same problem. If this works for you and others, there must be a conflict with one of the other modules I'm running (there are quite a few). Has anyone else encountered a module conflict involving tags and AF?
#11
It's been well over a month and no one else has said anything. I can't imagine anything with simply printing out the terms that would cause the problem you're having. If it's still a problem, please open a new support issue as this issue was about adding the term printing, which is committed.
Michelle
#12
It definitely sounds like a module or theme conflict. I just installed AF 6.x-2.0-alpha2 on site with quite a few modules running already and it seems to work as intended, the Tags: [Forum Title] is showing right under the initial post and I don't see any side effects at all.
Looking at this from a user perspective, I don't really understand the usefulness of this feature and would like to be able to disable it. Maybe I am missing something, but what is the advantage of this if a topic can belong only to one forum?
I have looked at Michelle's Coulee Region forums in hopes to understand how this can be used, but there too, all it shows is a link to the parent forum.
#13
Depends if anyone bothers to tag the forum topics. If you don't want it there, just delete the line from the template.
Michelle
#14
I see what you mean, you can add a CCK field to the new topic form for users to add or select additional terms, that makes sense. That is good to know, thanks.
In my case this may confuse to many users so I will just remove the section from my copy of the template.
Thank you.
#15
No need for CCK. You can just assign additional vocabularies to the forum topic node type. I have a "forum tags" vocabulary that's a free entry vocab so users can add whatever tags they want to their posts. It doesn't get used much but it's there if they want it.
Michelle