Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Adding Archive Icon To Forum.asp
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

richfed
Average Member

United States
999 Posts

Posted - 21 January 2004 :  06:23:28  Show Profile  Visit richfed's Homepage
Thanks, fellas. Appreciate your time & effort. Will implement soon!
Go to Top of Page

richfed
Average Member

United States
999 Posts

Posted - 24 January 2004 :  09:20:48  Show Profile  Visit richfed's Homepage
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.
Go to Top of Page

masterao
Senior Member

Sweden
1678 Posts

Posted - 24 January 2004 :  09:41:55  Show Profile  Visit masterao's Homepage
Can you post a link to the page, or show a screenshot?

Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod
Go to Top of Page

richfed
Average Member

United States
999 Posts

Posted - 24 January 2004 :  10:23:07  Show Profile  Visit richfed's Homepage
Sure: http://www.mohicanpress.com/messageboard/forum.asp?FORUM_ID=15

BTW, it looks fine when logged in.
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 24 January 2004 :  11:30:08  Show Profile
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
Go to Top of Page

richfed
Average Member

United States
999 Posts

Posted - 24 January 2004 :  12:05:50  Show Profile  Visit richfed's Homepage
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?

Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 24 January 2004 :  12:23:07  Show Profile
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.
Go to Top of Page

richfed
Average Member

United States
999 Posts

Posted - 24 January 2004 :  12:40:14  Show Profile  Visit richfed's Homepage
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!
Go to Top of Page

masterao
Senior Member

Sweden
1678 Posts

Posted - 24 January 2004 :  21:39:27  Show Profile  Visit masterao's Homepage
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
Go to Top of Page

richfed
Average Member

United States
999 Posts

Posted - 25 January 2004 :  07:44:55  Show Profile  Visit richfed's Homepage
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]
Go to Top of Page

masterao
Senior Member

Sweden
1678 Posts

Posted - 25 January 2004 :  08:33:16  Show Profile  Visit masterao's Homepage
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
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 22 June 2004 :  07:01:50  Show Profile  Visit MarcelG's Homepage
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
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.43 seconds. Powered By: Snitz Forums 2000 Version 3.4.07