News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Sitemap

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

Previous topic - Next topic

sombra

i have an error installing i used to have the version before and uninstalling gave me error but i keept going becouse it was telling me to modify an archive that the lines didint exist well it went all fine but wen i tried to install the new one it was giving me the same error and telling me to edit the sames lines that dosent existo or i can find

Ejecutar Modificación     ./Themes/default/index.template.php     Test failed
      1.    Agregar Antes    ./Themes/default/index.template.php    Test failed

this is the line



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



i dont see that line in my index.template.php

SlammedDime

Please see the last couple of pages of this topic.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

sombra

Quote from: SlammedDime on November 18, 2008, 12:36:38 PM
Quote from: Frozt on October 14, 2008, 07:23:01 AM
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.

Quote from: SlammedDime on October 14, 2008, 11:13:49 AM
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.

That should answer your question regarding Beta 4

As for the other issue, I'd have to see a link, but I"m willing to guess one of two things... either you have adsense code on your forum, or some other code after </html> in your source, or there are some spaces at the very top of the HTML before <doctype>... either of those will foul you up.

As for knowing if it's working right... visit the sitemap... simple as that.  Check the XML link to make sure no errors appear on the screen.

did this changes but still getting the same error

5.     Ejecutar Modificación     ./Themes/default/index.template.php     Prueba fallida
      1.    Agregar Antes    ./Themes/default/index.template.php    Prueba fallida

sombra

#723
sorry for the bump but i installed having the eror but before i made this change

QuoteNote: i did this change in the mod package:
unzip smf_sitemap_1.3.0.tar.gz
and edit install.xml file
find this:
Code: [Select]
         <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:
Code: [Select]
         <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.

then i installed even having the error  now i see this links at the final of my forum

# XHTML
# RSS
# WAP2
# Sitemap

my question is if this is there it means it worked? no more editing to make?

and i use another theme what in specific i need to change thanks


edit....

i have this on the footer of my custom theme learning hot to edit files i mest it up a bit now i think i can get it rigth hehee

<div id="footerarea">
<li class="last"><a href="'.$scripturl.'?action=sitemap" class="new_win"><span>', $txt['sitemap'] ,'</span></a> | <a href="'.$scripturl.'?action=rules;sa=agreement" class="new_win"><span>Terminos y Condiciones</span></a> | <a href="'.$scripturl.'?action=rules" class="new_win"><span>Regas de Post</span></a> | <a href="'.$scripturl.'?action=rules;sa=additional" class="new_win"><span>Que es Todo Ilegal</span></a></li>
  ', theme_copyright(), '<br />Todos los Derechos Reservados Todo ilegal Group<br />';


is missing
# XHTML
# RSS
# WAP2

what do i need to put there becouse i have another links to show besides the ones of sitemap

edit...

and i went to google and saw this error

XML Parsing Error: undefined entity
Location: http://todoilegal.net/index.php?action=sitemap;xml
Line Number 4, Column 97:         <a class="floatright" href="http://todoilegal.net/index.php?action=unread;c=1">Mensajes no le&iacute;dos</a><a name="c1" href="http://todoilegal.net/index.php?action=collapse;c=1;sa=collapse;#c1">Categoria General</a

Toadmund

Quote from: SlammedDime on January 28, 2009, 05:06:07 AM
Toadmund, looks like you're missing the language strings in your Modifications.english.php file, OR, if you have a Modifications.english-utf8.php file, they might be there as well.
What are the language strings?
And should I look in the default theme, or my current theme?

SlammedDime

Both.  If your current them has a Modifications.english.php file in it, it shouldn't.  If it doesn't, you'll want to look in your Default theme language directory as I said above.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

Toadmund

I have this string twice in 'Modifications.english.php

// 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';

I assume once is plenty?

I do not have this string at all in the utf8 one.

Is this where my problem lies?

SlammedDime

Yes, you'll need to put it in the utf8 file.  Or if you don't use utf8, remove all of the utf8 files.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

shortchange

Greetings I have installed sitemap on SMF beta 4 and have the following error:

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: /homepages/5/d271589599/htdocs/gg/forum/Sources/Sitemap.php
Line: 185


In modifications.english I have this entry:
$txt['sitemap_topic_count'] = 'Max number of topics to display in sitemap';

Please advise me on how to fix it. Thank you.

SlammedDime

You can ignore that error if you like, the sitemap will still function as it should.

If you want to fix it, you'll have to go into Sitemap.php and find any occurances of sitemap_topic_count that do not have ' around it, and change it 'sitemap_topic_count'
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

sombra

#730
ok hello.

i installed even having the error  now i see this links at the final of my forum

# XHTML
# RSS
# WAP2
# Sitemap

my question is if this is there it means it worked? no more editing to make?

and i use another theme what in specific i need to change thanks


edit....

