Hinweise zum schreiben eines Beitrags

  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>

    Diese Website erlaubt HTML-Inhalte. Obwohl das Erlernen aller HTML-Befehle abschreckend erscheint, ist es sehr einfach, nur eine kleine Anzahl der grundlegendsten HTML-„Tags“ zu lernen. Diese Tabelle enthält Beispiele für jedes Tag, das auf dieser Website erlaubt ist.

    Weitere Informationen zu HTML sind in SelfHTML erhältlich oder können mit Suchmaschinen im Internet auch an anderer Stelle gefunden werden.

    Tag-BeschreibungEingegebenErgebnis
    Anker werden benutzt um Links zu anderen Seiten zu erstellen.<a href="http://joomla.cocoate.com">Joomla! 1.5 Tutorial - Hagen Graf</a>Joomla! 1.5 Tutorial - Hagen Graf
    Hervorgehoben<em>Hervorgehoben</em>Hervorgehoben
    Fett<strong>Fett</strong>Fett
    Zitat<cite>Zitat</cite>Zitat
    Kodierter Text um Quelltexte anzuzeigen<code>Code</code>Code
    Ungeordnete Liste – Mit <li> wird jedes Listenelement begonnen<ul> <li>Erstes Element</li> <li>Zweites Element</li> </ul>
    • Erstes Element
    • Zweites Element
    Geordnete Liste – Mit <li> wird jedes Listenelement begonnen<ol> <li>Erstes Element</li> <li>Zweites Element</li> </ol>
    1. Erstes Element
    2. Zweites Element
    Definitionslisten sind ähnlich zu anderen HTML-Listen. <dl> leitet die Definitionsliste ein, <dt> enthält den zu definierenden Begriff und <dd> enthält die Definitionsbeschreibung.<dl> <dt>Erste Bedingung</dt> <dd>Erste Definition</dd> <dt>Zweiter Begriff</dt> <dd>Zweite Definition</dd> </dl>
    Erste Bedingung
    Erste Definition
    Zweiter Begriff
    Zweite Definition

    Die meisten Sonderzeichen können problemlos direkt eingegeben werden.

    Falls Probleme auftreten, sollten HTML-Entitäten verwendet werden. Ein Beispiel ist &amp; für ein kaufmännisches &. Eine vollständige Liste stellt SelfHTML bereit. Einige Zeichen sind:

    ZeichenbeschreibungEingegebenErgebnis
    Kaufmännisches Und&amp;&
    Mehr als&gt;>
    Weniger als&lt;<
    Anführungszeichen&quot;"
  • Zeilenumbrüche und Absätze werden automatisch erkannt. Die Tags für Zeilenumbrüche (<br />) und Absätze (<p></p>) werden automatisch eingefügt. Wenn Absätze nicht erkannt werden, sollten noch einige Leerzeilen eingefügt werden.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Using custom PHP code

    Custom PHP code may be embedded in some types of site content, including posts and blocks. While embedding PHP code inside a post or block is a powerful and flexible feature when used by a trusted user with PHP experience, it is a significant and dangerous security risk when used improperly. Even a small mistake when posting PHP code may accidentally compromise your site.

    If you are unfamiliar with PHP, SQL, or Drupal, avoid using custom PHP code within posts. Experimenting with PHP may corrupt your database, render your site inoperable, or significantly compromise security.

    Notes:

    • Remember to double-check each line for syntax and logic errors before saving.
    • Statements must be correctly terminated with semicolons.
    • Global variables used within your PHP code retain their values after your script executes.
    • register_globals is turned off. If you need to use forms, understand and use the functions in the Drupal Form API.
    • Use a print or return statement in your code to output content.
    • Develop and test your PHP code using a separate test script and sample database before deploying on a production site.
    • Consider including your custom PHP code within a site-specific module or template.php file rather than embedding it directly into a post or block.
    • Be aware that the ability to embed PHP code within content is provided by the PHP Filter module. If this module is disabled or deleted, then blocks and posts with embedded PHP may display, rather than execute, the PHP code.

    A basic example: Creating a "Welcome" block that greets visitors with a simple message.

    • Add a custom block to your site, named "Welcome". With its input format set to "PHP code" (or another format supporting PHP input), add the following in the Block body:

      print t('Welcome visitor! Thank you for visiting.');
      
    • To display the name of a registered user, use this instead:

      global $user;
      if ($user->uid) {
        print t('Welcome @name! Thank you for visiting.', array('@name' => $user->name));
      }
      else {
        print t('Welcome visitor! Thank you for visiting.');
      }
      

    Drupal.org offers some example PHP snippets, or you can create your own with some PHP experience and knowledge of the Drupal system.

  • If you include a textual smiley in your post (see chart below), it will be replaced by a graphical smiley.
    Smileys
    SmileyAcronyms
    :):) :-) :smile:
    ;);) ;-) :wink:
    :(:( :-( :sad:
    :D:D :-D :lol:
    }:)}:) }:-) :evil:
    :P:P :-P :tongue:
    :O:O :-O :shocked:
    :?:? :-? :puzzled:
    8)8) 8-) :cool:
    :jawdrop::jawdrop:
    :sick::sick: :barf: