Also, ich möchte etwas mehr Stimmung ins Forum bringen, deswegen wollte ich kleine Texte und ein kleines Bild via Zufall ins Forum bringen.
Der Zufallstext entsteht etwa so:
Zitatsrand ((double) microtime() * 1000000);
$zitate = file("zitate.dat");
$i = count($zitate)-1;
print $zitate[rand(0,$i)];
http://www.newterritory.de/anni/quote.php Hier ... mal einfach aktualisieren für den Effekt.
Es wäre natürlich schöner das mit mehrzeilern machen zu können aber das kommt wenn es soll.
Das Problem, ich bekomm das wbb nicht dazu das zu machen. Wie gehe ich vor?
Forum: http://www.newterritory.de/virtuell/////wbblite/index.php
Im Template sieht das dato so aus:
Zitat<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableinwidth']}" class="tableb">
<tr>
<td align="left"><font size="-1"<span style="font-variant:small-caps">Hier soll mal ein Zufallstext hin</span><font></td>
<td align="right">Hier soll mal ein kleines Zufallsbild hin</td>
</tr>
</table>
Das mit den Zufallsbildern habe ich mir aus dem Internet geklaut, ist free
ZitatAlles anzeigen<?php
/*
* Name your images 1.jpg, 2.jpg etc.
*
* Add this line to your page where you want the images to
* appear: <?php include "randomimage.php"; ?>
*/
// Change this to the total number of images in the folder
$total = "4";
// Change to the type of files to use eg. .jpg or .gif
$file_type = ".jpg";
// Change to the location of the folder containing the images
$image_folder = "/var/vhosts/default/htdocs/virtuell/wbblite/images/avatars/";
// You do not need to edit below this line
$start = "1";
$random = mt_rand($start, $total);
$image_name = $random . $file_type;
echo "<img src=\"$image_folder/$image_name\" alt=\"$image_name\" />";
?>
Nun: Ich kann keine php includes benutzen wie es aussieht, was mache ich?