MyBB Community Forums

Full Version: 2 themes....2 group images..how?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I tried to add this to the group image path but it doesn't parse.

$theme['imgdir']/groupimages/english/example.gif

So how can I make it so that when members change their theme the images for groups will reflect that?

If it can't be done then will this be changed for future releases?
Shouldn't the imgdir already be set in the theme?
It's already in MyBB 1.4 but if you want to use it in 1.2.x you can make this modification in inc/functions_post.php

Find:
$usergroup['image'] = str_replace("{lang}", $language, $usergroup['image']);
After that, add:
$usergroup['image'] = str_replace("{theme}", $theme['imgdir'], $usergroup['image']);

Then use {theme} in the group image.