Author |
Topic  |
richfed
Average Member
  
United States
999 Posts |
Posted - 21 January 2004 : 06:23:28
|
Thanks, fellas. Appreciate your time & effort. Will implement soon! |
 |
|
richfed
Average Member
  
United States
999 Posts |
Posted - 24 January 2004 : 09:20:48
|
Well, that almost worked ... the icon is there & the top part of the table looks fine. However, since it added a column, there's a black edge to the table on the right - under the archive icon cell only.
How could I eliminate a new column, and simply call the icon in an existing one - say the last post cell? Alternately, eliminate the column of black cells. |
 |
|
masterao
Senior Member
   
Sweden
1678 Posts |
|
richfed
Average Member
  
United States
999 Posts |
|
RichardKinser
Snitz Forums Admin
    
USA
16655 Posts |
Posted - 24 January 2004 : 11:30:08
|
right around line #546 of (an unmodified) forum.asp find this:
if mlev > 0 or (lcase(strNoCookies) = "1") then and try changing it to: if mlev > 0 or (lcase(strNoCookies) = "1") or (Forum_ACount > 0 and strArchiveState = "1") then |
 |
|
richfed
Average Member
  
United States
999 Posts |
Posted - 24 January 2004 : 12:05:50
|
Partially fixed it, Richard. Now, though, there are icons showing in that column that ought not be. Still black cells at top & bottom.
And, still, all is fine if logged in.
BTW, there were three instances of that code - 1st & 3rd had no effect. 2nd is what I changed and is there now - line 705 on my heavily modded forum.asp. Was the middle one the correct one to change?
|
 |
|
RichardKinser
Snitz Forums Admin
    
USA
16655 Posts |
Posted - 24 January 2004 : 12:23:07
|
you should probably just remove the changes I posted then. Is there a reason you are putting it in that column? Would probably be better to place it near where the Forum Name is displayed in the tree view at the top. |
 |
|
richfed
Average Member
  
United States
999 Posts |
Posted - 24 January 2004 : 12:40:14
|
Just putting it there because that's what was suggested in Marcel's reply up above. Works fine for all members - it's just when I try to get it visible to all visitors, as well, that I run into troubles.
The tree view would be fine by me! |
 |
|
masterao
Senior Member
   
Sweden
1678 Posts |
Posted - 24 January 2004 : 21:39:27
|
quote: Originally posted by richfed
Sure: http://www.mohicanpress.com/messageboard/forum.asp?FORUM_ID=15
BTW, it looks fine when logged in.
I don't see at all, as Im not logged in . Do you have a test-accont that I could use?
If you want to go with the tree-view, locate the following in forum.asp (line 377 in an unmodded forum.asp):
Response.Write " <a href=""forum.asp?" & ArchiveLink & "FORUM_ID=" & Forum_ID & """>" & ChkString(Forum_Subject,"display") & "</a></font></td>" & vbNewLine & _
Replace the above with the following:
Response.Write " <a href=""forum.asp?" & ArchiveLink & "FORUM_ID=" & Forum_ID & """>" & ChkString(Forum_Subject,"display") & "</a><br />" & vbNewLine & _
" " & getCurrentIcon(strIconBlank,"","align=""absmiddle""") & getCurrentIcon(strIconBlank,"","align=""absmiddle""") & getCurrentIcon(strIconBar,"","align=""absmiddle""")
if Forum_ACount > 0 and strArchiveState = "1" then
if request("ARCHIVE") <> "true" then
Response.Write "<a href=""forum.asp?ARCHIVE=true&FORUM_ID=" & Forum_ID & """>" & getCurrentIcon(strIconFolderArchived,"View Archived posts","hspace=""0""") & "</a> <a href=""forum.asp?ARCHIVE=true&FORUM_ID=" & Forum_ID & """>View archived forum</a>"
else
Response.Write "<a href=""forum.asp?FORUM_ID=" & Forum_ID & """>" & getCurrentIcon(strIconFolder,"View current posts","hspace=""0""") & "</a> <a href=""forum.asp?FORUM_ID=" & Forum_ID & """>View normal forum</a>"
end if
end if
Response.Write "</font></td>" & vbNewLine & _
It should work, as it worked on my test-server . |
Jan =========== FR Portal Forums | Active Users 4.0.20 Mod |
 |
|
richfed
Average Member
  
United States
999 Posts |
Posted - 25 January 2004 : 07:44:55
|
Sorry, Masterao ... I re-uploaded the good forum.asp after Richard's last post. You didn't see anything because you were "merely" a visitor - that is [was] my problem - I want[ed] all visitors to see that there are archives in a forum while browsing the forum. The base code provides merely for a link on default.asp - easily overlooked.
Anyway, problem fixed - I used your tree code & it works perfectly! Now, all can easily see that there are archives and, if a member, get an icon to boot, courtesy of Marcel's code ...
Looks good, works well ... I'm happy! Thank you very much!! |
Rich [size=1]A Complete Idiot's Guide to MOD Implementation || On the Trail of the Last of the Mohicans[/size=1] |
 |
|
masterao
Senior Member
   
Sweden
1678 Posts |
Posted - 25 January 2004 : 08:33:16
|
No problems, richfed. I suspected that had done that, as black space isn't beautiful to display .
Im glad you liked it. |
Jan =========== FR Portal Forums | Active Users 4.0.20 Mod |
 |
|
MarcelG
Retired Support Moderator
    
Netherlands
2625 Posts |
Posted - 22 June 2004 : 07:01:50
|
haha, glad I posted they way I did it here... I forgot to implement it into my new oxle code, and needed to do it today! The search works fantastic! Better than my memory  |
portfolio - linkshrinker - oxle - twitter |
 |
|
Topic  |
|