Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Google Sitemaps Mini-mod (Beta)
 New Topic  Reply to Topic
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 9

Podge
Support Moderator

Ireland
3775 Posts

Posted - 13 October 2005 :  15:28:41  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message  Reply with Quote
MySql doesn't support the TOP keyword, you have to use LIMIT instead.

Find

strSql = "select top 500 T.TOPIC_ID, T.T_LAST_POST  FROM " & strTablePrefix & "TOPICS T, " & strTablePrefix & "FORUM F WHERE T.FORUM_ID = F.FORUM_ID AND F.F_PRIVATEFORUMS = 0"
strSql = strSql & " ORDER BY TOPIC_ID DESC"


Replace with
strSql = "select T.TOPIC_ID, T.T_LAST_POST  FROM " & strTablePrefix & "TOPICS T, " & strTablePrefix & "FORUM F WHERE T.FORUM_ID = F.FORUM_ID AND F.F_PRIVATEFORUMS = 0 ORDER BY TOPIC_ID DESC LIMIT 500"


I cannot test it at the moment, let me know if you get an error.

As far as I know LIMIT is not support by all versions of MySql.<

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.

Edited by - Podge on 13 October 2005 15:30:42
Go to Top of Page

NiteOwl
Junior Member

Canada
403 Posts

Posted - 13 October 2005 :  16:31:52  Show Profile  Visit NiteOwl's Homepage  Reply with Quote
Thanks Podge for your quick responce: I now have this error:


Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

[MySQL][ODBC 3.51 Driver][mysqld-4.0.15-nt]You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '(F_URL) < 7) and (F_PRIVATEFORUMS = 0) and F_STATUS = 1 order b

/cimare/forum/sitemap.xml.asp, line 110

<

-=NiteOwl=-
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 13 October 2005 :  17:03:30  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message  Reply with Quote
Cannot test this either so I'm guessing.

Find
strSQL = "select FORUM_ID, F_LAST_POST from " & strTablePrefix  & "forum where (F_URL is null or len(F_URL) < 7) and (F_PRIVATEFORUMS = 0) and F_STATUS = 1 order by FORUM_ID ASC"


Replace with
strSQL = "select FORUM_ID, F_LAST_POST from " & strTablePrefix  & "forum where (F_URL is null) and (F_PRIVATEFORUMS = 0) and F_STATUS = 1 order by FORUM_ID ASC"


As always post any errors.<

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

NiteOwl
Junior Member

Canada
403 Posts

Posted - 13 October 2005 :  18:48:54  Show Profile  Visit NiteOwl's Homepage  Reply with Quote
ok done, now this small error:

Microsoft VBScript runtime error '800a000d'

Type mismatch: 'allActiveTopics3'

/CIMarE/forum/sitemap.xml.asp, line 132

<

-=NiteOwl=-

Edited by - NiteOwl on 17 October 2005 21:32:36
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 18 October 2005 :  11:42:46  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message  Reply with Quote
I don't have a version of Snitz running on MySql at the moment but I'll see what I can do. It will take a few days...<

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

NiteOwl
Junior Member

Canada
403 Posts

Posted - 18 October 2005 :  20:52:51  Show Profile  Visit NiteOwl's Homepage  Reply with Quote
Thanks Podge, I am fine with whatever works for you, and if it's too much at the moment thats fine too. Just appreciate all the work you've done for the group!



<

-=NiteOwl=-
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 20 October 2005 :  06:44:25  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message  Reply with Quote
NiteOwl, are you on SunOne or Windows?<

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

NiteOwl
Junior Member

Canada
403 Posts

Posted - 20 October 2005 :  17:41:58  Show Profile  Visit NiteOwl's Homepage  Reply with Quote
Wiondows Server<

-=NiteOwl=-
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 20 October 2005 :  18:11:59  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message  Reply with Quote
Until I get a chance to look at it in more detail you may get it to work by changing this

showForums = "true"

to this

showForums = "false"<

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

NiteOwl
Junior Member

Canada
403 Posts

Posted - 21 October 2005 :  13:20:02  Show Profile  Visit NiteOwl's Homepage  Reply with Quote
Thanks so much, I will try it.
<

-=NiteOwl=-
Go to Top of Page

Rocket468
New Member

USA
57 Posts

Posted - 21 October 2005 :  14:25:04  Show Profile  Visit Rocket468's Homepage  Reply with Quote
That makes the page now work. Till the other is fixed. ty.<


Professional House Plans

DevilsOwn Alcohol Injection

Go to Top of Page

omega1
Junior Member

United Kingdom
127 Posts

Posted - 22 February 2006 :  16:42:19  Show Profile  Visit omega1's Homepage  Reply with Quote
hi,

i know this topic is a few months old, but i'm trying also to get my forum listed in google as it currently isnt.

I think i may have been doing something wrong.

so far, ive done the following:

copied the code from the first post in this topic and put it in my forum directory and called it sitemap.xml.asp

i have tried to access this page myself (do i have to do this?!) but i get this:

The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

The system cannot locate the object specified.


do i simply enter the whole url into the sitemap url entry box in the google sitemap? im confused beucase the suggested format to enter into this box is sitemap.xml not sitemap.xml.asp

have i copied the correct version?

thanks in advance for your help<

Visit : My personal site - Website Hosting - Register a domain
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 22 February 2006 :  17:15:09  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message  Reply with Quote
Change this


xml = ""
xml = "<?xml version=""1.0"" encoding=""UTF-8""?><?xml-stylesheet type=""text/xsl"" href=""sitemap.xsl""?><urlset xmlns=""http://www.google.com/schemas/sitemap/0.84"">" & vbNewLine


to


xml = ""
xml = "<?xml version=""1.0"" encoding=""UTF-8""?><urlset xmlns=""http://www.google.com/schemas/sitemap/0.84"">" & vbNewLine
<

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page

NiteOwl
Junior Member

Canada
403 Posts

Posted - 23 February 2006 :  01:37:00  Show Profile  Visit NiteOwl's Homepage  Reply with Quote
Podge - Does this apply to everyone?
<

-=NiteOwl=-
Go to Top of Page

Podge
Support Moderator

Ireland
3775 Posts

Posted - 23 February 2006 :  06:13:07  Show Profile  Send Podge an ICQ Message  Send Podge a Yahoo! Message  Reply with Quote
The xsl isn't vital. It just formats the sitemap nicely. There could be an issue with it but I haven't had time to investigate fully. Its a simple change and easy to do so I would recommend doing it.

All you have to do is remove this bit <?xml-stylesheet type=""text/xsl"" href=""sitemap.xsl""?>
<

Podge.

The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)

My Mods: CAPTCHA Mod | GateKeeper Mod
Tutorial: Enable subscriptions on your board

Warning: The post above or below may contain nuts.
Go to Top of Page
Page: of 9 Previous Topic Topic Next Topic  
Previous Page | Next Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.11 seconds. Powered By: Snitz Forums 2000 Version 3.4.07