Author |
Topic  |
OneWayMule
Dev. Team Member & Support Moderator
    
Austria
4969 Posts |
|
mortioli
Average Member
  
United Kingdom
898 Posts |
Posted - 13 March 2003 : 03:04:11
|
Thanks  |
Edited by - mortioli on 13 March 2003 03:05:03 |
 |
|
wii
Free ASP Hosts Moderator
    
Denmark
2632 Posts |
Posted - 13 March 2003 : 04:52:18
|
WOW, this is probably the easist MOD I have ever installed - thanks for that. |
 |
|
wii
Free ASP Hosts Moderator
    
Denmark
2632 Posts |
Posted - 13 March 2003 : 04:56:04
|
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. |
 |
|
OneWayMule
Dev. Team Member & Support Moderator
    
Austria
4969 Posts |
Posted - 13 March 2003 : 05:09:37
|
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
|
 |
|
wii
Free ASP Hosts Moderator
    
Denmark
2632 Posts |
Posted - 13 March 2003 : 05:24:00
|
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 |
 |
|
OneWayMule
Dev. Team Member & Support Moderator
    
Austria
4969 Posts |
Posted - 13 March 2003 : 05:29:34
|
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 |
 |
|
OneWayMule
Dev. Team Member & Support Moderator
    
Austria
4969 Posts |
|
wii
Free ASP Hosts Moderator
    
Denmark
2632 Posts |
Posted - 13 March 2003 : 05:32:08
|
Thanks - it works now as it should. |
 |
|
OneWayMule
Dev. Team Member & Support Moderator
    
Austria
4969 Posts |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 13 March 2003 : 10:32:09
|
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.  |
|
 |
|
wii
Free ASP Hosts Moderator
    
Denmark
2632 Posts |
Posted - 13 March 2003 : 13:33:55
|
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?
|
 |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 13 March 2003 : 19:34:58
|
I don't see an extra line shift? Have a screenshot or a link? |
|
 |
|
Image
Average Member
  
Canada
574 Posts |
Posted - 13 March 2003 : 21:49:46
|
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 |
 |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 13 March 2003 : 22:41:40
|
Image, that is a little redudant, David showed where the optimal placement for the code was in his previous post. |
|
 |
|
Topic  |
|