Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: [MiNX]Tek - helmikuu 17, 2005, 11:52:45 IP

Otsikko: Them image sharing
Kirjoitti: [MiNX]Tek - helmikuu 17, 2005, 11:52:45 IP
I made about ::counts:: 7 different themes for my forum. There all the same, except the colors are different. They all refrence the same folder of images (that way I don't haev 7 copies of the same files). Problem is, since this is the way it is, when you choose a theme, they all have the same thumbnail (same example of what the theme looks like). Is there a way to (editing the index or index.template files) to change JUST the thumbnail of each them?
Otsikko: Re: Them image sharing
Kirjoitti: [Unknown] - helmikuu 17, 2005, 11:54:48 IP
Change the image URL in Settings.language.php.  It simply gets the thumbnail from there, so you could use thumbnail1.gif, etc. for each theme.

-[Unknown]
Otsikko: Re: Them image sharing
Kirjoitti: [MiNX]Tek - helmikuu 17, 2005, 11:57:39 IP
But that's my problem. I want each theme so use a seperate thumbnail, even though (in the them settings) they are all refrenceing the same folder of images. In settings.languate.php, can I set each them to have a different thumbnail in the same folder?
Otsikko: Re: Them image sharing
Kirjoitti: [Unknown] - helmikuu 18, 2005, 01:56:09 AP
Lainaus käyttäjältä: [MiNX]Tek - helmikuu 17, 2005, 11:57:39 IP
But that's my problem. I want each theme so use a seperate thumbnail, even though (in the them settings) they are all refrenceing the same folder of images. In settings.languate.php, can I set each them to have a different thumbnail in the same folder?

Yes, that's what I thought I said.  Just create a languages/Settings.english.php in each theme's directory (this is outside the images directory, in the same place the templates and style.css are.)  You can get a good template from Themes/default/langauges/Settings.english.php.

Then, each theme should use a different "thumbnail.gif".  For example, as I said, the first theme might use "thumbnail1.gif".

SMF will check the settings in this file, and automatically use the corresponding thumbnail.

-[Unknown]