Skip to main content
Topic: Needed files for custom themes (Read 2716 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Needed files for custom themes

As you maybe know I use a modified default theme (light variant) with some CSS changes and some changed graphics. I tried to keep my themes as small as possible so I tried to delete all unneccessary folders and files. Elk should use the default theme files instead.

But there are some problems. CSS is cool, but if I delete the images folder of my theme, a lot of images are not shown. For example the small images before the titles in the info center or the standard avatar.

Is there a way you can fix this in a future update so all I need to keep in my theme folder are my changed files?

Re: Needed files for custom themes

Reply #1

That may (or may not) be what a variant is.
Did you change any php file of your theme?
Bugs creator.
Features destroyer.
Template killer.

Re: Needed files for custom themes

Reply #2

I made a copy of the default theme (so my users can choose between them) and then made a custom css file for it. I thought I could delete all not needed files and Elk uses the default file then, including images?

I will edit a template file so the recent topics move out from the info center to the top of my board, yes. Not yet made, but will be soon (I hope).

Re: Needed files for custom themes

Reply #3

hmm... it should actually be possible (it's an option I always forget), but you need to keep index.template.php and add:
Code: [Select]
'use_default_images' => 'always',
at the first function, let's say before or after:
Code: [Select]
		'avatars_on_indexes' => true,

Quote from: Jorin – I will edit a template file so the recent topics move out from the info center to the top of my board, yes. Not yet made, but will be soon (I hope).
 emanuele waits for the questions. :P
Yep, it's not just a copy&paste of the lines of code. ;)
Bugs creator.
Features destroyer.
Template killer.

Re: Needed files for custom themes

Reply #4

You offer support. Not my fault.  :P

I'll try before I ask for help. But yep, I don't know much about coding. Questions will be asked.

About the images: So Elk will use always the default images? Also when there are images in my theme folder? Args...  :o

Re: Needed files for custom themes

Reply #5

Actually, that setting will work only on some images, not all of them: all the images loaded via css, are not affected by that setting, you'd have to change the css replacing the paths of all the images you want to be picked from the default theme, but honestly is not worth IMO.

Instead, check each and every image to decide if the one to pick if the one from the custom theme or the one from the default would be quite expensive (file_exists on each and every image would be a pain) and (again) not really worth IMO.

Anyway, maybe @TE has a better idea. O:-)
Bugs creator.
Features destroyer.
Template killer.

Re: Needed files for custom themes

Reply #6

Seems not.  :D

Re: Needed files for custom themes

Reply #7

Sorry, Cent help these days.  RL issues: my job is project based and  the main project isn't finished...
Thorsten "TE" Eurich
------------------------