added trip.css, small display optimizations

main
fuzzykitten 2025-04-27 16:15:48 -04:00
parent bdc7d7ea09
commit 0f8cb37e81
4 changed files with 7 additions and 5 deletions

View File

@ -14,7 +14,7 @@ $settings = array(
// if you lost your password). Capped to 50 characters.
"web_address" => 'http://change.me', // the address of your page
"RSS_message" => 'my RSS feed', // the message that is displayed in the rss feed
"default_css" => '6', // 1 = Skull, 2 = Kali, 3/4 = Santa Muerte, 5 = Dirt-path, 6 = Forest, 9 = unstyled, 10 = Flowers
"default_css" => '6', // 1 = Skull, 2 = Kali, 3/4 = Santa Muerte, 5 = Dirt-path, 6 = Forest, 9 = unstyled, 10 = Flowers, 11 = Trip
"enable_admin_panel" => TRUE, // set to true to enable access to the admin panel. Set to false if you are paranoid.
"enable_mod_panel" => TRUE, // set to true to enable access to the moderators panel. Set to false if you are really paranoid
// (but than you cannot moderate the board).

View File

@ -615,7 +615,7 @@ function set_css($mode, $settings)
// we will not have more than 99 styles, so two digits
}
if ( (empty($css)) || ($css < 1) || ($css > 11) ) {
if ( (empty($css)) || ($css < 1) || ($css > 12) ) {
// if no css is given, or the value is out of range,
$css = $settings['default_css'];
// resort to the default style
@ -628,7 +628,9 @@ function set_css($mode, $settings)
function set_css_file($css)
{
if ($css == 11) {
if ($css == 12) {
$css_file = '/css/flowers.css';
} elseif ($css == 11) {
$css_file = '/css/trip_mono.css';
} elseif ($css == 10) {
$css_file = '/css/flowers_mono.css';

View File

@ -79,7 +79,7 @@ function bbcode_to_html($text, $settings, $sub)
'<spoiler>$2</spoiler>',
'<li>$2</li>',
'<a href="$2" target="_blank">$2</a>',
'<a href="/r/$1/$2">s/$1/$2</a>',
' <a href="/r/$1/$2">s/$1/$2</a>',
"<quote><a href=\"#$1_$sub\">>$1$2</a></quote><br>",
'<quote>>>$1$2</quote><br>'
);

View File

@ -245,7 +245,7 @@ function show_post_form($db, $msg, $sub, $settings, $org_id, $css, $quote, $ip)
. "<span class=\"label timestamp\">timestamp</span>";
}
$html_string .= "<input type='submit' value='Post this'><br></td>";
$html_string .= " <input type='submit' value='Post this'><br></td>";
$html_string .= '</table></form></div><hr>';
$statement = $db->prepare("INSERT OR IGNORE