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)
 Addition to Last Post Info
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 4

wii
Free ASP Hosts Moderator

Denmark
2632 Posts

Posted - 11 March 2003 :  15:23:42  Show Profile
Take a look at this code from an forumcode, can someone re-write this for 3.4.03 with the change that the link goes to the last post like the arrow does?

http://forum.snitz.com/forum/topic.asp?ARCHIVE=true&TOPIC_ID=26734

Edited by - wii on 11 March 2003 15:24:29

PeeWee.Inc
Senior Member

United Kingdom
1893 Posts

Posted - 11 March 2003 :  16:23:42  Show Profile  Visit PeeWee.Inc's Homepage
This has been done by serverhacker (alltho the placement is not the same)
Ask at his site.

De Priofundus Calmo Ad Te Damine
Go to Top of Page

wii
Free ASP Hosts Moderator

Denmark
2632 Posts

Posted - 11 March 2003 :  16:28:21  Show Profile
Ok, thanks.
Go to Top of Page

PeeWee.Inc
Senior Member

United Kingdom
1893 Posts

Posted - 11 March 2003 :  16:35:38  Show Profile  Visit PeeWee.Inc's Homepage
If you dont have any joy in finding what you wish then tell me and i will see if i have it saved on my PC anywhere.

De Priofundus Calmo Ad Te Damine
Go to Top of Page

PeeWee.Inc
Senior Member

United Kingdom
1893 Posts

Posted - 11 March 2003 :  16:38:57  Show Profile  Visit PeeWee.Inc's Homepage
http://www.shnforum.com/forum/topic.asp?TOPIC_ID=804
See this topic.

De Priofundus Calmo Ad Te Damine
Go to Top of Page

wii
Free ASP Hosts Moderator

Denmark
2632 Posts

Posted - 11 March 2003 :  16:54:20  Show Profile
Hmmm, the screenshot on the top of the topic is what I would like, but SH doesnīt use this, since the placement of the subject is not there?

Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 11 March 2003 :  16:56:48  Show Profile
on serverhacker's forum, it's placed right underneath the forum description, but I think that the MOD in that topic should put it where you want it.
Go to Top of Page

wii
Free ASP Hosts Moderator

Denmark
2632 Posts

Posted - 11 March 2003 :  17:00:21  Show Profile
Thanks Richard, since you wrote the original code for doing this, would it be possible to have the subject line to link to the last post like the arrow does?
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 11 March 2003 :  18:10:35  Show Profile
just use the code that is used to put the link on the arrow image
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 11 March 2003 :  23:06:48  Show Profile  Visit dayve's Homepage
I have it at my forum too, this was a pretty easy add on. take a look at my forum and let me know if that is what you are looking for and I'll review my code to see what I did.


Go to Top of Page

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 12 March 2003 :  01:32:52  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
I'd be interested in this one as well, dayve.
If you'd like to share the code...

My MODs:
Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook
Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch

Useful stuff:
Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
Go to Top of Page

wii
Free ASP Hosts Moderator

Denmark
2632 Posts

Posted - 12 March 2003 :  06:19:53  Show Profile
Dayve, thatīs nice, please do share the code with us.

Thanks.
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 12 March 2003 :  10:24:46  Show Profile  Visit dayve's Homepage
quote:
Originally posted by wii

Dayve, thatīs nice, please do share the code with us.

Thanks.



no problem, easy implementation. I am at work right now, this is on top of my list to post tonight.

Go to Top of Page

PeeWee.Inc
Senior Member

United Kingdom
1893 Posts

Posted - 12 March 2003 :  11:51:01  Show Profile  Visit PeeWee.Inc's Homepage
dayve - you might aswell zip up ya site and give it for downloud with the amout of code ya give out

De Priofundus Calmo Ad Te Damine
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 12 March 2003 :  18:32:26  Show Profile  Visit dayve's Homepage
quote:
Originally posted by PeeWee.Inc

dayve - you might aswell zip up ya site and give it for downloud with the amout of code ya give out



I've done that before in the past, but then there is an expectation to support it and I do a lot of hard coding at times. I know that's a bad practice, but I know I am never going to use the forum code for anything else. I also code specifically for MS SQL Server.

Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 13 March 2003 :  00:49:18  Show Profile  Visit dayve's Homepage
forgive me for the inability to give line numbers, my code doesn't not come close to the base snitz code. hopefully this will seem pretty easy to follow.

default.asp

look for this comment:
'## Forum_SQL - Build SQL to get forums via category

in the following sql statement add T.T_SUBJECT after F.F_DESCRIPTION (don't forget the comma!):
"F.F_DESCRIPTION, T.T_SUBJECT " & _

look for this line:
fF_DESCRIPTION = 20

add the following right after it:
fT_SUBJECT = 21

look for this line:
ForumDescription = allForumData(fF_DESCRIPTION,iForum)

add the following right after it:
ForumTopicSubject = allForumData(fT_SUBJECT,iForum)

look for this routine:
Function DoLastPostLink(showicon)


replace the entire function with this code:


Function DoLastPostLink(showicon)
	if ForumLastPostReplyID <> 0 then
		if len(ForumTopicSubject) > 35 then 
		 ForumTopicSubject = left(ForumTopicSubject,35) & "..."
		end if
		PageLink = "whichpage=-1&"
		AnchorLink = "&REPLY_ID="
		DoLastPostLink = "<br><a href=""topic.asp?" & PageLink & "TOPIC_ID=" & ForumLastPostTopicID & AnchorLink & ForumLastPostReplyID & """>"
		if (showicon = true) then DoLastPostLink = DoLastPostLink & getCurrentIcon(strIconLastpost,"Jump to Last Post","align=""absmiddle""") & " <i>" &  ForumTopicSubject & "</i></a><br>"
	elseif ForumLastPostTopicID <> 0 then
		DoLastPostLink = "<br><a href=""topic.asp?TOPIC_ID=" & ForumLastPostTopicID & """>"
		if (showicon = true) then DoLastPostLink = DoLastPostLink & getCurrentIcon(strIconLastpost,"Jump to Last Post","align=""absmiddle""") & " <i>" &  ForumTopicSubject & "</i></a><br>"
	else
		DoLastPostLink = ""
	end if
end function


that's it...



Go to Top of Page
Page: of 4 Previous Topic Topic Next Topic  
Next 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.37 seconds. Powered By: Snitz Forums 2000 Version 3.4.07