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
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 4

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 13 March 2003 :  02:53:23  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
I've just tested this, works like a charm!
Thanks dayve!

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

mortioli
Average Member

United Kingdom
898 Posts

Posted - 13 March 2003 :  03:04:11  Show Profile  Visit mortioli's Homepage  Send mortioli an AOL message  Send mortioli a Yahoo! Message
Thanks

Edited by - mortioli on 13 March 2003 03:05:03
Go to Top of Page

wii
Free ASP Hosts Moderator

Denmark
2632 Posts

Posted - 13 March 2003 :  04:52:18  Show Profile
WOW, this is probably the easist MOD I have ever installed - thanks for that.
Go to Top of Page

wii
Free ASP Hosts Moderator

Denmark
2632 Posts

Posted - 13 March 2003 :  04:56:04  Show Profile
Just one thing:

Is it possible to limit the subject line to only show the first 16 characters like Richards MOD did? since the lines are a little too long sometimes.
Go to Top of Page

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 13 March 2003 :  05:09:37  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
quote:
Originally posted by wii

Just one thing:

Is it possible to limit the subject line to only show the first 16 characters like Richards MOD did? since the lines are a little too long sometimes.



Simply change the code in red to 16 or any other value (length) you want:

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



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 - 13 March 2003 :  05:24:00  Show Profile
i´ve tried that, but it doesn´t change anything?

aha - I know now what it does:

1. if I start a new topic with a very long subject, it shows the whole line.
2. if I then answer the subject, it shows correctly with the 16 character limit and ...

Edited by - wii on 13 March 2003 05:30:01
Go to Top of Page

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 13 March 2003 :  05:29:34  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
It doesn't work when there are no replies. You could use this:

Function DoLastPostLink(showicon)
        if len(ForumTopicSubject) > 35 then 
		ForumTopicSubject = left(ForumTopicSubject,35) & "..."
	end if
	if ForumLastPostReplyID <> 0 then
		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

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

Edited by - OneWayMule on 13 March 2003 05:30:02
Go to Top of Page

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 13 March 2003 :  05:30:58  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
quote:
Originally posted by wii

i´ve tried that, but it doesn´t change anything?

aha - I know now what it does:

1. if I start a new topic with a very long subject, it shows the whole line.
2. if I then answer the subject, it shows correctly with the 16 character limit and ...



Exactly.
Use the code I just posted (which I personally do as well) and it will work.

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 - 13 March 2003 :  05:32:08  Show Profile
Thanks - it works now as it should.
Go to Top of Page

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 13 March 2003 :  05:35:07  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
As always - I'm glad that I could help

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

dayve
Forum Moderator

USA
5820 Posts

Posted - 13 March 2003 :  10:32:09  Show Profile  Visit dayve's Homepage
quote:
Originally posted by OneWayMule

quote:
Originally posted by wii

i´ve tried that, but it doesn´t change anything?

aha - I know now what it does:

1. if I start a new topic with a very long subject, it shows the whole line.
2. if I then answer the subject, it shows correctly with the 16 character limit and ...



Exactly.
Use the code I just posted (which I personally do as well) and it will work.



good catch! a slight oversight on my part. thanks.

Go to Top of Page

wii
Free ASP Hosts Moderator

Denmark
2632 Posts

Posted - 13 March 2003 :  13:33:55  Show Profile
Just one thing:

at "with the last post on xxxx" - at the bottom of default.asp has now an extra lineshift, just like at your forum Dayve, seems there´s a <br> too much somewhere, I´ve tried to remove some of them, but I don´t want the lineshift in the categories themselves. How do I solve this?
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 13 March 2003 :  19:34:58  Show Profile  Visit dayve's Homepage
I don't see an extra line shift? Have a screenshot or a link?

Go to Top of Page

Image
Average Member

Canada
574 Posts

Posted - 13 March 2003 :  21:49:46  Show Profile  Visit Image's Homepage  Send Image an ICQ Message
quote:
Originally posted by wii

i´ve tried that, but it doesn´t change anything?

aha - I know now what it does:

1. if I start a new topic with a very long subject, it shows the whole line.
2. if I then answer the subject, it shows correctly with the 16 character limit and ...



Function DoLastPostLink(showicon)
	if ForumLastPostReplyID <> 0 then
        if len(ForumTopicSubject) > 16 then 
		ForumTopicSubject = left(ForumTopicSubject,16) & "..."
	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
        if len(ForumTopicSubject) > 16 then 
		ForumTopicSubject = left(ForumTopicSubject,16) & "..."
	end if
		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
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 13 March 2003 :  22:41:40  Show Profile  Visit dayve's Homepage
Image, that is a little redudant, David showed where the optimal placement for the code was in his previous post.

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