View Full Version : vBulletin Google Site Map
T2DMan
06-29-2005, 10:00 PM
There are a few vBulletin Google Site maps around, but none as comprehensive as this that I have seen. This vBulletin Google site map is based on Kalius's work on discussed on his site and at Digitalpoint (http://forums.digitalpoint.com/showthread.php?t=17798)
FYI, the vBulletin Google Site Map modification contains at least one potential remote file include exploit. You are hereby notified that you should uninstall this modification, including the removal of the vBulletin Google Site Map PHP files from your server. The author of the modification has been notified, and the vBulletin Google Site Map thread has been moved to the Modification Graveyard forum.
Best,
vBorg Staff
vBulletin Google site map
with ability to add extra urls
(c) by T2DMan - Michael Brandon
8Nov05+13hrsGMT - update. Added support for Yahoo Sitemap & bug fix
7Nov05+13hrsGMT - update. Thanks for your help.
I have attached 1 version with 2 different preset configs for your convenience. vBSEO and non vBSEO configs.
Configure in the vbgsitemap-config.php file.
$base=""; // "" if in root, $base="forum/"; //if in the subdirectory forum
It now works well with forum permissions, and the vBulletin's scheduled task system. I have personally installed the reviewed vBGSiteMap on a site with over 200,000 urls. Copes with the large number of urls with no problems.
The vBGSiteMap works well with vbSEO, and it lists all the old url's to allow Google to spider the old url's and so find the 301 redirects to the new, and so delete the old url's from its index.
Compared to the previous versions
Sitemap files now written into their own directory - means this can be safely chmod 777 - thanks Sarah King
config and class files separated out
new help file written
many corrections made to the code - amazing what sitting on a piece of code can do, and amazing what you can learn from personally installing on many different servers.
Can now work on mysql versions from 3.23.58 to 5+
Specifications
works with v3.03 - 3.5
access to this file is password protected
the same password as the database via the vBulletin includes/config.php file
creates an index file and multiple gzipped site maps to less than the maximum permitted by Google (I have in fact restricted it to 3k url's, rather than 50k as my browser takes a while to process the file when checking it)
creates a gzipped file containing the urls for Yahoo Sitemap
the site map files are created in the /vbgsitemap/files directory which needs to be chmod to 777
adds
forums - with paginations of forums (excluding redirects and password protected forums)
threads - with pagination of threads (excluding invisible threads=soft deleted, and threads inside password protected forums)
archive forum pages with paginations
archive versions of threads with paginations
members
extra
extra urls from other program types
add a new url per line onto file.txt, and a gzipped file will be created for it, and added to the site index file.
How to install
unzip the files
copy the vbgsitemap folder to your root directory
chmod the vbgsitemap/files directory to 777
copy vbgsitemap.php to your root directory
copy the includes/cron/vbgsitemap-cron.php file to your vbulletin includes/cron/ directory
look over the configuration options on the /vbgsitemap/vbgsitemap-config.php file
$base="" or "forum/" - if your forum is the actual root, or in the forum directory etc.
$addthreadarchive=false; - whether you want the archive version of the threads to be added or not.
the rest should not need to be changed
change to $xtrafile="file.txt"; if you have additional urls that you want included from another package, get a list of those url's and add them to file.txt.
Then access the /vbgsitemap/index.php file in your browser to get things happening.
The username/password is the username/password of your database.
Add the resulting one index file to Google sitemaps: http://www.yourdomain.com/vbgsitemap.php
Add the other file to Yahoo sitemaps
http://www.yourdomain.com/vbgsitemap/files/urllist.gz
A cron job can be setup in the vbulletin scheduled tasks
./includes/cron/vbgsitemap-cron.php
depending on the number of posts/new threads to your forum, set to run daily or weekly etc. The cron will automatically ping Google and return success/failure into the cron log.
dsboyce8624
06-30-2005, 04:22 PM
I went and downloaded the file from the URL you posted. I edited the file for my settings, but it would run correctly until I manually defined the DB info. This of course hosed a couple other things, but it generated the file.
I'm sure I missed something in the edits, mayhap you could note them better in the file for those of us who didn't sleep so well lastnight?
Anyway, it did generate the file, so thanks for that.
I'll post back when I have some results.
PS - Using 3.0.7
Dream
06-30-2005, 04:37 PM
argh too much stuff to read. do I just activate the plugin
Looks interesting.... may check it out later.
Beermonster
06-30-2005, 05:41 PM
Shouldn't you attach the hack in this thread?
Tornado.Tech
06-30-2005, 06:23 PM
its still in beta stage
Marco van Herwaarden
06-30-2005, 08:27 PM
I am sorry but if you release a hack here, it must also be downloadable from here. Please upload the needed files.
T2DMan
06-30-2005, 09:32 PM
Sorry - I initially added it. Not sure what happened. Anyway, back again.
Having a look now at the issues mentioned. Its still beta, but there should not be any issues... But then again, thats why its beta, I need to take your advice on board.
T2DMan
06-30-2005, 09:35 PM
argh too much stuff to read. do I just activate the plugin
Per the check boxes this is not a plugin. It is an external program that you define parameters on the files then run via your browser.
dsboyce8624
06-30-2005, 10:27 PM
Sorry - I initially added it. Not sure what happened. Anyway, back again.
Having a look now at the issues mentioned. Its still beta, but there should not be any issues... But then again, thats why its beta, I need to take your advice on board.
I also noticed that it misformed the URL, most likely because I had problems with it, but it ended up with the site main URL twice, then the rest of the address.
T2DMan
07-01-2005, 02:58 AM
I also noticed that it misformed the URL, most likely because I had problems with it, but it ended up with the site main URL twice, then the rest of the address.
Please check your setup - the system picks up your domain. All you need to specify is the directory with a trailing forward slash. Or blank if your forum is in the root directory.
PixelFx
07-01-2005, 06:29 AM
Please check your setup - the system picks up your domain. All you need to specify is the directory with a trailing forward slash. Or blank if your forum is in the root directory.
this looks really cool, how well would it work with vbadvanced cmps 2.0 custom vba pages?
David_R
07-01-2005, 03:43 PM
how exactly should i use this hack ?
T2DMan
07-03-2005, 02:52 AM
How do I use
I have now added instructions on how to setup - please see this thread.
vBAdvanced
With custom vbadvanced pages, you can manually add pages to the file specified and the program will add them to the Google site map. Or you can amend the file to drag the vbadvanced urls from the database and add them to the site map as well.
If you do manage to hack the file for vBAdvanced, please post the code here and a sample of the xml file, and I will add the code to the program.
clearchannel
07-03-2005, 03:50 AM
I downloaded the zip file, and the readme is blank.
T2DMan
07-03-2005, 04:11 AM
This thread includes the installation instructions
https://vborg.vbsupport.ru/showthread.php?t=91389
In addition, you should be able to read through the start of the vbsitemap-multi.php file to see the config options.
The blank file.txt is to add additional url's manually.
Mickie D
07-03-2005, 09:46 AM
im having problems with this
it created the files no problem but when i click on one of the sitemap pages (i have 106000 generated)
i get this error
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
An invalid character was found in text content. Error processing resource 'http://www.world-of-digital.com/sitemap6.xml.gz'...
T2DMan
07-03-2005, 11:03 AM
For some strange reason, when I look at it there is no problem.
I get the correct response "
This XML file does not appear to have any style information associated with it."
Your error says that it can't use the style sheet - so disable the style sheet and you should be right???
im having problems with this
...
i get this error
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
Mickie D
07-03-2005, 11:16 AM
where do i disble the style sheet ?
is it the css stored as files i need to disable ?
if so im sure it would be better to work around this because the style sheet increases speed and bandwidth on my site by 40% with tursk mmchache installed!
but if your not talking about that option then pay no attention to my post m8
would love this working i jsut stumbled across the sitemap feature in google and done a few searches and nearly every result i have read has been positive !!!!
cheers for releasing this aswell
update:
i just disabled the stylesheet css stored as files option and still the same error (yes i done a ctrl F5 refresh aswell)
T2DMan
07-03-2005, 09:20 PM
Sorry, you have got me slightly wrong there. You definately need CSS stored as files on your vBulletin site. So change that back fast!
The xml file you have, has nothing wrong with it - its the way that you are reading it that is the issue.
The issue is to do with your browser and how it views specifically the xml files (nothing to do with vBulletin per say). When I personally look at the file you mention, I am able to view it with no problems. I get the notation at the top
This XML file does not appear to have any style information associated with it.
However, when you look at it, you get
Cannot view XML input using style sheet
How are you looking at the xml file??? - I personally use firefox, but even with explorer, I see no error. I personally am not using an xml reader, nor am I attempting to display the xml in any other format other than what it is.
Eagle Creek
07-05-2005, 09:29 PM
I downloaded the zip file, and the readme is blank.
Can you post some screenshots? I don't have a 3.5 Board running because it's still beta and I want to know "what's on the market" for it.
I installed it but the last modified date for forum dispay shows 1969
<loc>http://www.domain.com/forumdisplay.php?f=12</loc>
<lastmod>1969-12-31T19:00:00Z</lastmod>
<changefreq>daily</changefreq>
<priority>0.8</priority>
Reeve of shinra
07-07-2005, 02:06 PM
Out of curosity, I have a 'dead forums' catagory filled with temp forums for certain events and misc other things. Would it be a good idea to have the sitemap generate a file for this section or not?
Gary King
07-10-2005, 02:38 AM
Basically, can we just upload the 3 files to our root dir (/, since that is where my forum is located) and leave it? Do I need to run any plugin installers?
Reeve of shinra
07-10-2005, 04:12 AM
No installers to run although you may want to run this as a cron to autoupdate once in a while. You'll also need to chmod root or create some files that have write permissions on it.
Gary King
07-11-2005, 01:09 PM
No installers to run although you may want to run this as a cron to autoupdate once in a while. You'll also need to chmod root or create some files that have write permissions on it.
I don't quite understand how the Google Site Map works. I know what it DOES, but not how it functions. For instance, how does uploading your files do anything at all? Nothing seems to get executed, etc. I suppose that's why you suggest I cron the files? Which file? How often? I chmodded root to 0777 since I'm not sure what else to chmod.
mr2forums
07-11-2005, 06:50 PM
I can not get this thing to work, need detailed instructions please! What goes into the file.txt? And what exactly has to be modified in order to get this to work?
mr2forums
07-11-2005, 06:51 PM
And did I understand this right, you want us to chmod our root dir to 777?
mr2forums
07-11-2005, 07:13 PM
Okay, got it to create the files, if I try to view the xml file I get:
XML Parsing Error: no element found
Location: http://www.mr2board.com/sitemap_vb_index.xml
Line Number 14, Column 1:
^
Eagle Creek
07-11-2005, 08:46 PM
Can you post some screenshots? I don't have a 3.5 Board running because it's still beta and I want to know "what's on the market" for it.
Please?
mr2forums
07-11-2005, 09:22 PM
OKay, as far as the error im getting I think it's because the xml file is missing the </sitemapindex> on line 14. Is this a glitch in your script? I already modified the script;
fwrite( $multihandle, "<sitemap>
<loc>{$home}{$xtrafilegz}</loc>
<lastmod>{$a}</lastmod>
</sitemap>
");
}
//end xtra file
fwrite( $multihandle, "<sitemap>
<loc>{$home}{$file}</loc>
<lastmod>{$a}</lastmod>
</sitemap>
</sitemapindex>
");
At line 196 I added </sitemapindex> Which seemed to cure the problem.
Reeve of shinra
07-11-2005, 10:52 PM
Eagle Creek: You can use this on vb 3.0.7 as well (I am). There are no screen shots really, what it does it is generates (and gzips) xml files of your forums threads in the google site map format. It will also generate an index file of the XML files generated which you submit to google. Google uses this site map to more efficiently spider your site.
Gary King: Sorry I wasnt clear enough. Type in www.yoursite.com/vbsitemap-multi.php and hit enter to run it. It will then generate the files. You'll need to add vbsitemap-multi.php to a cron job to have it updated at regular intervals.
Eagle Creek
07-11-2005, 11:01 PM
Eagle Creek: You can use this on vb 3.0.7 as well (I am). There are no screen shots really, what it does it is generates (and gzips) xml files of your forums threads in the google site map format. It will also generate an index file of the XML files generated which you submit to google. Google uses this site map to more efficiently spider your site.
Gary King: Sorry I wasnt clear enough. Type in www.yoursite.com/vbsitemap-multi.php and hit enter to run it. It will then generate the files. You'll need to add vbsitemap-multi.php to a cron job to have it updated at regular intervals.
Hmm; maybe I will try it out then.
Thx.
Neo541
07-12-2005, 05:17 PM
You'll need to add vbsitemap-multi.php to a cron job to have it updated at regular intervals.
Works great! When I added it to my scheduled tasks, it just brought up the page, and I had to manually click enter. Any pointers (or pages I should look at) that would explain how to make this into a cron job?
Thanks! :)
Reeve of shinra
07-13-2005, 02:46 AM
I'd probably just wait until time2dine releases the next version which should be out in the not to distance future. It may have that as a feature.
T2DMan
07-13-2005, 02:56 AM
Setting it up for a cron job... something I will have a look at. I am away for the next week though. Sorry.
T2DMan
07-13-2005, 05:19 AM
Set up the running of the file as a cron job with the url in the following format. Substitute the DOMAIN.COM, USERNAME and PASSWORD with the actual domain, username and password.
http://www.DOMAIN.COM/vbsitemap-multi.php?username=USERNAME&password=PASSWORD&ping=true
Try it on your browser first to see that it works, then have it as a cron.
I downloaded the zip file, and the readme is blank.
I'm having a little trouble with this. When I run it, my xml files all end up looking something like:
<loc>http://www.site.comwww1.site.com/whatever</loc>
I have multiple loadbalanced webservers, and therefore I am running this on one of our boxes (the www1.site.com one), but it's messing up all the urls in my files. I tried doing a little ereg_replace action in the scripts, but there's so many different urls I sort of gave up.
Any ideas?
Oh also, is there the ability to put this in a dir off of the site root? I'm not keen on having so many files hanging out in root..
jarosciak
07-18-2005, 04:01 AM
I have installed and configured the files and I am trying to log in with my administrator account.
It won't work.
Constantly getting an error:
Incorrect username/password
And I've even typed it to notepad and copy/pasted it, just to make sure I am not typing it wrong.
Won't work for this hack. But no problems whatsoever logging into my forum with the same name and password.
What can I do about it?
Joe
jarosciak
07-18-2005, 04:21 AM
Never Mind. I fixed it.
Joe
Brinnie
07-20-2005, 01:11 AM
what do you mean "creat blank files"?
How manuy?
What do you name them?
What file extention?
Thanks. :)
Brinnie
07-20-2005, 01:27 AM
ok, I'm a retard.
I can't tell what needs to be configured in multi.php and what to configure it to!
pls help. :(
mcncyo
07-20-2005, 03:32 AM
I have installed and configured the files and I am trying to log in with my administrator account.
It won't work.
Constantly getting an error:
Incorrect username/password
And I've even typed it to notepad and copy/pasted it, just to make sure I am not typing it wrong.
Won't work for this hack. But no problems whatsoever logging into my forum with the same name and password.
What can I do about it?
Joe
i get the same error. How did you fix it?
krohnathlonman
07-22-2005, 01:54 PM
constant user/pass error for me too
jarosciak
07-22-2005, 01:57 PM
It was simple to fix. I had only one user in my forum, called 'admin', and it was also giving me that message, so I have created another username with administrator rights, called "Administrator". When I logged in with this new username it all went away and works fine now.
Try it and let me know if this helped to you too.
Joe
I did all but I'm still geting Internal Server Error? Any ideas?
Hanif
07-28-2005, 09:35 AM
Hi tried to run this but only get through partially...
This is in the vbsitemap-multi code:
$v='0';//;0;//3.5;//vBulletin version 3.5 (or leave as zero for v3.3-3.7)
since I'm running 3.7
//directory that the vBulletin forum is in.
$base="forums/"; //if in the subdirectory forum
as my forums are www.muslimprofessionals.org.uk/forums/index.php
so have I got that right?
when running it from forum root get the following errors:
Warning: chmod(): Operation not permitted in /home/www/mulimpro/vbsitemap-multi.php on line 178
Warning: gzopen(sitemap1.xml.gz): failed to open stream: Permission denied in /home/www/mulimpro/vbsitemap-multi.php on line 249
Warning: chmod(): No such file or directory in /home/www/mulimpro/vbsitemap-multi.php on line 252
Warning: gzwrite(): supplied argument is not a valid stream resource in /home/www/mulimpro/vbsitemap-multi.php on line 263
Warning: gzwrite(): supplied argument is not a valid stream resource in /home/www/mulimpro/vbsitemap-multi.php on line 437
Warning: gzwrite(): supplied argument is not a valid stream resource in /home/www/mulimpro/vbsitemap-multi.php on line 562
Warning: gzwrite(): supplied argument is not a valid stream resource in /home/www/mulimpro/vbsitemap-multi.php on line 611
Warning: gzwrite(): supplied argument is not a valid stream resource in /home/www/mulimpro/vbsitemap-multi.php on line 621
Warning: gzclose(): supplied argument is not a valid stream resource in /home/www/mulimpro/vbsitemap-multi.php on line 622
I created the sitemap XML file myself manually thinking that if I run this script then it will populate the values in there however,nothing is in there...
The following file sitemap1.xml.gz is also not created.
Chmod all the files yet still cant understand, can anyone help?
Kind regards,
Hanif
Any ideas where I'm going wrong?
mcncyo
07-31-2005, 11:09 AM
the problem i am getting is it makes it readable only to the owner of the file and that is it everytime it runs.
infiniterb
08-01-2005, 03:00 PM
the problem i am getting is it makes it readable only to the owner of the file and that is it everytime it runs.
Getting the same issue. In FlashFXP it flags it as 99 as opposed to 32287 and I can't manually change each file's permissions.
I am getting a username password error when I try loging into vbsitemap-multi.php.
What is the username and password based on? Is it the MySql Database username and password?
If that is the case it is not working for me and I am using the information from my config.php file.
A bit of help would be appreciated.
Thanks
hotrod1
08-04-2005, 10:56 PM
Yeah I was wondering about that too because I was using my MySql data yet it still did not work.
flaregun
08-05-2005, 02:29 AM
I too am having this problem, must be a path problem.
99SIVTEC
08-06-2005, 05:51 PM
hmmmm, same problem as the last couple. Doesn't work with my database login info.
berberber
08-09-2005, 05:42 AM
The username/password is the username/password of your database.
i think t2dman was meaning the admin login information
Electronic Punk
08-09-2005, 09:16 AM
Working nicely, almost.
It doesn't seem to want to ping tho, I am trying out different values to see if I can make it do it.
Brinnie
08-09-2005, 11:21 AM
ok I'm using 3.5
$v='';0;//3.5;//vBulletin version 3.5 (or leave as zero for v3.3-3.7)
change that to $v='';3.5;//3.5;//vBulletin version 3.5 (or leave as zero for v3.3-3.7)?
Brinnie
08-09-2005, 11:26 AM
also, when you say root directory, your talking about the forums root, yes?
Blam Forumz
08-09-2005, 12:11 PM
What does this plugin actually do?
Brinnie
08-09-2005, 12:11 PM
If I ever get it working, I'll let cha know. :p
turkforum
08-10-2005, 05:47 AM
Not working username password errors
my forum at the root
i uploaded the files to root
this is what i have
$base=""; // "" if in root
$v=0 ;//3.5;//vBulletin version 3.5 (or leave as zero for v3.3-3.7)
please advice any further modifications needed
Electronic Punk
08-10-2005, 07:56 AM
are you using the same username and password that you have in the config.php?
Itachi0009
08-12-2005, 12:22 PM
I am using my mysql passwords and everything like the rest of the people and I still can't get it to work...
eXtremeTim
08-12-2005, 02:56 PM
I will be setting this up soon and will see about adding more stuff for it to cover. Like ability to work the the cmps2 ect.
libertate
08-13-2005, 02:05 AM
I installed it.
Here are some issues -
CHMOD root directory (as in rootwww) - BAD VERY VERY BAD idea. You have to figure out a solution other then having to do that. Maybe a subdirectory off of forum, or a temporary directory, or it's own directory.
Throwing it in the root is not clean. Why can't it go into its own folder off of forum?
I also had the double appending problem with the domain name. www.site.comwww.site.com within the XML files.
Take the db and pass from vB, and don't ask for it. This is required anyway if it's a cron job.
Just put it up on G, so will see how it goes... (crossing my fingers)
Well... it didn't work. The schema is incorrect.
Google wants an http:// after <LOC> which is not create if forgotten from the config.
so the variable $http= line needs to say
$http="http://";
Also there are some problems with the "archive" folder where it appends after the file.
Like this:
www.example.com/forum/archive/index.php/f-1.html
Metro Man
08-18-2005, 05:44 PM
Incorrect username/password
in vB 3.5 RC2
Tom1234
08-21-2005, 05:13 AM
Re: Incorrect username/password
I think
elseif($dbusername<>$username AND $dbpassword<>$password) entry(false);
should be
elseif($dbusername<>$username OR $dbpassword<>$password) entry(false);
Metro Man
08-23-2005, 08:10 AM
Re: Incorrect username/password
I think
elseif($dbusername<>$username AND $dbpassword<>$password) entry(false);
should be
elseif($dbusername<>$username OR $dbpassword<>$password) entry(false);
erros with this changes are the same
Metro Man
08-26-2005, 10:04 AM
hy, has someone from you a file for me, already modified, with you in the 3,5 RC2 goes? Would be nice if this jeman makes available
David_R
09-03-2005, 04:02 AM
Getting this error:
Fatal error: Maximum execution time of 30 seconds exceeded in /home2/gamers/public_html/vbsitemap-multi.php on line 562
also how can you include meta descriptions and keywords into sitemap ?
Tom1234
09-03-2005, 04:10 AM
Fatal error: Maximum execution time of 30 seconds exceeded in /home2/gamers/public_html/vbsitemap-multi.php on line 562
Increase your:
max_execution_time = 30
in /etc/php.ini (or other location depending on OS) to 60 or greater so it can finish.
David_R
09-03-2005, 04:21 AM
There is one problem/bug in script, i have set our forums threads to be visible only for current month to all guests and members.
but the script goes on calculating number of pages on all forums ?
David_R
09-03-2005, 05:01 AM
Fatal error: Maximum execution time of 60 seconds exceeded in /home2/gamers/public_html/vbsitemap-multi.php on line 422
uh, i have a large site with more then 11,00,000 threads :(
krohnathlonman
09-04-2005, 01:33 PM
add this to the top of the script: @set_time_limit(30000);
do NOT change your php.ini
turkforum
09-05-2005, 01:39 PM
Everything went so smooth
I submit the XML file to google sitemap via my account.
For the Sitemap.xml file I got an error:
Invalid date
Here is the explaination for the error.
Your Sitemap contains one or more invalid dates. This could be because a date is in the incorrect format, or the date itself is not valid. Dates must use ISO 8601 encoding, although you can omit the time portion. For instance, the following are both valid:
2005-02-21
2005-02-21T18:00:15+00:00
Dates that are in the correct format may be invalid if they specify a future date or specify a date that does not exist (for instance 2005-15-40).
Below is how it shows date at the xml file:
<lastmod>2005-09-05T02:21:43</lastmod>
krohnathlonman
09-09-2005, 11:44 PM
I'm getting this too on all of mine...
there aren't any time checks currently and theres quite a few times circumstances where the time doesn't display right.
I got rid of it. This thing messed up my vb.
Mr Chad
09-16-2005, 09:14 PM
Please fix -_-
T2DMan
09-19-2005, 06:11 PM
There is one problem/bug in script, i have set our forums threads to be visible only for current month to all guests and members.
but the script goes on calculating number of pages on all forums ?
How does the above policy work? Google in general does a deep crawl irregularly - ie monthly, and then the threads are available until they are removed/changed when Google gets a no permission error.
Google also does not even download the sitemap daily, and once spidered, takes a day or so for them to appear on Google, and a few days to start ranking high, especially for more competitive phrases.
I like Google to have the max threads possible, so I can get the max traffic possible when each thread is optimized. One month is not long enough for even Google PR to be assigned.
So despite the above, how would you want the site map generated? For monthly use, you would probably want only the previous two weeks site mapped. Please specify and I will program in. The archive version of the url's would also need the calculation done.
T2DMan
09-19-2005, 10:59 PM
Invalid date
Here is the explaination for the error.
Your Sitemap contains one or more invalid dates. This could be because a date is in the incorrect format, or the date itself is not valid. Dates must use ISO 8601 encoding, although you can omit the time portion. For instance, the following are both valid:
2005-02-21
2005-02-21T18:00:15+00:00
Dates that are in the correct format may be invalid if they specify a future date or specify a date that does not exist (for instance 2005-15-40).
Below is how it shows date at the xml file:
<lastmod>2005-09-05T02:21:43</lastmod>
On the face of it, the date is correct per the Google examples.
So all I can consider is that the date is a future date, and should have the +00:00 number of hours set.
I will make sure that all last mod dates have the gmt set.
T2DMan
09-19-2005, 11:50 PM
Throwing it in the root is not clean. Why can't it go into its own folder off of forum?
Google requires it in the root, however, there is a workaround that will be in the next release. All sitemap fiels will be in their own directory, and separate from the sitemap php files.
I also had the double appending problem with the domain name. www.site.comwww.site.com (http://www.site.comwww.site.com) within the XML files.[quote]
If you don't do the setup correct, the url's are wrong. But all it needs is a browse at the xml file, and the setup corrected.
[QUOTE=libertate] Take the db and pass from vB, and don't ask for it. This is required anyway if it's a cron job.
Most variables are as per the config, only username/password and ping are required on the html entrance page.
Google wants an http:// after <LOC> which is not create if forgotten from the config.
The default in the config is $http="http://"; Take the risk and change it and see what happens as above.
Also there are some problems with the "archive" folder where it appends after the file.
Like this:
www.example.com/forum/archive/index.php/f-1.html (http://www.example.com/forum/archive/index.php/f-1.html)
The exact format is customisable in the config. Please let me know your exact problem - the above is the correct default format, and you can change it for your specific instance.
Xplorer4x4
09-25-2005, 02:15 AM
What exactly is it this hack does? Could you explain it for us not so advanced users? :-\
T2DMan
09-25-2005, 02:27 AM
What exactly is it this hack does? Could you explain it for us not so advanced users? :-\
How about the following vBulletin Google Sitemap (http://forum.time2dine.co.nz/seo-vbulletin/vbulletin-google-site-map-3976.html#post4613)
Why have a Google Site Map vBulletin:
Basically - Google site maps for vBulletin are a great way of getting pages found faster, therefore anchor text being found faster, therefore pages being ranked higher faster, and Google PR being attributed to pages faster and better.
With no use of the Google site map - just added heaps of new pages to a forum and very soon after Google found the main forum pages, yet to find all the threads
Google often spiders based on the Google PR of the site - the higher PR, the more often, earlier and deeper it seems to spider.
So if you are a low PR site, you can wait quite a few weeks for new content to be found by Google.
And even if you are a higher PR site, you can still wait quite a number of days for Google to find all the new pages that have been added.
So Google site maps can get new pages found faster and it is less dependant on the Google PR of your site as to how fast those pages are found and spidered (IMO).
Where Google ranks a page is a lot about Google PR and link text for that page. So once Google has found all those new pages - if those pages have a lot of link text/anchor text for certain important pages on your site, then those important pages will rank higher earlier.
You need to make sure that you have some good links from existing high PR pages to those new pages, and good html site maps, so Google will calculate in good PR for those pages you have created.
It is always one thing for a page to be cached by Google. It is quite something else for it to then be ranked high by Google.
So how about it - sounds like Google site maps are a good thing?
New version being tested at the moment... been a while. Sorry.
T2DMan
09-25-2005, 02:45 AM
There are lots of url's on vbulletin and potential session id's and newpost/lastpost etc. Some spider versions of google sitemaps only show the url, not the ultimate 301'ed url.
There are a defined number of actual threads and forums etc that you actually want to search engines to cache and return on the SERP's.
So having a specific program that returns the correct url's based on an analysis of the database is a very clean way of doing things.
Xplorer4x4
09-26-2005, 09:53 AM
So bassicly I run a chance of Google canceling my AdSence service for using a hack to increase my rankings?
T2DMan
09-26-2005, 10:05 AM
woooo.Where did that come from???
Adwords promote linking schemes!
But vbseo url rewrites have nothing to do with that. And a Google site map has nothing to do with that.
The link vault is the only possible issue - totally separate scheme. Its Google that is not keen on linking schemes for linking purposes - nothing to do with adsense - they keep rather separate.
David_R
09-28-2005, 10:37 AM
i submitted my map to google 2 weeks ago, should i rebuild everything again (new threads from last 2 weeks and submit again) ?
what should be done now.
sorry for lame question :(
KarateKid
09-29-2005, 01:38 PM
i submitted my map to google 2 weeks ago, should i rebuild everything again (new threads from last 2 weeks and submit again) ?
what should be done now.
sorry for lame question :(
is there a new version coming, which also includes the vbseo functionality?
Regards,
Sebastian
krohnathlonman
09-29-2005, 08:09 PM
I actually only put the archive threads in the sitemap ;) I use that other hack to forward all the spiders to my archive pages.
I then have ads and stuff on my archive pages....
Also I get that time error on every one of my sitemaps but I also have alot of big forums.....
ManagerJosh
09-30-2005, 04:06 AM
Poorly written instructions to install....I'm having enormous difficulty installing.
ukbill69
10-01-2005, 01:15 PM
Same here, very poor instrustions, uninstalling now, login not working, dont know what the hell it asks for the database user and pass, becuase thats within the config.php
require $base.'includes/config.php';
eXtremeTim
10-05-2005, 05:57 AM
This hacks code was horrible on the back end. Google would not even follow the sitemap index file becuase of problems with it. Variables werent set to global where needed. Plus various other things everywhere.
2shae
10-05-2005, 03:03 PM
it wont work if database name and username is the same on login :|
dutchbb
10-05-2005, 03:09 PM
Per the check boxes this is not a plugin. It is an external program that you define parameters on the files then run via your browser.
Why did you post it in the plugin forum then?
michaelbenson
10-05-2005, 03:11 PM
Whenever i try and input my database accounts details it keeps on insisting that they are incorrect even though i have quadruplally checked and rechecked them with those stored in my ./config.php file. Do i need to CHMOD some files or something like that to allow the Sitemap Creator to correctly identity what my account details are?
JJR512
10-05-2005, 04:43 PM
Just want to confirm something:
Once I have generated the sitemaps with this hack, do I just need to submit the sitemap_vb_index.xml file to Google Sitemaps, or should I also submit one or all of the individual sitemapX.xml.gz files?
eXtremeTim
10-05-2005, 07:44 PM
I wouldnt use the sitemap index file. With the problem it has google wont follow it. I redid this and got it all cleaned up and once I did and google grabbed the new sitemap file they wont leave my site alone now.
JJR512
10-05-2005, 09:16 PM
So should I give Google the sitemap1.xml.gz, or sitemap2.xml.gz, or sitemap0.xml.gz? All three were created when I first ran this hack (just installed this morning and only run once). Actually, now that I look at it, the 0 file only seems to contain a URL to the home page, and the 2 file comes up as not being found, even though it's really there. So maybe I'll give it just the 1 file? Does it hurt to submit more than one, does it hurt if it can't find or access one of the submitted sitemaps if another works fine? Why are there multiple files, anyway?
eXtremeTim
10-05-2005, 10:17 PM
You either have to use the index or submit every file that it makes.
Moparx
10-05-2005, 10:20 PM
This hacks code was horrible on the back end. Google would not even follow the sitemap index file becuase of problems with it. Variables werent set to global where needed. Plus various other things everywhere.
could you be more specific? my generated sitemap and index look identical to the examples given by google.
michaelbenson
10-06-2005, 05:33 PM
Whenever i try and input my database accounts details it keeps on insisting that they are incorrect even though i have quadruplally checked and rechecked them with those stored in my ./config.php file. Do i need to CHMOD some files or something like that to allow the Sitemap Creator to correctly identity what my account details are?
Anyone mind helping me out?
Moparx
10-06-2005, 07:18 PM
Anyone mind helping me out?
is the $v variable in vbsitemap-multi.php set to the following (since you run 3.5.0)?
$v='3.5';0;
michaelbenson
10-06-2005, 09:08 PM
is the $v variable in vbsitemap-multi.php set to the following (since you run 3.5.0)?
$v='3.5';0;
I got confused i used to have it like so;
$v='';3.5;//vBulletin version 3.5 (or leave as zero for v3.3-3.7)
cynix2
10-16-2005, 02:25 AM
chang it to this:
$v='3.5';//3.5;//vBulletin version 3.5 (or leave as zero for v3.3-3.7)
Installed and worked Excellent thanks T2Dman.
For other people out there this hack is excellent and T2D also offers some tips on upgrades here: http://forum.time2dine.co.nz/seo-vbulletin/search-engine-optimize-vbulletin-3-5-a-2460.html
Unexplained.tv
10-16-2005, 03:31 AM
T2DMan usually releases decent hacks/mods/plugins and has good infromation, yet this hack/mod in its current state, is simply not worth having. I'll have to stay away from this, until an update is in place.
Vtec44
10-16-2005, 03:32 AM
It's working great for me (vb3.5RC3)
cynix2
10-16-2005, 03:34 AM
I was able to install and run this hack within 5 minutes and it did everything it was suposed to. Im still waiting on conformation from google that the site was indexed however I for one really recomend this hack.
Unexplained.tv
10-16-2005, 06:12 PM
Yea, and as we will notice, you both are using the RC3- I wonder why so many people don't upgrade to the final "GOLD" release.... For some reason, it doesn't appear to work with the Gold release.
cynix2
10-16-2005, 08:30 PM
Heh sorry im not using RC3 on this site, My main one is RC3 though. I did run into a proublem with the indes that this file created. appearently google didnt like the second timestamp that this hack made. Im going to be looking into why the syntax is wrong and get back to you.
*edit*
The only diffrence I have found between T2Dman's sitemap index and google's example is the second date. Appearently google only wants a year-month-day and not a YYYY-MM-DDTHH:MM:SS-HH:MM:SS
Again I have resubmited this and im waiting to see if google likes it or not.
Vtec44
10-16-2005, 11:24 PM
Google has been downloading the XML file from my site for the last 2 weeks. It seems like they download the file every 12 hours for about 5 days straight, then take a couple of days off, then go back to the routine again. So far, I'm seeing double the number of indexed page of my website on google. I'm not sure if it's because of this mod or my other submissions.
dastar
10-16-2005, 11:52 PM
If this could be confirmed to work with Gold with the given instructions I'll be all over installing this. I showed my members the map on this site and they loved it.
http://www.risingconcepts.com/frapper/
I think you misunderstand what this hack actually does :)
Colejo
10-17-2005, 12:02 AM
I think you misunderstand what this hack actually does :)
LOL. I didn't even read the whole thing. I was too busy looking for something that I wanted. LOL
Citizen
10-17-2005, 02:49 AM
If my vb forum was domain.com/forum, would my config file look like this?
--------------------------------------
//directory that the vBulletin forum is in.
//comment out the one not applicable to your forum
//$base=""; // "" if in root
$base="forum/"; //if in the subdirectory forum
// root - home page
$http="http://domain.com";
--------------------------
Right?
cynix2
10-17-2005, 02:53 AM
that should be correct yes. . . . . you could run it and if it dosnt work then ask?
Citizen
10-17-2005, 03:20 AM
It worked.
Once I submit my sitemap to google, do I have to resubmit often or does it automatically update?
cynix2
10-17-2005, 03:22 AM
Google checks it often but you need to remake it every so often.
Citizen
10-17-2005, 03:29 AM
Thanks for the help, and I have one more problem.
It saves the files to:
http://domain.comdomain.com/sitemap_vb_index.xml
What did I do wrong?
cynix2
10-17-2005, 03:36 AM
nothing give your domain to google and have them run it during their next passover.
Citizen
10-17-2005, 03:58 AM
Look at the domain link there. It has the domain twice... the links in the sitemap are all domain.comdomain.com/... instead of just domain.com/...
cynix2
10-17-2005, 04:32 AM
Dono, Sorry I didnt catch that but you might need to get T2Dman's help.
Citizen
10-17-2005, 05:24 AM
Do the files need to be in the highest directory or in the public_html folder?
cynix2
10-17-2005, 06:07 AM
I have min in the public_html folder
Citizen
10-17-2005, 05:48 PM
Here is my multi.php file. If anyone can help me figure out why it is creating all the links in my sitemap as http://domain.comdomain.com instead of http://domain.com, it would be greatly appreciated.
<?php
/************************************************** ************
Google site map for vBulletin
(c) by T2DMan - Michael Brandon
michael@time2dine.co.nz
Get updates from http://forum.time2dine.co.nz/showthread.php?t=3976
version 1.22 12 July 2005
- corrected lastmod time-was incorrectly using z being universal time, when needed
to be local time.
- coded for vBSEO (url rewrite)-thanks Juan Carlos-as at 11/july/05 not yet promoted
- and amendment to allow for reg globals off - thanks Sarah King
- and not showing last post/mod for forum when no posts in the forum
- I had not used the prefix for the setting database query - thanks again Sarah
-access to this file is password protected
the same password as the database via the vb includes/config.php file
-creates an index file and multiple site maps to less than the max
permitted by Google
-the site map files are created in the root directory
-for the program to create the files, the root directory must be minimum chmod 750
-or note the names of the files and precreate them yourself
-the program will create the $file if it does not already exist
adds
-rewritten url's if the vBSEO url rewrite has been added (and original urls if needed)
-forums - with paginations of forums (excluding redirects and password protected)
-threads - with pagination of threads (excluding invisible threads=soft deleted, and threads inside password protected forums)
-archive forum pages with paginations
-archive versions of threads with paginations
-members
restrictions
-not programmed regarding forum permissions - but although Google may try to get the pages, it will get a permission denied message, so we can live with that.
extra
-extra urls from other program types
-configure vbsitemap-xtrafile.php (add in name of following file - file.txt)
-add a new url per line onto file.txt, and a gzipped file will be created for it, and added to the site index file.
************************************************** ************
inspired by
http://forums.digitalpoint.com/showthread.php?t=17798
http://code.google.com/sm_thirdparty.html
*/
$v='3.5';//vBulletin version 3.5 (or leave as zero for v3.3-3.7)
//directory that the vBulletin forum is in.
//comment out the one not applicable to your forum
//$base=""; // "" if in root
$base="forums/"; //if in the subdirectory forum
$vbseo_installed = false; //url rewrite hack - not yet released
$vbseo_oldurls = false; //show the old pre url rewrite urls - so Google can see that they have changed
extract($_REQUEST);
require $base.'includes/config.php';
if ($v==3.5){
$dbusername=$config['MasterServer']['username'];
$dbpassword=$config['MasterServer']['password'];
$servername=$config['MasterServer']['servername'];
$dbname=$config['Database']['dbname'];
$tableprefix=$config['Database']['tableprefix'];
}
//************************************************** ************
head();
if (empty($username) && empty($password)) entry(true);
elseif($dbusername<>$username AND $dbpassword<>$password) entry(false);
($ping=="on")?$ping=true:$ping=false;
//************************************************** ************
//add members userid pages to the sitemap
$adduserid=true;
// root - home page
$http="http://domain.com";
//add lastmod flag for threads & forums-based on the date/time of lastpost
$lastmod=true;//true;//false; - if false, it will use the current time
// add thread archive urls to site map
// will add them if firstly the archives are enabled,
// and then checks that you want to add them
$addarchive=true;
$addthreadarchive=false;//false; #- personally I go straight to the actual threads
$archiveurl="archive/index.php/";
//add pagination of forums and threads
$addforumpagination=true;
$addthreadpagination=true;
// the var string for forum display
// if your url is forumdisplay.php?f=73 then this would be f=
$forumq = '?f=';
$pageq = '&page='; #pagination of forum & thread pages
// the var string for your thread display
// if your url is showthread.php?t=872 then is t=
$threadq = '?t=';
// the var string for your member display
// if your url is member.php?u=872 then is t=
$memberq = '?u=';
// url text file names - make them writable - or make your root directory chmod 777 and it will create itself.!!!
//starts from scratch - add the resulting file to your own master site map index
$sitemapindex="sitemap_vb_index.xml";
$numoffiles=1; //running total of the number of file we are up to
$file1 = 'sitemap'; //additional files are created with sitemap2.xml.gz etc
$file2 = '.xml.gz';
$file = $file1.$numoffiles.$file2;
// forum priority , thread priority, member priority, change frequency thread and forum see the sitemaps documentation
$fpriority = "0.8";
$tpriority = '1.0';
$mpriority = '0.1';
$fchange ='daily' ;
$tchange ='weekly';
$mchange ='monthly';
// base and forum base change and priority
$bchange ='hourly';
$bpriority = '1.0';
//counting number of url's processed
//rounded down from max 50k url's allowed-kept to 20k so the file is not too large to check manually - the program goes several over the number specified
$max=20000;//49500;
$maxsize=10000000; //10meg - rounded down
//end of configuration
//************************************************** ************
$txt=""; //contains the xml string that gets written to $file
$size=0; //counts the characters in the file up to max size then new file
$countertotal=0;//total url's in all the files
$counter=0; //running total of number of url's in a file
if($vbseo_installed)
{
include 'vbsitemap-vbseo.php';
}
include('vbsitemap-xtrafile.php');
// base url of the forum with trailing slash
$home=$http.$_SERVER['HTTP_HOST']."/";
$base = $home.$base;
//************************************************** ************
//open multi page file
$multifile=$sitemapindex;
if(!file_exists($home.$multifile)) $notopen=1;
$multihandle = fopen($multifile, "w");
if($notopen) chmod($multifile, 0777);
//control file
fwrite( $multihandle, '<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.google.com/schemas/sitemap/0.84"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
http://www.google.com/schemas/sitemap/0.84/siteindex.xsd">
');
//************************************************** ************
//setting variables from database
$basestr = " $bchange $bpriority";
$fstr = " $fchange $fpriority";
$tstr = " $tchange $tpriority";
$setting = $tableprefix."setting";
$connection = mysql_connect($servername, $dbusername, $dbpassword ) or die("Database is down please try again");
$db = mysql_select_db($dbname, $connection) or die ("NO DATABASE" );
$fquery="SELECT varname,value from $setting where varname = 'archiveenabled' or varname='archive_threadsperpage' or varname = 'archive_postsperpage' or varname = 'maxthreads' or varname = 'maxposts' or varname = 'timeoffset'";
$results = mysql_query($fquery) or DIE("$fquery" );
while ($result=mysql_fetch_array($results)){
$$result['varname']=$result['value'];
}
//stop div by zero errors
if($archive_threadsperpage==0) $archive_threadsperpage=1;
if($archive_postsperpage==0) $archive_postsperpage=1;
($timeoffset>0)?$plusminus="+":$plusminus="-";
$timeoffset=$plusminus.date("H:i",mktime($timeoffset,0,0,1,1,2005));
$timeoffset1=date("O")/100;
($timeoffset1>0)?$plusminus="+":$plusminus="-";
$timeoffset1=$plusminus.date("H:i",mktime($timeoffset1,0,0,1,1,2005));
//************************************************** ************
//write new file to sitemap index
$a = date("Y-m-d\TH:i:s$timeoffset1");
//xtrafile - configure vbsitemap-xtrafile.php to include a list of url's
//the url's will be added to their own file and added to the sitemap index
if($xtrafile){
xtra();
fwrite( $multihandle, "<sitemap>
<loc>{$home}{$xtrafilegz}</loc>
<lastmod>{$a}</lastmod>
</sitemap>
");
}
//end xtra file
fwrite( $multihandle, "<sitemap>
<loc>{$home}{$file}</loc>
<lastmod>{$a}</lastmod>
</sitemap>
");
//************************************************** ************
//open first site map file
if(!file_exists($home.$file)){
$notopen=1;
}
$handle = gzopen($file, 'w9');
if($notopen==1){
chmod($file, 0777);
}
$txt='<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">
';
gzwrite($handle, $txt);
$size+=strlen($txt);
//************************************************** ************
//home pages - including archive home page
$txt="<url>
<loc>{$home}</loc>
<lastmod>{$a}</lastmod>
<changefreq>{$bchange}</changefreq>
<priority>{$bpriority}</priority>
</url>
";
$counter++;
if($base<>$home){
$txt.="<url><loc>{$base}</loc>
<lastmod>{$a}</lastmod>
<changefreq>{$bchange}</changefreq>
<priority>{$bpriority}</priority>
</url>
";
$counter++;
}
if($archiveenabled and $addarchive){
$txt.="
<url><loc>{$base}{$archiveurl}</loc>
<lastmod>{$a}</lastmod>
<changefreq>{$bchange}</changefreq>
<priority>{$bpriority}</priority>
</url>
";
$counter++;
}
$forums = $tableprefix."forum";
$threads = $tableprefix."thread";
$members = $tableprefix."user";
//************************************************** ************
//add forums - both actual (and pagination) and archive (and pagination)
$fquery = "SELECT forumid, lastpost, threadcount FROM $forums where link='' and password='' order by forumid";
$results = mysql_query($fquery) or DIE("$fquery" );
$num_rows = mysql_num_rows($results);
while ($row=mysql_fetch_array($results))
{
if(!$lastmod or $row['lastpost']*1==0) $row['lastpost']=time();
if($vbseo_oldurls){
$urlx = $base."forumdisplay.php".$forumq.$row['forumid'];
$txt.= "<url>
<loc>{$urlx}</loc>
";
$txt.="<lastmod>".date("Y-m-d\TH:i:s$timeoffset",$row['lastpost']). "</lastmod>
";
$txt.="<changefreq>{$fchange}</changefreq>
<priority>{$fpriority}</priority>
</url>
";
$counter++;
}
// =================== vBSEO ========================
if($vbseo_installed)
$url = $base.vbseo_url_forum($row['forumid']);
else
$url = $base."forumdisplay.php".$forumq.$row['forumid'];
$txt.= "<url>
<loc>{$url}</loc>
";
$txt.="<lastmod>".date("Y-m-d\TH:i:s$timeoffset",$row['lastpost'])."</lastmod>
";
$txt.="<changefreq>{$fchange}</changefreq>
<priority>{$fpriority}</priority>
</url>
";
$counter++;
//add pagination of forum
if($addforumpagination and ceil($row['threadcount']/$maxthreads)>1){
for ($ai = 2; $ai <= ceil($row['threadcount']/$maxthreads); $ai++){
if($vbseo_oldurls){
$url5 = $base."forumdisplay.php{$forumq}{$row['forumid']}$pageq{$ai}";
$txt.="<url>
<loc>{$url5}</loc>
";
$txt.="<lastmod>".date("Y-m-d\TH:i:s$timeoffset",$row['lastpost'])."</lastmod>
";
$txt.="<changefreq>{$fchange}</changefreq>
<priority>{$fpriority}</priority>
</url>
";
$counter++;
}
// =================== vBSEO ========================
if($vbseo_installed)
$url4 = $base.vbseo_url_forum($row['forumid'], $ai);
else
$url4 = $base."forumdisplay.php{$forumq}{$row['forumid']}$pageq{$ai}";
$txt.="<url>
<loc>{$url4}</loc>
";
$txt.="<lastmod>".date("Y-m-d\TH:i:s$timeoffset",$row['lastpost'])."</lastmod>
";
$txt.="<changefreq>{$fchange}</changefreq>
<priority>{$fpriority}</priority>
</url>
";
$counter++;
counter();
}
} //end when only one page for forum
//archive
if($archiveenabled and $addarchive){
$url2 = $base."archive/index.php/f-".$row['forumid'].".html";
$txt.="<url>
<loc>{$url2}</loc>
";
$txt.="<lastmod>".date("Y-m-d\TH:i:s$timeoffset",$row['lastpost'])."</lastmod>
";
$txt.="<changefreq>{$fchange}</changefreq>
<priority>{$fpriority}</priority>
</url>
";
$counter++;
//add pagination for archive - based on threads per forum
if(ceil($row['threadcount']/$archive_threadsperpage)>1){
for ($ai = 2; $ai <= ceil($row['threadcount']/$archive_threadsperpage); $ai++){
$url3 = $base."archive/index.php/f-{$row['forumid']}-p-{$ai}.html";
$txt.="<url>
<loc>{$url3}</loc>
<changefreq>{$fchange}</changefreq>
<priority>{$fpriority}</priority>
</url>
";
$counter++;
counter();
}
} //end when only one page for forum archive
}//end of archive
}//end of forum loop
gzwrite($handle, $txt);
$size+=strlen($txt);
$txt='';
//************************************************** ************
//add threads - both actual and archive versions
$tquery = "SELECT ".($vbseo_installed?"$threads.title, $threads.forumid, ":"")."threadid, $threads.lastpost,$threads.replycount FROM $threads,$forums where visible=1 and $threads.forumid=$forums.forumid and password='' order by threadid desc";
$results = mysql_query($tquery) or DIE("$tquery" );
$num_rows = mysql_num_rows($results);
while ($row=mysql_fetch_array($results)){
if(!$lastmod or $row['lastpost']*1==0) $row['lastpost']=time();
if($vbseo_oldurls){
$url2 = $base."showthread.php".$threadq.$row['threadid'];
$txt .= "<url>
<loc>{$url2}</loc>
";
$txt.="<lastmod>".date("Y-m-d\TH:i:s$timeoffset",$row['lastpost'])."</lastmod>
";
$txt.="<changefreq>{$tchange}</changefreq>
<priority>{$tpriority}</priority>
</url>
";
$counter++;
}
// =================== vBSEO ========================
if($vbseo_installed)
$url = $base.vbseo_url_thread($row);
else
$url = $base."showthread.php".$threadq.$row['threadid'];
$txt .= "<url>
<loc>{$url}</loc>
";
$txt.="<lastmod>".date("Y-m-d\TH:i:s$timeoffset",$row['lastpost'])."</lastmod>
";
$txt.="<changefreq>{$tchange}</changefreq>
<priority>{$tpriority}</priority>
</url>
";
$counter++;
//add pagination for threads - based on posts per threads
if(ceil($row['replycount']/$maxposts)>1){
for ($ai = 2; $ai <= ceil($row['replycount']/$maxposts); $ai++){
if($vbseo_oldurls){
$url6 = "{$base}showthread.php{$threadq}{$row['threadid']}{$pageq}{$ai}";
$txt.="<url>
<loc>{$url6}</loc>
";
$txt.="<lastmod>".date("Y-m-d\TH:i:s$timeoffset",$row['lastpost'])."</lastmod>
";
$txt.="<changefreq>{$fchange}</changefreq>
<priority>{$fpriority}</priority>
</url>
";
$counter++;
}
// =================== vBSEO ========================
if($vbseo_installed)
$url5 = $base.vbseo_url_thread($row,$ai);
else
$url5 = "{$base}showthread.php{$threadq}{$row['threadid']}{$pageq}{$ai}";
$txt.="<url>
<loc>{$url5}</loc>
";
$txt.="<lastmod>".date("Y-m-d\TH:i:s$timeoffset",$row['lastpost'])."</lastmod>
";
$txt.="<changefreq>{$fchange}</changefreq>
<priority>{$fpriority}</priority>
</url>
";
$counter++;
counter();
}
} //end when only one page for threads
//achive site map
$url2 = $base."archive/index.php/t-".$row['threadid'].".html";
if($archiveenabled and $addthreadarchive){
$txt.="<url>
<loc>{$url2}</loc>
";
$txt.="<lastmod>".date("Y-m-d\TH:i:s$timeoffset",$row['lastpost'])."</lastmod>
";
$txt.="<changefreq>{$tchange}</changefreq>
<priority>{$tpriority}</priority>
</url>
";
$counter++;
//add pagination for archive - based on threads per forum
if(ceil($row['replycount']/$archive_postsperpage)>1){
for ($ai = 2; $ai <= ceil($row['replycount']/$archive_postsperpage); $ai++){
$url3 = $base."archive/index.php/t-{$row['threadid']}-p-{$ai}.html";
$txt.="<url>
<loc>{$url3}</loc>";
$txt.="
<lastmod>".date("Y-m-d\TH:i:s$timeoffset",$row['lastpost'])."</lastmod>";
$txt.="<changefreq>{$fchange}</changefreq>
<priority>{$fpriority}</priority>
</url>
";
$counter++;
}
} //end when only one page for forum archive
}//end of archive
$counter++;
counter();
gzwrite($handle, $txt);
$size+=strlen($txt);
$txt='';
}//end of look for threads
//************************************************** ************
//add members profile pages
if($adduserid) {
$tquery = "SELECT userid".($vbseo_installed?",username":"")." FROM $members";
$results = mysql_query($tquery) or DIE("$tquery" );
$num_rows = mysql_num_rows($results);
for ( $i = 0; $i < $num_rows; $i++)
{
$row = mysql_fetch_row($results);
if($vbseo_oldurls){
$url2 = $base."member.php".$memberq.$row[0];
$txt .= "<url>
<loc>{$url2}</loc>
<changefreq>{$mchange}</changefreq>
<priority>{$mpriority}</priority>
</url>
";
$counter++;
}
// =================== vBSEO ========================
if($vbseo_installed)
$url = $base.vbseo_url_member($row[0],$row[1]);
else
$url = $base."member.php".$memberq.$row[0];
$txt .= "<url>
<loc>{$url}</loc>
<changefreq>{$mchange}</changefreq>
<priority>{$mpriority}</priority>
</url>
";
$counter++;
counter();
gzwrite($handle, $txt);
$size+=strlen($txt);
$txt='';
}
}//end of member loop
//close site map file
gzwrite($handle, "</urlset>");
gzclose($handle);
//close index file
fwrite( $multihandle, "</sitemapindex>");
fclose($multihandle);
//************************************************** **
//ping Google
if($ping){
$google_url = 'http://www.google.com/webmasters/sitemaps/ping?sitemap=';
$ping_url = rawurlencode( $home . $multifile);
$churl = @fopen($google_url.$ping_url,'r');
($churl) ? $message='<b>Google ping - success</b>. This ping acts as an automated resubmit.': $message='<b>Google ping - failure</b>. Please check configurations. Google may be down - try logging in to <a target="_blank" href="https://www.google.com/webmasters/sitemaps/login">Google Site Maps</a> and resubmitting';
}
//************************************************** ************
//report on files written
echo "<font color=red>";
if($ping){
echo"Google has been pinged with the index file location. $message<br /><br />You do not need to have the site index file listed on your account, but if you do, you are able to see the last time that Google uploaded the file via the Google account.";
} else{
echo "Please manually add the site map index file to your Google account.<br /><br />It the file has been changed since last time, Google will revisit the files, but better to manually click on the Google account resubmit link";
}
echo "</font><br /><br />";
?>
<hr /><br />
<a target="_blank" href="<?=$home.$sitemapindex?>">Google site map index file</a> <font color=red><?=$home.$sitemapindex?></font><br /><br />
<?=$xtrafilemessage?>
<a target="_blank" href="<?=$home.$file?>">Site map file <?=$numoffiles?></a> <font color=red><?=$home.$file?></font> <br />
<?
//************************************************** **
//finish
$countertotal+=$counter;
?>
<br/>
size <?=$size?>,
number of url's <?=$counter?><br /><br />
finished - <?=$countertotal?> url's<br /><br />
<a href="<?=$_SERVER['PHP_SELF']?>">Recreate files</a>
<?
$counter=0;
footer();
exit;
//************************************************** **
function counter(){
global $countertotal,$counter,$size,$handle,$max,$maxsize ,$txt,$file1,$file2,$numoffiles,$home,$multihandle ,$base;
if($size>=$maxsize or $counter>=$max){
$a = date("Y-m-d\TH:i:s$timeoffset");
gzwrite($handle, $txt);
$size+=strlen($txt);
echo "size $size, ";
echo "number of url's $counter<br />";
$size=0;//cumulative text length of file
$txt="";
gzwrite($handle, '</urlset>');
gzclose($handle);
$numoffiles++;
$countertotal+=$counter;
$counter=0;//number of url's
//new data file
$file=$file1.$numoffiles.$file2;
if(!file_exists($home.$file)){
$notopen=1;
}
$handle = gzopen($file, 'w9');
if($notopen==1){
chmod($file, 0750);
}
?>
<br /><a target="_blank" href="<?=$home.$file?>">Site map file <?=$numoffiles?></a> <font color=red><?=$home.$file?></font> <br />
<?
//write file header to new file
$txt='<?xml version="1.0" encoding="UTF-8"?>';
$txt.='
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">';
gzwrite($handle, $txt);
$size+=strlen($txt);
$txt='';
//write new file to sitemap index
fwrite( $multihandle, "<sitemap>
<loc>{$home}{$file}</loc>
<lastmod>$a</lastmod>
</sitemap>
");
}
}
//************************************************** ************
function head(){
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<style TYPE="text/css">
h1,tr,td,ul,li,input{
font-family:Arial, Helvetica, sans-serif,Tahoma,Geneva;
font-size:12px;
}
h1{
margin-bottom:0;
font-weight:bold;
color:#993366;
font-size:16px;
}
</style>
<title>vBulletin Google Sitemap Creator-Time2Dine MarketItOnline</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<body>
<table>
<tr><td>
<form ACTION="<?=$_SERVER['PHP_SELF']?>" METHOD="post">
<h1>vBulletin Google Site Map Creator v1.22 12 July 2005</h1>
by T2DMan - Michael Brandon,<br /><br />
<b>A Google site map is one step:</b>
<ul style="margin:0;">
<li>Make sure you also have your onpage optimization correct,
<li>and plenty of links - see the <a onmouseover="window.status='http://www.link-vault.com';return true;" onmouseout="window.status=' ';return true;" href="http://www.link-vault.com/?ss=820">Link Vault</a>
<li>see the experts at <a href="http://www.marketitonline.co.nz">MarketItOnline</a>
<li>see <a href="http://forum.time2dine.co.nz/showthread.php?t=3976">vBulletin Google Site Map</a> for script updates</li>
</ul>
<br />
<b>Google Site Maps</b><br />
<a target="_blank" href="https://www.google.com/webmasters/sitemaps/login">Login</a><br />
<a target="_blank" href="https://www.google.com/webmasters/sitemaps/docs/en/about.html">What is Google Site Maps</a><br />
<a target="_blank" href="https://www.google.com/webmasters/sitemaps/docs/en/protocol.html">Google Site Maps Protocol</a><br />
<a target="_blank" href="https://www.google.com/webmasters/sitemaps/stats">Google Site Map Stats</a><br /><br />
<?
}
//************************************************** ************
function entry($correct){
?>
<b>Instructions</b><br/>
Please make sure that you have personalized the configuration of this file (directly on the file)<br />
- You can either ping the Google servers with the option below, or manually submit the one site index file after logging in to Google
<br /><br />
<?if(!$correct){?><font color=red><b>Incorrect username/password</b></font><br /><br /><?}?>
Username <input name=username><br /><br />
Password <input name=password type=password><br /><br />
(same as database details)<br /><br />
Ping <input name=ping type=checkbox><br /><br />
<input type=submit value="Create vBulletin Google Site Map">
</form>
<?
footer();
exit;
}
//************************************************** ************
function footer(){
?>
</body>
</html>
<?
}
?>
cynix2
10-17-2005, 06:18 PM
try this:
Replace:
// root - home page
$http="http://domain.com";
with:
// root - home page
$http="http://";
Hope that helps.
Citizen
10-17-2005, 06:50 PM
It works now. Thanks for all the help!
Mr Chad
10-18-2005, 09:16 PM
the spiders are seeing this:
/forums/archive/index.php/t-857.html
When it should be this:
/forums/archive/index.php/index.php?t-857.html
what do i need to edit?
T2DMan
10-19-2005, 05:04 AM
the spiders are seeing this:
/forums/archive/index.php/t-857.html
When it should be this:
/forums/archive/index.php/index.php?t-857.html
what do i need to edit?
In the config options, you will see:
$archiveurl="archive/index.php/";
change it to:
$archiveurl="archive/index.php?";
Unexplained.tv
10-19-2005, 06:04 AM
Ok, I don't see this working... I have enterd my username and password from both my Vbulletin admin account and my Database account- nothing works.
What's up with that?
cynix2
10-19-2005, 06:27 AM
Make sure your version setting is correct.
MissKalunji
10-19-2005, 09:10 PM
i need help with this
i try to log in it keeps telling me wrong username/password
am inot suppoe to use the username and password from the database? anyone whilling to help me understand and make this work?
Thanks
Mr Chad
10-19-2005, 09:27 PM
In the config options, you will see:
$archiveurl="archive/index.php/";
change it to:
$archiveurl="archive/index.php?";
what config options?
cynix2
10-20-2005, 06:36 AM
@MissKalunji,
make sure you have your version right, You set the version in the vbsitemap_multi.php file and it should look like " $v='3.5;' " for the 3.5 version of your forums and " $v='0'; " for the 2.8.7 -3.0.9 versions of vbulletin. If that does not clear up your proublem then let me know and well try to figure out whats up.
@chatbum,
That config option is about 50 lines below the version option in multi.php.
Xeonext
10-20-2005, 08:33 AM
The vbseo file is missing in it... any possibility of its release in near future?
MissKalunji
10-20-2005, 11:18 AM
@MissKalunji,
make sure you have your version right, You set the version in the vbsitemap_multi.php file and it should look like " $v='3.5;' " for the 3.5 version of your forums and " $v='0'; " for the 2.8.7 -3.0.9 versions of vbulletin. If that does not clear up your proublem then let me know and well try to figure out whats up.
@chatbum,
That config option is about 50 lines below the version option in multi.php.
okay i worked out the login problems now i have this one
Warning: fopen(sitemap_vb_index.xml): failed to open stream: Permission denied in /home/danceha/public_html/forum/vbsitemap-multi.php on line 177
Warning: chmod(): No such file or directory in /home/danceha/public_html/forum/vbsitemap-multi.php on line 178
Warning: fwrite(): supplied argument is not a valid stream resource in /home/danceha/public_html/forum/vbsitemap-multi.php on line 186
Warning: gzopen(sitemap0.xml.gz): failed to open stream: Permission denied in /home/danceha/public_html/forum/vbsitemap-xtrafile.php on line 64
Warning: chmod(): No such file or directory in /home/danceha/public_html/forum/vbsitemap-xtrafile.php on line 67
Warning: gzwrite(): supplied argument is not a valid stream resource in /home/danceha/public_html/forum/vbsitemap-xtrafile.php on line 71
Warning: fwrite(): supplied argument is not a valid stream resource in /home/danceha/public_html/forum/vbsitemap-multi.php on line 232
Warning: fwrite(): supplied argument is not a valid stream resource in /home/danceha/public_html/forum/vbsitemap-multi.php on line 241
Warning: gzopen(sitemap1.xml.gz): failed to open stream: Permission denied in /home/danceha/public_html/forum/vbsitemap-multi.php on line 249
cynix2
10-20-2005, 03:03 PM
@misskalunji,
ftp to your server, Right click on the public_html directory and then chmod the dir to 777, Run the script and then chmod it back to what it is now.
MissKalunji
10-20-2005, 03:26 PM
@misskalunji,
ftp to your server, Right click on the public_html directory and then chmod the dir to 777, Run the script and then chmod it back to what it is now.
i done it and im still getting errors
Warning: chmod(): Operation not permitted in /home/danceha/public_html/forum/vbsitemap-multi.php on line 178
Warning: gzopen(sitemap0.xml.gz): failed to open stream: Permission denied in /home/danceha/public_html/forum/vbsitemap-xtrafile.php on line 64
Warning: chmod(): No such file or directory in /home/danceha/public_html/forum/vbsitemap-xtrafile.php on line 67
Warning: gzwrite(): supplied argument is not a valid stream resource in /home/danceha/public_html/forum/vbsitemap-xtrafile.php on line 71
Warning: gzopen(sitemap1.xml.gz): failed to open stream: Permission denied in /home/danceha/public_html/forum/vbsitemap-multi.php on line 249
Warning: chmod(): No such file or directory in /home/danceha/public_html/forum/vbsitemap-multi.php on line 252
Warning: gzwrite(): supplied argument is not a valid stream resource in /home/danceha/public_html/forum/vbsitemap-multi.php on line 263
Warning: gzwrite(): supplied argument is not a valid stream resource in /home/danceha/public_html/forum/vbsitemap-multi.php on line 437
Warning: gzwrite(): supplied argument is not a valid stream resource in /home/danceha/public_html/forum/vbsitemap-multi.php on line 562
Warning: gzwrite(): supplied argument is not a valid stream resource in /home/danceha/public_html/forum/vbsitemap-multi.php on line 562
Warning: gzwrite(): supplied argument is not a valid stream resource in /home/danceha/public_html/forum/vbsitemap-multi.php on line 562
MissKalunji
10-20-2005, 03:40 PM
@misskalunji,
ftp to your server, Right click on the public_html directory and then chmod the dir to 777, Run the script and then chmod it back to what it is now.
tell me whats the normal chmod of public_html?
cynix2
10-20-2005, 04:54 PM
@misskalunji
Normal chmod is 750
Heh sorry about the previous deal, Your site scripts are in public_html/forum/ so chmod 777 the /forum dir and see what happens then.
jwocky
10-21-2005, 09:18 PM
Warning: chmod(): Operation not permitted in /home/admin/domains/xxxxx.com/public_html/vbsitemap-multi.php on line 178
Warning: chmod(): Operation not permitted in /home/admin/domains/xxxxx.com/public_html/vbsitemap-multi.php on line 252
Can someone tell me why I'm getting these error msgs? Thanks very much.
cynix2
10-21-2005, 10:17 PM
@jwocky
You can try chmoding the public_html directory to 777 but I dont think thats your proublem. It looks like you have a very wierd path to the file. You might want to double check the path to vbsitemap and then post if its correct and the 777 deal didnt work, well go from there.
Neutral Singh
10-23-2005, 05:30 AM
What could implications of setting the root directory as 0777? Will doing this raise any security issues? Thanks
cynix2
10-23-2005, 05:45 AM
You only want to raise the chmod untill the sitemap files have been created. then return the setting to 650.
MissKalunji
10-23-2005, 03:04 PM
@misskalunji
Normal chmod is 750
Heh sorry about the previous deal, Your site scripts are in public_html/forum/ so chmod 777 the /forum dir and see what happens then.
uhm is it 650 or 750?
xjuliox
10-25-2005, 10:30 PM
I installed it but I get a NO DATABASE what is that? that's from going to .net/vbsitemap-multi.php
What do I do now?
lazytown
10-26-2005, 05:24 AM
Does this support VBSEO links?
-V
banshee
10-27-2005, 09:14 AM
I have to say I just checked google and I went from only 650 links to 11,300 in a matter of days.
I submitted around 19,000 links to google but I'm happy with the results so far. I just installed vbSEO and the file creation works. However to get the full benifit I think everyone is still waiting on the vbsitemap_vbseo.php file that will make this work along with vbSEO.
I think that is going to be huge because then you are submitting links with good keywords which I would hope would help your postition in the searches.
mfizzel
10-29-2005, 08:40 PM
Does this work with DC's vb seo?
StarBuG
10-29-2005, 11:19 PM
Anyone mind helping me out?
For all of you who have problems with the login:
1) It is the username and password of your mysql db for the forum (see config.php)
2) the version line needs to look like this:
$v=';3.5;//3.5;//vBulletin version 3.5 (or leave as zero for v3.3-3.7)
not like this
$v='';3.5;//3.5;//vBulletin version 3.5 (or leave as zero for v3.3-3.7)
thx for the hack
Juniors
11-01-2005, 08:57 AM
For all of you who have problems with the login:
1) It is the username and password of your mysql db for the forum (see config.php)
2) the version line needs to look like this:
$v=';3.5;//3.5;//vBulletin version 3.5 (or leave as zero for v3.3-3.7)
not like this
$v='';3.5;//3.5;//vBulletin version 3.5 (or leave as zero for v3.3-3.7)
thx for the hack
Thank you. But i cant login. I recieve "Incorrect username/password"
Pls help!
T2DMan
11-03-2005, 07:05 AM
I have now released a totally revised version that has been successfully installed on forums with tens of thousands of threads.
The new version is now only available for purchase via -Link removed -.
Its surprising how complicated it can get to do it all well.
The sitemap works well with the vbseo url rewrites, and is able to be modded for other rewrite hacks. I have got it setup for the vbulletin scheduled task system as well.
There are screen dumps via the above link. Have a look.
Cedric_FP
11-03-2005, 09:46 AM
So what does the paid version contain that this version doesn't?
mfizzel
11-03-2005, 01:53 PM
does the paid version work with DC's url rewrite? If not I won't consider purchasing.
Otikeu
11-04-2005, 05:11 AM
Per the check boxes this is not a plugin. It is an external program that you define parameters on the files then run via your browser.
Then why did you put this in the vB3.5 Plugins forum? Also, if this is still in beta, it should be in the 3.5 beta forum.
eXtremeTim
11-04-2005, 05:13 AM
Then why did you put this in the vB3.5 Plugins forum? Also, if this is still in beta, it should be in the 3.5 beta forum.
The beta thing helps when we have a beta forum lol
T2DMan
11-04-2005, 07:00 AM
So what does the paid version contain that this version doesn't?
If the free version works fine for you, fab. However, there is a natural progression with software, bug fixes, enhancements. For instance, the above version will probably stop due to running out of memory with forums over a certain size.
The pagination was almost right, but if there were to many deleted posts in a forum the forum/archive pagination would be a little different.
The new version also creates the files in a subdirectory rather than the root, a little safer to make a directory chmod 777 than the root.
It is also better setup for running of the scheduled task.
I have also personally added it to a number of clients sites, and so adapted it for more permentations of servers/software versions.
T2DMan
11-04-2005, 07:14 AM
Then why did you put this in the vB3.5 Plugins forum?
Probably fit better within the extensions forum, but that had only just been started when I submitted this.
Unexplained.tv
11-04-2005, 10:47 PM
With all due Respect- there is no way in a Blue Hell that I would even consider purchasing this. vbSEO was worth it- your addon isn't, I feel that if you release a Mod/addon here then you should release a final on here (unless it is a dead project) for the members and not leave it in beta, while you have a paid final version on your site.
This should be rule of the community.
lazytown
11-05-2005, 02:53 AM
With all due respect to T2DMan (whom I think highly of), I have to agree to some extent with the post above. Not so much about never purchasing, but about the way a lot of developers seem to be using vbulletin.org. I see a nasty trend of using it to develop/test something, then charging people who have been helping development once it is finished (or usable). If a post is created regarding a mod/hack at vbulletin.org by the author, it should be released free as the initial post states once it is finished. Otherwise I think it only fair that the post is removed entirely because then it just becomes a big advertisement posing as a free mod. If they then later want to do a major upgrade it (not just fix it), then I see no problem for them charging for new versions with new features. I don't like the way vbulletin.org is basically being used to advertise and lure users without offering them anything substantial (sort of like bait and switch). I just think things need to be more upfront.
Sincerely
-Vissa
Guest190829
11-05-2005, 04:05 AM
Please be patient as the staff discusses the current situation. For the time being I've removed the link to the paid modification it is site/hack promotion.
Boofo
11-05-2005, 04:51 AM
Its surprising how complicated it can get to do it all well.
So the one that is done well, is a paid hack and the one that isn't is free, right? Sounds to me like you used vb.org to work the bugs out so you could charge for the completed product. Not good.
Cedric_FP
11-05-2005, 05:19 AM
So the one that is done well, is a paid hack and the one that isn't is free, right? Sounds to me like you used vb.org to work the bugs out so you could charge for the completed product. Not good.
Agreed. Essentially, we were used. Taken advantage of.
mfizzel
11-05-2005, 11:03 AM
Pretty soon there will be no free hacks but simple template mods
StarBuG
11-05-2005, 11:29 AM
Agreed. Essentially, we were used. Taken advantage of.
Agreed.
I think it is fair to have a product for sale if you spend hours to develope it.
But if you used vb.org for beta testing a final working version should be released here for free and THEN you can charge for every new update, extension etc.
That is fair to us and fair to you.
You owe us that much!
StarBuG
Unexplained.tv
11-05-2005, 06:02 PM
I agree wholeheartedly that T2DMan owes us a final build release.
If T2DMan wishes to charge for his work, then do so after you have released a final build to those of us who believed this was going to continue being a free add-on- leaving it in beta here is very unprofessional of you. (If you would have originally stated that the Beta was free and the Final version was a Paid add-on then, that may have been a little different.)
You may not like the idea, but you are the one who created this situation for your own self.
Take the right initiative and make up for this error; then you can begin charging for the next final build and actually regain a lot of respect that you may have lost here. The Rating for this thread and add-on is going down... this shows what the members here actually feel and believe about your recent actions.
T2DMan
11-05-2005, 06:53 PM
Seems like I have got myself into a bit of a mess.
I have ears, and I listen. Then free it shall be.
lazytown
11-05-2005, 08:05 PM
I knew you weren't a bad guy and I usually choose the right people to have a good opinion of... You made the right call and I think will be rewarded in the long run.
Thanks
-Vissa
Seems like I have got myself into a bit of a mess.
I have ears, and I listen. Then free it shall be.
Vtec44
11-05-2005, 08:10 PM
T2Dman,
Thank you. I'm sure people won't disagree that you can make money from your hard work beyond 2.3 version.
Unexplained.tv
11-05-2005, 09:25 PM
I'm not set out against him making money on his hard work- I just felt that VB.org and the members here deserved at least a final build and I personally thank you for having a change of mind.
Cedric_FP
11-05-2005, 10:44 PM
Thank you, T2DMan :) I was getting ready to expect some kind of money-hungry answer, but I'm glad to see that not everybody is like that.
Cedric_FP
11-06-2005, 11:23 AM
Fatal error: Call to undefined function: vbseo_url_forum() in /home/fiction/public_html/vbgsitemap/index.php on line 164
That's what I'm getting... any ideas?
NeutralizeR
11-06-2005, 12:57 PM
^ Same here...
Moparx
11-06-2005, 05:40 PM
FYI in case someone just links to the generated sitemap files instead of the php that goes into the root folder:
google does not allow the sitemap files to be outside the same exact path as the forum.
see the following:
https://www.google.com/webmasters/sitemaps/docs/en/protocol.html#sitemapLocation
:)
Hi T2D,
got the following Problem:
mysql_error
select count(`vb_thread`.threadid) FROM `vb_thread`,`vb_forum` left join `vb_forumpermission` on `vb_thread`.`forumid` = `vb_forumpermission`.`forumid` and `vb_forumpermission`.`usergroupid` = 1 where `vb_thread`.`visible`=1 and vb_thread.`forumid`= vb_forum.`forumid` and (mod(mod(mod(mod(mod(mod(mod(mod(mod(mod(mod(mod(m od(mod(mod(mod(mod(forumpermissions,262144),131072 ),65536),32768),16384),8192),4096),2048),1024),512 ),256),128),64),32),16),8),4) = 3 or forumpermissions=0 or forumpermissions is null) and `vb_forum`.`password`='' and (`options` /2 <> ceiling(`options` /2)) and `vb_thread`.`forumid`='3'
mcleodc
11-06-2005, 10:01 PM
That's what I'm getting... any ideas?
i get this too, any fix?
T2DMan
11-06-2005, 10:06 PM
What is the version of mysql that you are using?
I am using mysql 4.0.25-standard and I am not having issues.
I have also used it on 3.23.58 and it works?
This was in fact the place that I tweaked the code to get it to work on the 3.23.58 version. I had two joins in the code, and had to reduce it to one for that version.
Hi T2D,
got the following Problem:
mysql_error
select count(`vb_thread`.threadid) FROM `vb_thread`,`vb_forum` left join `vb_forumpermission` on `vb_thread`.`forumid` = `vb_forumpermission`.`forumid` and `vb_forumpermission`.`usergroupid` = 1 where `vb_thread`.`visible`=1 and vb_thread.`forumid`= vb_forum.`forumid` and (mod(mod(mod(mod(mod(mod(mod(mod(mod(mod(mod(mod(m od(mod(mod(mod(mod(forumpermissions,262144),131072 ),65536),32768),16384),8192),4096),2048),1024),512 ),256),128),64),32),16),8),4) = 3 or forumpermissions=0 or forumpermissions is null) and `vb_forum`.`password`='' and (`options` /2 <> ceiling(`options` /2)) and `vb_thread`.`forumid`='3'
T2DMan
11-06-2005, 10:07 PM
i get this too, any fix?
Can you please try adding the following lines to the end of your vbgsitemap-config.php file:
on the line after:
$template = $tableprefix.'template';
add:
if(!$vbseo_installed) VBSEO_ENABLED=false;
and make sure that you have the variable $vbseo_installed as false.
Please let me know if this works, and I will issue an update.
Thanks
NeutralizeR
11-06-2005, 10:25 PM
Can you please try adding the following lines to the end of your vbgsitemap-config.php file:
on the line after:
$template = $tableprefix.'template';
add:
if(!$vbseo_installed) VBSEO_ENABLED=false;
and make sure that you have the variable $vbseo_installed as false.
Please let me know if this works, and I will issue an update.
Thanks
Parse error: parse error, unexpected '=' in /home/msxlabs/public_html/vbgsitemap/vbgsitemap-config.php on line 145
What is the version of mysql that you are using?
I am using mysql 4.0.25-standard and I am not having issues.
I have also used it on 3.23.58 and it works?
This was in fact the place that I tweaked the code to get it to work on the 3.23.58 version. I had two joins in the code, and had to reduce it to one for that version.
Useing
mysql Ver 14.12 Distrib 5.0.15, for pc-linux-gnu (i686) using readline 5.0
T2DMan
11-06-2005, 10:41 PM
Parse error: parse error, unexpected '=' in /home/msxlabs/public_html/vbgsitemap/vbgsitemap-config.php on line 145
woops, forgot about the constants
should be:
if(!$vbseo_installed) define("VBSEO_ENABLED", false);
NeutralizeR
11-06-2005, 10:44 PM
if(!$vbseo_installed) define("VBSEO_ENABLED", false);
And now:
Fatal error: Unknown function: vbseo_get_options() in /home/msxlabs/public_html/vbgsitemap/index.php on line 358
Waiting for the fix... then i'm gonna go to the bed =)
T2DMan
11-06-2005, 10:48 PM
Looks liek we almost have it then
Wrap an if statement around the lines:
if(VBSEO_ENABLED) {
$g_cache='';
$threadinfo='';
vbseo_get_options();
vbseo_prepare_seo_replace();
get_forum_info();
}
I will issue an update. Thanks for your help.
Cedric_FP
11-06-2005, 11:04 PM
Do we add that code to the bottom or..?
NeutralizeR
11-06-2005, 11:43 PM
Thanks, working now :)
Cedric_FP
11-06-2005, 11:51 PM
Thanks, working now :)
What did you do to get it working?
NeutralizeR
11-07-2005, 12:03 AM
(See my next post)
Cedric_FP
11-07-2005, 12:16 AM
I have uploaded your fixes, and i am still getting
Fatal error: Call to undefined function: vbseo_get_options() in /home/fiction/public_html/vbgsitemap/index.php on line 358
NeutralizeR
11-07-2005, 04:39 AM
Try replacing your files in vbgsitemap/ folder with these one.
Change necessary lines in vbgsitemap-config.php for your forum.
(I'm gonna remove the attachment when T2DMan releases the update)
Cedric_FP
11-07-2005, 05:05 AM
It worked. Thanks a lot Neutralizer :)
hI t2d
got news for you
SELECT count( `vb_thread`.threadid )
FROM `vb_thread` , `vb_forum`
LEFT JOIN `vb_forumpermission` ON `vb_thread`.`forumid` = `vb_forumpermission`.`forumid`
AND `vb_forumpermission`.`usergroupid` =1
WHERE `vb_thread`.`visible` =1
AND vb_thread.`forumid` = vb_forum.`forumid`
AND (
mod( mod( mod( mod( mod( mod( mod( mod( mod( mod( mod( mod( mod( mod( mod( mod( mod( forumpermissions, 262144 ) , 131072 ) , 65536 ) , 32768 ) , 16384 ) , 8192 ) , 4096 ) , 2048 ) , 1024 ) , 512 ) , 256 ) , 128 ) , 64 ) , 32 ) , 16 ) , 8 ) , 4 ) =3
OR forumpermissions =0
OR forumpermissions IS NULL
)
AND `vb_forum`.`password` = ''
AND (
`options` /2 & lt ; & gt;
ceiling( `options` /2 )
) AND `vb_thread`.`forumid` = '3'
results in
#1054 - Unknown column 'vb_thread.forumid' in 'on clause'
Unexplained.tv
11-07-2005, 07:26 AM
Works fine with no errors at all.
Smitty
11-07-2005, 08:54 AM
Tried this and the script ran OK - BUT, when clicking on a link, I get "Fatal error: Call to a member function on a non-object in /usr/local/www/data-dist/includes/config.php on line 202" every time.
What am I missing in all this?
Running: vB 3.5.1
Server Type FreeBSD
Data Usage 159.47 MB
Web Server Apache v2.0.53
Index Usage 61.69 MB
PHP 4.3.10
Attachment Usage 481.55 MB
PHP Max Post Size 16.00 MB
PHP Maximum Upload Size 2.00 MB
PHP Memory Limit 16.00 MB
MySQL Version 4.1.9
MySQL Packet Size 1.00 MB
EDIT ADD: IT Doesn't appear to be indexing all forums. Is there supposed to be a sitemap for each individual forum?
Ok it seems that i found a error source!
I'm playing a little bit around!
disi
michaelbenson
11-07-2005, 11:05 AM
Wonderful addition, works fine for me. :)
Ok got it!
Needed to correct some SQL statements and changed the include statement ind the config file. With them it works wunderfull! great extension....
I've updated the files and repacked it.
Michael please take a look if its ok with you this way.
May i ask some People who are running MySQL Version below version 5 to test my updated package and give some feedback if it still works, if not i have a idea how to get it MySQL <5 and >5 compatible.
regards
Dennis
Tried this and the script ran OK - BUT, when clicking on a link, I get "Fatal error: Call to a member function on a non-object in /usr/local/www/data-dist/includes/config.php on line 202" every time.
What am I missing in all this?
Running: vB 3.5.1
Server Type FreeBSD
Data Usage 159.47 MB
Web Server Apache v2.0.53
Index Usage 61.69 MB
PHP 4.3.10
Attachment Usage 481.55 MB
PHP Max Post Size 16.00 MB
PHP Maximum Upload Size 2.00 MB
PHP Memory Limit 16.00 MB
MySQL Version 4.1.9
MySQL Packet Size 1.00 MB
EDIT ADD: IT Doesn't appear to be indexing all forums. Is there supposed to be a sitemap for each individual forum?
Your Problem should be solved with my version!
Please give me feedback!
Got one error .... pinging google won't work.
Michael could you tell me why you ping
http://www.google.com/webmasters/sitemaps/ping?sitemap=http%3A%2F%2Fwww.bytetales.info%2F
manually it works ... hmmm
Smitty
11-08-2005, 01:45 AM
Your Problem should be solved with my version!
Please give me feedback!I tried it and got a brief xml listing rather than a table as in the screen shot. Note: I'm not using vbseo...
I'll sit back and watch for a bit to see what happens with others.
hi,
you changed the following Values in the config to fit your needs?
$base="forums/";
$vbseo_installed = true;
$vbseo_oldurls = true;
$vbseo_oldarchiveurls=true;
$addarchive=true;
$addthreadarchive=true;
Normaly it schould do it if you set the var vbseo_installed to false.
ambumann
11-08-2005, 08:22 AM
Great!
*clicks install*
How does this compare to: https://vborg.vbsupport.ru/showthread.php?t=93980 ??
I have that one installed but I am always interested in as much SEO as possible of course. :)
it should be compatible because you can say how this hack should create the links
trancetopia
11-09-2005, 07:39 AM
Works like a charm, thanks. Clicks install.
Michaeel
11-09-2005, 07:00 PM
works great!
anyone knows how i can change the background/font color in the map area?
the font color on my forum is a kind of yellow/white (#ffffcc), hard to read any text on a white background :/
organik81
11-09-2005, 09:43 PM
I did the required steps; uploaded & configured files, added a schelduled task & ran..
Then I run http://www.mudomain.com//vbgsitemap/index.php ; input the db username & password and clicked to "Create vBulletin Google Sitemap" >> redirected to "http://vbgsitemap/index.php" But "the page cannot be open" ... ?
Cedric_FP
11-09-2005, 10:22 PM
did you do all the chmods?
organik81
11-09-2005, 10:28 PM
did you do all the chmods?
Yes surely.. :ermm:
T2DMan
11-09-2005, 10:28 PM
Check your configurations file. Looks like you have some path issues that need to be sorted?
Can you look at any of the threads that are on your forum? I tried on a few, and got the signup page. These threads wont appear on the sitemap, since the public can't view them.
T2DMan
11-09-2005, 10:37 PM
Check out the newest release from Crawlability/vBSEO - their version of a Google/Yahoo Site Map generator. It is great for vbseo and non vbseo, and pre and post vbulletin 3.5.
https://vborg.vbsupport.ru/showthread.php?t=100435
Once they have the bugs fixed, I would recommend that you use theirs instead of mine :disappointed:. I have been a small part of the development of their product, enough for them to include me on the credits of it.
Its got a few more bells and whistles than my product.
organik81
11-09-2005, 10:49 PM
Check your configurations file. Looks like you have some path issues that need to be sorted?
The vbgsitemap-config.php is true..
$base="351/"; (the forum files are in public_html/351/ path; and the vbgsitemap folder is in public_html; and the vbgsitemap.php is in the /public_html/ folder)
Can you look at any of the threads that are on your forum? I tried on a few, and got the signup page. These threads wont appear on the sitemap, since the public can't view them.
I turned on the threads contents for unregistered users too to be able to view.. But still have the same problem.. :ermm:
T2DMan
11-09-2005, 10:57 PM
How does this compare to: https://vborg.vbsupport.ru/showthread.php?t=93980 ??
I have that one installed but I am always interested in as much SEO as possible of course. :)
The mod you mention tries to achieve SEO as well as doing the sitemap. Personally, I don't like the methods that are used in that mod. Personally I prefer the vBSEO product for the SEO side of things. I like being able to keep to the spirit of what vBulletin is all about, and let the search engines see what the user would see, and not try to cloak pages. The users see the actual threads, so lets SEO the actual threads rather than use the archive version.
vBulletin 3.5 has even added the option to have the sitemap/archive go through to the actual threads (at my insistence) rather than the previous additional version of them.
konstance
11-11-2005, 07:45 PM
Does anyone know... when I add URL's to file.txt, do I add all of the parameters per .php page, or do I just include the .php page? for example:
http://www.mysite.com/home.php?id=3
Do I just include
http://www.mysite.com/home.php
OR every page with every parameter, like "id=3", "id=4", etc.
Thanks in advance for any help :)
T2DMan
11-11-2005, 08:00 PM
What are the url's of your pages??? What has Google cached? What do you want Google to cache? What do you want shown on the serps. If the url includes strings as part of the url, then that is the url of that page.
In vBulletin standard, all the threads are url strings, and that is what you want cached by Google, therefore in the sitemap. Same for any other page.
konstance
11-11-2005, 08:08 PM
well, that makes sense. thanks!
Reverend
11-14-2005, 08:39 PM
when i run the creator it pings with no errors, however all the links it creates are missing the forums directory.
/vbgsitemap/files/
but it should be
/forums/vbgsitemap/files/
Citizen
11-19-2005, 01:49 PM
How do I uninstall this hack?
Moparx
11-19-2005, 01:52 PM
How do I uninstall this hack?
you delete the files you uploaded when you installed it
futuregizmo
11-19-2005, 06:45 PM
would this work with DeanC's SEO vb URL Rewrite hack: https://vborg.vbsupport.ru/showthread.php?t=91324 ?
Moparx
11-19-2005, 06:51 PM
would this work with DeanC's SEO vb URL Rewrite hack: https://vborg.vbsupport.ru/showthread.php?t=91324 ?
no it wont :)
it will use VBSEO though
T2DMan
11-20-2005, 12:38 AM
when i run the creator it pings with no errors, however all the links it creates are missing the forums directory.
/vbgsitemap/files/
but it should be
/forums/vbgsitemap/files/
check the config file and make sure that you have your forum directory in there:
$base="forums/"; // "" if in root, $base="forum/"; //if in the subdirectory forum
The vbgsitemap is off the root directory so that not only can you add vbulletin url's, but your other url's. The vbgsitemap.php needs to be in the root, so that Google can add url's off your root as well. vbgsitemap.php accesses the actual files in the /vbgsitemap/files/ directory
BiReL41r
12-16-2005, 07:50 PM
What exactly does this hack do? Help!
T2DMan
12-16-2005, 08:00 PM
Google has got a site map system whereby you tell it the url's of your website, and it is then able to find them easier. You can diret it to look at the url's less often than they would normally (ie if content doesnt change too often) and so save bandwidth, or for google to check more frequently if content is often changing.
It is especially good if you have lots of new threads being created. The sitemap will show the create date of those threads and google should find them faster than otherwise.
MissKalunji
12-16-2005, 08:00 PM
What exactly does this hack do? Help!
script will generate a url list (in a text file) of a vb forum, that you can feed to the google sitemap creator.
It currently list all forums and all treads urls + the base url of the site and base url of the forum.
RichieBoy67
01-02-2006, 10:28 PM
I'm sorry but I do not understand //directory that the vBulletin forum is in.
//comment out the one not applicable to your forum
$base="modules/forums/"; //"" if in root, $base="forums"; //if in the subdirectory forum
My forums are in a directory called modules
modules/forums/vbgsitemap/index.php
Can someone point me in the right direction? I am finding this confusing...
Thanks
RichieBoy67
01-03-2006, 03:49 PM
Is there anyone that understands this issue that can help me???
Thanks
T2DMan
01-04-2006, 08:01 PM
I'm sorry but I do not understand //directory that the vBulletin forum is in.
//comment out the one not applicable to your forum
$base="modules/forums/"; //"" if in root, $base="forums"; //if in the subdirectory forum
My forums are in a directory called modules
modules/forums/vbgsitemap/index.php
Can someone point me in the right direction? I am finding this confusing...
Thanks
The vbgsitemap program is designed to work from the root directory - this enables you to add your vBulletin and all the other url's from your site.
So your install directory would be
/vbgsitemap/index.php
Your base variable should be correct:
$base="modules/forums/";
atosoup
01-30-2006, 08:01 PM
I would realy appreciate some help here..
I am also having the same problem as many other with
Incorrect username/password
whenever I enter my Vb's configs username and pass..
Im on VB 3.5.3
Iv seen a few comments about editing multi.php but i dont even have that file..
Please help
T2DMan
01-30-2006, 08:15 PM
The username/password is the same as that on the DATABASE, not your normal username/password for vbulletin access.
atosoup
01-30-2006, 08:30 PM
The username/password is the same as that on the DATABASE, not your normal username/password for vbulletin access.
I understand that dude..
I have been using the username and password from my
Vbforums/includes/config.php
Details
Forums DB username and pass..
and it dosent work
T2DMan
01-30-2006, 11:00 PM
Thanks for being able to work with you and get it working. I look forward to seeing your post on the exact reason for your issues.
atosoup
01-31-2006, 03:40 PM
Thanks for being able to work with you and get it working. I look forward to seeing your post on the exact reason for your issues.
YUp massive thanks Td2 U was a star last night ...
( Made me feel like a complete noob too lol )
The reason I was getting was wrong username and password was because I had eddited past the line in the config that said>>
//end of configuration
//************************************************** ************
And changed this code
if ($config['MasterServer']['username']){
$dbusername=$config['MasterServer']['username'];
$dbpassword=$config['MasterServer']['password'];
$servername=$config['MasterServer']['servername'];
$dbname=$config['Database']['dbname'];
$tableprefix=$config['Database']['tableprefix'];
}Changing the latter code to my actual settings...
Thanks again to u dude and maybe if somone else as sumb as me does the same this post may save them some heart ache!
hello T2Dman...
as u know we generaluser arent xpert enugh to decide our mind some times...specially when sitation is a bit complicated...
as u also know in vb.org there app. 6-8 google sitemap r available now...
Google/Yahoo Sitemap generator .
Google Sitemap Archive
and This One
what is the actual difference in between of them?
expecting an description......least it will help vb users to decide there mind -what is good for Google sitemap....
as i read google faq...but everything isnt clear to me...other hand google is clear to u...
Please lets us know what to do..around the gogole sitemap....
hello T2Dman...
as u know we generaluser arent xpert enugh to decide our mind some times...specially when sitation is a bit complicated...
as u also know in vb.org there app. 6-8 google sitemap r available now...
Google/Yahoo Sitemap generator .
Google Sitemap Archive
and This One
what is the actual difference in between of them?
expecting an description......least it will help vb users to decide there mind -which 1 is good for Google sitemap....
as i read google faq...but everything isnt clear to me...other hand google is clear to u...
Please lets us know what to do..around the gogole sitemap....
Thnkx
David_R
02-21-2006, 05:22 PM
Works great thankyou sir
jamshed
02-25-2006, 04:02 AM
i dont have VBSEO but i have installed other URL REWRITE, i'ave downloaded and installed this hack, what should i do now ??
T2DMan
02-25-2006, 09:29 AM
i dont have VBSEO but i have installed other URL REWRITE, i'ave downloaded and installed this hack, what should i do now ??
I hope that you have the url rewrite working great for you. So far, I have found the vbseo is the only one to do things 110% properly.
My sitemap program will need to be hacked to include the new url's - using the format of your rewritten url's - you should be able to see the formula in its code.
T2DMan
02-25-2006, 09:36 AM
hello T2Dman...
what is the actual difference in between of them?
I know what this one does, and I know that it works well. As to others, I have not investigated apart from the vbseo sitemap which is yet to release a newer version which includes some essential additions I have helped them with (when used in conjunction with the main vbseo rewrite).
vbgsitemap creates a list of url's in gzipped xml form that can act as a starter for Google to base its spidering on. It also creates a list of url's for yahoo.
If this is what the others do, then take your pick.
SaN-DeeP
03-14-2006, 03:43 PM
I had your version installed on one of my sites, should i use the same or switch to vbseo sitemap ?
I am talking from search engine perspective..
thanks.
SaN-DeeP
03-15-2006, 04:42 PM
I am sorry but i did not found anything, which hides non-required forums (private forums) . ?
T2DMan
03-15-2006, 06:39 PM
There is a long awaited update of the vbseo sitemap (v1.7) that has not yet been released. The update includes all old url's into the sitemap as well as the vbseo rewritten url's.
However, if Google has seen all your old url's and cleaned them out of its index using my vbgsitemap, I would recommend the vbseo version. It has a few nice bits like the download stats that mine does not have.
tspore
03-30-2006, 08:41 AM
I am getting this:
Parse error: parse error, unexpected '>' in /home/fourthir/public_html/vbgsitemap/index.php on line 41
Is their somewhere that I put in the DB name?
because it seems like its missing that.
treasureman
08-07-2006, 09:16 PM
Thanks for this, works great with my Vbulletin.
Could this also work with other sites (non-forum)?
T2DMan
08-08-2006, 03:40 AM
You are able to add in extra url's - via the additional file. Just lists of url's. I use one of the site crawlers to get me the url's. The link is on the vbgsitemap control page.
thebassman
09-09-2006, 02:49 PM
This isn't picking up my archive files... any ideas? (I'm using 3.6.0, by the way).
T2DMan
09-09-2006, 02:56 PM
Better to use the vbseo sitemap https://vborg.vbsupport.ru/showthread.php?t=100435
thebassman
09-09-2006, 03:02 PM
ok, thanks
corsacant
10-06-2006, 03:04 PM
Hi I have installed this but keep getting this when I click on my sitemap:
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------------
An invalid character was found in text content. Error processing resource 'http://www.allcorsa.co.uk/vbgsitemap/files/vbgsi...
Anyone know what is happening?
I am running vb3.6.1
Edit***
I think I understand now, It's because the file is stored as an archive.
When I downloaded it to my harddrive and extracted the file it was showing up fine.
smsmasters
10-08-2006, 05:43 PM
Does this work with 3.6.2?
libabom
01-19-2007, 05:46 AM
Does this work with 3.6.4?
pkallberg21
01-27-2007, 06:16 PM
Does this work with 3.6.4?
I would also like to know this. I know it says that it is for 3.5, maybe it works, right?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.