Permalink
Browse files

underlining and HTML5

Repaired underlining in Firefox and changed doctype to html5 (part of
code was changed to be compatible with html5)
  • Loading branch information...
Halamix2 committed Jun 14, 2014
1 parent d13beb5 commit 614da4045c113bad5e1310aa080574c5d1f0235e
View
@@ -1,4 +1,40 @@
MyUPB
=====
TheirUPB 2.2.7 (a, WIP)
========
Ultimate PHP Board is completely text based making it easy for anybody who has access to PHP can run a messageboard of thier own without the need for MySQL.
Unofficial MyUPB fork
Todo:
[x] css
[ ] html5
[ ] repair html (currenty working on it)
[ ] delete obsolete tags (as above)
[ ] repair sending avatars
Probably:
[ ] delete AIM and other old services
[ ] change login length from 20 to 30 chars
Maybe:
[ ] Adding Gravatar
[ ] remove "reset button" from topic options
[ ] Update old documentation
In the next life :)
[ ] add translation support (ok, maybe after main fixes, but this would be really hard)
View
@@ -573,7 +573,7 @@
echo "
<tr>
<td class='area_1' style='padding:8px;'><strong>".$user["id"]."</strong></td>
<td class='area_2'><span class='link_1'><a href='profile.php?action=get&id=".$user["id"]."' style='color:#".$statuscolor."'>".$user["user_name"]."</a></span></td>
<td class='area_2'><span class='link_1'><a href='profile.php?action=get&amp;id=".$user["id"]."' style='color:#".$statuscolor."'>".$user["user_name"]."</a></span></td>
<td class='area_1' style='text-align:center;'>".createUserPowerMisc($user["level"], 4)."</td>";
if ($user['view_email']) echo "
<td class='area_2'>".$user["email"]."</td>";
View
@@ -184,7 +184,7 @@
<div name='post{$_GET['id']}-{$_GET['t_id']}-{$pRec['id']}' id='post{$_GET['id']}-{$_GET['t_id']}-{$pRec['id']}'>
<div class='main_cat_wrapper'>
<div class='cat_area_1' style='text-align:center;'>Posted: ".gmdate("M d, Y g:i:s a", user_date($pRec["date"]))."</div>
<table class='main_table' cellspacing='1'>";
<table class='main_table'>";
if ($x == 0)
{
$table_color = "area_1";
@@ -312,9 +312,9 @@
$qrform .= "<form name='quickreplyfm' action='newpost.php?id=".$_POST['id']."&t_id=".$_POST['id']."&page=".$page."' method='POST' name='quickreply'>\n";
$qrform .= "<div class='main_cat_wrapper'>
<div class='cat_area_1'>Quick Reply</div>
<table class='main_table' cellspacing='1'>
<table class='main_table'>
<tbody>";
$qrform .= "<table class='main_table' cellspacing='1'>";
$qrform .= "<table class='main_table'>";
$qrform .= "<input type='hidden' id='id' name='id' value='".$_POST['id']."'>\n";
$qrform .= "<input type='hidden' id='t_id' name='t_id' value='".$_POST['t_id']."'>\n";
$qrform .= "<input type='hidden' id='page' name='page' value='".$_POST['page']."'>\n";
@@ -411,7 +411,7 @@
$output .= "<div class='main_cat_wrapper'>
<div class='cat_area_1'>Forum Control</div>
<table class='main_table' cellspacing='1'>
<table class='main_table'>
<tbody>";
$output .= "
View
@@ -28,7 +28,7 @@
<body>
<div id='upb_container'>
<div class='main_cat_wrapper2'>
<table class='main_table_2' cellspacing='1'>
<table class='main_table_2'>
<tr>
<td id='logo'><img src='./skins/default/images/logo.png' alt=''
title='' /></td>
@@ -39,7 +39,7 @@
<br />
<div class='main_cat_wrapper'>
<div class='cat_area_1'>myUPB v2.2.5 Updater</div>
<table class='main_table' cellspacing='1'>
<table class='main_table'>
<tr>
<th style='text-align: center;'>&nbsp;</th>
</tr>
View
Binary file not shown.
@@ -74,7 +74,7 @@ function d_topic($p,$page,$num_pages) {
echo "<div class='tabstyle_1'>
<ul>";
if((int)$this->user["power"] >= (int)$this->fRec[0]["reply"]){
echo "<li><a href='newpost.php?id=".$this->fRec[0]["id"]."&t=1&t_id=' title='Create a new topic?'><span>Create New Topic</span></a></li>";
echo "<li><a href='newpost.php?id=".$this->fRec[0]["id"]."&amp;t=1&amp;t_id=' title='Create a new topic?'><span>Create New Topic</span></a></li>";
}else{
echo "<li></li>";
}
@@ -105,47 +105,47 @@ function d_posting($email_mode, $is_watching, $page_string, $page,$num_pages, $p
<ul>";
if((int)$this->user["power"] >= (int)$this->fRec[0]["post"])
{
$output .= "<li><a href='newpost.php?id=".$this->fRec[0]["id"]."&t=1&t_id=' title='Create a new topic?'><span>Create New Topic</span></a></li>";
$output .= "<li><a href='newpost.php?id=".$this->fRec[0]["id"]."&amp;t=1&amp;t_id=' title='Create a new topic?'><span>Create New Topic</span></a></li>";
}
elseif((int)$this->user["power"] == 0)
{
$output .= "<li><a href='login.php?ref=".urlencode("newpost.php?id=".$this->fRec[0]["id"]."&t=1&t_id=")."' title='Create a new topic?'><span>Create New Topic</span></a></li>";
$output .= "<li><a href='login.php?ref=".urlencode("newpost.php?id=".$this->fRec[0]["id"]."&amp;t=1&amp;t_id=")."' title='Create a new topic?'><span>Create New Topic</span></a></li>";
}
if((int)$this->user["power"] >= (int)$this->fRec[0]["reply"])
{
if(!(bool)$this->tRec[0]["locked"]) $output .= "<li><a href='newpost.php?id=".$this->fRec[0]["id"]."&t=0&t_id=".$this->tRec[0]["id"]."&page=".$page."' title='Add a reply?'><span>Add Reply</span></a></li>";
if(!(bool)$this->tRec[0]["locked"]) $output .= "<li><a href='newpost.php?id=".$this->fRec[0]["id"]."&amp;t=0&amp;t_id=".$this->tRec[0]["id"]."&amp;page=".$page."' title='Add a reply?'><span>Add Reply</span></a></li>";
else $output .= "<li><a href='#' title='Topic Is Locked'><span>Topic Is Locked</span></a></li>";
}
elseif((int)$this->user["power"] == 0)
{
if(!(bool)$this->tRec[0]["locked"]) $output .= "<li><a href='login.php?ref=".urlencode("newpost.php?id=".$this->fRec[0]["id"]."&t=0&t_id=".$this->tRec[0]["id"]."&page=".$page)."' title='Add a reply?'><span>Add Reply</span></a></li>";
if(!(bool)$this->tRec[0]["locked"]) $output .= "<li><a href='login.php?ref=".urlencode("newpost.php?id=".$this->fRec[0]["id"]."&amp;t=0&amp;t_id=".$this->tRec[0]["id"]."&amp;page=".$page)."' title='Add a reply?'><span>Add Reply</span></a></li>";
else $output .= "<li><a href='#' title='Topic Is Locked'><span>Topic Is Locked</span></a></li>";
}
if((int)$this->user["power"] > 0) {
if ($email_mode) {
$msg = "Watch";
if($is_watching) $msg = "Un-Watch";
$output .= "<li><a href='managetopic.php?action=watch&id=".$this->fRec[0]["id"]."&t_id=".$this->tRec[0]["id"]."&page=".$_GET["page"]."' title='$msg This Topic?'><span>$msg Topic</span></a></li>";
$output .= "<li><a href='managetopic.php?action=watch&amp;id=".$this->fRec[0]["id"]."&amp;t_id=".$this->tRec[0]["id"]."&amp;page=".$_GET["page"]."' title='$msg This Topic?'><span>$msg Topic</span></a></li>";
}
//$output .= "<li><a href='managetopic.php?action=favorite&id=".$this->fRec[0]["id"]."&t_id=".$this->tRec[0]["id"]."&page=".$_GET["page"]."' title='Bookmark this Topic?'><span>Bookmark Topic</span></a></li>";
//$output .= "<li><a href='managetopic.php?action=favorite&amp;id=".$this->fRec[0]["id"]."&amp;t_id=".$this->tRec[0]["id"]."&amp;page=".$_GET["page"]."' title='Bookmark this Topic?'><span>Bookmark Topic</span></a></li>";
}
else
{
if ($email_mode)
{
$msg = "Watch";
$output .= "<li><a href='login.php?ref=".urlencode("managetopic.php?action=watch&id=".$this->fRec[0]["id"]."&t_id=".$this->tRec[0]["id"]."&page=".$_GET["page"])."' title='$msg This Topic?'><span>$msg Topic</span></a></li>";
$output .= "<li><a href='login.php?ref=".urlencode("managetopic.php?action=watch&amp;id=".$this->fRec[0]["id"]."&amp;t_id=".$this->tRec[0]["id"]."&amp;page=".$_GET["page"])."' title='$msg This Topic?'><span>$msg Topic</span></a></li>";
}
//$output .= "<li><a href='login.php?ref=".urlencode("managetopic.php?action=favorite&id=".$this->fRec[0]["id"]."&t_id=".$this->tRec[0]["id"]."&page=".$_GET["page"])."' title='Bookmark this Topic?'><span>Bookmark Topic</span></a></li>";
}
if ((int)$_COOKIE["power_env"] >= 2) {
$output .= "
<li><a href='managetopic.php?id=".$this->fRec[0]["id"]."&t_id=".$this->tRec[0]["id"]."'><span>Options</span></a></li>";
<li><a href='managetopic.php?id=".$this->fRec[0]["id"]."&amp;t_id=".$this->tRec[0]["id"]."'><span>Options</span></a></li>";
}
$output .= "
View
@@ -18,9 +18,9 @@
<br>
<a rel="license"
href="http://creativecommons.org/licenses/by-nc-sa/3.0/"><img
alt="Creative Commons License" style="border-width: 0;"
src="http://i.creativecommons.org/l/by-nc-sa/3.0/80x15.png"
align='absmiddle' /></a></div>
alt="Creative Commons License"
src="http://i.creativecommons.org/l/by-nc-sa/3.0/80x15.png"/>
</a></div>
</div>
</body>
View
@@ -141,15 +141,16 @@
}
//Start Header
echo "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
echo "<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'>
<head>
<title>".((!isset($where) || $where == '') ? stripslashes($_CONFIG['title']) : (strip_tags(str_replace($_CONFIG["where_sep"], $_CONFIG["table_sep"], stripslashes($where)))))."</title>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
<meta charset='utf-8' />
<link rel='stylesheet' type='text/css' href='".SKIN_DIR."/css/style.css' />
<link rel='stylesheet' type='text/css' href='skins/disabled.css' />
<script type='text/javascript' src='./includes/scripts.js'></script>
<script type='text/javascript' src='./includes/301a.js'></script>";
<script type='text/javascript' src='./includes/301a.js'></script>
<!--this is unfinished and (probably) unstable version of TheirUPB fork. Use at own risk!-->";
// Check if an xajax object exists
if(isset($xajax))
@@ -164,7 +165,7 @@
<body>
<div id='upb_container'>
<div class='main_cat_wrapper2'>
<table class='main_table_2' cellspacing='1'>
<table class='main_table_2'>
<tr>
<td id='logo'><img src='".$_CONFIG['logo']."' alt='' title='' /></td>
</tr>
@@ -18,11 +18,11 @@
// HTTP/1.1
header ("Pragma: no-cache");
echo "
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'>
<head>
<title>".$_CONFIG["title"]."</title>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
<meta charset='utf-8' />
<link rel='stylesheet' type='text/css' href='".SKIN_DIR."/css/style_simple.css' />
<script type='text/javascript' src='./includes/scripts.js'></script>
</head>
@@ -30,7 +30,7 @@
<body>
<div id='upb_container'>
<div class='main_cat_wrapper2'>
<table class='main_table_2' cellspacing='1'>
<table class='main_table_2'>
<tr>
<td id='logo'><img src='skins/default/images/logo.png' alt='' title='' /></td>
</tr>
@@ -45,4 +45,4 @@
</body>
</html>", true);
?>
?>
@@ -260,7 +260,7 @@ function echoTableHeading($display, $_CONFIG) {
echo "
<div class='main_cat_wrapper'>
<div class='cat_area_1'>".$display."</div>
<table class='main_table' cellspacing='1'>
<table class='main_table'>
<tbody>";
}
View
@@ -686,7 +686,7 @@ var http_request = false;
waitwhat = 'Forums';
else
waitwhat = 'Categories';
html = "<div class='main_cat_wrapper'><div class='cat_area_1'>Quick Reply</div><table class='main_table' cellspacing='1'><tbody><td class='area_2' style='text-align:center'><img src='images/spinner.gif' alt='' title='' style='vertical-align: middle;'>&nbsp;<strong>Sorting "+waitwhat+"</strong></td></tr></tbody></table><div class='footer'></div></div>";
html = "<div class='main_cat_wrapper'><div class='cat_area_1'>Quick Reply</div><table class='main_table'><tbody><td class='area_2' style='text-align:center'><img src='images/spinner.gif' alt='' title='' style='vertical-align: middle;'>&nbsp;<strong>Sorting "+waitwhat+"</strong></td></tr></tbody></table><div class='footer'></div></div>";
document.getElementById(div).innerHTML = html;
}
if (http_request.readyState == 4) {
@@ -739,7 +739,7 @@ var http_request = false;
if (http_request.readyState == 3)
{
html = "<div class='main_cat_wrapper'><div class='cat_area_1'>Quick Reply</div><table class='main_table' cellspacing='1'><tbody><td class='area_2' style='text-align:center'><img src='images/spinner.gif' alt='' title='' style='vertical-align: middle;'>&nbsp;<strong>Adding Quick Reply....Please Wait</strong></td></tr></tbody></table><div class='footer'></div></div>";
html = "<div class='main_cat_wrapper'><div class='cat_area_1'>Quick Reply</div><table class='main_table'><tbody><td class='area_2' style='text-align:center'><img src='images/spinner.gif' alt='' title='' style='vertical-align: middle;'>&nbsp;<strong>Adding Quick Reply....Please Wait</strong></td></tr></tbody></table><div class='footer'></div></div>";
document.getElementById('quickreplyform').innerHTML = html;
}
if (http_request.readyState == 4) {
View
@@ -82,7 +82,7 @@
<body>
<div id='upb_container'>
<div class='main_cat_wrapper2'>
<table class='main_table_2' cellspacing='1'>
<table class='main_table_2'>
<tr>
<td id='logo'><img src='skins/default/images/logo.png' alt='' title='' /></td>
</tr>
@@ -103,7 +103,7 @@
break;
}
?></div>
<table class='main_table' cellspacing='1'>
<table class='main_table'>
<tr>
<th style='text-align: center;'>&nbsp;</th>
</tr>
@@ -592,7 +592,7 @@ function license_agree(theForm) {
echo "
<form method='POST' action='".$_SERVER['PHP_SELF']."'>";
echo "
<table class='main_table' cellspacing='1'>
<table class='main_table'>
<tr>
<th colspan='2'><strong><span style='color:$required;'>*</span> is a required field</strong></th>
</tr>
@@ -722,7 +722,7 @@ function license_agree(theForm) {
echo "</table>";
echo "
<form method='post' action='".$_SERVER['PHP_SELF']."'>";
echo "<table class='main_table' cellspacing='1'>
echo "<table class='main_table'>
<tr>
<th colspan='2'>Basic Forum Settings</td>
</tr>
View
@@ -44,7 +44,7 @@
<body>
<div id='upb_container'>
<div class='main_cat_wrapper2'>
<table class='main_table_2' cellspacing='1'>
<table class='main_table_2'>
<tr>
<td id='logo'><img src='<?php print $_CONFIG['logo'];?>' alt=''
title='' /></td>
View
@@ -265,7 +265,7 @@
$iframe = "<br />
<div class='main_cat_wrapper'>
<div class='cat_area_1'>Topic overview:</div>
<table class='main_table' cellspacing='1'>
<table class='main_table'>
<tr>
<td class='review_container'><div class='review_sub'>
<iframe src='viewtopic_simple.php?id=".$_GET["id"]."&t_id=".$_GET["t_id"]."&page=".$_GET["page"]."' class='review_frame' scrolling='auto' frameborder='0'></iframe></div></td>
@@ -61,7 +61,7 @@ a:hover {
when it is used as a link */
img {
border : 0;
text-align: absmiddle;
display:inline; /*vertical-align:absmiddle is in html, not in css*/
}
/* Some browsers leave differing gaps around form elements.
@@ -151,6 +151,7 @@ textarea#newentry {
.main_table_2 {
width : 100%;
background-color : #f9f9f9;
border-spacing: 1px;
}
/* The area that the logo image resides in */
#logo {
@@ -197,6 +198,7 @@ textarea#newentry {
font-family : Verdana, Tahoma, Arial, Sans-Serif, Georgia, Courier, Serif;
width : 100%;
background-color : #f9f9f9;
border-spacing: 1px;
}
/* This is the default sub area below the header or title area */
@@ -1170,7 +1172,7 @@ vertical-align: middle;
font-weight : bold;
color : #333333;
height : 30px;
background-color : #transparent;
background-color :transparent; /*deleted # after :*/
background-image : url(../images/simple_pages_bg.png);
background-repeat : no-repeat;
}
@@ -1446,7 +1448,7 @@ vertical-align: middle;
.smilie
{
text-align: center;
vertical-align: center;
vertical-align: middle; /*for vertical use middle, not center*/
}
.more_smilie
@@ -1491,7 +1493,7 @@ color:#ffffff;
background:#131313 url(../images/announcement/tl.png) no-repeat;
//float: right;
/*float: right;*/
}
.announce2 {
@@ -89,7 +89,7 @@ img {
font-weight : bold;
color : #333333;
height : 30px;
background-color : #transparent;
background-color :transparent;
background-image : url(../images/simple_pages_bg.png);
background-repeat : no-repeat;
}
Oops, something went wrong.

0 comments on commit 614da40

Please sign in to comment.