Author |
Topic  |
wii
Free ASP Hosts Moderator
    
Denmark
2632 Posts |
|
PeeWee.Inc
Senior Member
   
United Kingdom
1893 Posts |
Posted - 11 March 2003 : 16:23:42
|
This has been done by serverhacker (alltho the placement is not the same) Ask at his site. |
De Priofundus Calmo Ad Te Damine |
 |
|
wii
Free ASP Hosts Moderator
    
Denmark
2632 Posts |
Posted - 11 March 2003 : 16:28:21
|
Ok, thanks. |
 |
|
PeeWee.Inc
Senior Member
   
United Kingdom
1893 Posts |
Posted - 11 March 2003 : 16:35:38
|
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 |
 |
|
PeeWee.Inc
Senior Member
   
United Kingdom
1893 Posts |
|
wii
Free ASP Hosts Moderator
    
Denmark
2632 Posts |
Posted - 11 March 2003 : 16:54:20
|
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?
 |
 |
|
RichardKinser
Snitz Forums Admin
    
USA
16655 Posts |
Posted - 11 March 2003 : 16:56:48
|
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. |
 |
|
wii
Free ASP Hosts Moderator
    
Denmark
2632 Posts |
Posted - 11 March 2003 : 17:00:21
|
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? |
 |
|
RichardKinser
Snitz Forums Admin
    
USA
16655 Posts |
Posted - 11 March 2003 : 18:10:35
|
just use the code that is used to put the link on the arrow image |
 |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 11 March 2003 : 23:06:48
|
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.
 |
|
 |
|
OneWayMule
Dev. Team Member & Support Moderator
    
Austria
4969 Posts |
|
wii
Free ASP Hosts Moderator
    
Denmark
2632 Posts |
Posted - 12 March 2003 : 06:19:53
|
Dayve, thatīs nice, please do share the code with us.
Thanks. |
 |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 12 March 2003 : 10:24:46
|
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. |
|
 |
|
PeeWee.Inc
Senior Member
   
United Kingdom
1893 Posts |
Posted - 12 March 2003 : 11:51:01
|
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 |
 |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 12 March 2003 : 18:32:26
|
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. |
|
 |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 13 March 2003 : 00:49:18
|
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...
|
|
 |
|
Topic  |
|