fixing steve stuff

This commit is contained in:
JT Smith 2006-05-30 14:44:43 +00:00
parent c23e29cdd7
commit d619dd1fdb
5 changed files with 167 additions and 662 deletions

View file

@ -1,153 +0,0 @@
#7.0-style0000000000051
body, html {
margin:0px;
background-color:#b53018;
padding:0px;
}
body a {
color:#EE963E;
}
#main {
width:98%;
/*min-width:790px;*/
margin:0px;
padding:0px;
padding-top:20px;
padding-bottom:20px;
position:relative;
}
#header {
background: url('^FileUrl(style3/header_bg.jpg);') repeat-x;
width:100%;
margin:0px;
height:115px;
}
#headerTitle {
background: url('^FileUrl(style3/header_left.jpg);') no-repeat left top;
height:100%;
width:100%;
}
#headerRight {
background: url('^FileUrl(style3/header_right.jpg);') no-repeat right top;
width:100%;
height:100%;
text-align:right;
position:relative;
}
#headerRight #title {
position:absolute;
top:25px;
left:20px;
font-family:arial;
text-align:left;
}
#title h1 {
text-transform:uppercase;
margin-bottom:0px;
font-weight:normal;
font-size:26pt;
margin-top:0px;
color:white;
}
#title h1 a {
color:white;
text-decoration:none;
}
#title h2 {
margin:0px;
font-size:12pt;
color:#bebebe;
padding-left:20px;
}
#title img {
z-index:5;
}
#login {
position:absolute;
font-size:8pt;
top:45%;
right:150px;
color:white;
z-index:6;
font-family:arial;
}
#login a {
color:white;
}
.loginBox {
font-size:8pt;
margin:0px;
display:inline;
}
.loginBox input {
font-size:8pt;
}
#mainBody {
width:100%;
margin:0px;
height:500px;
background: #fff;
position:relative;
}
#main > #mainBody {
height:auto;
min-height:500px;
}
#contentArea {
z-index:2;
position:relative;
padding-top:50px;
padding-left:10px;
padding-right:20px;
padding-bottom:20px;
-moz-box-sizing:border:box;
font-family:verdana;
font-size:9pt;
}
html #main #mainBody #contentArea {
height:1%;
}
#contentArea a {
font-weight:bold;
letter-spacing:1px;
font-size:8pt;
}
#topCorner {
width:100%;
height:214px;
position:absolute;
top:0px;
left:0px;
background: url('^FileUrl(style3/main_top_bg.jpg);') repeat-x;
z-index:1;
}
#bottomCorner {
width:100%;
height:211px;
position:absolute;
bottom:0px;
right:0px;
background: url('^FileUrl(style3/main_bottom.jpg);') no-repeat right;
z-index:1;
}
#footer {
width:100%;
margin:0px;
background:#000 url('^FileUrl(style3/footer_right.jpg);') no-repeat right top;
height:57px;
border-top:solid #B53018 2px;
text-align:right;
position:relative;
}
#footer #copyright {
color:#3b3b3b;
font-family:arial;
position:absolute;
top:20px;
left:30px;
font-size:8pt;
}

View file

@ -1,153 +0,0 @@
#7.0-style0000000000051
body, html {
margin:0px;
background-color:#b53018;
padding:0px;
}
body a {
color:#EE963E;
}
#main {
width:98%;
/*min-width:790px;*/
margin:0px;
padding:0px;
padding-top:20px;
padding-bottom:20px;
position:relative;
}
#header {
background: url('^FileUrl(style3/header_bg.jpg);') repeat-x;
width:100%;
margin:0px;
height:115px;
}
#headerTitle {
background: url('^FileUrl(style3/header_left.jpg);') no-repeat left top;
height:100%;
width:100%;
}
#headerRight {
background: url('^FileUrl(style3/header_right.jpg);') no-repeat right top;
width:100%;
height:100%;
text-align:right;
position:relative;
}
#headerRight #title {
position:absolute;
top:25px;
left:20px;
font-family:arial;
text-align:left;
}
#title h1 {
text-transform:uppercase;
margin-bottom:0px;
font-weight:normal;
font-size:26pt;
margin-top:0px;
color:white;
}
#title h1 a {
color:white;
text-decoration:none;
}
#title h2 {
margin:0px;
font-size:12pt;
color:#bebebe;
padding-left:20px;
}
#title img {
z-index:5;
}
#login {
position:absolute;
font-size:8pt;
top:45%;
right:150px;
color:white;
z-index:6;
font-family:arial;
}
#login a {
color:white;
}
.loginBox {
font-size:8pt;
margin:0px;
display:inline;
}
.loginBox input {
font-size:8pt;
}
#mainBody {
width:100%;
margin:0px;
height:500px;
background: #fff;
position:relative;
}
#main > #mainBody {
height:auto;
min-height:500px;
}
#contentArea {
z-index:2;
position:relative;
padding-top:50px;
padding-left:10px;
padding-right:20px;
padding-bottom:20px;
-moz-box-sizing:border:box;
font-family:verdana;
font-size:9pt;
}
html #main #mainBody #contentArea {
height:1%;
}
#contentArea a {
font-weight:bold;
letter-spacing:1px;
font-size:8pt;
}
#topCorner {
width:100%;
height:214px;
position:absolute;
top:0px;
left:0px;
background: url('^FileUrl(style3/main_top_bg.jpg);') repeat-x;
z-index:1;
}
#bottomCorner {
width:100%;
height:211px;
position:absolute;
bottom:0px;
right:0px;
background: url('^FileUrl(style3/main_bottom.jpg);') no-repeat right;
z-index:1;
}
#footer {
width:100%;
margin:0px;
background:#000 url('^FileUrl(style3/footer_right.jpg);') no-repeat right top;
height:57px;
border-top:solid #B53018 2px;
text-align:right;
position:relative;
}
#footer #copyright {
color:#3b3b3b;
font-family:arial;
position:absolute;
top:20px;
left:30px;
font-size:8pt;
}

