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.
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
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..
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.
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?
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.
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.