Verzeichnisstruktur phpBB-1.0.0


Veröffentlicht
15.12.2000

So funktioniert es


Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück

Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis.
Auf den Verzeichnisnamen klicken, dies zeigt nur das Verzeichnis mit Inhalt an

(Beispiel Datei-Icons)

Auf das Icon klicken um den Quellcode anzuzeigen

bbcode_ref.php

Zuletzt modifiziert: 09.10.2024, 12:50 - Dateigröße: 8.91 KiB


001  <?php
002  /***************************************************************************
003                              bbcode_ref.php  -  description
004                               -------------------
005      begin                : Sat June 17 2000
006      copyright            : (C) 2000 by James Atkinson
007      email                : james@totalgeek.org
008   
009      $Id: bbcode_ref.php,v 1.8 2000/11/15 04:57:15 thefinn Exp $
010   
011   ***************************************************************************/
012   
013  /***************************************************************************
014   *                                                                                         
015   *   This program is free software; you can redistribute it and/or modify      
016   *   it under the terms of the GNU General Public License as published by  
017   *   the Free Software Foundation; either version 2 of the License, or            
018   *   (at your option) any later version.
019   *
020   ***************************************************************************/
021  include('extention.inc');
022  include('functions.'.$phpEx);
023  include('config.'.$phpEx);
024  require('auth.'.$phpEx);
025  $pagetitle = "BBCode Referance";
026  $pagetype = "bbcode_ref";
027  include('page_header.'.$phpEx);
028   
029  ?>
030   
031  <p><br>
032  <FONT SIZE="2" FACE="Verdana, Arial">
033  <CENTER>W H A T &nbsp;&nbsp;&nbsp;&nbsp; I S &nbsp;&nbsp;&nbsp;&nbsp; B B C O D E ?
034  </CENTER>
035  <P>
036  BBCode is a variation on the HTML tags you may already be familiar with.  Basically, it allows you to add functionality or style to your message that would normally require HTML.  You can use BBCode even if HTML is not enabled for the forum you are using.  You may want to use BBCode as opposed to HTML, even if HTML is enabled for your forum, because there is less coding required and it is safer to use (incorrect coding syntax will not lead to as many problems).
037  <P>
038  <B>Current BBCodes:</B>
039  <P>
040   
041  <table border=0 cellpadding=0 cellspacing=0 width="<?php echo $tablewidth?>" align="CENTER"><TR><td bgcolor="#FFFFFF">
042  <table border=0 cellpadding=4 border=0 cellspacing=1 width=100%>
043  <TR bgcolor="<?php echo $color1?>">
044  <TD>
045  <FONT SIZE="2" FACE="Verdana, Arial">
046  URL Hyperlinking</FONT></td></tr>
047  <TR bgcolor="<?php echo $color2?>"><TD><FONT SIZE="2" FACE="Verdana, Arial">
048  NEW! If BBCode is enabled in a forum, you no longer need to use the [URL] code to create a hyperlink.  Simply type the complete URL in either of the following manners and the hyperlink will be created automatically:
049  <UL><FONT SIZE="2" FACE="Verdana, Arial" color="silver">
050  <LI> http://www.yourURL.com
051  <LI> www.yourURL.com
052  </font>
053   
054  Notice that you can either use the complete http:// address or shorten it to the www domain.  If the site does not begin with "www", you must use the complete "http://" address.  Also, you may use https and ftp URL prefixes in auto-link mode (when BBCode is ON).
055  <P>
056  The old [URL] code will still work, as detailed below.
057   
058  Just encase the link as shown in the following example (BBCode is in <FONT COLOR="#FF0000">red</FONT>).
059  <P><center>
060  <FONT COLOR="#FF0000">[url]</FONT>www.totalgeek.org<FONT COLOR="#FF0000">[/url]</FONT>
061  <P></center>
062  NEW! You can now have true hyperlinks using the [url] code.  Just use the following format:
063  <BR><center>
064  <FONT COLOR="#FF0000">[url=http://www.totalgeek.org]</font>totalgeek.org<FONT COLOR="#FF0000">[/url]</font>
065  </center><p>
066  In the examples above, the BBCode automatically generates a hyperlink to the URL that is encased.  It will also ensure that the link is opened in a new window when the user clicks on it. Note that the "http://" part of the URL is completely optional. In the second example above, the URL will hypelink the text to whatever URL you provide after the equal sign.  Also note that you should NOT use quotation marks inside the URL tag.
067  </font>
068  </td>
069  <tr bgcolor="<?php echo $color1?>"><td>
070  <FONT SIZE="2" FACE="Verdana, Arial">
071  Email Links</FONT></td></tr>
072  <TR bgcolor="<?php echo $color2?>"><TD>
073  <FONT SIZE="2" FACE="Verdana, Arial">
074  To add a hyperlinked email address within your message, just encase the email address as shown in the following example (BBCode is in <FONT COLOR="#FF0000">red</FONT>).
075  <P>
076  <CENTER>
077  <FONT COLOR="#FF0000">[email]</FONT>james@totalgeek.org<FONT COLOR="#FF0000">[/email]</FONT>
078  </CENTER>
079  <P>
080  In the example above, the BBCode automatically generates a hyperlink to the email address that is encased.  
081  </FONT>
082  </td></tr>
083  <tr bgcolor="<?php echo $color1?>"><td>
084  <FONT SIZE="2" FACE="Verdana, Arial">
085  Bold and Italics</FONT></td></tr>
086  <TR bgcolor="<?php echo $color2?>"><TD>
087  <FONT SIZE="2" FACE="Verdana, Arial">
088  You can make italicized text or make text bold by encasing the applicable sections of your text with either the [b] [/b] or [i] [/i] tags. 
089  <P>
090  <CENTER>
091  Hello, <FONT COLOR="#FF0000">[b]</FONT><B>James</B><FONT COLOR="#FF0000">[/b]</FONT><BR>
092  Hello, <FONT COLOR="#FF0000">[i]</FONT><I>Mary</I><FONT COLOR="#FF0000">[/i]</FONT>
093  </CENTER>
094  </FONT>
095  </td></tr>
096  <tr bgcolor="<?php echo $color1?>"><td>
097  <FONT SIZE="2" FACE="Verdana, Arial">
098  Bullets/Lists</FONT></td></tr>
099  <TR bgcolor="<?php echo $color2?>"><TD>
100  <FONT SIZE="2" FACE="Verdana, Arial">
101  You can make bulleted lists or ordered lists (by number or letter).
102  <P>
103  Unordered, bulleted list:
104  <P>
105  <FONT COLOR="#FF0000">[list]</FONT>
106  <BR>
107  <FONT COLOR="#FF0000">[*]</font> This is the first bulleted item.<BR>
108  <FONT COLOR="#FF0000">[*]</font> This is the second bulleted item.<BR>
109  <FONT COLOR="#FF0000">[/list]</font>
110  <P>
111  This produces:
112  <ul>
113  <LI> This is the first bulleted item.
114  <LI> This is the second bulleted item.
115  </ul>
116  Note that you must include a closing [/list] when you end each list.
117   
118  <P>
119  Making ordered lists is just as easy.  Just add either [LIST=A] or [LIST=1].  Typing [List=A] will produce a list from A to Z.  Using [List=1] will produce numbered lists.
120  <P>
121  Here's an example:
122  <P>
123   
124  <FONT COLOR="#FF0000">[list=A]</FONT>
125  <BR>
126  <FONT COLOR="#FF0000">[*]</font> This is the first bulleted item.<BR>
127  <FONT COLOR="#FF0000">[*]</font> This is the second bulleted item.<BR>
128  <FONT COLOR="#FF0000">[/list]</font>
129  <P>
130  This produces:
131  <ol type=A>
132  <LI> This is the first bulleted item.
133  <LI> This is the second bulleted item.
134  </ul>
135   
136   
137  </FONT>
138  </td></tr>
139  <TR bgcolor="<?php echo $color1?>"><TD>
140  <FONT SIZE="2" FACE="Verdana, Arial">
141  Adding Images</font></td></tr>
142  <TR bgcolor="<?php echo $color2?>"><TD>
143  <FONT SIZE="2" FACE="Verdana, Arial">
144  To add a graphic within your message, just encase the URL of the graphic image as shown in the following example (BBCode is in <FONT COLOR="#FF0000">red</FONT>).
145  <P>
146  <CENTER>
147  <FONT COLOR="#FF0000">[img]</FONT>http://www.totalgeek.org/images/tline.gif<FONT COLOR="#FF0000">[/img]</FONT>
148  </CENTER>
149  <P>
150  In the example above, the BBCode automatically makes the graphic visible in your message.  Note: the "http://" part of the URL is REQUIRED for the <FONT COLOR="#FF0000">[img]</FONT> code.  Also note: some UBB forums may disable the <FONT COLOR="#FF0000">[img]</FONT> tag support to prevent objectionable images from being viewed.
151  </FONT>
152  </td></tr>
153  <TR bgcolor="<?php echo $color1?>"><TD>
154  <FONT SIZE="2" FACE="Verdana, Arial">
155  Quoting Other Messages</font></td></tr>
156  <TR bgcolor="<?php echo $color2?>"><TD>
157  <FONT SIZE="2" FACE="Verdana, Arial">
158  To reference something specific that someone has posted, just cut and paste the applicable verbiage and enclose it as shown below (BBCode is in <FONT COLOR="#FF0000">red</FONT>).
159  <P>
160  <CENTER>
161  <FONT COLOR="#FF0000">[QUOTE]</FONT>Ask not what your country can do for you....<BR>ask what you can do for your country.<FONT COLOR="#FF0000">[/QUOTE]</FONT>
162  </CENTER>
163  <P>
164  In the example above, the BBCode automatically blockquotes the text you reference.</FONT>
165  </td>
166  </tr>
167  <TR bgcolor="<?php echo $color1?>"><TD>
168  <FONT SIZE="2" FACE="Verdana, Arial">
169  Code Tag</FONT></td></tr>
170  <TR bgcolor="<?php echo $color2?>"><TD>
171  <FONT SIZE="2" FACE="Verdana, Arial">
172  Similar to the Quote tage, the Code tag adds some &lt;PRE&gt; tags to preserve formatting.  This useful for displaying programming code, for instance.
173  <P>
174   
175  <FONT COLOR="#FF0000">[CODE]</FONT>#!/usr/bin/perl
176  <P>
177  print "Content-type: text/html\n\n";
178  <BR>
179  print "Hello World!";
180  <FONT COLOR="#FF0000">[/CODE]</FONT>
181   
182  <P>
183  In the example above, the BBCode automatically blockquotes the text you reference and preserves the formatting of the coded text.</FONT>
184  </td>
185  </tr>
186  </table>
187  </td></tr></table>
188  </blockquote>
189  <BR><BR>
190  <FONT COLOR="silver">Of Note</FONT>
191  <BR>
192  You must not use both HTML and BBCode to do the same function.  Also note that the BBCode is not case-sensitive (thus, you could use <FONT COLOR="#FF0000">[URL]</FONT> or <FONT COLOR="#FF0000">[url]</FONT>).
193  <P>
194  <FONT COLOR="silver">Incorrect BBCode Usage:</FONT>
195  <P>
196  <FONT COLOR="#FF0000">[url]</FONT> www.totalgeek.org <FONT COLOR="#FF0000">[/url]</FONT> - don't put spaces between the bracketed code and the text you are applying the code to.
197  <P>
198  <FONT COLOR="#FF0000">[email]</FONT>james@totalgeek.org<FONT COLOR="#FF0000">[email]</FONT> - the end brackets must include a forward slash (<FONT COLOR="#FF0000">[/email]</FONT>)
199   
200  <P><FONT SIZE="1" FACE="Verdana, Arial">
201  <BR>
202   
203  </FONT>
204  </FONT>
205  </B>
206  <?php
207  include('page_tail.'.$phpEx);
208  ?>
209