Wat ik in mijn hoofd heb is onder andere de Random Logo "modificatie"
maar ik wil daarbij graag hebben dat ieder logo dat kan komen een link naar een bepaalde pagina heeft
Mijn forum gaat over de martial arts, en ik zou dan graag willen dat als er een Logo van de ene MA te zien is, dat logo dan een link is naar een pagina met informatie over die ene MA, en dat dan ook bij de andere.
is dit mogelijk?
Random logo + links
Forumregels
LEES: Richtlijnen voor Support. Vul de support template in!
Verschaf iemand geen servertoegang tenzij het niet anders kan. Maak altijd eerst een volledige backup en verander de inloggevens na afloop. Eigen risico.
LEES: Richtlijnen voor Support. Vul de support template in!

-
- Berichten: 136
- Lid geworden op: 12 jun 2010, 18:46
Re: Random logo + links
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:
Replace {SITE_LOGO_IMG} with this:
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
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:
Code: Selecteer alles
'T_STYLESHEET_NAME' => $user->theme['theme_name'],
Code: Selecteer alles
'SITE_LOGO_RANDOM' => mt_rand(1, NUMBER-OF-IMAGES),
Code: Selecteer alles
'SITE_LOGO_RANDOM' => mt_rand(1, 4),
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>
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>
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
Re: Random logo + links
mijn vraag is niet hoe ik iedere afbeelding naar dezelfde pagina moet linken, maar hoe ik iedere afbeelding naar een andere pagina kan linken
*afbeelding 1* moet dus linken naar *pagina 1*
*afbeelding 2* moet linken naar *pagina 2*
etc.
volgens mij is wat jij in je post beschreef een mannier om alles naar dezelfde pagina te laten linken
*afbeelding 1* moet dus linken naar *pagina 1*
*afbeelding 2* moet linken naar *pagina 2*
etc.
volgens mij is wat jij in je post beschreef een mannier om alles naar dezelfde pagina te laten linken
-
- Berichten: 136
- Lid geworden op: 12 jun 2010, 18:46
Re: Random logo + links
oke je hebt gelijk, misschien met een array gekoppeld aan de foto's .
dus site-logo-1.png gekoppeld aan http://www1
site-logo-2.png gekoppeld aan http://www2
etc.etc.
maar dan moet je idd de links koppelen aan de foto, en weet even niet hoe dat precies gaat.
maar ik bergijp wat je bedoeld.
idd iets in de zin van :
if foto 1 then link 1.
Maar hoe dat gaat..sorry dat moet ik je verschuldigd blijven...
dus site-logo-1.png gekoppeld aan http://www1
site-logo-2.png gekoppeld aan http://www2
etc.etc.
Code: Selecteer alles
<a href={link} TARGET="_blanc"><img src="{T_IMAGESET_PATH}/site-logo-{SITE_LOGO_RANDOM}.EXTENSION" alt="Logo" title="Logo" /></a>
maar ik bergijp wat je bedoeld.
idd iets in de zin van :
if foto 1 then link 1.
Maar hoe dat gaat..sorry dat moet ik je verschuldigd blijven...