I created a theme using Artisteer for drupal, everything looks great, but whenever a user wants to create a new forum topic they are sent to my admin theme to add content via the www.mysite.com/node/add/forum/0 path.

I have checked the www.mysite.com/node path and that uses my artisteer theme, but as soon as it goes to /node/add it reverts to admin theme (in my case it is the bluemarine). Any idea what is going on? How can I change the theme for "create new forum topics" so that it matches my main pages?

Also, please note that I don't want to change my admin theme overall. I like to keep my admin pages and the content pages separately themed. I just want the new forum topic submission form to be the same theme as the main website. Please help!

Comments

DragoonBoots’s picture

Go to Site configuration->Administration Theme and uncheck the box that says "Use administration theme for content editing".

epg’s picture

Thanks, discovered that yesterday.

andymilk’s picture

Is there a way to use a custom theme ONLY on new forum topics?

Otherwise, all the content editing on the site won't be in Admin theme, which is problematic for the way my site is configured.

andymilk’s picture

Any ideas on this?

poshaughnessy’s picture

+1 for this.

I have the same problem. All the content on the site is edited only by administrators, except forum topics which can be created by general site users. So I want to show the site theme when editing forum topics, not the admin theme.

I will investigate and write another post if I figure out a good method!

jix_’s picture

The themekey module is what you need. With this you can switch themes based on a path or other conditions.

meerkat’s picture

I've just started working on my first forum, found the Advanced Forum module (great!), tried creating a new post and found myself back in Garland (damn!).

I don't want to uncheck the 'Use administration theme for content editing' as the site administrators are comfortable working in the admin theme. ThemeKey won't work because the settings in Admin Theme take precedence.

I found the solution in an older thread http://drupal.org/node/242200

Adding the following to my site's custom module gave me the result I wanted:

function mysitename_init() {
   if (arg(0) == 'node' && arg(2) == 'forum' && (arg(1) == 'add' || arg(1) == 'edit')) {
      global $custom_theme;
      $custom_theme = variable_get('theme_default', '0');
  }
}

Seems to do the job, but if there's a better way (or drawbacks with this one) I'd be pleased to hear it.

Drupal 6.14, Advanced Forum 6.x-1.1

awakash’s picture

Thanks for posting this Meerkat. I had minor difficulty with the function name for this to work - I replaced this line:

function mysitename_init() {

with the following:

function nameofmycustommodule_init() {

Hope this helps!

Govardhan’s picture

hi..
i am new to drupal...
i do have same problem of redirection.
i tried creating sitename.module file in sites/all/themes/
but it is not working..