Closed (fixed)
Project:
OG Forum
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Critical
Category:
Bug report
Reporter:
Created:
20 Sep 2008 at 20:04 UTC
Updated:
14 Oct 2008 at 10:27 UTC
Jump to comment: Most recent
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
Comment #1
daniorama commentedComment #2
daniorama commentedAny info regarding this? I really need to find a solution...
Comment #3
daniorama commentedOk, 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...
Comment #4
daniorama commentedOk, 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.
Comment #5
Anonymous (not verified) commentedI have reassigned this bug to organic groups.
Would you please check the version and component that i have selected
is correct.
Good luck
Paul
Comment #6
moshe weitzman commentedI quote from the issue submission guidelines for this project:
Comment #7
daniorama commentedThe 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.
Comment #8
Anonymous (not verified) commentedThanks Dani,
I'll look into this now ....
Comment #9
Anonymous (not verified) commentedI 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
Comment #10
daniorama commentedThat will be wonderful, did you find the problem about the language? Thanks
Comment #11
Anonymous (not verified) commentedWould you advise how to reproduce the language problem and ill then look into that .
Thanks again.
Paul
Comment #12
daniorama commentedJust 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
Comment #13
Anonymous (not verified) commentedHi 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
Comment #14
daniorama commentedHey 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!
Comment #15
Anonymous (not verified) commentedHi 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
Comment #16
Anonymous (not verified) commentedI'm coming to this tomorrow !
Comment #17
Anonymous (not verified) commentedComment #18
Anonymous (not verified) commentedComment #19
Anonymous (not verified) commentedThe 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
Comment #20
daniorama commentedHey 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.
Comment #21
Anonymous (not verified) commentedHi 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
Comment #22
daniorama commentedWorking great! I think its solved. Thanks, I can take out my custom code from OG.
Comment #23
Anonymous (not verified) commentedThat's great to here Dani .
Any problems you know where to find us.
Best, Paul