Vraag over de content beloning 0,1

Gestart doorRoeltjuh11 reacties59 weergaven

12 berichten · pagina 1 van 1

Roeltjuh

Lid · Topicstarter

Berichten
1.727
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hey, ik wil zeg maar gewoon een layout maken.
Maar ik heb zij vakjes, en heb veel paginas. Dus als ik in een zij vakje een plaatje zet. en dat moet een ander plaatje worden, moet ik dat bij alle paginas wijzigen.
Ik had eerst op mijn site een systeem waar je gewoon een kladblok bestandje in de content van index.php opent! dus dat als je index.php veranderd met afbeeldingen. dat hij gelijk al de andere paginas ook veranderd.
Beloning 0,1

Mvg Roelthumbsup
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Ik snap me god niet wat je bedoeld emo
0
Roeltjuh

Lid · Topicstarter

Berichten
1.727
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ja het is ook moeilijk uit te leggen. Als je een layout hebt met tekst in het midden en aan de zijkant plaatjes.
Dan kopieer je hem en maak zeg maar contact.php maar dan moet ik de hele index.php kopiëren enz. is er dan ook een systeem wat in de index.php de contact.php ofzo invoegt. dat alles het zelfde blijft.
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Je kan zegmaar 3 bestanden doen:

header.php

[pagina].php

footer.php

In de pagina doe je dan:

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #DD0000]header.php[/COLOR][COLOR= #007700];[/COLOR]
?>
INHOUD
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #DD0000]footer.php[/COLOR][COLOR= #007700];[/COLOR]
?>


In header.php alles wat voor de inhoud komt
En in footer alles na de inhoud

Snapte gij?
0
Roeltjuh

Lid · Topicstarter

Berichten
1.727
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Nielsie schreef:
Je kan zegmaar 3 bestanden doen:

header.php

[pagina].php

footer.php

In de pagina doe je dan:
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #DD0000]header.php[/COLOR][COLOR= #007700];[/COLOR]
?>
INHOUD
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #DD0000]footer.php[/COLOR][COLOR= #007700];[/COLOR]
?>


In header.php alles wat voor de inhoud komt
En in footer alles na de inhoud

Snapte gij?

Dat bedoel ik niet..
0
Berichten
15.446
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
je kan ook werken met index.php?p=pagina, je hoeft dan niet steeds de index te kopieren, bv je contact pagina wordt dan in de index pagina geladen.
0
Roeltjuh

Lid · Topicstarter

Berichten
1.727
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Marjolein schreef:
je kan ook werken met index.php?p=pagina, je hoeft dan niet steeds de index te kopieren, bv je contact pagina wordt dan in de index pagina geladen.
DIT ZOEK IK! kun je me de code geven? haha alvast bedankt!
0
Berichten
15.446
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR]
    [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]p[/COLOR][COLOR= #007700]]))
    {[/COLOR]
        
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/file_exists"]file_exists[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]pages/[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]p[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000].php[/COLOR][COLOR= #007700]))[/COLOR]
            [URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]pages/[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]p[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000].php[/COLOR][COLOR= #007700];[/COLOR]
        
        [URL="http://www.php.net/else"]else[/URL]
            [URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]pages/404.php[/COLOR][COLOR= #007700];
        
    }[/COLOR]
    
    [URL="http://www.php.net/else"]else[/URL]
        [URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]pages/home.php[/COLOR][COLOR= #007700];[/COLOR]
?>


alsjeblief smile
en dan een map maken die je pages noem en daar zet je al die paginas in.
0
Fass

Lid

Berichten
3.771
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR]
  [URL="http://www.php.net/switch"]switch[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]p[/COLOR][COLOR= #007700]]){
    case[/COLOR] [COLOR= #DD0000]contact[/COLOR][COLOR= #007700]:[/COLOR]
        [COLOR= #0000BB]$content[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/file_get_contents"]file_get_contents[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]contaxt.txt[/COLOR][COLOR= #007700]);[/COLOR]
        [URL="http://www.php.net/break"]break[/URL][COLOR= #007700];
    case[/COLOR] [COLOR= #DD0000]ietsanders[/COLOR][COLOR= #007700]:[/COLOR]
        [COLOR= #0000BB]$content[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/file_get_contents"]file_get_contents[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]ietsanders.txt[/COLOR][COLOR= #007700]);[/COLOR]
        [URL="http://www.php.net/break"]break[/URL][COLOR= #007700];
    default:[/COLOR]
        [COLOR= #0000BB]$content[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/file_get_contents"]file_get_contents[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]index.txt[/COLOR][COLOR= #007700]);[/COLOR]
        [URL="http://www.php.net/break"]break[/URL][COLOR= #007700];
  }[/COLOR]
?>


bedoel je zoiets?
0
Roeltjuh

Lid · Topicstarter

Berichten
1.727
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Marjolein schreef:
[COLOR= #0000BB]<?php[/COLOR]
    [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]p[/COLOR][COLOR= #007700]]))
    {[/COLOR]
        
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/file_exists"]file_exists[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]pages/[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]p[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000].php[/COLOR][COLOR= #007700]))[/COLOR]
            [URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]pages/[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]p[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000].php[/COLOR][COLOR= #007700];[/COLOR]
        
        [URL="http://www.php.net/else"]else[/URL]
            [URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]pages/404.php[/COLOR][COLOR= #007700];
        
    }[/COLOR]
    
    [URL="http://www.php.net/else"]else[/URL]
        [URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]pages/home.php[/COLOR][COLOR= #007700];[/COLOR]
?>


alsjeblief smile
moet ik dit in de content plaatsen van mijn "hoofd" tekst
0
Berichten
15.446
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
ja, en dan zet je op de pagina "home" de tekst die als 1e in je content moet komen als je index.php opent.
0
Roeltjuh

Lid · Topicstarter

Berichten
1.727
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Het werkt! bedankt je hebt je 0,1 gekregen.sint
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren