op deze manier:
Hello.
One common request I often see is how to add a random header image or otherwise known as a site logo. A random site logo is a fast and easy way to make your board stand out. An easy way to have multiple site logos is to maybe add a saying underneath your image. For example, you could add something like "We're glad you are here!" or "The friendliest board on the web!"
Step 1
Gather your images together and rename them in this format: site-logo-NUMBER-HERE.extension Replace NUMBER-HERE with a number starting with 1 and of course use the appropriate extension like JPG, PNG, or GIF (note: it's not recommended to use BMP images as they are not universally supported). (You will need to save all images in the same format like PNG.) So you should now have several images ready to be uploaded like site-logo-1.png, site-logo-2.png, site-logo-3.png, site-logo-X.png ....
Step 2
With your favourite text editor, open includes/functions.php and find this line:
After that line add this code:
Replace NUMBER-OF-IMAGES with the total site logo images you have -- if you have 4 images then use this code:
Step 3
Again, with your text editor open, open styles/your style name here/template/overall_header.html and find this line:
Code: Selecteer alles
<a href="{U_INDEX}" title="{L_INDEX}" id="logo">{SITE_LOGO_IMG}</a>
Replace {SITE_LOGO_IMG} with this:
Code: Selecteer alles
<a href="http://www.website.nl" TARGET="_blanc"><img src="{T_IMAGESET_PATH}/site-logo-{SITE_LOGO_RANDOM}.EXTENSION" alt="Logo" title="Logo" /></a>
Replace EXTENSION with your image's extension.
Step 4
Upload the changed files to your server and upload your images to the styles/your style name here/imageset directory. If you don't see your new logos after refreshing the page in your browser several times, then you may need to refresh your board's cache, so go to your ACP -> Styles -> Templates -> Refresh. If you still can't see the new images, clear your browser's cache as well and restart it.
As always, practice safe MODding by making a backup of ALL files before you edit them!
Enjoy! Knowledge Base
Knowledge Base
Support Sections
Documentation
Support FAQ
Flash Tutorials
Support Forums
IRC Support
International Support