Author |
Topic  |
|
dcwebman
Junior Member
 
USA
105 Posts |
Posted - 14 September 2000 : 15:34:53
|
I feel it's my time to add, so here is a simple MOD. The Member Information (members.asp) has columns that can be sorted. It would be nice to show which column is the current one being sorted, thus, here's the MOD.
There is an up arrow and down arrow that is used depending on the sort. Put those in the forums folder. You can get those at: http://www.copesonline.com/download/arrows.zip (new and final location)
In members.asp, after the <pre id=code><font face=courier size=2 id=code><!--#INCLUDE FILE="inc_top.asp" --></font id=code></pre id=code> line, put: <pre id=code><font face=courier size=2 id=code><!--#INCLUDE FILE="inc_sortarrow.asp" --></font id=code></pre id=code>
Down around line 167 where the different column names are, right after: <pre id=code><font face=courier size=2 id=code> <table border="0" width="100%" cellspacing="1" cellpadding="4"> <tr> <td align="center" bgcolor="<% =strHeadCellColor %>"> </td> </font id=code></pre id=code>
I can't post the whole lines to replace in here because of a bug in the forum giving me an error, but the end of the next 8 lines is: <pre id=code><font face=courier size=2 id=code> Member Name</font>[/b]</a><font color=blue><% =PutArrow(Request.QueryString("method"), "nameasc", "namedesc" ) %></font id=blue></td> Title</font>[/b]</a><font color=blue><% =PutArrow(Request.QueryString("method"), "levelasc", "leveldesc" ) %></font id=blue></td> Posts</font>[/b]</a><font color=blue><% =PutArrow(Request.QueryString("method"), "postsasc", "postsdesc" ) %></font id=blue></td> Last Post</font>[/b]</a><font color=blue><% =PutArrow(Request.QueryString("method"), "lastpostdateasc", "lastpostdatedesc" ) %></font id=blue></td> Member Since</font>[/b]</a><font color=blue><% =PutArrow(Request.QueryString("method"), "dateasc", "datedesc" ) %></font id=blue></td> Country</font>[/b]</a><font color=blue><% =PutArrow(Request.QueryString("method"), "countryasc", "countrydesc" ) %></font id=blue></td> <% if mlev = 4 or mlev = 3 then %> Last Visit</font>[/b]</a><font color=blue><% =PutArrow(Request.QueryString("method"), "lastheredateasc", "lastheredatedesc" ) %></font id=blue></td> </font id=code></pre id=code>
----------- Jeff
Edited by - dcwebman on 31 January 2001 08:26:26 |
|
dcwebman
Junior Member
 
USA
105 Posts |
Posted - 28 September 2000 : 09:13:26
|
Did anybody try this? If nobody wants it, I can delete the file from my website.
----------- Jeff |
 |
|
gor
Retired Admin
    
Netherlands
5511 Posts |
Posted - 28 September 2000 : 09:52:05
|
Jeff -
Haven't tried yet, but would you mind leaving the file there a bit longer ?
I check this forum now and then when I'm looking for things to include, but normally don't download the files until I really use them. But I like the concept of seeing what column is sorted on.
<b>Pierre Gorissen</b>
<font color=blue><font size=1>Experience is that marvelous thing that enables you to recognize a mistake when you make it again. </font id=blue></font id=size1><font size=1><font color=black>F.P.Jones</font id=size1></font id=black> |
 |
|
dcwebman
Junior Member
 
USA
105 Posts |
Posted - 28 September 2000 : 13:09:54
|
No problem, I'll leave the file then. Thanks.
----------- Jeff |
 |
|
James
Average Member
  
