[I am still using 5.x-1.3 because of the unresolved issue, but I have also tried this with 2.1 and I did not change my problem.] Some months ago, one of the group forums (forum and container, actually) was deleted. Now, I am aware now that this should not have happened that way, but the admin used the general forum module to do that as the group forum at the time was not needed. Unfortunately, now we do need the forum again but cannot find a way to reactive it - using 'Retroactively update old groups' does not work.

Any ideas how I could set up a new forum container and forums for a group where the forum was deleted using the general forum module?

Comments

Anonymous’s picture

(sorry, this was the issue I meant: http://drupal.org/node/128266, but it is not really important in this context)

rconstantine’s picture

I'm not sure what it is that you're asking. I'm pretty sure that if you delete a forum and/or a container that everything in it is destroyed. You can't undo that, and I'm pretty sure that there is a warning to that effect before you complete the task.

As for using the regular forum admin tools versus the og_forum admin tools - as of the latest version, you should be able to use both of them. Group owners will obviously only be able to use the group forum tools and then only from within the group they are an owner of. But site-wide admins should not have trouble creating group forums from the general forum tools.

As for version 1.3, I have no idea as that was before my time. I never used it. I did, of course start from it to make all of the recent upgrades.

As for the link you added in #1, that seems to be an unrelated issue. However, FYI, I thought that I'd get to it this week, but turns out it will probably be next week. I now need that feature (making forums public) myself now, so it will be done in short order.

I don't know if any of that helps. As I stated, I wasn't quite sure what your actual issue is or what your question is.

Anonymous’s picture

You are right, the 1.3 issue (but thank you so much for looking at it!) is not directly relevant - it was just to explain why I filed this under 1.3; I also did a test install with 2.1 - same problem.

Sorry about not explaining this well enough. It is not about restoring content as such (none was deleted), but about restoring the container for the group. As the forum and container were deleted there now is no forum for that group and creating forum posts from the group menu does not work properly for lack of forum.
We want to set up a new container + forum for that group, but are at a loss about how to do it. Using the standard forum module it is possible to set that up, but the forum is then of course not associated with the group. And if I go to the manage forums item in the group menu there is no way of setting up a new forum as there is no container for this group, Usually, the container allows you to set up new fora. But no container, no link to "add forum".

So the question is: how do I set up a forum container for a group where the old container was deleted (as far as I am aware with the standard forum module)?

rconstantine’s picture

Oh, I see now. You're right, there are currently no mechanisms for doing this. What you will have to do is first create a regular container. Then you'll have to manually edit a couple of tables to add the association to your group. I'm not in front of my development machine right now, so I'll have to check later and give you some better instructions. I'll add a TODO, but not an issue here regarding this. Perhaps in the future I'll come up with some more admin tools for moving forums and containers around.

Anyway, I'll let you know as soon as I can which tables you'll need to mod. Hopefully you use phpmyadmin or something easy like that. Meanwhile, if you want to poke around and try to fix it yourself feel free. In phpmyadmin, I would do a search for a container name that you know is correct. That will tell you which table or tables it is referenced by name in. Then, by looking at the other data fields, you can search for those items and find any other tables that you'll need to mod. Then create the new container, see which table(s) it is put into and which of the tables you surveyed have missing data. Add the missing data to those tables.

Hopefully that made since. I've been staying up too late lately. I was looking for hot cocoa recipes tonight of all things, then DVDs to add to my NetFlix queue. I ran across a bunch of shows from my childhood. Crazy. I can't believe I watched half of that crap. "Jason of Star Command", or "The Secrets of Isis". Oh, brother!

Wait a minute. In my half awake brain, I just had a thought. For the "Retoractively update old groups" button to not work, there must still be a remnant of the original container and/or forum left over. In other words, the og_forum module doesn't think there is any work to do. You could try finding that and either delete the entries and then use the button (should work), or create a new container and change the new container's fields to match the old remnant's data.

Anonymous’s picture

Many thanks for that! I have had a look around the database (the DBA admin module as I cannot install PHPMyAdmin currently), but could not fix the problem. As far as I understand, all the containers and forums are taxonomy terms - and they all sit in there nicely, but so far I have not found out what exactly connects them to the respective group. So any help to this would be appreciated!

Going back to childhood TV memories can be a very delightful thing! I spent much time in front of the telly watching "Saber Rider and the Star Sheriffs", "The Galaxy Rangers", "The Gargoyles", "Wickie" or "Captain Future"...

rconstantine’s picture

og_term is the table you are looking for IIRC. That will associate a node with a term - that term being the forum/container, and the node being the group. So figure out your group's nid, then figure out your container's tid and add both as a new row (if you don't find one already in the table).

rconstantine’s picture

Oh, and be sure to add the forums as well as the containers using their tids and the same nid.

Anonymous’s picture

Status: Active » Fixed

Thank you so much - that solved my problem!

rconstantine’s picture

Cool. Glad to help. And I hope this opened your eyes into some of the inner workings of Drupal. Don't be afraid to explore the database as well as the code of any module. One safe way to do it is to export your database from your live site and then import it into a test site. Anyway, good luck with your project.

rconstantine’s picture

Assigned: Unassigned » rconstantine
Anonymous’s picture

Thanks again! Your work and help are very much appreciated! I am usually not afraid to experiment at all, but we are currently in a transition process where we do not have a test site, so I have to be a wee bit more cautious...

Anonymous’s picture

Status: Fixed » Closed (fixed)

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