View file

@ -1,350 +0,0 @@
#PBtmpl0000000000000067
<a name="id<tmpl_var assetId>" id="id<tmpl_var assetId>"></a>
<tmpl_if session.var.adminOn>
<p><tmpl_var controls></p>
</tmpl_if>
<h2><tmpl_var title></h2>
<div class="defaultSubmissionDetails">
<b><tmpl_var user.label>:</b>
<tmpl_if user.isVisitor>
<tmpl_var username>
<tmpl_else>
<a href="<tmpl_var userProfile.url>"><tmpl_var username></a>
</tmpl_if>
<br />
<b><tmpl_var date.label>:</b> <tmpl_var dateSubmitted.human><br />
<b><tmpl_var views.label>:</b> <tmpl_var views><br />
<b><tmpl_var rating.label>:</b> <tmpl_var rating>
<tmpl_unless hasRated>
&nbsp; &nbsp;<tmpl_var rate.label> [ <p style="display:inline;vertical-align:middle;"><a href="<tmpl_var rate.url.thumbsUp>"><img src="<tmpl_var thumbsUp.icon.url>" alt="+" style="border: 0px;vertical-align:middle;" /></a></p> | <p style="display:inline;vertical-align:middle;"><a href="<tmpl_var rate.url.thumbsDown>"><img src="<tmpl_var thumbsDown.icon.url>" alt="-" style="border: 0px;vertical-align:middle;" /></a></p> ]
</tmpl_unless>
<br />
<tmpl_if user.isModerator>
<b><tmpl_var status.label>:</b> <tmpl_var status> [ <tmpl_if isArchived> <a href="<tmpl_var unarchive.url>"><tmpl_var unarchive.label></a> <tmpl_else> <a href="<tmpl_var archive.url>"><tmpl_var archive.label></a></tmpl_if> ]<br />
<tmpl_else>
<tmpl_if user.isPoster>
<b><tmpl_var status.label>:</b> <tmpl_var status><br />
</tmpl_if>
</tmpl_if>
<tmpl_if karmaIsEnabled>
<b><tmpl_var karmaRank.label>:</b> <tmpl_var karmaRank><br />
<b><tmpl_var transferkarma.label>:</b>
<tmpl_var transfer.karma.form>
</tmpl_if>
</div>
<div class="collaborationThreadContent">
<p><b><tmpl_var userDefined2> <tmpl_var userDefined3></b></p>
<tmpl_var content>
</div>
<tmpl_if attachment_loop>
<br />
<tmpl_loop attachment_loop>
<div style="float: left; padding: 5px;">
<a href="<tmpl_var url>"><tmpl_if isImage><img src="<tmpl_var thumbnail>" border="0" alt="<tmpl_var filename>" /><tmpl_else><img src="<tmpl_var icon>" border="0" alt="<tmpl_var filename>" align="middle" /> <tmpl_var filename></tmpl_if></a>
</div>
</tmpl_loop>
<div style="clear: both;"></div>
<br />
</tmpl_if>
<tmpl_unless isLocked>
<div class="postControls">
<tmpl_if user.canReply>
<a href="<tmpl_var reply.url>"><tmpl_var reply.label></a>
&bull;
</tmpl_if>
<tmpl_if user.canEdit>
<a href="<tmpl_var edit.url>"><tmpl_var edit.label></a>
&bull;
<a href="<tmpl_var delete.url>"><tmpl_var delete.label></a>
</tmpl_if>
</div>
</tmpl_unless>
<div style="clear:both;"></div>
<tmpl_if repliesAllowed>
<div style="float: left; width: 70%">
<h2><tmpl_var replies.label></h2>
</div>
<div style="width: 30%; float: left; text-align: right;">
<tmpl_if layout.isFlat>
<a href="<tmpl_var layout.nested.url>"><tmpl_var layout.nested.label></a>
<tmpl_else>
<a href="<tmpl_var layout.flat.url>"><tmpl_var layout.flat.label></a>
</tmpl_if>
</div>
<div style="clear: both;"></div>
<tmpl_if layout.isFlat>
<!-- begin flat layout -->
<tmpl_loop post_loop>
<tmpl_unless isThreadRoot>
<div class="postBorder<tmpl_if isCurrent>Current</tmpl_if>">
<a name="<tmpl_var assetId>"></a>
<div class="postSubject">
<tmpl_var title>
</div>
<div class="postData">
<table cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="width:50%;text-align:left;">
<b><tmpl_var user.label>:</b>
<tmpl_if user.isVisitor>
<tmpl_var username>
<tmpl_else>
<a href="<tmpl_var userProfile.url>"><tmpl_var username></a>
</tmpl_if>
<br />
<b><tmpl_var date.label>:</b> <tmpl_var dateSubmitted.human>
</td>
<td style="width:50%;text-align:left;">
<b><tmpl_var rating.label>:</b> <tmpl_var rating>
<tmpl_unless hasRated>
&nbsp; &nbsp;<tmpl_var rate.label> [ <p style="display:inline;vertical-align:middle;"><a href="<tmpl_var rate.url.thumbsUp>"><img src="<tmpl_var thumbsUp.icon.url>" alt="+" style="border: 0px;vertical-align:middle;" /></a></p> | <p style="display:inline;vertical-align:middle;"><a href="<tmpl_var rate.url.thumbsDown>"><img src="<tmpl_var thumbsDown.icon.url>" alt="-" style="border: 0px;vertical-align:middle;" /></a></p> ]
</tmpl_unless>
<b><tmpl_var status.label>:</b> <tmpl_var status><br />
</td>
</tr>
</table>
</div>
<div class="postMessage">
<tmpl_var content>
<tmpl_loop attachment_loop>
<div style="float: left; padding: 5px;"><a href="<tmpl_var url>"><tmpl_if isImage><img src="<tmpl_var thumbnail>" border="0" alt="<tmpl_var filename>" /><tmpl_else><img src="<tmpl_var icon>" border="0" alt="<tmpl_var filename>" align="middle" /> <tmpl_var filename></tmpl_if></a></div>
</tmpl_loop>
<div style="clear: both;"></div>
</div>
<tmpl_unless isLocked>
<div class="postControls">
<tmpl_if user.canReply>
<a href="<tmpl_var reply.url>"><tmpl_var reply.label></a>
&bull;
</tmpl_if>
<tmpl_if user.canEdit>
<a href="<tmpl_var edit.url>"><tmpl_var edit.label></a>
&bull;
<a href="<tmpl_var delete.url>"><tmpl_var delete.label></a>
</tmpl_if>
</div>
</tmpl_unless>
</div>
</tmpl_unless>
</tmpl_loop>
<!-- end flat layout -->
</tmpl_if>
<tmpl_if layout.isNested>
<!-- begin nested layout -->
<tmpl_loop post_loop>
<tmpl_unless isThreadRoot>
<div style="margin-left: <tmpl_var depthX10>px;">
<div class="postBorder<tmpl_if isCurrent>Current</tmpl_if>">
<a name="<tmpl_var assetId>"></a>
<div class="postSubject">
<tmpl_var title>
</div>
<div class="postData">
<table cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="width:50%;text-align:left;">
<b><tmpl_var user.label>:</b>
<tmpl_if user.isVisitor>
<tmpl_var username>
<tmpl_else>
<a href="<tmpl_var userProfile.url>"><tmpl_var username></a>
</tmpl_if>
<br />
<b><tmpl_var date.label>:</b> <tmpl_var dateSubmitted.human>
</td>
<td style="width:50%;text-align:left;">
<b><tmpl_var rating.label>:</b> <tmpl_var rating>
<tmpl_unless hasRated>
&nbsp; &nbsp;<tmpl_var rate.label> [ <p style="display:inline;vertical-align:middle;"><a href="<tmpl_var rate.url.thumbsUp>"><img src="<tmpl_var thumbsUp.icon.url>" alt="+" style="border: 0px;vertical-align:middle;" /></a></p> | <p style="display:inline;vertical-align:middle;"><a href="<tmpl_var rate.url.thumbsDown>"><img src="<tmpl_var thumbsDown.icon.url>" alt="-" style="border: 0px;vertical-align:middle;" /></a></p> ]
</tmpl_unless>
<b><tmpl_var status.label>:</b> <tmpl_var status><br />
</td>
</tr>
</table>
</div>
<div class="postMessage">
<tmpl_var content>
<tmpl_loop attachment_loop>
<div style="float: left; padding: 5px;"><a href="<tmpl_var url>"><tmpl_if isImage><img src="<tmpl_var thumbnail>" border="0" alt="<tmpl_var filename>" /><tmpl_else><img src="<tmpl_var icon>" border="0" alt="<tmpl_var filename>" align="middle" /> <tmpl_var filename></tmpl_if></a></div>
</tmpl_loop>
<div style="clear: both;"></div>
</div>
<tmpl_unless isLocked>
<div class="postControls">
<tmpl_if user.canReply>
<a href="<tmpl_var reply.url>"><tmpl_var reply.label></a>
&bull;
</tmpl_if>
<tmpl_if user.canEdit>
<a href="<tmpl_var edit.url>"><tmpl_var edit.label></a>
&bull;
<a href="<tmpl_var delete.url>"><tmpl_var delete.label></a>
</tmpl_if><br />
</div>
</tmpl_unless>
</div>
</div>
</tmpl_unless>
</tmpl_loop>
<!-- end nested layout -->
</tmpl_if>
<tmpl_if pagination.pageCount.isMultiple>
<div class="pagination" style="margin-top: 20px;">
[ <tmpl_var pagination.previousPage> | <tmpl_var pagination.pageList.upTo10> | <tmpl_var pagination.nextPage> ]
</div>
</tmpl_if>
</tmpl_if>
<div class="postControls">
<tmpl_if previous.url>
<a href="<tmpl_var previous.url>"><tmpl_var previous.label></a>
&bull;
</tmpl_if>
<a href="<tmpl_var collaboration.url>"><tmpl_var back.label></a>
<tmpl_if next.url>
&bull;
<a href="<tmpl_var next.url>"><tmpl_var next.label></a>
</tmpl_if>
<tmpl_if user.canPost>
&bull;
<a href="<tmpl_var add.url>"><tmpl_var add.label></a>
&bull;
</tmpl_if>
<tmpl_if user.isModerator>
<tmpl_if isSticky>
<a href="<tmpl_var unstick.url>"><tmpl_var unstick.label></a>
&bull;
<tmpl_else>
<a href="<tmpl_var stick.url>"><tmpl_var stick.label></a>
&bull;
</tmpl_if>
<tmpl_if isLocked>
<a href="<tmpl_var unlock.url>"><tmpl_var unlock.label></a>
&bull;
<tmpl_else>
<a href="<tmpl_var lock.url>"><tmpl_var lock.label></a>
&bull;
</tmpl_if>
</tmpl_if>
<tmpl_unless user.isVisitor>
<tmpl_if user.isSubscribed>
<a href="<tmpl_var unsubscribe.url>"><tmpl_var unsubscribe.label></a>
<tmpl_else>
<a href="<tmpl_var subscribe.url>"><tmpl_var subscribe.label></a>
</tmpl_if>
</tmpl_unless>
<br />
</div>
~~~
<style type="text/css">
.defaultSubmissionDetails
{
float: right;
padding: 2px;
margin: 2px;
font-size:9pt;
font-family:arial;
margin-bottom:20px;
}
.defaultSubmissionDetails a
{
color:#29587E;
}
.postBorder {
border: 1px solid #cccccc;
margin-bottom: 10px;
}
.postBorderCurrent {
border: 3px dotted black;
margin-bottom: 10px;
}
.postSubject {
border-bottom: 1px solid #cccccc;
font-weight: bold;
padding: 3px;
font-family:arial;
}
.postData {
border-bottom: 1px solid #cccccc;
background-color: #eeeeee;
padding: 3px;
}
.postData td {
font-size: 9pt;
color: black;
font-family:arial;
}
.postControls {
border-top: 1px solid #cccccc;
background-color: #eeeeee;
color: black;
padding: 3px;
font-family:arial;
clear:both;
width:100%;
display:block;
-moz-box-sizing:border-box;
}
.postMessage {
padding: 3px;
}
.currentThread {
background-color: #eeeeee;
}
.threadHead {
font-weight: bold;
border-bottom: 1px solid #cccccc;
font-size: 9pt;
background-color: #eeeeee;
color: black;
padding: 3px;
font-family:arial;
}
.threadData {
font-size: 11px;
padding: 3px;
font-family:arial;
}
.postControls
{
background:#C0C0C0;
display:block;
text-align:right;
padding:3px;
font-size:9pt;
font-family:arial;
margin-top: 1px;
}
.postControls a:link, .postControls a:visited
{
color:white;
}
.collaborationThreadContent
{
font-family:arial;
font-size:9pt;
}
</style>

View file

@ -29,11 +29,6 @@
<b><tmpl_var status.label>:</b> <tmpl_var status><br />
</tmpl_if>
</tmpl_if>
<tmpl_if karmaIsEnabled>
<b><tmpl_var karmaRank.label>:</b> <tmpl_var karmaRank><br />
<b><tmpl_var transferkarma.label>:</b>
<tmpl_var transfer.karma.form>
</tmpl_if>
</div>
<div class="collaborationThreadContent">

View file

@ -21,15 +21,181 @@ my $quiet; # this line required
my $session = start(); # this line required
fixCs();
fixCss();
finish($session); # this line required
#-------------------------------------------------
sub fixCss {
print "\tUpdating CSS.\n" unless ($quiet);
my $asset = WebGUI::Asset->new($session, "7.0-style0000000000051","WebGUI::Asset::Snippet");
if (defined $asset) {
my $css = <<STOP;
body, html {
margin:0px;
background-color:#b53018;
padding:0px;
}
body a {
color:#EE963E;
}
#main {
width:98%;
/*min-width:790px;*/
margin:0px;
padding:0px;
padding-top:20px;
padding-bottom:20px;
position:relative;
}
#header {
background: url('^FileUrl(style3/header_bg.jpg);') repeat-x;
width:100%;
margin:0px;
height:115px;
}
#headerTitle {
background: url('^FileUrl(style3/header_left.jpg);') no-repeat left top;
height:100%;
width:100%;
}
#headerRight {
background: url('^FileUrl(style3/header_right.jpg);') no-repeat right top;
width:100%;
height:100%;
text-align:right;
position:relative;
}
#headerRight #title {
position:absolute;
top:25px;
left:20px;
font-family:arial;
text-align:left;
}
#title h1 {
text-transform:uppercase;
margin-bottom:0px;
font-weight:normal;
font-size:26pt;
margin-top:0px;
color:white;
}
#title h1 a {
color:white;
text-decoration:none;
}
#title h2 {
margin:0px;
font-size:12pt;
color:#bebebe;
padding-left:20px;
}
#title img {
z-index:5;
}
#login {
position:absolute;
font-size:8pt;
top:45%;
right:150px;
color:white;
z-index:6;
font-family:arial;
}
#login a {
color:white;
}
.loginBox {
font-size:8pt;
margin:0px;
display:inline;
}
.loginBox input {
font-size:8pt;
}
#mainBody {
width:100%;
margin:0px;
height:500px;
background: #fff;
position:relative;
}
#main > #mainBody {
height:auto;
min-height:500px;
}
#contentArea {
z-index:2;
position:relative;
padding-top:50px;
padding-left:10px;
padding-right:20px;
padding-bottom:20px;
-moz-box-sizing:border:box;
font-family:verdana;
font-size:9pt;
}
html #main #mainBody #contentArea {
height:1%;
}
#contentArea a {
font-weight:bold;
letter-spacing:1px;
font-size:8pt;
}
#topCorner {
width:100%;
height:214px;
position:absolute;
top:0px;
left:0px;
background: url('^FileUrl(style3/main_top_bg.jpg);') repeat-x;
z-index:1;
}
#bottomCorner {
width:100%;
height:211px;
position:absolute;
bottom:0px;
right:0px;
background: url('^FileUrl(style3/main_bottom.jpg);') no-repeat right;
z-index:1;
}
#footer {
width:100%;
margin:0px;
background:#000 url('^FileUrl(style3/footer_right.jpg);') no-repeat right top;
height:57px;
border-top:solid #B53018 2px;
text-align:right;
position:relative;
}
#footer #copyright {
color:#3b3b3b;
font-family:arial;
position:absolute;
top:20px;
left:30px;
font-size:8pt;
}
STOP
$asset->addRevision({
snippet=>$css
});
}
}
#-------------------------------------------------
sub fixCs {
my $session = shift;
print "\tFixing CS bugs.\n" unless ($quiet);
$session->db->write("alter table Thread change karmaRank karmaRank float(11,6)");
$session->db->write("update Thread set karmaRank=karma/karmaScale");
}