Paid affiliate advertisement

Default theme for an organic group

scedwar - January 30, 2008 - 16:28

I would be interested if anybody would take up this issue, to create a default theme for new group types:
http://drupal.org/node/202442

Code should be committed back into the community og.module.

We're a UK charity with a small web development budget so if this is a lot of work, and hence a lot of money, we'll have to pass.

Thanks.

Demo site.

progga - January 30, 2008 - 23:59

I have setup a demo site at http://demo11.codesetter.com . There are two groups at the site with their own themes. Please have a look at the groups and tell me if this is what you are after. Good night.

Yes - this is the end result

scedwar - January 31, 2008 - 11:43

Yes - this is the end result I am looking for.

THEMES:
Overall Site Theme
Group Theme 1
Group Theme 2
Group Theme ...

Users can create a new group, but by default it always set to Group Theme 1 and NOT the overall site theme.
The user should be able to choose from the other group themes (but this is not so important).

You are lucky then :-)

progga - January 31, 2008 - 14:05

If you don't want to spend a single penny, then run these queries on your (MySQL) database:
ALTER TABLE og modify column theme varchar(255) default 'theme_name';
UPDATE og SET theme = 'theme_name';
Make sure that the 'theme_name' theme is already enabled.

If, yes if, OTOH you want lots of bells-n-whistles like -

  • Admin decides whether groups get any default theme or not.
  • If default theme is enabled, then which theme.
  • Admin decides whether group admins can choose their favourite theme or not.
  • etc

- then we'll have to write a module. But at the heart of everything, it'll be just the second query :-)

Perfect! Thank you so much!

scedwar - February 1, 2008 - 00:42

Perfect! Thank you so much! I'll leave any more than this to the og experts!

(Neat solutions like this makes me, even more so, want to get to know drupal better, especially the underlying db structures. )

nice solution

lsabug - February 12, 2008 - 13:45

thanks

subscribe...

headkit - May 15, 2008 - 13:12

subscribe...

 
 

Drupal is a registered trademark of Dries Buytaert.