m (Bot: Automated text replacement (-' +')) |
((<div class=\"codeheader\">(Code)?\: <a href=\"javascript\:void\(0\);\" onclick=\"return smfSelectText\(this\);\" class=\"codeoperation\">(\[Select\])?</a></div><code[\s\S]*?>[\s\S]*?)([\s\S]*?)</code) |
||
Line 9: | Line 9: | ||
You can call an image from your [[Theme]] by using: | You can call an image from your [[Theme]] by using: | ||
{{code|1= <img src="', $settings['images_url'], '/smflogo.gif" alt="" /> }} | |||
where {{code|1= ', $settings['images_url'], '}} points to your theme's images folder. | |||
where | |||
or by using: | or by using: | ||
{{code|1= <img src="', $settings['images_url'], '/', $context['user']['language'], | |||
'/userinfo.gif" alt="" />}} | |||
'/userinfo.gif" alt="" /> | Where {{code|1= ', $settings['images_url'], '/', $context['user']['language'], '}} points to your theme's images/english folder, if English is selected as user default language. This will give you the possibility of making another directory for a different language. So, you can have buttons for English and Dutch for example. | ||
Where | |||
'''Next:''' [[http://docs.simplemachines.org/index.php?topic=223|" class="bbc_link">This is confusing... I just want to change something simple!]] | '''Next:''' [[http://docs.simplemachines.org/index.php?topic=223|" class="bbc_link">This is confusing... I just want to change something simple!]] |
Revision as of 13:05, 30 March 2011
This article may have been copied from the the forum-based Online Manual and contain some HTML remnants that need to be cleaned up. Please clean it up. This template may be removed when cleanup is complete. |
To give your Theme a unique look, you may need to modify/add your own graphics to it. The easiest way to add/modify your own graphics is by copying the images folder from the Default theme to your new theme. Once done you can modify or add graphics to (in order of folders):
- bbc: bulletin boards buttons which are used mainly in Post screens.
- english: buttons used in forum's menu, Board index , message ..etc.
- icons: icons used in various part of the forum.
- post: icons used for posts.
- topic: topics indication images.
Also the main folder (images) contains various images used in many places in your forum, such as your Theme thumbnail, messenger indicators, stars, etc.
You can call an image from your Theme by using:
<img src="', $settings['images_url'], '/smflogo.gif" alt="" />
where
', $settings['images_url'], '
points to your theme's images folder.
or by using:
<img src="', $settings['images_url'], '/', $context['user']['language'], '/userinfo.gif" alt="" />
Where
', $settings['images_url'], '/', $context['user']['language'], '
points to your theme's images/english folder, if English is selected as user default language. This will give you the possibility of making another directory for a different language. So, you can have buttons for English and Dutch for example.
Next: [" class="bbc_link">This is confusing... I just want to change something simple!]