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)
 Sub-Forums Mod
 New Topic  Reply to Topic
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 15

sr_erick
Senior Member

USA
1318 Posts

Posted - 28 September 2005 :  17:01:19  Show Profile  Visit sr_erick's Homepage  Send sr_erick a Yahoo! Message  Reply with Quote
AnonJr, have you managed to get the code working besides the jump to last post part?<




Erick
Snowmobile Fanatics

Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 28 September 2005 :  21:37:54  Show Profile  Visit AnonJr's Homepage  Reply with Quote
Yeah. All the post counts and topic counts are correct. The only two pieces left are the Jump to Last Post, and figuring out how I want to handle the display of moderators... I don't want to display duplicates, but I also don't want something to look un-moderated when it is.

Originally I had an office day tomorrow and I was going to try and fix that one problem and put what I had done up here over the weekend.... now that the schedule's been f'd up again, and I'm stuck doing more stuff in that "other duties as assigned" and less in the "Computer-based training Programmer" I don't know how ready it will be by the weekend.

I also have to have that CD ready to go for Bobby. If you can, please download the image and test it out. I'm about to update that post in a min.<

Edited by - AnonJr on 28 September 2005 21:56:07
Go to Top of Page

ElPazzo
Junior Member

Austria
116 Posts

Posted - 30 September 2005 :  08:53:06  Show Profile  Visit ElPazzo's Homepage  Reply with Quote
sr_erick in your forum i saw that subforums are shown as links in the parentfourm description. did you enter the links in the description or is that automatically implemented when placing a sub-forum<

www.pet-needs.com
www.pet-needs.com/forum
www.pet-needs.de
www.translating-it.com
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 30 September 2005 :  09:04:37  Show Profile  Visit AnonJr's Homepage  Reply with Quote
That's that call to "ForumSubForums(ForumID)" that I mentioned over in the other thread.<
Go to Top of Page

sr_erick
Senior Member

USA
1318 Posts

Posted - 30 September 2005 :  14:17:09  Show Profile  Visit sr_erick's Homepage  Send sr_erick a Yahoo! Message  Reply with Quote
I knew there was a lot of work and testing to do on it. I'm sorry if I've been of very little help. I haven't touched the mod in over a year myself...guess I haven't had the ambition to fix the things I knew were wrong. If you want, I can re-package the code with your updated code so people aren't downloading old things. You can also go ahead and add yourself as an author of the mod. We should also get the CSS removed or at least make it work with snitz as it is in stock form so people don't have to change all that. I could work on that part.<




Erick
Snowmobile Fanatics


Edited by - sr_erick on 30 September 2005 14:18:59
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 30 September 2005 :  16:15:43  Show Profile  Visit AnonJr's Homepage  Reply with Quote
I've been working on that. After I get the "Jump to last post" thing finished I was going to ask you if you minded me posting an updated version. If you don't have any objections I can make what I currently have working available for download over the weekend. I'll add the updated instructions too.<
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 08 October 2005 :  09:13:43  Show Profile  Visit AnonJr's Homepage  Reply with Quote
Ok. Here we go. (I apologize in advance to those without wide-aspect monitors)

I haven't had a chance to package it neatly, but I didn't want to just sit on what I've been working on. I'ts kinda rough, and there are places for improvement... I see a few now that I'll be working on if I get a chance next week.

This will fix the "Jump to last Post", the counts for the topcis and posts, and in the final statistics. I've added two new functions, and edited the "ListSubForums" function to fix the "Jump to last Post" in the sbuforum listing.

First, it assumes you've done the fix I mentioned here on 20 Sept.

Then, you'll need to replace your subform.asp with this one.(I'd renamed it inc_subforum.asp to keep everything more organized)

Note that I've added "Function SubForumStats(ForumID)". This does a similar function as "sub ForumSubForums(ForumID)", except it returns more statistics as an array.

Keep in mind that all line numbers are using an SBII version of Snitz. I've not had the time to get everything ready for a standard version... yet.

You will need to do the following edit to default.asp:

