Open call for Board Member and Moderator positions in Coin Return. More information here.
You can now pre-register your username on Coin Return. Check out the instructions here.

PHP and HTML tags?

AroducAroduc regular
edited May 2007 in H.Q. Reception Desk
I poked at them, and they just seem to format whatever script you insert into them and color code stuff. However, the color scheme makes it pretty much worthless. So either we're not supposed to have these tags (I don't remember ever seeing them before), or their color scheme needs to be pretty heavily reworked to not be eye-rapingly awful.

[html]<html>
<head>
<title> My New Web Page </title>
</head>

<body>

<h1> Welcome to My Web Page! </h1>

<p>
This page illustrates how you can write proper HTML
using only a text editor, such as Windows Notepad. You can also
download a free text editor, such as Crimson Editor, which is
better than Notepad.
</p>

<p>
There is a small graphic after the period at the end of this sentence.
<img src="images/mouse.gif" alt="Mousie" width="32" height="32" border="0"> The graphic is in a file. The file is inside a folder named "images."
</p>

<p>
Link: <a href="http://www.yahoo.com/">Yahoo!</a&gt; <br>
Another link: <a href="tableexample.htm">Another Web page</a> <br>
Note the way the BR tag works in the two lines above.
</p>

<p>> <a href="index.htm">HTML examples index</a></p>

</body>
</html>

[/html]

[php]<?php

$folder = '';

$exts = 'jpg jpeg png gif';

$files = array(); $i = -1;
if ('' == $folder) $folder = './';

$handle = opendir($folder);
$exts = explode(' ', $exts);
while (false !== ($file = readdir($handle))) {
foreach($exts as $ext) {
if (preg_match('/\.'.$ext.'$/i', $file, $test)) {
$files[] = $file;
++$i;
}
}
}
closedir($handle);
mt_srand((double)microtime()*1000000); // seed for PHP < 4.2
$rand = mt_rand(0, $i);

header('Location: '.$folder.$files[$rand]);
?>
[/php]

Aroduc on

Posts

  • MKRMKR Registered User regular
    edited May 2007
    I think it's a safe bet that the code colors were picked for the theme that was modified to make the PAF theme.

    They are somewhat of an eyesore. D:

    MKR on
  • RamiusRamius Joined: July 19, 2000 Administrator, ClubPA admin
    edited May 2007
    Indeed, they are extraneous bits that vBulletin decided to include for what seem to be almost arbitrary reasons (Why only HTML and PHP color coding?). I should just remove them entirely.

    Ramius on
    1zxt8dhasaon.png
  • Bizarro EchoBizarro Echo ski-bap ba-dapModerator, Administrator admin
    edited May 2007
    Yeah, where's the FORTRAN syntax coloring? :x

    Bizarro Echo on
Sign In or Register to comment.