Author |
Topic |
nickw
Junior Member
Ireland
193 Posts |
Posted - 02 May 2006 : 14:33:10
|
Hi all,
Please can someone show me how to edit the header of snitz so that I can publish Feeds in IE7. I see someone implemented this here recently....
<moved to="MOD Add-On Forum (W/O Code)" by="Shaggy" />
< |
Nick |
Edited by - Shaggy on 03 May 2006 11:30:37 |
|
AnonJr
Moderator
United States
5768 Posts |
Posted - 02 May 2006 : 15:20:04
|
There is an RSS MOD floating around here. I can't remember if its here in the forums or over at www.snitzbitz.com< |
|
|
nickw
Junior Member
Ireland
193 Posts |
Posted - 02 May 2006 : 15:26:48
|
Yeah, I have the RSS mod installed and working great. What I would like to do is implement the IE7 / Firefox support.
I think I have to add a line with something like:
Response.Write "<link rel=""alternate"" type=""application/rss+xml"" href=""http://www.mydomain.com/forum/rssfeed.asp"" title=""Active Topics on Forums"">" & vbNewline < |
Nick |
Edited by - nickw on 02 May 2006 15:53:32 |
|
|
MarcelG
Retired Support Moderator
Netherlands
2625 Posts |
|
nickw
Junior Member
Ireland
193 Posts |
Posted - 02 May 2006 : 15:41:36
|
Hi Marcel...
Thanks for responding... is it just the part that starts if Instr( to the else statement? sorry, I am not a coder....< |
Nick |
|
|
nickw
Junior Member
Ireland
193 Posts |
Posted - 02 May 2006 : 15:48:53
|
OK, I am more confused now that before :) That looks like some impressive code :)
We have the default inc_header.asp file. What I would really like is a dynamic RSS feed that changes depending on the forum you are viewing. Is this possible?< |
Nick |
|
|
nickw
Junior Member
Ireland
193 Posts |
Posted - 02 May 2006 : 15:54:33
|
For the moment, to make it simple, I can see that this forum as this code added just below the licence:
<link rel="alternate" type="application/rss+xml" href="http://forum.snitz.com/forum/rssfeed.asp" title="Active Topics on Snitz Forums 2000">
So, how can I add a simular line to our forums?< |
Nick |
|
|
AnonJr
Moderator
United States
5768 Posts |
Posted - 02 May 2006 : 15:58:12
|
I never was able to get any of my RSS readers to pick it up...
Funny thing is that the one built in to Maxthon picks up the Snitz RSS, but not the Oxle or the one I set up internally.... same syntax and all.
nickw, it is possible to have a different feed for each forum. It appears MarcelG has it set up that way on Oxle. The main thing is that he's generating essentially the same code you posted above... just having it modified depending on where you are and such.< |
|
|
nickw
Junior Member
Ireland
193 Posts |
Posted - 02 May 2006 : 16:05:13
|
Its odd, I also have this same issue. Oxle does not show, but the one here does... Mind you, I cannot get either to work on my forum :(< |
Nick |
|
|
AnonJr
Moderator
United States
5768 Posts |
Posted - 02 May 2006 : 16:20:55
|
I wonder if the RSS version is at issue here. I just took a closer look and noticed that the Snitz RSS feed is <rss version="0.92"> and mine is <rss version="2.0">
I can manually add the feed to my reader and all is good, it just doesn't get picked up automatically. Since it hasn't been a high priority at the moment, I haven't really thought too much about it; but since we've got some people ready to look at it... < |
|
|
nickw
Junior Member
Ireland
193 Posts |
Posted - 02 May 2006 : 16:23:41
|
Anything is possible. For the moment I have added another menu item to the default linking to the feed. I really wish I was a coder then I could write a Mod :)
Until then... I'll have to wait for you clever lot :)< |
Nick |
|
|
nickw
Junior Member
Ireland
193 Posts |
|
MarcelG
Retired Support Moderator
Netherlands
2625 Posts |
Posted - 02 May 2006 : 16:35:52
|
Guys, sorry to dissapoint you but the oxle rss feeds do show up in Maxthon, at least in the latest release of Maxthon. Works as a charm. And, Nick, yes, the code I used changes the rss feed to the forumspecific rss feed. For example on oxle.com:
<link rel="alternate" type="application/rss+xml" href="http://oxle.com/rss.asp" title="RSS: oxle.com"> on the subforum 'the pub' on oxle.com
<link rel="alternate" type="application/rss+xml" href="http://oxle.com/rss.asp?FORUM_ID=35" title="RSS: oxle - the pub">
The code I use is this (removed the language dependant code):
if Instr(strScriptName,"default.asp") > 0 or Instr(strScriptName,"forums.asp") > 0 or Instr(strScriptName,"forum.asp") > 0 or Instr(strScriptName,"index.asp") > 0 then
if request.querystring("forum_id") <> "" and IsNumeric(forum_id) = true then
response.write "<link rel=""alternate"" type=""application/rss+xml"" href=""http://oxle.com/rss.asp?FORUM_ID=" & request.querystring("FORUM_ID") & """ title=""RSS: " & GetNewTitle(strScriptName) & """>"
else
response.write "<link rel=""alternate"" type=""application/rss+xml"" href=""http://oxle.com/rss.asp"" title=""RSS: oxle.com"">"
end if
end if I've that piece of code in inc_header.asp in the second block of HTML meta tags.< |
portfolio - linkshrinker - oxle - twitter |
Edited by - MarcelG on 02 May 2006 16:37:08 |
|
|
nickw
Junior Member
Ireland
193 Posts |
Posted - 02 May 2006 : 16:38:12
|
Oh Man!
First, for other people like me who are not used to the code... there are TWO sections in the code that refer to the copyright, put your code under the second...
Marcel! Thanks man... appreciate this! Ill report back.< |
Nick |
|
|
AnonJr
Moderator
United States
5768 Posts |
Posted - 02 May 2006 : 16:41:12
|
Got the latest version of Maxthon myself (or is 1.5.2b21 no longer the latest?), and the RSS reader still doesn't pick up Oxle or my own (which I temporarily hacked back to v0.92 to see if that was the issue). Wonder whats up...< |
|
|
nickw
Junior Member
Ireland
193 Posts |
Posted - 02 May 2006 : 16:48:01
|
Nearly there.... I have now added your code, and a single line so that when you have myforum/ (no default.asp etc) it shows the default feed in IE7.
I ended up with this:
'## RSS Mod for IE Glow
'## Add this line so that feed icon glows even when there is no page specified
Response.Write "<link rel=""alternate"" type=""application/rss+xml"" href=""http://web2.minasi.com/forum/rss.asp"" title=""Minasi Forum Feed (Main)"">" & vbNewline
'## Marcels Code for feeds to change live with forum ID.
if Instr(strScriptName,"default.asp") > 0 or Instr(strScriptName,"forums.asp") > 0 or Instr(strScriptName,"forum.asp") > 0 or Instr(strScriptName,"index.asp") > 0 then
if request.querystring("forum_id") <> "" and IsNumeric(forum_id) = true then
response.write "<link rel=""alternate"" type=""application/rss+xml"" href=""http://web2.minasi.com/forum/rss.asp?FORUM_ID=" & request.querystring("FORUM_ID") & """ title=""RSS: " & GetNewTitle(strScriptName) & """>"
else
response.write "<link rel=""alternate"" type=""application/rss+xml"" href=""http://web2.minasi.com/forum/rss.asp"" title=""Minasi Forum Feed (Main)"">"
end if
end if
The only thing remaining is to get it working by forum category... could this be done?
In your Debt.< |
Nick |
|
|
Topic |
|