Replace everything you have between the
If IsNull(ForumParent) Then ... End If
you just recently added as per the first step with the following:
If IsNull(ForumParent) Then
	arrSubInfo = SubForumStats(ForumID)
	if Request.Cookies(HideForumCat) <> "Y" then  '##### added as part of Minimize Category Mod #####
	Response.Write "<tr class=""fcc iffc c"" valign=""top"">" & _
	"<td>"
	if ForumFType = 0 then
		ChkIsNew(ForumLastPost)
	else 
		Response.Write "<a href=""" & ForumURL & """ target=""_blank"">" & getCurrentIcon(strIconUrl,"Visit " & chkString(ForumSubject,"display"),"hspace=""0""") & "</a>"
	end if 
	Response.Write "</td>" & _
	"<td class=""ifl l"""
	if ForumFType = 1 then
		Response.Write " colspan=""4"""
	end if
	Response.Write "><a href="""
	if ForumFType = 0 then
		Response.Write "forum.asp?forum_id=" & ForumID & """>"
	else 
		Response.Write	ForumURL & """ target=""_blank"">"
	end if 
	Response.Write chkString(ForumSubject,"display") & "</a><br />" & _
	"<span class=""ffs"">" & formatStr(ForumDescription) & "</span>" & arrSubInfo(0)
	Response.Write "</td>"
	if ForumFType = 0 then
		if IsNull(ForumTopics) then 
			Response.Write "<td>" & 0 + cInt(arrSubInfo(1)) & "</td>"
		else
			Response.Write "<td>" & cInt(ForumTopics) + cInt(arrSubInfo(1)) & "</td>"
		end if 
		if IsNull(ForumCount) then 
			Response.Write "<td>" & 0 + cInt(arrSubInfo(2)) & "</td>"
		else
			Response.Write "<td>" & cInt(ForumCount) + cInt(arrSubInfo(2)) & "</td>"
		end if 
		If ForumLastPost <> "" And (arrSubInfo(3) = "none" Or ForumLastPost > arrSubInfo(3)) Then
			strLastUser = "<br />by:&nbsp;<span class=""ifl"">" & profileLink(chkString(ForumMemberName,"display"),ForumMemberID) & "</span>"
			if strJumpLastPost = "1" then strLastUser = strLastUser & "&nbsp;" & DoLastPostLink(true)
			Response.Write "<td class=""ffs nw""><b>" & ChkDate(ForumLastPost, "</b><br />" ,true) & strLastUser & "</td>"
		ElseIf (arrSubInfo(4) <> "") Then
			Response.Write "<td class=""ffs nw"">" & arrSubInfo(4) & "</td>"
		Else
			Response.Write "<td class=""ffs nw"">&nbsp;</td>"
		End If
	else
		'## Do Nothing 
	end if 
	if (strShowModerators = "1") or (mlev = 4 or mlev = 3) then 
		Response.Write "<td class=""ffs ifl l"">" & listForumModerators(ForumID) & "</td>"
	end if 
	Response.Write "<td class=""nw"">"
	if ModerateAllowed = "Y" or (lcase(strNoCookies) = "1") then 
		call ForumAdminOptions
	else
		call ForumMemberOptions
	end if
	Response.Write "</td>" & _
	"</tr>"
	end if ' ##### Added as part of Minimize Category Mod #####
End If


Don't forget to make sure this doesn't interfere with any other mods you have made!

Enjoy.

Forgot about making sure the &nbsp; showed...<

Edited by - AnonJr on 08 October 2005 09:17:32
Go to Top of Page

ElPazzo
Junior Member

Austria
116 Posts

Posted - 08 October 2005 :  17:39:53  Show Profile  Visit ElPazzo's Homepage  Reply with Quote
hi,
i get the following error after implementing the changes (when trying to open the parent-forum):

Microsoft VBScript runtime Fehler "800a000d'

Type mismatch: 'rs'

/forum/inc_func_chknew.asp, line 38

the line referred to says:

if Topic_Author = "" then Topic_Author = rs("T_AUTHOR")

by the way today i found out how to change format from css to what i need

cu<

www.pet-needs.com
www.pet-needs.com/forum
www.pet-needs.de
www.translating-it.com
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 09 October 2005 :  02:09:46  Show Profile  Visit AnonJr's Homepage  Reply with Quote
hmmm... I'll have to take a look at it as soon as I get some sleep. 2am here, and I just got back from the Rolling Stones concert over at Duke University....<
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 09 October 2005 :  12:33:02  Show Profile  Visit AnonJr's Homepage  Reply with Quote
Did you rename the inc_subforum.asp to subforum.asp? or did you change the references to subforum.asp to reflect the file is now called inc_subforum.asp?<
Go to Top of Page

ElPazzo
Junior Member

Austria
116 Posts

Posted - 09 October 2005 :  13:59:24  Show Profile  Visit ElPazzo's Homepage  Reply with Quote
i copied the given file into my subforum and did not change any file name or reference... but even with changing names it does not work<

www.pet-needs.com
www.pet-needs.com/forum
www.pet-needs.de
www.translating-it.com
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 09 October 2005 :  15:37:49  Show Profile  Visit AnonJr's Homepage  Reply with Quote
I was just trying to rule out the simple stuff. You were right the first time to copy the contents of the text file and overwrite the contents of subforum.asp.

You didn't make any changes to forum.asp did you?<
Go to Top of Page

ElPazzo
Junior Member

Austria
116 Posts

Posted - 09 October 2005 :  17:34:54  Show Profile  Visit ElPazzo's Homepage  Reply with Quote
as far as i remember no... only the changes you mentioned in the topic above...<

www.pet-needs.com
www.pet-needs.com/forum
www.pet-needs.de
www.translating-it.com
Go to Top of Page

ElPazzo
Junior Member

Austria
116 Posts

Posted - 09 October 2005 :  17:51:27  Show Profile  Visit ElPazzo's Homepage  Reply with Quote
the error seems to come from the subforum.asp<

www.pet-needs.com
www.pet-needs.com/forum
www.pet-needs.de
www.translating-it.com
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 09 October 2005 :  21:11:47  Show Profile  Visit AnonJr's Homepage  Reply with Quote
put up a link to a text version... should be the same, but I'm wondering if something just didn't copy right...<
Go to Top of Page
Page: of 15 Previous Topic Topic Next Topic  
Previous Page | Next Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.22 seconds. Powered By: Snitz Forums 2000 Version 3.4.07