you are here:
Add new theme to database
 
sebduggan Avatar

10 Responses

03/29/2010 2:58 AM

Offline

I'm creating a new theme by duplicating and modifying one of the existing ones.

I may be missing somethin obvious, but how do I register my custom theme into the mf_theme table in the database?

 
Grant (Meld Team) Avatar

59 Responses

03/29/2010 8:56 AM

Offline

I may be missing somethin obvious, but how do I register my custom theme into the mf_theme table in the database?

This is something being added as we speak (theme management ... including a 'table'-based theme), but currently this requires a manual addition to the mf_theme table. The crucial bits are:

  • themeID: unique UUID
  • name: the name that will appear in the dropdown
  • packageName: the name of the directory you created in 'includes/themes'
  • avatarWidth/avatarHeight/avatarProfileWidth/avatarProfileHeight: Meld Forums can automatically cut your avatars to a size that suits your theme. Just specify the final height/width for the threads (first set) and profile page (second set) (avatarDimensionType isn't currently used). You also have further settings in you Meld Forums Settings.
  • directory: same as packageName
  • defaultAvatar: you can add a custom default avatar by placing the image in the '/includes/themes/[your theme]/images' directory, then placing the image name in this column. You can also do this globally by placing the image in '/default/images/' directory instead.
  • currently 0
  • informational only. For tables, the standard would be 'CSS/Table'.

Hope that helps.

sebduggan Avatar

10 Responses

03/29/2010 9:05 AM

Offline

Thanks! I'd already done just what you suggest - I just wondered if I'd missed something somewhere!

Avatar

4 Responses

08/31/2010 9:16 PM

Offline

Hi,

I have followed these instructions and the forum is coming through but for some reason the .css files are not coming through in the "\mura\plugins\meldforums_16\includes\themes\tass_forum\templates\layout\includes\headPlugin.cfm" file. It appears that the #pluginConfig.getDirectory()# is returning an empty string instead of "meldforums_16".

I have tried reloading the application, ColdFusion restarts, clearing the cache etc. but for some reason in this new directory it is missing. The directory path is correct when I dump it out in the other 2 themes. Is there a setting or a re-initialisation that I'm missing?

Thank you

Grant (Meld Team) Avatar

59 Responses

09/01/2010 9:34 AM

Offline

PluginConfig certainly should be returning the directory ... that's just base Mura code.

What cfc/cfm is this issue appearing in?

Avatar

4 Responses

09/01/2010 6:22 PM

Offline

Hi Grant,

Yes the PluginConfig returns the directory in all other places, and other themes but not in my new theme which is just a copy of Bendi.

The "\mura\plugins\meldforums_16\includes\themes\tass_forum\templates\layout\includes\headPlugin.cfm" file is not seeing the "pluginConfig.getDirectory()" where it is trying to read the 2 css files and 1 js file.

Powered by Meld Forums