Sitemap

Started by SlammedDime, May 12, 2007, 05:43:04 PM

Previous topic - Next topic

OriginalP

Hi all,

i was trying to install this usefull modification when i encountered a problem

Quote
Installing this package will perform the following actions:
...
Execute Modification   ./Themes/default/index.template.php   Test failed

!! Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

what can i check to solve this problem?

thanks in advance

SlammedDime

Some other mod has edited the area around the copyright of your board.  You would just have to open up index.template.php and edit the file manually to insert a link to the sitemap.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

OriginalP

Thank you very much, i have installed it manually and it seems to work very well

winaje

Quote from: SlammedDime on November 10, 2007, 04:14:34 PM
Some other mod has edited the area around the copyright of your board.  You would just have to open up index.template.php and edit the file manually to insert a link to the sitemap.

Hi, please pardon a dummy who has had little sleep in 4 days (damn on-call) .  Where/what link to the sitemap would I be adding/editing please?

Mick.

Very cool mod.   I used to use this script http://www.xml-sitemaps.com/ until i found your mod.
I had index.template.php trouble but the parser worked very well.

I resubmited to google with over 1,000 pages for sitemap.

Thanx Dime.  btw...nice site you have.  Been thinking on baggin' my ride.

ortiz

Hello again

i dont understand what add_settings.php does, im using SMF Package Parser to install manually the mod and before to modify the smf files i read this sentence:

PHP script to execute: add_settings.php

What i must do with this file? :S

Sorry but im having many troubles to install the mod  :'(

ortiz

Uh oh, finally i installed succesfully the mod.

Thanks :D

SlammedDime

All you would have to do is upload that file to your SMF directory, run it, then delete it.  Thats it.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

ortiz

QuoteAlso included is the option to display an XML sitemap for use with Google Sitemaps.  On any of the sitemap pages, simply click the 'XML' link at the bottom for the XML version.  If you wish to submit your site to Google Sitemaps, you will need to use this link.  Google does not like SEF formatted URLs for the sitemap because it won't show the sitemap in the root directory.  Using the link as provided will.

Hi! Sitemap mod is working now but i have one more doubt. I don't see XML link in sitemap page. Did i forgot something?
Link to sitemap on forum

Thanks

Mick.

I get these errors:

8: Undefined index: sitemap

on different line #'s

SlammedDime

BlueDevil, what files and what lines?  If your custom theme has a Modifications.english.php file in its languages directory, you'll hae to add the text strings to that file as well.

Ortiz: As an admin, you'll always see the link if you are logged in.  If you are not logged in, and do not see it, then you haven't enabled it to be seen.  Also, just because it isn't seen, doesn't mean it isn't accessible. 
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Mick.

Errors:

8: Undefined index: sitemap
File: /home/midwesta/public_html/Sources/Sitemap.php
Line: 29


8: Undefined index: sitemap
File: /home/midwesta/public_html/Sources/Sitemap.php
Line: 22


8: Undefined index: sitemap_boards
File: /home/midwesta/public_html/Themes/default/Sitemap.template.php (Topics sub template - eval?)
Line: 131


8: Undefined index: sitemap
File: /home/midwesta/public_html/Themes/default/Sitemap.template.php (Boards sub template - eval?)
Line: 9



So far these 4 lines ::)

SlammedDime

Yea, you're missing the language strings.  They need to be added Modifications.english.php in your custom themes language directory.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Mick.

Yep. Is all good now.

I was missing this:

// SMF Sitemap Strings
$txt['sitemap'] = 'Sitemap';
$txt['sitemap_boards'] = 'Boards';
$txt['sitemap_xml'] = 'Show Sitemap XML link';
$txt['sitemap_topic_count'] = 'Max number of topics to display in sitemap';
$txt['sitemap_collapsible'] = 'Collapse child boards in sitemap';

ortiz

Quote from: SlammedDime on November 24, 2007, 11:45:15 AM
Ortiz: As an admin, you'll always see the link if you are logged in.  If you are not logged in, and do not see it, then you haven't enabled it to be seen.  Also, just because it isn't seen, doesn't mean it isn't accessible. 

Thanks Slammed, you're right :) and congratulations by your mod, its very helpful.

Bye!

Biff

#175
Everything installed perfect and works great with the exception of one small issue.  smf is in forum directory, wordpress is in wordress directory. There is a .htacess file in my site root and again in my wordpress directory with

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

I can't figure out a way to include
RewriteEngine on
   RewriteRule ^sitemap.xml$ /forum/index.php?action=sitemap;xml

If I change the one for wordpress and use yours the sitemap works with hxxp:www.mysite.com/sitemap.xml [nonactive]  but not sure what that does to wordpress.

I also use TP Articles for several pages of the site is there a way to include TP Articles in the sitemap?

Hoochie Coochie Man

Thank you..
and these are Turkish language:

Modification.turkish.php
// SMF Sitemap Strings - by Hoochie coochie Man
$txt['sitemap'] = 'Site Haritası';
$txt['sitemap_boards'] = 'Bölümler';
$txt['sitemap_xml'] = 'Site Haritası XML linki Göster';
$txt['sitemap_topic_count'] = 'Site Haritasında Gösterilecek Maksimum Konu Sayısı';
$txt['sitemap_collapsible'] = 'Sitemap\'deki alt bölümlerinizi collopse yardımı ile açma-kapama';



Help.turkish.php
// SMF Sitemap Strings - by Hoochie coochie Man
$helptxt['sitemap_xml'] = 'Bu özelliği kapatırsanız, SiteMap\'deki XML linki sadece admine gözükür.  Bu özelliği açarsanız, herkes görebilir.';
$helptxt['sitemap_topic_count'] = 'Bu sitemap\'de gösterilecek maksimum konu sayısıdır.  Varsayılan 20000 (200 sayfa).';
$helptxt['sitemap_collapsible'] = 'Bu özelliği açarsanız, alt bölümlerinizi collapse yardımı ile açıp kapatabilirsiniz.  Birçok alt bölümü sitelerde kullanışlı olabilir.';



Who.turkish.php
$txt['whoall_sitemap'] = '<a href="' . $scripturl . '?action=sitemap">Site Haritası</a>\'na bakıyor.';
İnadına SMF 1.1.X

Farmacija

Quote from: ortiz on October 02, 2007, 11:00:58 AM


this link helped me very much. But now i have an strange MySQL error. When I do "click" in "Sitemap" link, SMF returns me this error:

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 '' at line 6
Archivo: [path to forum folder]/Sources/Sitemap.php
Línea: 40


I followed step by step install.xml. What can i do ?

Thanks
SAME here.
www.farmaceuti.com
www.farmaceuti.com/tekstovi

SlammedDime

What is the error that appears in your forum error log? Looks like you didn't either run add_settings.php if you manually installed, or the file was never run by the installer to put the information needed into the database.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Farmacija

yes it was manually added.
i disable error log.
www.farmaceuti.com
www.farmaceuti.com/tekstovi

Advertisement: