News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Template Thumbnail

Started by Justyne, March 21, 2004, 12:12:08 PM

Previous topic - Next topic

Justyne

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...
Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better.

Owdy

#1
Just name your preview image to thumbnail.gif and put in your theme folder Themes/owntheme/images/thumbnail.gif
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Justyne

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.
Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better.

Owdy

#3
Not sure i understand... Same image to all? Why?

Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Justyne

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.
Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better.

Owdy

#5
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.
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Justyne

hmm okay... I will try that... thank you





see they are not that different at all... would be such a waste of webspace
Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better.

Owdy

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>
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Justyne

oooh that is gorgeous... thank you sooo much. That is a lot easier than fiddling with the php
Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better.

Owdy

Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Justyne

<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
Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better.

Owdy

Why u aint do just something like this

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

?
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Justyne

because all themes have the same thumbnail then, right?
Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better.

Owdy

#13
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
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Acf

Quote from: Justyne on March 21, 2004, 12:37:57 PM
hmm okay... I will try that... thank you





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

looking good :)
Sigh...

Justyne

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...
Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better.

David

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.
This space for rent.

Justyne

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 ;)
Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better.

Advertisement: