[SPTUsers] Variable Width SPT Blue

Scot Wilcoxon scot at wilcoxon.org
Fri Mar 7 00:16:48 CST 2003


I dislike fixed-width pages, particularly when something like a 
right-side navigation panel is off-screen.

I found that the following changes let me run SPT Blue to at least as 
small as 640x480 with a somewhat large font.  The browser still updates 
quickly, even on a 133MHz machine, probably because there isn't much 
text on most pages so table resize doesn't take long.

Most of the changes simply remove width definitions.

An important item is to shrink the number of characters shown in the 
displayed URL, from 60 to about 40.  With long URLs, that is what was 
determining the width of the Resources tables.

If the stuff at the bottom of a page ends up being too long, you can 
customize your StandardPageEnd.  With 1.1.1, the width of that text 
depends upon your definition of the Legal/Copyright notice.

When viewing a Full Record, the URL does not wrap and tends to determine 
the page width.  I didn't alter that.


diff -r ../SPTUI--PMQ/MetadataTool/include/SPT--Common.html 
./MetadataTool/include/SPT--Common.html
49c49
<     $MaxUrlLength = 60;
---
 >     $MaxUrlLength = 40;
diff -r ../SPTUI--PMQ/MetadataTool/include/SPT--StandardPageStart.html 
./MetadataTool/include/SPT--StandardPageStart.html
19c19
< <table cellpadding="0" cellspacing="0" border="0" width="744" 
bgcolor="#FFFFFF" align="center">
---
 > <table cellpadding="0" cellspacing="0" border="0" width="100%" 
bgcolor="#FFFFFF" align="center">
26c26
<         <td width="515" class="bodyCol" valign="top">
---
 >         <td width="100%" class="bodyCol" valign="top">
diff -r ../SPTUI--PMQ/NAME ./NAME
1c1
< FAQ Blue
---
 > FAQ Blue New
diff -r ../SPTUI--PMQ/SPT--EditAnnouncement.html 
./SPT--EditAnnouncement.html
28c28
<         <table border="0" cellpadding="0" cellspacing="0" width="505" 
align="center" class="lightBody">
---
 >         <table border="0" cellpadding="0" cellspacing="0" 
align="center" class="lightBody">
diff -r ../SPTUI--PMQ/SPT--HelpNav.html ./SPT--HelpNav.html
1c1
< <table width="507" border="0" cellpadding="0" cellspacing="0">
---
 > <table border="0" cellpadding="0" cellspacing="0">
8a9,12
 > <td>&nbsp;</td>
 > </tr>
 >
 > <tr>
10c14
< <td align="left" valign="top">
---
 > <td align="right" valign="top">
12c16
<       <table width="350" border="0" cellpadding="0" cellspacing="0" 
style="margin-top: 23px;">
---
 >       <table border="0" cellpadding="0" cellspacing="0" 
style="margin-top: 23px;">
diff -r ../SPTUI--PMQ/SPT--Home.html ./SPT--Home.html
83c83
< <table cellpadding="0" cellspacing="0" border="0" width="515" 
class="HomeBack">
---
 > <table cellpadding="0" cellspacing="0" border="0" class="HomeBack">
86,87c86,87
<         <td height="20" width="425" align="left" 
background="SPTUI--Default/images/TMenu.gif"><img 
src="SPTUI--Default/images/news.gif" width="177" height="20" vspace="0" 
alt="News and Announcements"></td>
<         <td height="20" width="80" align="right" 
background="SPTUI--Default/images/TMenu.gif"><?php  if 
($User->HasPriv(PRIV_NEWSADMIN)) {  ?><a 
href="SPT--EditAnnouncement.php"><img 
src="SPTUI--Default/images/Add_Blue.gif" width="45" height="20" 
border="0" vspace="0" alt="Add Announcement"></a><?php  } else {  ?><img 
src="SPTUI--Default/images/spacer.gif" width="1" border="0" alt="spacer" 
vspace="0"><?php  }  ?></td>
---
 >         <td height="20" align="left" 
background="SPTUI--Default/images/TMenu.gif"><img 
src="SPTUI--Default/images/news.gif" width="177" height="20" vspace="0" 
alt="News and Announcements"></td>
 >         <td height="20" width="8" align="right" 
background="SPTUI--Default/images/TMenu.gif"><?php  if 
($User->HasPriv(PRIV_NEWSADMIN)) {  ?><a 
href="SPT--EditAnnouncement.php"><img 
src="SPTUI--Default/images/Add_Blue.gif" width="45" height="20" 
border="0" vspace="0" alt="Add Announcement"></a><?php  } else {  ?><img 
src="SPTUI--Default/images/spacer.gif" width="1" border="0" alt="spacer" 
vspace="0"><?php  }  ?></td>
92c92
<         <td width="505" colspan="2">
---
 >         <td colspan="2">
103c103
<         <td height="5" width="505" colspan="2"><img 
src="SPTUI--Default/images/B.gif" width="100%" height="5" vspace="0" 
alt=""></td>
---
 >         <td height="5" colspan="2"><img 
src="SPTUI--Default/images/B.gif" width="100%" height="5" vspace="0" 
alt=""></td>
110c110
< <table cellpadding="0" cellspacing="0" border="0" width="515" 
class="HomeBack">
---
 > <table cellpadding="0" cellspacing="0" border="0" class="HomeBack">
113c113
<         <td width="505" align="left" 
background="SPTUI--Default/images/TMenu.gif"><img 
src="SPTUI--Default/images/new.gif" width="111" height="20" alt="New 
Resources"></td>
---
 >         <td align="left" 
background="SPTUI--Default/images/TMenu.gif"><img 
src="SPTUI--Default/images/new.gif" width="111" height="20" alt="New 
Resources"></td>
118c118
<         <td width="505">
---
 >         <td>
127c127
<         <td width="505"><img src="SPTUI--Default/images/B.gif" 
width="100%" height="5" alt=""></td>
---
 >         <td><img src="SPTUI--Default/images/B.gif" width="100%" 
height="5" alt=""></td>
diff -r ../SPTUI--PMQ/SPT--SysAdminHelp.html ./SPT--SysAdminHelp.html
1c1
< <table cellpadding="0" cellspacing="0" border="0" style="margin-top: 
10px;" width="505" align="center">
---
 > <table cellpadding="0" cellspacing="0" border="0" style="margin-top: 
10px;" align="center">
4c4,6
<               <td rowspan="2" valign="top">
---
 >       </tr>
 >       <tr>
 >               <td valign="top">
16,18d17
<       </tr>
<       <tr>
<               <td width="104">&nbsp;</td>
diff -r ../SPTUI--PMQ/include/SPT--Common.html ./include/SPT--Common.html
49c49
<     $MaxUrlLength = 60;
---
 >     $MaxUrlLength = 40;
diff -r ../SPTUI--PMQ/include/SPT--StandardPageStart.html 
./include/SPT--StandardPageStart.html
19c19
< <table cellpadding="0" cellspacing="0" border="0" width="744" 
bgcolor="#FFFFFF" align="center">
---
 > <table cellpadding="0" cellspacing="0" border="0" width="100%" 
bgcolor="#FFFFF" align="center">
---
 > <table cellpadding="0" cellspacing="0" border="0" width="100%" 
bgcolor="#FFFFFF" align="center">
26c26
<         <td width="515" class="bodyCol" valign="top">
---
 >         <td width="100%" class="bodyCol" valign="top">



More information about the SPTUsers mailing list