View Full Version : Board Optimization - Simple Sitemap
bjhuang
01-15-2009, 10:00 PM
What is it
a really simple sitemap for spiders.
Why
vbseo sitemap is good. but i need another sitemap for spiders to crawl my site more NATURALLY and a sitemap to feed spiders other than google and yahoo.
this sitemap script list all of your threads, newest first. the page updates so fast that spiders will check it more often. hopefully it helps your new threads get indexed quickly.
Install
Step 1: upload sitemap.php to your forum root.
Step 2: modify template "footer"
Find
<a href="#top" onclick="self.scrollTo(0, 0); return false;">$vbphrase[top]</a>
Add Above
<a href="$vboptions[bburl]/sitemap.php">Sitemap</a> -
Demo
http://www.bbkz.com/forum/sitemap.php
The most famous travel forum in chinese world - www.bbkz.com (http://www.bbkz.com/forum/)
NGUYENDUCTRUONG
01-16-2009, 09:41 AM
good ID :D
Sweeks
01-16-2009, 09:45 AM
Installed
Alfa1
01-16-2009, 11:06 AM
Works good. Though I would not call it a sitemap, as it does not display a map of your site. Just the a chronological overview of threads
asd_ra7la
01-16-2009, 02:15 PM
Installed
Blue91
01-16-2009, 03:08 PM
screenshots?
The first page works but none of the subsequent linked pages do.
I am seeing private admin forum topics on the list ---- are forum permissions used in this mod?
Thanks in advance.
Fungsten
01-16-2009, 05:37 PM
The first page works but none of the subsequent linked pages do.
I am seeing private admin forum topics on the list ---- are forum permissions used in this mod?
Thanks in advance.
Until that's answered Tagged for Later.
adhmwagde
01-16-2009, 05:39 PM
thanks
SweetHome
01-16-2009, 06:03 PM
installed
thx
Brandon Sheley
01-16-2009, 06:52 PM
screenshots or demo link please?
I assume it's this
http://www.backpackers.com.tw/forum/sitemap.php
looks like the archive to me, so that might not be it
Alfa1
01-16-2009, 07:21 PM
Permissions work fine. This only shows threads that are visible to guests.
nrms?
01-16-2009, 07:58 PM
:confused: It's not open any valid page with .../sitemap.php.
And i have a hyperlink like this ''http://www.XXX-XXX.net/www.XXX-XXX.net/sitemap.php''
Can explain more about this Add-on...?
Alfa1
01-16-2009, 10:03 PM
Just hardcode the link, by replacing
<a href="$vboptions[bburl]/sitemap.php">Sitemap</a> -
with
<a href="http://www.example.com/forum/sitemap.php">Sitemap</a> -
Put your forum location instead of example.com/forum
bjhuang
01-16-2009, 10:19 PM
The first page works but none of the subsequent linked pages do.
I am seeing private admin forum topics on the list ---- are forum permissions used in this mod?
Thanks in advance.
yes, forum permissions are checked. i guess you read the sitemap when you logged in with an admin account.
tansu
01-16-2009, 11:20 PM
I dont have this code in my footer.
I am using a custom template, where can I put this?
<a href="#top" onclick="self.scrollTo(0, 0); return false;">$vbphrase[top]</a>
bjhuang
01-16-2009, 11:32 PM
I dont have this code in my footer.
I am using a custom template, where can I put this?
<a href="#top" onclick="self.scrollTo(0, 0); return false;">$vbphrase[top]</a>
you could put it anywhere you like.
munnakv
01-17-2009, 06:52 AM
Hi,
The sitemap.php page works correctly.
When i try to navigate to the second page, it gives 404 error.
http://www.yoursite.com/forum/sitemap?offset=100
Also, please tell me how i can point the "View Full Version" link at the top to http://www.yoursite.com/forum/index.php instead of http://www.yoursite.com/forum
bjhuang
01-17-2009, 09:17 AM
Hi,
The sitemap.php page works correctly.
When i try to navigate to the second page, it gives 404 error.
http://www.yoursite.com/forum/sitemap?offset=100
Also, please tell me how i can point the "View Full Version" link at the top to http://www.yoursite.com/forum/index.php instead of http://www.yoursite.com/forum
did you modified sitemap.php? i guess you've changed the value of $script variable at line2 to "sitemap". it should be "sitemap.php".
for the "View Full Version" link:
Find:
$output .= "\r\n<br/><h1>".$vbphrase['view_full_version'].": <a href='".$vbulletin->options['bburl']."'>".$vbulletin->options['bbtitle']."</a></h1>";
Replace
$output .= "\r\n<br/><h1>".$vbphrase['view_full_version'].": <a href='http://www.yoursite.com/forum/index.php'>".$vbulletin->options['bbtitle']."</a></h1>";
metrika
01-17-2009, 03:45 PM
Does it work on 3.6.x and 3.7.x ?
crkgb
01-17-2009, 04:52 PM
<a href="https://www.google.com/webmasters/tools" target="_blank">https://www.google.com/webmasters/tools</a>
Unsupported file format
Your Sitemap does not appear to be in a supported format. Please ensure it meets our Sitemap guidelines and resubmit.
bjhuang
01-18-2009, 02:51 AM
yes, it works on 3.6 and 3.7
and you don't have to submit it to anywhere. it's not in any standard format. it's just a simple page to help spiders crawl your threads.
Wheemer
01-18-2009, 05:26 AM
This mod would be a lot better if you could submit it to google
C138 Kaysone
01-18-2009, 07:02 AM
my offset is not working... like it wont update the pages or something like that
munnakv
01-18-2009, 07:33 AM
Thanks for the reply bjhuang.
did you modified sitemap.php? i guess you've changed the value of $script variable at line2 to "sitemap". it should be "sitemap.php".
I did not modify the second line. It stays as $script = 'sitemap.php';
I changed only the third line to : $count = 2000;
The problem still remains unsolved. :eek:
I even replaced the sitemap.php with the downloaded one, but does not have any effect.
You can have a look at here: http://www.mysite.com/forum/sitemap.php
(Just to remind, the offset link http://www.mysite.com/forum/sitemap.php?offset=2000 leads to a pagenot found error.)
The "View Full Version" link works now. Thanks. :cool:
C138 Kaysone
01-18-2009, 07:36 AM
Thanks for the reply bjhuang.
I did not modify the second line. It stays as $script = 'sitemap.php';
I changed only the third line to : $count = 2000;
The problem still remains unsolved. :eek:
I even replaced the sitemap.php with the downloaded one, but does not have any effect.
You can have a look at here: http://www.indianjobtalks.com/forum/sitemap.php
(Just to remind, the offset link http://www.indianjobtalks.com/forum/sitemap?offset=2000 leads to a pagenot found error.)
The "View Full Version" link works now. Thanks. :cool:
Does your page loads or it still gives you a 404 error? im trying to figure out what i can do to fix mine as well
http://mytalkcarolina.com/community/sitemap.php
I dont know what is causing the problem for it not to allow going through the pages, only gives me a 404 error
C138 Kaysone
01-18-2009, 07:49 AM
Ok now i found the problem & the correction to it, the author only needs to update the php attachment.
when clicking on the page number, it leads you to a 404 error page but as it goes
Before - http://mytalkcarolina.com/community/sitemap?offset=1800 (404 error)
After - http://mytalkcarolina.com/community/sitemap.php?offset=1800 (Will allow to go to next page)
On line 14, just add .php to the variable.
Before
define('SKIP_SESSIONCREATE', 1);
define('DIE_QUIETLY', 1);
define('THIS_SCRIPT', 'sitemap');After
define('SKIP_SESSIONCREATE', 1);
define('DIE_QUIETLY', 1);
define('THIS_SCRIPT', 'sitemap.php');That way you will no longer see the 404 error page :) hope that helps anyone that uses my correction "which is only small, and author :) you may want to update your sitemap.php attachment with my correction so everyone will have it when they install it into their forum root.
munnakv
01-18-2009, 02:01 PM
That way you will no longer see the 404 error page hope that helps anyone that uses my correction "which is only small, and author you may want to update your sitemap.php attachment with my correction so everyone will have it when they install it into their forum root.
C138 Kaysone, Thanks. It did the trick. It helps to learn the coding at times. :)
Another suggestion / request to bjhuang the thread owner:
Can we eliminate the page "/forum/sitemap.php?offset=0" appearing in the top navigation list, as it is a duplicate of "/forum/sitemap.php?"
bjhuang
01-18-2009, 11:36 PM
C138 Kaysone, Thanks. It did the trick. It helps to learn the coding at times. :)
Another suggestion / request to bjhuang the thread owner:
Can we eliminate the page "/forum/sitemap.php?offset=0" appearing in the top navigation list, as it is a duplicate of "/forum/sitemap.php?"
open sitemap.php and find
$output .= "<a href='".$sitemap_script."?offset=".(($i-1)*$count)."'>".$i."</a> ";
replace with
if($i==1) $output .= "<a href='".$sitemap_script."'>".$i."</a> ";
else $output .= "<a href='".$sitemap_script."?offset=".(($i-1)*$count)."'>".$i."</a> ";
nrms?
01-19-2009, 03:56 PM
Just hardcode the link, by replacing
<a href="$vboptions[bburl]/sitemap.php">Sitemap</a> -with
<a href="http://www.example.com/forum/sitemap.php">Sitemap</a> -Put your forum location instead of example.com/forum
@Alfa1, thanks in advance, but after this... continue not open a valid page, simple open a blank page...
Have you other solution...?
John1uk
01-20-2009, 10:18 AM
Thanx "installed" :)
Works fine 1st time
munnakv
01-21-2009, 03:16 PM
open sitemap.php and find
$output .= "<a href='".$sitemap_script."?offset=".(($i-1)*$count)."'>".$i."</a> ";
replace with
if($i==1) $output .= "<a href='".$sitemap_script."'>".$i."</a> ";
else $output .= "<a href='".$sitemap_script."?offset=".(($i-1)*$count)."'>".$i."</a> ";
Perfect. Appreciate your time and help.
Thanks for that bjhuang :)
munna
marshal_ramdev
03-14-2009, 12:56 PM
thank you !
Freiknecht
03-14-2009, 02:14 PM
get only a white side indicated
Majora
04-02-2009, 08:51 PM
how can i rewrite the links to my vbseo thread links?
Markos
04-02-2009, 09:46 PM
thanks installed
Mattcch
04-08-2009, 01:41 PM
@bjhuang sir
thanks for great works ,
are you a chinese?
and i from hong kong.
it is a very useful mod for bots.
Theater
05-12-2009, 06:55 PM
Worked like a charm. Thank you.
TrevsRevenge
06-12-2009, 06:06 PM
Great Idea !!!!!!!!!
but I am also getting a blank page when i point to this link http://www.spinzone.net/forums/sitemap.php is there a problem because i call it forums instead of forum if so what can I change in the sitemap.php to fix this.
Thanks
matrixc0d3
08-02-2009, 06:36 PM
hi how can i rewrite this for vbseo html urls? :confused:
Majora
08-02-2009, 06:42 PM
hi how can i rewrite this for vbseo html urls? :confused:
Good question...:confused:
cobaku
11-01-2009, 02:18 AM
i also need the same thing
how can i fix the url's so they point vbseo url's
mahendraji
11-04-2009, 10:41 PM
Hi,
I followed the step, and can see sitemap is installed and working (seems to be okay)
------------------------------------
Install
Step 1: upload sitemap.php to your forum root.
Step 2: modify template "footer"
------------------------------------
But I am not sure what you meant by Step-2, I am kinda lost here. Can you please help.
Please check my forum www.freerecipeforum.com and my sitemap is www.freerecipeforum.com/sitemap.php
Thanks
Mahendra @ www.freerecipeforum.com
mahendraji
11-04-2009, 10:46 PM
Seems like google webmaster tool doesnt accept php format, any suggestion for .xml or .html sitemap please ?
cobaku
11-10-2009, 03:44 AM
try vbseo sitemap but it is too hard for u it seems
kuervo
03-07-2010, 03:04 PM
exelent men thanks
YISRAEL
03-07-2010, 08:26 PM
Nice no more.
CILGINKRAL_
03-09-2010, 03:33 PM
How can rewrite the links to my vbseo thread links :(
Marks as ınstallad :)
NAZIA
04-16-2010, 10:45 AM
awesome.. one..
Manoel J?nior
04-16-2010, 11:46 PM
How can rewrite the links to my vbseo thread links :( [2]
X_FiLeS
04-18-2010, 04:01 PM
Thanks great mod works well see demo http://webcenter.cc/sitemap.php :)
muratcan25
04-21-2010, 11:11 AM
Installed
thank you
soft-center
04-21-2010, 02:48 PM
thanksssssssssssssss
MichaelDance
05-01-2010, 01:20 AM
thanks mate, i hope spiders love it :) i love the idea btw installed and marked as installed
FitgirlWorld
05-01-2010, 02:40 PM
awesome and so simple!! Installed
Naan-Kadavul
07-03-2010, 06:37 AM
Not working :(
http://www.moviejockey.com/forum/sitemap.php
Midohash
02-22-2012, 05:37 PM
Excellent ... Installed ... Thank you
www.nofal
09-14-2012, 08:02 AM
Good Work
Jo_RHU
10-06-2014, 11:35 AM
This sounded good but not working on 3.8.5 unfortunately. I think I'm just too late to the party!
Unable to add cookies, header already sent.
File: /home/path/to/forum/includes/init.php
Line: 55
(and a bunch of "Deprecated: Assigning the return value of new by reference is deprecated" errors)
yahsuah
10-22-2014, 05:42 AM
Thanks for this great add-on!
Goomzee
12-03-2014, 03:52 AM
but this sitemap.php is not works google webmaster and bing master as well
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.