I have an OG activated. It's very good module.
But do i have any posibility to have field, where users upload an image, and it will be like a group logo, group avatar. So in template of og it will be in dov, for example:

$og->picture

.

What can u say? I don't want let users to set up place for upload picture manually.

Comments

pils’s picture

good question.
don't have the answer.
would like to.
can only think that one has to add the option to upload an image akin to the profile page picture/avatar , which would require nicking all the function/variable user_picture and renaming og_picture / subog_picture and pasting into og_module and ogsubgroups_module...? AND require a new table/s in SQL as well I presume (really I don't have a clue I@m just thinking out loud)...

pils

nevets’s picture

Since you pick which content type represents the group and you can extend that content type with CCK, why not add an image field to the content type you are using. Then with some theming (and maybe a little code) you should be able to do what you want.

minde66’s picture

Could anyone provide snippets for theme/code to achieve that?

minde66’s picture

Nobody uses images/logos for groups? This is just unbelievable...

I have an idea of using node_load function inside the template of group details block and then printing image tag with the image path from CCK imagefield. But is it efficient to load all the node data in the block just to get image path from CCK imagefield of the node (og node)?

minde66’s picture

Thanks for your help...

BeaPower’s picture

did you ever find a solution?