Use taxonomy image

Dudditz - June 30, 2008 - 05:39
Project:Advanced Forum
Version:6.x-2.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

I understand you are working on a way to change the status of a post icon
but I was curious of another approach.
It would be nice to be able to assign a particular icon(s) to a particular forum.
Such as:
Ford forum would have Ford logo
Chevy forum would have Chevy logo
Toyota forum would have Toyota logo
etc

If I had a bit more php experience, I would attempt it myself.

AttachmentSize
example.jpg94.72 KB

#1

Michelle - June 30, 2008 - 13:05
Title:Post Icons» Use taxonomy image
Version:6.x-1.0-alpha2» 6.x-1.x-dev

I was going to won't fix this since this is really something that would need to be done in your theme. But it occured to me that I could probably hook into the taxonomy image module and do something there. This isn't anything I'll get to in the near future but I'll put it on the to do list.

Michelle

#2

bdtushar - July 16, 2008 - 16:54

thank u. we are waiting for this feature

#3

Psicomante - July 20, 2008 - 10:13

Nice feature. I think it'll be useful to much users. If i'll have a bit of spare time, i'll make a patch.

#4

bdtushar - July 20, 2008 - 17:19

I tried taxonomy image. But image is not showing in forum. What is the problem i dont know

#5

Michelle - July 21, 2008 - 17:58

@bdtushar - Why would you think it would? This is an active feature request.

Michelle

#6

chasz - September 8, 2008 - 19:47
Component:Theming» Code

can u add a image URL field in the create forum section?

that should be an easy way?? can i add a cck field into forum?

#7

johnblade - November 5, 2008 - 05:41

Here's a patch which applied to advanced_forum-6.x-1.0-alpha13.tar.gz will add Taxonomy Image support.

You need to create a valid Taxonomy Image configuration as per (http://drupal.org/node/101682).

When you have a valid Taxonomy Image per Taxonomy, it will replace the default Post Icon with the Taxonomy Image.

It's not perfect though, as it doesn't allow for icons with 'new posts' that have Taxonomy Images. Probably best to change your theme to have a bold Topic or something like that instead.

AttachmentSize
taxonomy_image.patch 1.16 KB

#8

Michelle - November 5, 2008 - 16:04
Status:active» needs review

Thanks, I'll have a look at it soon as I can.

Michelle

#9

Michelle - November 8, 2008 - 04:15

I had a look at it and I don't get why you go through all the work to find the vid when you only use the already existing tid? This also, as you mentioned on IRC, doesn't address the main forum listing images, which is what this issue is about.

I'll come back to this at some point but probably not for this next alpha.

Thanks,

Michelle

#10

johnblade - November 18, 2008 - 04:58

Retrieving the TID is necessary to send the taxonomy_node_get_terms function a Node array that has the correct TID.

The forum_get_topics doesn't retrieve the TID information, and would require to either override that function or change it in Forum Core.

I've started looking into adding it for the forum icons but I'm having trouble retrieving all the terms for each Forum. Anyhow I'll keep working on it.

Also checkout an example of what the above patch can do: http://lansmash.com/forum

#11

Michelle - December 9, 2008 - 03:56
Status:needs review» postponed

Will revisit this in 2.x.

Michelle

#12

Michelle - May 7, 2009 - 03:07
Version:6.x-1.x-dev» 6.x-2.x-dev
Status:postponed» active

#13

Michelle - July 15, 2009 - 17:20
Status:active» needs review

Ok, commited something that works with minimal testing. I did not use the patch in #7. Forgot there even was a patch on this issue and I still don't see why it goes through all that work. At any rate, the feature is there but I didn't thoroughly test it including checking what happens if you add an image to a container and stuff like that. So leaving it open for the moment until I'm sure it's solid.

Michelle

#14

Michelle - July 15, 2009 - 17:55
Status:needs review» fixed

Ok, I poked around a bit more and it seems pretty solid. Finally marking this fixed after a year. LOL

Michelle

#15

System Message - July 29, 2009 - 18:00
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.