Hello, I'm trying OG Forums but it seems that the themes and languages are not preserved. Any help?

PS: I installed it but I forgot to change OG module, so I changed it, still the same... I uninstalled OG_Forum (og_term on database was deleted but there was an error, so I think the variables were not) That killed my Forum module so I uninstalled it and installed again, and then OO_forum and there were no changes. I just tell this here because it's related. I'll post the uninstalling issue on other issue, so please don't discuss that here. Thanks!

Comments

daniorama’s picture

Title: OG Forums in D6 are not using themes or language from their Groups » OG Forums&Categories not using themes or language from their Groups
daniorama’s picture

Any info regarding this? I really need to find a solution...

daniorama’s picture

Ok, I don't know if OG Forum is using Views, but I've found something that maybe will help. As I created Views for my groups I just found that passing gid as argument does exactly the same, they just use the theme and language of the main website. I then used nid and everything worked good. So maybe it has something to do with that...

daniorama’s picture

Component: User interface » Code
Assigned: Unassigned » daniorama
Status: Active » Needs review

Ok, I just resolved it. og.module needs to be patched. Just add this code at the end of "function og_determine_context() {":

elseif (arg(0) == 'forum' && is_numeric(arg(1))) {
$nid = db_result(db_query('SELECT nid FROM {og_term} WHERE tid = %d', arg(1)));
$group_node = og_set_theme($nid);
}

Maybe there is a better solution but this is working. Now Forums use the themes and languages from their Groups.

Anonymous’s picture

Project: OG Forum » Organic Groups
Version: 6.x-1.x-dev » 6.x-1.0-rc6
Component: Code » og.module

I have reassigned this bug to organic groups.

Would you please check the version and component that i have selected
is correct.

Good luck
Paul

moshe weitzman’s picture

Status: Needs review » Closed (won't fix)

I quote from the issue submission guidelines for this project:

Many of the OG related modules are actually not well written or try to do too much and thus will subtly break OG. Before you report an issue in to this OG project, make sure you can reproduce the problem without any of those add-on modules installed. If you have issues with one of those modules, please file tickets in its own issue queue - not this one.

daniorama’s picture

Project: Organic Groups » OG Forum
Version: 6.x-1.0-rc6 » 6.x-1.x-dev
Component: og.module » User interface
Status: Closed (won't fix) » Postponed (maintainer needs more info)

The issue is not an OG one, or at least I don't think so. It happens the same with Views and maybe it's a problem with OG, but I think it's more the way the context is defined by OG_Forum. It would be nice if someone tell us if they have also this bug (I cannot believe I'm the only one with D6, OG, OG_forum and different themes and languages)

What I posted was just a "dirty" solution. But before reassigning to OG we should check if this problem occurs because of OG_Forum first.

Anonymous’s picture

Thanks Dani,

I'll look into this now ....

Anonymous’s picture

Status: Postponed (maintainer needs more info) » Fixed

I observed and fixed the following problem ..

If you create a group with a none default theme and then navigate to "Group Forums" the default theme is again rendered.

I'll get that fix committed and released in the next development release today / tomorrow

Thanks Paul

daniorama’s picture

That will be wonderful, did you find the problem about the language? Thanks

Anonymous’s picture

Would you advise how to reproduce the language problem and ill then look into that .

Thanks again.
Paul

daniorama’s picture

Just use different languages for each Group. You have to include an additional language into Drupal and then you'll be able to select it for a group.
You'll need to activate Locale and Content Translation optional core modules. Then just add a language in "Site configuration>Languages".You don't really need to download and install any translation, but to check if it works you should. Just decompress any Translation in your drupal root, and then add the language. Then all the translations will be imported automatically.

I hope you can find a solution. Thank you

Anonymous’s picture

Hi Dani

I'll look at this tomorrow .

I was hoping to do this today but i had problems with the migration of
OG CTA which took up most of my time.

-Paul

daniorama’s picture

Hey Paul, had you time to look at it? If you could release the fix or tell us if the cvs version is fixed it would be really good. Thanks!

Anonymous’s picture

Hi Dani ,

I'm going to release a working version of OG CTA shortly
http://drupal.org/project/og_content_type_admin.
(I got a little stuck on something, sorry)

Then i will come back to you as a priority.

Thanks again for your support and patience .

Best, Paul

Anonymous’s picture

I'm coming to this tomorrow !

Anonymous’s picture

Assigned: daniorama »
Anonymous’s picture

Status: Fixed » Active
Anonymous’s picture

Status: Active » Closed (fixed)

The language context is now retained as you navigate around a group . These changes will be released in a development version later today.

There are however no translations for the OG Forum itself at this time.

-Paul

daniorama’s picture

Status: Closed (fixed) » Active

Hey Paul, if you are going to look the language issue, make sure you consider that there are 4 things working there: (Drupal checks them on this order, following always the first one found)
-The language selected to view the content
-The default language of the user
-The default language of the group
-The default language of the site

PS: I'm not sure if this would make sense to you, sorry. I find a bit difficult to explain how multilanguage work in Drupal.

Anonymous’s picture

Title: OG Forums&Categories not using themes or language from their Groups » [More info] OG Forums&Categories not using themes or language from their Groups

Hi Dani,

Would you let me know how the changes work for you , ill then come back and address any issues you have later today.

Good luck
Paul

daniorama’s picture

Status: Active » Fixed

Working great! I think its solved. Thanks, I can take out my custom code from OG.

Anonymous’s picture

Status: Fixed » Closed (fixed)

That's great to here Dani .

Any problems you know where to find us.

Best, Paul