i have this on the footer of my custom theme learning hot to edit files i mest it up a bit now i think i can get it rigth hehee

         <div id="footerarea">
               <li class="last"><a href="'.$scripturl.'?action=sitemap" class="new_win"><span>', $txt['sitemap'] ,'</span></a> | <a href="'.$scripturl.'?action=rules;sa=agreement" class="new_win"><span>Terminos y Condiciones</span></a> | <a href="'.$scripturl.'?action=rules" class="new_win"><span>Regas de Post</span></a> | <a href="'.$scripturl.'?action=rules;sa=additional" class="new_win"><span>Que es Todo Ilegal</span></a></li>
           ', theme_copyright(), '<br />Todos los Derechos Reservados Todo ilegal Group<br />';


is missing
# XHTML
# RSS
# WAP2

what do i need to put there becouse i have another links to show besides the ones of sitemap

edit...

and i went to google and saw this error

XML Parsing Error: undefined entity
Location: http://todoilegal.net/index.php?action=sitemap;xml
Line Number 4, Column 97:         <a class="floatright" href="http://todoilegal.net/index.php?action=unread;c=1">Mensajes no le&iacute;dos</a><a name="c1" href="http://todoilegal.net/index.php?action=collapse;c=1;sa=collapse;#c1">Categoria General</a

wen i go in the sitemap link it just takes me in to the forum again :-[

shortchange

#731
Quote from: SlammedDime on February 02, 2009, 10:12:09 AM
You can ignore that error if you like, the sitemap will still function as it should.

If you want to fix it, you'll have to go into Sitemap.php and find any occurances of sitemap_topic_count that do not have ' around it, and change it 'sitemap_topic_count'

Cheers mate, thanks.

For anyone else, there was only one instance of this

find
'max_topics' => $modSettings[sitemap_topic_count],

replace
'max_topics' => $modSettings['sitemap_topic_count'],

SlammedDime

Sombra - that means that the sitemap mod is not fully installed.  You'll want to look at the manual instructions for installing the mod and make sure it's all there.

As for editing the theme, if it's missing those options, you'll need to contact the theme author and ask how to put them in.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

sombra

my friend the code its rigth here of the footer if you can just add what is missing it woud be for alot of help

         <div id="footerarea">
               <li class="last"><a href="'.$scripturl.'?action=sitemap" class="new_win"><span>', $txt['sitemap'] ,'</span></a> | <a href="'.$scripturl.'?action=rules;sa=agreement" class="new_win"><span>Terminos y Condiciones</span></a> | <a href="'.$scripturl.'?action=rules" class="new_win"><span>Regas de Post</span></a> | <a href="'.$scripturl.'?action=rules;sa=additional" class="new_win"><span>Que es Todo Ilegal</span></a></li>
           ', theme_copyright(), '<br />Todos los Derechos Reservados Todo ilegal Group<br />';

gordonjr

During install of this mod i get this error message:

4.     Execute Modification     ./Themes/default/index.template.php     Test failed

I went ahead and installed the mod anyways. I received no other error messages after the install. The only thing that appears to be missing is the sitemap link in the footer.

When I try to get the manual install instructions for this mod I get this error:

Sorry, but this modification does not appear to be compatible with the selected version.

I am currently using SMF 1.1.7

Can i find these install instructions someplace else.

Thanks

Smoky "Rider" Blue

by reading the xml file (there are 2 of them) that is in the package of the mod you downloaded.  ;)
**Take the time to remember friendships and family.. Sometimes it's all we have, and missed very much**

Toadmund

Sorry, I forgot to thank you for your help SlammedDime.

Thank You! :D

gordonjr

I have found this code in the xml file:

<file name="$themedir/index.template.php" error="fatal">
<operation error="fatal">
<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">Sitemap</a></span>
]]></add>
</operation>
</file>


I dont see the following code in the index.template.php file:

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


With that said do i add the above code to the file? And if I do could you please tell me were I need to insert it.

Thanks


SlammedDime

Honestly, you can insert the link to the sitemap anywhere in your index.template.php that you want it to appear.  I merely chose the footer because I felt like it should go there.  You can find the footer information in your index.template.php and add the link anywhere in there that you like.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

gordonjr

#739
I have found the following code in the index.template.php file:


// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '

<div id="footerarea" style="text-align: center; padding-bottom: 1ex;', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' : '', '">
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function smfFooterHighlight(element, value)
{
element.src = smf_images_url + "/" + (value ? "h_" : "") + element.id + ".gif";
}
// ]]></script>
', !empty($settings['custom_copyright']) ? '<span class="smalltext">'. parse_bbc($settings['custom_copyright']). '</span>' : '', '<br />
', theme_copyright(), '
';


Could you please tell me were/what code I need add to this section. I have tried to add the code to display the sitemap but have only received this message:

Template Parse Error!
It seems something has gone sour on the forum with the template system. This problem should only be temporary, so please come back later and try again. If you continue to see this message, please contact the administrator.

You can also try refreshing this page. 

Thanks
Gordon

Advertisement: