Sitemap

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

Previous topic - Next topic

genieuk

Solved! :D

Thank you JCS, Your a godess.

You helped me with loads of stuff, so a big huge thank you.

Kindest Regards,
Mathew

Sabre™

Any chance you can share what you did, for future users of that theme?
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


jepot5

Quote from: GhostRider2110 on September 22, 2008, 08:52:32 AM
Guess I didn't get everything installed manually.  It would not install via package manager.  The section for adding to index.template.php failed the test.  When I went to add it manually to the default or my current theme, the "Select" failed.  Could not find what it was looking for.  I had to play with it for a bit to get it installed.  I must have missed something since I can't find any settings for Sitemod anywhere within the admin area.  I did run add_setting.php and that did fix my database problem.  Thanks...
What did you do to fix it? I am having the same problem

genieuk

What am i doing wrong?

Google Webmaster tools is saying error on my sitemap. It says it is an unknown format

here is my XML sitemap http://www.foreverlastingfriends.co.cc/index.php?action=sitemap;xml

what is wrong?

and then i submitted

which says is ok but not sure if it works as it says urls in sitemap 0

http://www.foreverlastingfriends.co.cc/index.php?www;action=sitemap

I am confused,

Please Help


SlammedDime

Not sure why it would be giving you that error.  In the box on google where you put in the url, what exactly did you enter?
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

genieuk

Hi,

Thanks for replying in the box on google i entered the two urls above.

this one says it ok now all of a sudden:

http://www.foreverlastingfriends.co.cc/index.php?www;action=sitemap


This one says not due to format:

http://www.foreverlastingfriends.co.cc/index.php?action=sitemap;xml



SlammedDime

If you're entering the full url then you're entering the wrong thing.  You should be putting in something like index.php?action=sitemap;xml into the box on google.

In the box where it says:
3. My Sitemap URL is:
http://www.foreverlastingfriends.co.cc/
You just enter what I put in italics above.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

genieuk

ok thanks,

well google has sorted itself i think as it saying ok now, no errors, and downloaded 75 links ;) just a few minutes ago so all seems good.

Thank you very much.

Mathew  :D

Sabre™

#548
I just clicked on the XML link on the site map, and this is what pops up.
XML Parsing Error: junk after document element
Location: http://xxxxxxxxxxxx.com/index.php?action=sitemap;xml
Line Number 190, Column 1:<div style="text-align: center;"><div style="position:relative; top:0; margin-right:auto;margin-left:auto; z-index:99999">
^


This is the first time Ive clicked that link since installing.
I have made no edits what so ever to any of its files.
I have a bot text installed at the moment as the site is in construction.
I dont think it would be...  but Im not sure.

Thank You :)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


SlammedDime

You added html where you shouldn't have, probably in index.php after ?> or in index.template.php after ?>.  You need to relocate that code to index.template.php BEFORE </body>

Edit: Looks like you've fixed it.  I don't see it in the XML anymore.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Sabre™

#550
You talkin to me?
If you are, I havent touched anything mate.
I didnt add this mod manually, as I wanted to test it first, so havent made any changes.
And...  how do you know where my site is? I havent added it here lol

P.S.
Just noticed Im only getting my error as a member logged in.
Logged out and it displayed properly as a guest
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


SlammedDime

The URL is in the error message you posted above......
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Sabre™

Bah!!   LOL   Sorry mate, Im half asleep!
I edited my above message, can you check it please
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


SlammedDime

Ok, well what I stated still stands as before, you added some code somewhere, or something was added somewhere that adds some extra html output to your site (not related to this mod).  I can't tell you want it is, only you know that (view the source of the xml document, at the very bottom)

Although, it doesn't really matter if it doesn't work right for you, so long as it works for guests... because that's what google is, a guest to your site.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Sabre™

Yeah, I figured it didnt really matter, but kind of wanted to clean it up!
Well, as long as it does its job, then there's no point sifting through the code.
Thanks for your input.
Cheers
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


Frozt

the only incompatibility with 2.0 Beta 4 is the installation in the index.template.php file?

or is possible install SMF Sitemap 1.3.0 in 2.0 Beta 4 with a modification in that part of the installation and the rest code is compatible with this version of SMF?


In a fresh insall of 2.0 Beta 4 the installation only fail in index.template.php file, in this change:

QuoteFind:

</td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">


Add Before:

<span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;"> | <a href="'.$scripturl.'?action=sitemap">', $txt['sitemap'] ,'</a></span>


2.0 Beta 4 have a footer different of 1.1.6


but I try this:

in the line that appear the code that show the link:

XHTML | RSS | WAP2

<li class="last"><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>WAP2</span></a></li>

I replace that line with:

<li><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>WAP2</span></a></li>
<li class="last"><a href="'.$scripturl.'?action=sitemap" class="new_win"><span>', $txt['sitemap'] ,'</span></a></li>


and show the Sitemap link like in 1.1.6

XHTML | RSS | WAP2 | Sitemap


After did this I can install SMF Sitemap in 2.0 Beta 4 and aparently it work well



Note: i did this change in the mod package:
unzip smf_sitemap_1.3.0.tar.gz
and edit install.xml file
find this:
<search position="after"><![CDATA[ </td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">
]]></search>
<add><![CDATA[ <span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;"> | <a href="'.$scripturl.'?action=sitemap">', $txt['sitemap'] ,'</a></span>
]]></add>


and remplace by this:
<search position="replace"><![CDATA[ <li class="last"><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>WAP2</span></a></li>]]></search>
<add><![CDATA[ <li><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>WAP2</span></a></li>
<li class="last"><a href="'.$scripturl.'?action=sitemap" class="new_win"><span>', $txt['sitemap'] ,'</span></a></li>
]]></add>


repacked and install.

SlammedDime

Yes, that is really the only change needed to work on Beta 4, but I won't be releasing a new version until 2.0 hit's the RC stages due to still more template changes in the works, plus I plan on adding features to the sitemap.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Frozt

Thanks

Good. At this moment work well for me

Sudhakar Arjunan

I have installed it perfectly on my new smf 2.0.4.

But when ever some bot or us find sitemap links it say this error.

http://discuss.itacumens.com/index.php?action=sitemap
Apply Filter: Only show the errors with the same message
8: Use of undefined constant sitemap_topic_count - assumed 'sitemap_topic_count'
Apply Filter: Only show the errors from this file
File: /home/itacumen/public_html/discuss/Sources/Sitemap.php
Line: 42

Could you help me to figure it out Author.
Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

SlammedDime

Quote from: SlammedDime on June 15, 2008, 12:01:35 PM
In Sources/Sitemap.php
Code (Find) Select
'max_topics' => $modSettings[sitemap_topic_count],

Code (Replace) Select
'max_topics' => $modSettings['sitemap_topic_count'],

On line 185 and line 42

For line 30, simply remove it.  I have no clue why I even had that line there.
Code (Remove) Select
'extra_before' => $settings['linktree_inline'] ? $txt[118] . ': ' : ''

SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Advertisement: