Author |
Topic |
tribaliztic
Senior Member
Sweden
1532 Posts |
Posted - 17 December 2003 : 10:19:23
|
I get the same with the simple_slash.asp, could someone please post the code for both files? Or maybe e-mail them to me? |
/Tribaliztic - www.gotlandrace.se -
|
|
|
Gremlin
General Help Moderator
New Zealand
7528 Posts |
Posted - 17 December 2003 : 17:18:18
|
I'm not sure what you mean post the code for both files ? |
Kiwihosting.Net - The Forum Hosting Specialists
|
|
|
RebelTech
Average Member
USA
613 Posts |
Posted - 17 December 2003 : 17:29:45
|
quote: Originally posted by tribaliztic
I get the same with the simple_slash.asp, could someone please post the code for both files? Or maybe e-mail them to me?
The download links are in the original post at the top of this thread and contain the latest released version of the code. |
|
|
tribaliztic
Senior Member
Sweden
1532 Posts |
Posted - 18 December 2003 : 03:23:30
|
yeah, but when I download from these links the code is corrupted. Probably because I'm only clicking on the link and not using a ftp client.
EDIT: I just downloaded it from snitzbits, will test that instead. |
/Tribaliztic - www.gotlandrace.se -
|
Edited by - tribaliztic on 18 December 2003 03:25:25 |
|
|
RebelTech
Average Member
USA
613 Posts |
Posted - 18 December 2003 : 03:58:39
|
quote: Originally posted by tribaliztic
yeah, but when I download from these links the code is corrupted. Probably because I'm only clicking on the link and not using a ftp client.
EDIT: I just downloaded it from snitzbits, will test that instead.
SnitzBitz doesn't have the latest. The latest excluded private forums. Wait a few and I will post some text links. |
|
|
RebelTech
Average Member
USA
613 Posts |
|
RebelTech
Average Member
USA
613 Posts |
Posted - 18 December 2003 : 04:41:58
|
quote: Originally posted by tribaliztic
Hm.. the include is messing up my sitenews, the footer is removed. Or more exactly, everything "below" that include is removed.. You can see it here: http://213.65.78.5/forum/sitenews5.asp Anyone else got this or is it just me? =)
OK, Tribal, I did some testing for you. Seems that the last reply date and link aren't quite up to snuff and when coupled with one of the "prepackaged" forums things go haywire like you saw. So here is a fix if you're interested. You will lose the last reply link though.
Find the below section of code in the include and delete the portions in red.
Response.Write "<tr><td bgcolor=""" & strForumCellColor & """ colspan=""3""> <a href='topic.asp?TOPIC_ID=" & objRS("TOPIC_ID") & "'><font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """>More >></a> Replies(" & objRS2(0) & ") With the last reply on"
if IsNull(objRS("T_LAST_POST_AUTHOR")) then
strLastAuthor = ""
else
strLastAuthor = " by: <span class=""spnMessageText"">" & profileLink(getMemberName(objRS("T_LAST_POST_AUTHOR")),objRS("T_LAST_POST_AUTHOR")) & "</span> " & "<a href=""topic.asp?whichpage=-1&TOPIC_ID=" & objRS("TOPIC_ID") & "&REPLY_ID=" & objRS("T_LAST_POST_REPLY_ID") & """>" & getCurrentIcon(strIconLastpost,"Jump To Last Post","align=""absmiddle""") & "</a>"
end if
Response.Write " <font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """ color=""" & strForumFontColor & """>" & ChkDate(objRS("T_LAST_POST"), " " ,true) & strLastAuthor & "</font></td></tr>"
Response.Write "<tr><td bgcolor=""" & strForumCellColor & """ colspan=""3"" height=""5""></td></tr>"
objRS.MoveNext()
Wend
Maybe we can get someone more fluent than myself to clean up the coding and get the last reply stuff back for you. If you want to see it working in a pre packaged forum then I will leave it up on the txradio link below in my sig for a few days. Let me know when you no longer need to see it working so I can take that off that site. I hope this helps. |
Edited by - RebelTech on 18 December 2003 04:45:14 |
|
|
tribaliztic
Senior Member
Sweden
1532 Posts |
Posted - 18 December 2003 : 06:35:03
|
Hm.. is the code in the include and the stand-alone the same apart from the includes in top of the file? If not, can someone post the code for the include? I downloaded the files again, from snitzbits this time and no luck. Must be some error in the transfer somehow. When I take the code posted here and make a new file it work fine.
RebelTech: I added you on ICQ, it's alittle faster to chat that way if you don't mind.. |
/Tribaliztic - www.gotlandrace.se -
|
|
|
tribaliztic
Senior Member
Sweden
1532 Posts |
Posted - 18 December 2003 : 06:43:50
|
I can't find the text in red either? =) Am I completely lost here or am I looking at the wrong files or what? hehe... |
/Tribaliztic - www.gotlandrace.se -
|
|
|
RebelTech
Average Member
USA
613 Posts |
Posted - 18 December 2003 : 11:16:17
|
quote: Originally posted by tribaliztic
I can't find the text in red either? =) Am I completely lost here or am I looking at the wrong files or what? hehe...
Not you on this one. I just realized that the reply code was never added to the zip and therefore you don't need to remove it. But, I uploaded the inc_simple_slash.asp that I gave you the link for above to txradio.org to test it in a pre packaged forum environment.. The only change I made before uploading it was changing the forum id from 5 to "any". It worked fine.
If I remember correctly, one of the sh includes added to the overall bugginess of the forum. It was something like top posters or last seen. |
|
|
tribaliztic
Senior Member
Sweden
1532 Posts |
Posted - 19 December 2003 : 02:10:40
|
Hm, but I got the standalone working =) It's just the include that's messing up everything "below" it.. |
/Tribaliztic - www.gotlandrace.se -
|
|
|
golfmann
Junior Member
United States
450 Posts |
Posted - 19 December 2003 : 19:47:00
|
I got my simple slash standalone to work as an include by removing this: Wend
response.write "</table></td></tr></table>" & vbNewLine objRS2.Close() Set objRS2 = Nothing objRS.Close() Set objRS = Nothing objConn.Close() Set objConn = Nothing
Response.End and substituting THIS: Wend %>
</table> <% Don't know if this will help you or not, just saying I'm using the simple slash stand alone in mine as an include...
Hope that helps |
|
|
edbyrne
Starting Member
Ireland
34 Posts |
Posted - 20 December 2003 : 20:41:46
|
I have tried using the mod as an include (inc_simple_slash.asp) on my site's home page, syntax = <!--#include file="forum/inc_simple_slash.asp" --> (that is how Dreamweaver adds it). But nothing is displaying. What might be the problem? My home page is a static html document by the way. Do I need to get the website hosts to do anything in order for it to work? Any ideas? |
Eddie http://www.cleft.ie |
|
|
Gremlin
General Help Moderator
New Zealand
7528 Posts |
Posted - 21 December 2003 : 00:36:44
|
Includes won't work if the page is .htm or .html it needs to be .asp (just rename it is probably all you'll need to do). Though you may also need to change the includes in the inc_simple_slash.asp file too becuase you trying to load it from outside the fourm directory. |
Kiwihosting.Net - The Forum Hosting Specialists
|
|
|
edbyrne
Starting Member
Ireland
34 Posts |
Posted - 21 December 2003 : 13:46:17
|
Thanks for that. I'll have to give some consideration to what changing my home page extension to .asp will mean in terms of search engines, links to it from other pages on the site and from elsewhere, etc. Thanks also for the tip in relation to the other includes. |
Eddie http://www.cleft.ie |
|
|
Topic |
|