Beiträge von WebExpert

    war zu fauel etwa eigenes zu entwickeln und habe das gefunden ...

    [COLOR=#000000]<?php[/COLOR] [COLOR=#b1b100]if[/COLOR] [COLOR=#009900]([/COLOR]have_posts[COLOR=#009900]([/COLOR][COLOR=#009900])[/COLOR][COLOR=#009900])[/COLOR][COLOR=#339933]:[/COLOR] [COLOR=#000000]?>[/COLOR]
    [COLOR=#000000]<?php[/COLOR] [COLOR=#b1b100]while[/COLOR] [COLOR=#009900]([/COLOR]have_posts[COLOR=#009900]([/COLOR][COLOR=#009900])[/COLOR][COLOR=#009900])[/COLOR] [COLOR=#339933]:[/COLOR] the_post[COLOR=#009900]([/COLOR][COLOR=#009900])[/COLOR][COLOR=#339933];[/COLOR] [COLOR=#000000]?>[/COLOR];

    <!-- Hier kommt der Inhalt hin -->
    <!-- Den Inhalt der Felder speichern wir in Variablen -->

    [COLOR=#000000]<?php[/COLOR] [COLOR=#000088]$ordner[/COLOR] [COLOR=#339933]=[/COLOR] get_post_meta[COLOR=#009900]([/COLOR][COLOR=#339933]&[/COLOR]post[COLOR=#339933]->[/COLOR][COLOR=#004000]ID[/COLOR][COLOR=#339933],[/COLOR] [COLOR=#0000ff]'ordner'[/COLOR][COLOR=#339933],[/COLOR] [COLOR=#009900]true[/COLOR][COLOR=#009900])[/COLOR][COLOR=#339933];[/COLOR] [COLOR=#000000]?>[/COLOR]
    [COLOR=#000000]<?php[/COLOR] [COLOR=#000088]$img01[/COLOR] [COLOR=#339933]=[/COLOR] get_post_meta[COLOR=#009900]([/COLOR][COLOR=#339933]&[/COLOR]post[COLOR=#339933]->[/COLOR][COLOR=#004000]ID[/COLOR][COLOR=#339933],[/COLOR] [COLOR=#0000ff]'img01'[/COLOR][COLOR=#339933],[/COLOR] [COLOR=#009900]true[/COLOR][COLOR=#009900])[/COLOR][COLOR=#339933];[/COLOR] [COLOR=#000000]?>[/COLOR]

    <!-- $ordner und $img01 sind die Variablennamen in diesen der Inhalt
    gespeichert wird. das 'ordner' und 'img01' sind die Custom Field Namen
    die wir später im Beitrag mit Inhalt füllen werden im nächsten Schritt
    Fragen wir ab ob der Inhalt des NICHT Leer ist und wenn das der Fall ist
    dann soll er etwas ausgeben -->;

    [COLOR=#000000]<?php[/COLOR] [COLOR=#b1b100]if[/COLOR][COLOR=#009900]([/COLOR][COLOR=#000088]$img01[/COLOR] [COLOR=#339933]!==[/COLOR] [COLOR=#0000ff]''[/COLOR][COLOR=#009900])[/COLOR] [COLOR=#009900]{[/COLOR] [COLOR=#000000]?>[/COLOR]
    <p class="bild"><img src)"[COLOR=#000000]<?php[/COLOR] bloginfo[COLOR=#009900]([/COLOR][COLOR=#0000ff]'home'[/COLOR][COLOR=#009900])[/COLOR][COLOR=#339933];[/COLOR] [COLOR=#000000]?>[/COLOR]/
    wp-content/uploads/portfolio/[COLOR=#000000]<?php[/COLOR] [COLOR=#000088]$ordner[/COLOR][COLOR=#339933];[/COLOR] [COLOR=#000000]?>[/COLOR]/[COLOR=#000000]<?php[/COLOR] [COLOR=#b1b100]echo[/COLOR] [COLOR=#000088]$img01[/COLOR][COLOR=#339933];[/COLOR] [COLOR=#000000]?>[/COLOR].jpg"
    alt="[COLOR=#000000]<?php[/COLOR] the_title[COLOR=#009900]([/COLOR][COLOR=#009900])[/COLOR][COLOR=#339933];[/COLOR] [COLOR=#000000]?>[/COLOR]" /></p>
    [COLOR=#000000]<?php[/COLOR] [COLOR=#009900]}[/COLOR] [COLOR=#000000]?>[/COLOR]

    <!-- Jetzt wird, falls das Custom Field "img01" ausgefüllt ist,
    ein Bild angezeigt. Das Custom Field "ordner" sollte natürlich
    auch richtig ausgefüllt sein damit der Pfad zum Bild später stimmt.
    Jetzt muss nur noch der Loop geschlossen werden und das ganze ist fertig.
    Natürlich kann man das ganze noch mit anderen Sachen ergänzen
    aber da soll hier nicht näher drauf eingegangen werden. -->;

    [COLOR=#000000]<?php[/COLOR] [COLOR=#b1b100]endwhile[/COLOR][COLOR=#339933];[/COLOR] [COLOR=#b1b100]else[/COLOR][COLOR=#339933]:[/COLOR] [COLOR=#000000]?>[/COLOR]
    <p>Falls keine Artikel vorhanden...</p>
    [COLOR=#000000]<?php[/COLOR] [COLOR=#b1b100]endif[/COLOR][COLOR=#339933];[/COLOR] [COLOR=#000000]?>[/COLOR]

    Kostenrechnung

    Hi, das kannst du dir eigentlich selber ausrechnen. Du musst nur den Preis für den Server nehmen und die Kosten für das Webhosting deiner ganzen Websites zusammenrechnen und gegenrechnen. Da spielt natürlich auch noch der zeitaufwand für die Wartung des Servers eine Rolle. Du müsst ja selbst Sicherheitsupdates einspielen und das kostet Zeit aber auch das kannst du ja mit einrechen ca. 2 Stunden im Monat benötige ich dafür.
    Aus meiner Erfahrung benötigt man schon 15 Websites damit sich ein eigener Server rentabel ist.