As was foretold, we've added advertisements to the forums! If you have questions, or if you encounter any bugs, please visit this thread: https://forums.penny-arcade.com/discussion/240191/forum-advertisement-faq-and-reports-thread/
Options

PHP and HTML tags?

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

  • Options
    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
  • Options
    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
  • Options
    EchoEcho ski-bap ba-dapModerator mod
    edited May 2007
    Yeah, where's the FORTRAN syntax coloring? :x

    Echo on
Sign In or Register to comment.