InstantASP Community Forums
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        


Google Sitemaps Support Expand / Collapse
Author
Message
Posted 03/05/2006 08:15:18
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 16/06/2006 09:46:03
Posts: 2, Visits: 8
Hey Ryan,

     It would be great to have support for Google Sitemaps built into the forum.  This should be straightforward enough that I'm going to try writing the code for this today.  It would be a matter of writing SQL to pull all of the topics, their titles, and dates posted.  If there's no objection, I'll post the VB code here or e-mail it to you.  Can you contact me via e-mail to let me know?

     Thanks and InstantForum rocks!  My customers love it (http://www.geoframeworks.com/forum)

    Jon

Post #10761
Posted 03/05/2006 10:07:21
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: 14/10/2008 15:36:31
Posts: 582, Visits: 876
I like this idea... that could be great for search indexing.

Mark 'Rigger82' Christianson
US Paratrooper & Webmaster of Paratrooper.net
http://www.paratrooper.net
Post #10766
Posted 10/05/2006 15:33:07
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Customers
Last Login: 22/02/2007 14:29:33
Posts: 24, Visits: 61
All,

    I found this nifty little tool that provides a quick way to create a sitemap.

http://www.xml-sitemaps.com/

I hope this helps...

Adam

Post #10804
Posted 04/08/2006 11:33:11


IF.NET 4.2 Coming Soon

IF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming SoonIF.NET 4.2 Coming Soon

Group: Administrators
Last Login: Today @ 16:29:04
Posts: 1,956, Visits: 3,018
Hi Jon,

Just to confirm we have looked at this. I'm hoping it will be available in a future release.

With did work with the paging links in v4.1.4 to improve SEO.

This is an important area for us as a forum is only as good as it's traffic and we will be further improving SEO.


Kindest Regards,

Ryan Healey
Director / Developer

Explore our products...
http://demos.instantasp.co.uk/

Post #11440
Posted 20/11/2006 17:46:50
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 15/12/2006 08:14:01
Posts: 8, Visits: 22
Hello,

I think I can contribute to this. A few weeks ago I finished creating a HTTP Handler in Asp.Net 2.0 which creates a Google site map from an Asp.Net 2.0 site map file:

' SiteMap
Public Class SiteMap : Implements IHttpHandler


' -- [Methods] -------------------------------------------

' Define handler process request
Public Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest

' Get the assembly
Dim aBy27 As System.Reflection.Assembly = System.Reflection.Assembly.GetExecutingAssembly

' Get the resource stream from the assembly
Dim sBy27 As Stream = aBy27.GetManifestResourceStream("By27.SiteMap.xsl")

' Read the stream content using a XML reader
Dim xmlrSiteMap As Xml.XmlReader = Xml.XmlReader.Create(sBy27)

' Create and load XSL document
Dim xslGoogle As XslCompiledTransform = New XslCompiledTransform
xslGoogle.Load(xmlrSiteMap)

' Create xpath document with XML document
Dim xpathGoogle As System.Xml.XPath.XPathDocument = New System.Xml.XPath.XPathDocument(HttpContext.Current.Server.MapPath(ConfigurationManager.AppSettings("By27.Google.SiteMap.Url")))

' Create memory stream
Dim msGoogle As System.IO.Stream = New System.IO.MemoryStream

' Create XSL arguments list
Dim googleXslArguments As XsltArgumentList = New XsltArgumentList
googleXslArguments.AddParam("By27.WebSite.Url", "", "http://" & ConfigurationManager.AppSettings("By27.WebSite.Url") & "/")

' Transform XML document
xslGoogle.Transform(xpathGoogle, googleXslArguments, msGoogle)

' Flush the stream and set the position to 0
msGoogle.Flush()
msGoogle.Position = 0

' Create stream reader
Dim srGoogle As System.IO.StreamReader = New System.IO.StreamReader(msGoogle)

' Display XML in browser
context.Response.Clear()
context.Response.ContentType = "text/xml; charset=utf-8"
context.Response.Write(srGoogle.ReadToEnd)
context.Response.End()

End Sub

' Define is handler is reusable
Public ReadOnly Property IsReusable() As Boolean Implements IHttpHandler.IsReusable
Get
Return False
End Get
End Property

End Class

And I use a XSL file embed in my DLL:


version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.google.com/schemas/sitemap/0.84"
xmlns:dk="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0">




























Well, this is as I use it. You can adapt it as you wish.

Cheers,
Miguel
Post #12051
Posted 03/12/2006 06:32:54


Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 19/03/2007 07:34:35
Posts: 34, Visits: 215
Well That sounds pretty great. Can you provide more information how to integrate that code into IF?

Thanks


Dennis Alexander Petrasch
Inofficial German Supporter
DevFuture.de
Post #12101
« Prev Topic | Next Topic »

Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ryan Healey, Mark Christianson, Bare, James Trott

Permissions Expand / Collapse

All times are GMT, Time now is 5:21pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.109. 11 queries. Compression Disabled.
Home | Products | Purchase | Support | Company | Contact Us
Privacy Statement | © 1999-2007 InstantASP Limited. All Rights Reserved.