Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Topic started by: Justyne on March 21, 2004, 12:12:08 PM

Title: Template Thumbnail
Post by: Justyne on March 21, 2004, 12:12:08 PM
I have 6 wonderful templates on my board, but on the page where you can select which one to choose the thumbnail looks the same for each of them. In which file can I change the name of the file thumbnail.gif I am not finding it.

Thanks...
Title: Re: Template Thumbnail
Post by: Owdy on March 21, 2004, 12:15:57 PM
Just name your preview image to thumbnail.gif and put in your theme folder Themes/owntheme/images/thumbnail.gif
Title: Re: Template Thumbnail
Post by: Justyne on March 21, 2004, 12:22:56 PM
well... I tried that... but the problem with that is that I have the same images for all six themes... so I would not want to upload all the rest times 6.

I thought there must be a smarter way.
Title: Re: Template Thumbnail
Post by: Owdy on March 21, 2004, 12:25:08 PM
Not sure i understand... Same image to all? Why?

Title: Re: Template Thumbnail
Post by: Justyne on March 21, 2004, 12:30:34 PM
because it just is a colour variations (as in the category backgrounds and css colours alter and some things in the index.template)....  So they all share the default image directory as I thought it would not be necessary to upload all the same images 6 times.. I mean I easily could... but I was just looking for a more intellifent way of doing it.
Title: Re: Template Thumbnail
Post by: Owdy on March 21, 2004, 12:31:10 PM
I belive Sources/Themes.php is the file  u r looking for :)
This should be theme thing but seems that you have to hack sources.
Title: Re: Template Thumbnail
Post by: Justyne on March 21, 2004, 12:37:57 PM
hmm okay... I will try that... thank you

(http://www.julietta.net/avatars/default.gif)(http://www.julietta.net/avatars/fantalk.gif)
(http://www.julietta.net/avatars/gryff.gif)(http://www.julietta.net/avatars/raven.gif)
(http://www.julietta.net/avatars/huff.gif)(http://www.julietta.net/avatars/slyth.gif)

see they are not that different at all... would be such a waste of webspace
Title: Re: Template Thumbnail
Post by: Owdy on March 21, 2004, 12:41:15 PM
there are theme way also, i just find that:


Themes.template find <td rowspan="2" width="126" height="120"><img src="', $theme['thumbnail_href'], '" alt="" /></td>
Title: Re: Template Thumbnail
Post by: Justyne on March 21, 2004, 12:51:32 PM
oooh that is gorgeous... thank you sooo much. That is a lot easier than fiddling with the php
Title: Re: Template Thumbnail
Post by: Owdy on March 21, 2004, 12:53:14 PM
Your welcome ;D
Title: Re: Template Thumbnail
Post by: Justyne on March 21, 2004, 01:13:58 PM
<img src="', $theme['thumbnail_href'], '" alt="" />

okay.... I tried several things but apparantly I am not smart enough to alter it to something that works.

I thought it would be the easieast to get the theme_id and make it call filenames like thumbnail_1 for theme 1, thumbnail_2 for theme 2 and so on... however I do not know how to get it done.

If any of you is terribly bored please enlight me
Title: Re: Template Thumbnail
Post by: Owdy on March 21, 2004, 01:17:43 PM
Why u aint do just something like this

<td rowspan="2" width="126" height="120"><img src="http://yourdomain.com/thumb.gif" alt="" /></td>

?
Title: Re: Template Thumbnail
Post by: Justyne on March 21, 2004, 01:18:45 PM
because all themes have the same thumbnail then, right?
Title: Re: Template Thumbnail
Post by: Owdy on March 21, 2004, 01:19:39 PM
Isnt that what you wanted??
Quote from: Justyne on March 21, 2004, 12:22:56 PM
I have the same images for all six themes

If that isnt the case, then http://www.simplemachines.org/community/index.php?topic=7922.msg75478#msg75478 :)

Or i really dont know what you want :P
Title: Re: Template Thumbnail
Post by: Acf on March 21, 2004, 01:21:10 PM
Quote from: Justyne on March 21, 2004, 12:37:57 PM
hmm okay... I will try that... thank you

(http://www.julietta.net/avatars/default.gif)(http://www.julietta.net/avatars/fantalk.gif)
(http://www.julietta.net/avatars/gryff.gif)(http://www.julietta.net/avatars/raven.gif)
(http://www.julietta.net/avatars/huff.gif)(http://www.julietta.net/avatars/slyth.gif)

see they are not that different at all... would be such a waste of webspace

looking good :)
Title: Re: Template Thumbnail
Post by: Justyne on March 21, 2004, 01:22:34 PM
ooh dear... (my english must be appaling today if I can create such a big misunderstanding)

How do I rephrase this more clearly.

There are 6 themes with the same images directory. Of course I do want different thumbnails for each theme. I tried to find a smarter way of doing that then uploading the whole images directory another 5 times.

If I had wanted 6 themes with the same icon... well I have that at the moment, so why would I post at all...
Title: Re: Template Thumbnail
Post by: David on March 21, 2004, 01:32:43 PM
I think you can control this in the xml file for the theme.  Not positive though and I know a guide is being written to making themes.
Title: Re: Template Thumbnail
Post by: Justyne on March 21, 2004, 03:18:30 PM
I figured it out... well this is a lie... [unknown] did. The URL can be modified in languages/settings.english.php

thanks a lot to everyone trying to help ;)