USA
539 Posts |
Posted - 28 September 2000 : 23:19:11
|
Jeff,
Works likew a charm. I did however have a conflicting thought. I debated for some time on whether to change the arrows names around so that <i>asc</i> would point down and <i>desc</i> would point up. I just seemed more natural on some of the fields. But after a while of trying it out, I decided to leave them as is. Nice mod.
- <font color=red>*</font id=red><font color=blue>Interested in <b>Radio Control</b> </font id=blue><font color=red>-</font id=red> http://www.rcwebboard.com/<font color=red>*</font id=red> |
 |
|
dcwebman
Junior Member
 
USA
105 Posts |
Posted - 02 October 2000 : 10:34:39
|
Thanks for trying it. I just tried to duplicate the way Windows programs like Windows Explorer works.
----------- Jeff |
 |
|
James
Average Member
  
USA
539 Posts |
Posted - 02 October 2000 : 21:28:33
|
No problem. It's on my site to stay at http://www.rcwebboard.com/forum. BTW, I think that many people have no clue that the members list is sort-able (I know I didn't until someone mentioned it me). I think the little arrow makes them curious and helps them learn that if they click a category, it will sort off that one.
One thing i would add though, is to make the arrow itself clickable too. Especially since it's included with the Category name.
- <font color=red>*</font id=red><font color=blue>Interested in <b>Radio Control</b> </font id=blue><font color=red>-</font id=red> http://www.rcwebboard.com/<font color=red>*</font id=red> |
 |
|
dcwebman
Junior Member
 
USA
105 Posts |
Posted - 03 October 2000 : 14:41:15
|
I agree about clicking the arrow. The only way I know of though to make that part of the link and not have an link line underneath the arrow is to use CSS. Since that isn't being used yet, I didn't bother. Maybe somebody knows an easier way. Unless you don't mind the look of the underline under the arrow...
----------- Jeff |
 |
|
gor
Retired Admin
    
Netherlands
5511 Posts |
Posted - 03 October 2000 : 14:46:21
|
Jeff
If it is an image you don't get a line under it just a border, and if you set border to 0 like is done with i.e. all the page up images and the logo's etc you don't even get a border:
<a href="#top"><img src="icon_go_up.gif" height=15 width=15 <b>border="0"</b> align="right" alt="Go To Top Of Page"></a>
<b>Pierre Gorissen</b>
<font color=blue><font size=1>A man who is 'of sound mind' is one who keeps the inner madman under lock and key. </font id=blue></font id=size1><font size=1><font color=black>Paul Valery</font id=size1></font id=black> |
 |
|
gor
Retired Admin
    
Netherlands
5511 Posts |
Posted - 03 October 2000 : 14:51:22
|
BTW, remembering one of your earlier posts about the "All Forums" link I realise you might mean the line betweeen the text and the icon. You can fix that by not including the space between them in the link. You just have to make two links:
<a href="members.asp?method=<% if Request.QueryString("method") = "nameasc" then Response.Write("namedesc") else Response.Write("nameasc") end if %>"><b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strHeadFontColor %>"> Member Name</font></b></a> <a href="members.asp?method=<% if Request.QueryString("method") = "nameasc" then Response.Write("namedesc") else Response.Write("nameasc") end if %>"><b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strHeadFontColor %>"><% =PutArrow(Request.QueryString("method"), "nameasc", "namedesc" ) %></a>
This will display a not-underlined space between text and arrow, and make both clickable.
<b>Pierre Gorissen</b>
<font color=blue><font size=1>A man who is 'of sound mind' is one who keeps the inner madman under lock and key. </font id=blue></font id=size1><font size=1><font color=black>Paul Valery</font id=size1></font id=black> |
 |
|
dcwebman
Junior Member
 
USA
105 Posts |
Posted - 04 October 2000 : 09:56:25
|
<img src=icon_smile_blush.gif border=0 align=middle> Gor, you were correct in your first reply. I wasn't even thinking about the image not getting the underline and didn't try it. That's because the original code where I pulled it from was using CSS. BTW, any chance of it making it in the next version? Or do I have to keep patching?
----------- Jeff |
 |
|
|
Topic  |
|