• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

PHP tag color formatting

GJSNeptune

[H]F Junkie
Joined
Mar 31, 2004
Messages
12,372
I'm assuming that Hard Forum is using vB's default color scheme for the PHP tag. With a dark background, the color formatting (mainly the blue) within a PHP block is hard to see, making the PHP tag impractical and essentially useless. Most people in the Programming subforum settle for the colorless CODE tag instead.

Any chance this issue could be addressed?

PHP:
<?php
echo "Can you see me now?";
?>

Code:
<?php
echo "Can you see me now?";
?>

---------------

PHP:
<?php

import_request_variables('G', 'url_');

if ((isset($_GET[piece])) && ($_GET[piece] != "")) {

require("db/config.php");
require("db/opendb.php");

    $query = "SELECT text, title, year FROM nonfiction WHERE id=". mysql_escape_string($_GET[piece]);
    $result = mysql_query($query);
    $content = mysql_fetch_assoc($result);

require("db/closedb.php");

    echo "<h3>$content[title]</h3><br />";
    echo "<p>$content[text]</p><br />";
    echo "<span class=\"textcopy\">&copy; $content[year]</span> <span class=\"courier\">Website</span>";
    } else {
    echo "<span class=\"choose\">Please choose a title.<br /><br /><br /><br /><br /><br /><br /></span>";
    }
?>

Code:
<?php

import_request_variables('G', 'url_');

if ((isset($_GET[piece])) && ($_GET[piece] != "")) {

require("db/config.php");
require("db/opendb.php");

    $query = "SELECT text, title, year FROM nonfiction WHERE id=". mysql_escape_string($_GET[piece]);
    $result = mysql_query($query);
    $content = mysql_fetch_assoc($result);

require("db/closedb.php");

    echo "<h3>$content[title]</h3><br />";
    echo "<p>$content[text]</p><br />";
    echo "<span class=\"textcopy\">&copy; $content[year]</span> <span class=\"courier\">Website</span>";
    } else {
    echo "<span class=\"choose\">Please choose a title.<br /><br /><br /><br /><br /><br /><br /></span>";
    }
?>
 
Back
Top