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)
 Jump to last post
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Raziel
New Member

97 Posts

Posted - 07 June 2003 :  11:42:37  Show Profile
Greetings,

I'm looking for the code for the 'jump to last post' feature. I have on my portal/frontpage, a little section that shows the last 5 topics that have been replied to in the forum. And I would like to add this little feature to it as well, because when you click on the topic, it takes the user to the fist post in the topic, which is kinda annoying if the whole topic is 3 or 4 pages.

I know that the code is to be found in the snitz forum 3.4 but I'm not so good at asp yet, so I couldn't make it work.

Could anyone help me out?

Regards

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 07 June 2003 :  11:59:24  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
It's the function DoLastPostLink() (forum.asp, line 881) that does the job:


Function DoLastPostLink()
	if Topic_Replies < 1 or Topic_LastPostReplyID = 0 then
		DoLastPostLink = "<a href=""topic.asp?" & ArchiveLink & "TOPIC_ID=" & Topic_ID & """>" & getCurrentIcon(strIconLastpost,"Jump to Last Post","align=""absmiddle""") & "</a>"
	elseif Topic_LastPostReplyID <> 0 then
		PageLink = "whichpage=-1&"
		AnchorLink = "&REPLY_ID="
		DoLastPostLink = "<a href=""topic.asp?" & ArchiveLink & PageLink & "TOPIC_ID=" & Topic_ID & AnchorLink & Topic_LastPostReplyID & """>" & getCurrentIcon(strIconLastpost,"Jump to Last Post","align=""absmiddle""") & "</a>"
	else
		DoLastPostLink = ""
	end if
end function


You will probably have to do some modification though.

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

Raziel
New Member

97 Posts

Posted - 07 June 2003 :  12:08:07  Show Profile
OneWayMule,

Thanks, But I managed to figure that out - actually (Not totally stupid am I )

But I have to integrate it in the existing code, and that's giving me a headache.

The code is:

<% 
			if IsNull(rs("T_LAST_POST_AUTHOR")) then
				strLastAuthor = ""
			else
				strLastAuthor = "" 
				if strUseExtendedProfile then
					strLastAuthor = strLastAuthor & "<a href=""forum/pop_profile.asp?mode=display&id="& rs("T_LAST_POST_AUTHOR") & """>"
				else
					strLastAuthor = strLastAuthor & "<a href=forum/pop_profile.asp?mode=display&id=" & rs("T_LAST_POST_AUTHOR") & ">"
				end if
				strLastAuthor = strLastAuthor & rs("LAST_POST_AUTHOR_NAME") & "</a>"
			end if
		
			
		currForum = rs("FORUM_ID") %>
		<a href="forum/topic.asp?TOPIC_ID=<% =rs("TOPIC_ID") %>&FORUM_ID=<% =rs("FORUM_ID") %>&CAT_ID=<% =rs("CAT_ID") %>&Topic_Title=<% =ChkString(left(rs("T_SUBJECT"), 50),"urlpath") %>&Forum_Title=<% =ChkString(rs("F_SUBJECT"),"urlpath") %>" style="text-decoration:underline"><% =ChkString(left(rs("T_SUBJECT"), 50),"display") %></a> <br>[ <%=rs("F_SUBJECT") %> ]<br>af: <%= strLastAuthor & DoLastPostLink %><hr size=1 color=white noshade>

(Of course there is alot of other code as well, but I don't think it relevant?)

And it makes something like this appear:

[Topic name]
[Forum name]
[Author/User name]
[vertical line]

(Its set so it shows five of these latest posts)

And provides with links to every topic name, and the username.

What I tried didn't work...

Edited by - Raziel on 07 June 2003 12:20:19
Go to Top of Page

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 07 June 2003 :  12:59:57  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
If you could post a link to a .txt version of your file (or at least the part with the sql string) I'll take a look at it.

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

Raziel
New Member

97 Posts

Posted - 07 June 2003 :  17:55:29  Show Profile
Here you go:

inc_seneste5.txt

Also, I think there is a lot of unnecessary code, but as I'm no genius with asp, I haven't touched so much.

- And thanks for your time :) (I appriciate it very much)

Best Regards

Edited by - Raziel on 07 June 2003 17:59:05
Go to Top of Page

Raziel
New Member

97 Posts

Posted - 11 June 2003 :  15:29:21  Show Profile
OneWayMule,

Well... ? Any luck?
Go to Top of Page

Raziel
New Member

97 Posts

Posted - 14 June 2003 :  14:31:48  Show Profile
Still waiting...

- Enyone else who could help? Plz?

It'll only take you guys a minute

Edited by - Raziel on 14 June 2003 14:34:43
Go to Top of Page
  Previous Topic Topic Next Topic  
 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.34 seconds. Powered By: Snitz Forums 2000 Version 3.4.07