XML Sitemaps Generator

    Advanced search
Sitemap Generator Forum
July 05, 2008, 01:48:49 PM
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
   Home   Help Search Login Register  
Sitemap software 2.9 released - Email notifications, html sitemap customizing and more
6620 Posts in 1636 Topics by Members
Latest Member: web16
Pages: [1]
  Print  
Author Topic: Template not being used in sitemap.html file  (Read 11744 times)
Stretchr
Registered Customer
Newbie
*
Posts: 6



View Profile
« on: January 19, 2006, 02:37:45 PM »

I'm using the new version of XML Sitemap. I really like the changes you have incorporated into the software but I am having a small problem.

I have modified the sitemap_tpl.html file but for some reason, the template is not being used for the sitemap.html output. The file always displays with the default template. Any ideas?

Thanks,
Stretchr
Logged
admin
Administrator
Hero Member
*****
Posts: 2755


View Profile
« Reply #1 on: January 19, 2006, 03:50:20 PM »

Hello Stretchr,

please make sure that file permissions are set correctly for output file. Please also check if generator copyright message is unchanged in the sitemap template.
Logged

Stretchr
Registered Customer
Newbie
*
Posts: 6



View Profile
« Reply #2 on: January 19, 2006, 04:02:05 PM »

Hello Stretchr,

please make sure that file permissions are set correctly for output file. Please also check if generator copyright message is unchanged in the sitemap template.

That may be the problem. I put in a javascript so that the year was always updated so I modified the copyright a bit. I try to do this with all files so that I don't have to update the date on a bunch of pages at the end of each year. It's strange because I tried this modification on another site template and it worked fine.

FYI, here's the modification I wish to use:
Code:
<div id="copyright">
HTML Site map Generated by <a href="http://www.xml-sitemaps.com" target="_blank">XML Sitemaps</a>
|
&copy; <a href="http://www.xml-sitemaps.com" target="_blank">XML Sitemaps</a> -
<script language = 'JavaScript' type="text/javascript"> type="text/javascript"
now = new Date
theYear=now.getYear()
if (theYear < 1900)
theYear=theYear+1900
document.write(theYear)
</script>
All Rights Reserved<br>
<br style="clear:both;"/>
</div>

I don't suppose you would consider switching to something like this for the sake of convenience?

Also, I don't see anywhere in the documentation where it addresses permissions on the template file. I already have all the other permissions assigned appropriately.

Thanks,
Stretchr
« Last Edit: January 19, 2006, 04:11:27 PM by Stretchr » Logged
Stretchr
Registered Customer
Newbie
*
Posts: 6



View Profile
« Reply #3 on: January 19, 2006, 04:11:08 PM »

Oops, I just saw this:
Code:
<!--
PLEASE NOTE!
You are NOT allowed to remove and/or modify the copyright notice below.
Thank you!
www.xml-sitemaps.com
-->

Sorry. No harm intended.

Cheers,
Stretchr Embarrassed
Logged
admin
Administrator
Hero Member
*****
Posts: 2755


View Profile
« Reply #4 on: January 19, 2006, 05:56:32 PM »

Hello Stretchr!

Basically the required part is the link, this is what the script is looking for:
<a href="http://www.xml-sitemaps.com">XML Sitemaps</a>

So, if you will have the code specified above in the template, it should work correctly.

Quote
Also, I don't see anywhere in the documentation where it addresses permissions on the template file.
I meant the permissions for output file, not the source template. Smiley

Quote
Sorry. No harm intended.
No problem, we just didn't stressed this point in the documentation. Smiley
Logged

Stretchr
Registered Customer
Newbie
*
Posts: 6



View Profile
« Reply #5 on: January 19, 2006, 09:40:28 PM »

Hello Stretchr!

Basically the required part is the link, this is what the script is looking for:
<a href="http://www.xml-sitemaps.com">XML Sitemaps</a>

So, if you will have the code specified above in the template, it should work correctly.


I modified it by putting in
Code:
target="_blank"
. Could that be the problem?

Thanks
Logged
admin
Administrator
Hero Member
*****
Posts: 2755


View Profile
« Reply #6 on: January 19, 2006, 09:51:44 PM »

Yes, that's it. Please try the new generator 2.0.1 - it should work in this case too.
Logged

Stretchr
Registered Customer
Newbie
*
Posts: 6



View Profile
« Reply #7 on: January 20, 2006, 12:34:04 AM »

Yes, that's it. Please try the new generator 2.0.1 - it should work in this case too.

You were right, that is what was causing it. I'll give 2.01 a try. Thank you!

Stretchr
Logged
admin
Administrator
Hero Member
*****
Posts: 2755


View Profile
« Reply #8 on: January 20, 2006, 01:24:24 PM »

Hi Stretchr,

the copyright message in the html sitemap is not required (but appreciated Smiley ) now with the current version of Sitemap Generator (you may need to download it again to get the latest code).
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006, Simple Machines LLC Valid XHTML 1.0! Valid CSS!