vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Board Optimization - Simple Sitemap (https://vborg.vbsupport.ru/showthread.php?t=201974)

bjhuang 01-15-2009 10:00 PM

Simple Sitemap
 
1 Attachment(s)
What is it

a really simple sitemap for spiders.

Why

vbseo sitemap is good. but i need another sitemap for spiders to crawl my site more NATURALLY and a sitemap to feed spiders other than google and yahoo.

this sitemap script list all of your threads, newest first. the page updates so fast that spiders will check it more often. hopefully it helps your new threads get indexed quickly.

Install

Step 1: upload sitemap.php to your forum root.
Step 2: modify template "footer"

Find
PHP Code:

<a href="#top" onclick="self.scrollTo(0, 0); return false;">$vbphrase[top]</a

Add Above
PHP Code:

<a href="$vboptions[bburl]/sitemap.php">Sitemap</a> - 

Demo

http://www.bbkz.com/forum/sitemap.php

The most famous travel forum in chinese world - www.bbkz.com

NGUYENDUCTRUONG 01-16-2009 09:41 AM

good ID :D

Sweeks 01-16-2009 09:45 AM

Installed

Alfa1 01-16-2009 11:06 AM

Works good. Though I would not call it a sitemap, as it does not display a map of your site. Just the a chronological overview of threads

asd_ra7la 01-16-2009 02:15 PM

Installed

Blue91 01-16-2009 03:08 PM

screenshots?

YLP1 01-16-2009 05:28 PM

The first page works but none of the subsequent linked pages do.

I am seeing private admin forum topics on the list ---- are forum permissions used in this mod?

Thanks in advance.

Fungsten 01-16-2009 05:37 PM

Quote:

Originally Posted by YLP1 (Post 1714926)
The first page works but none of the subsequent linked pages do.

I am seeing private admin forum topics on the list ---- are forum permissions used in this mod?

Thanks in advance.

Until that's answered Tagged for Later.

adhmwagde 01-16-2009 05:39 PM

thanks

SweetHome 01-16-2009 06:03 PM

installed
thx

Brandon Sheley 01-16-2009 06:52 PM

screenshots or demo link please?
I assume it's this
http://www.backpackers.com.tw/forum/sitemap.php
looks like the archive to me, so that might not be it

Alfa1 01-16-2009 07:21 PM

Permissions work fine. This only shows threads that are visible to guests.

nrms? 01-16-2009 07:58 PM

:confused: It's not open any valid page with .../sitemap.php.

And i have a hyperlink like this ''http://www.XXX-XXX.net/www.XXX-XXX.net/sitemap.php''

Can explain more about this Add-on...?


Alfa1 01-16-2009 10:03 PM

Just hardcode the link, by replacing
PHP Code:

<a href="$vboptions[bburl]/sitemap.php">Sitemap</a> - 

with
PHP Code:

<a href="http://www.example.com/forum/sitemap.php">Sitemap</a> - 

Put your forum location instead of example.com/forum

bjhuang 01-16-2009 10:19 PM

Quote:

Originally Posted by YLP1 (Post 1714926)
The first page works but none of the subsequent linked pages do.

I am seeing private admin forum topics on the list ---- are forum permissions used in this mod?

Thanks in advance.

yes, forum permissions are checked. i guess you read the sitemap when you logged in with an admin account.

tansu 01-16-2009 11:20 PM

I dont have this code in my footer.
I am using a custom template, where can I put this?

<a href="#top" onclick="self.scrollTo(0, 0); return false;">$vbphrase[top]</a>

bjhuang 01-16-2009 11:32 PM

Quote:

Originally Posted by tansu (Post 1715221)
I dont have this code in my footer.
I am using a custom template, where can I put this?

<a href="#top" onclick="self.scrollTo(0, 0); return false;">$vbphrase[top]</a>

you could put it anywhere you like.

munnakv 01-17-2009 06:52 AM

Hi,

The sitemap.php page works correctly.
When i try to navigate to the second page, it gives 404 error.
http://www.yoursite.com/forum/sitemap?offset=100

Also, please tell me how i can point the "View Full Version" link at the top to http://www.yoursite.com/forum/index.php instead of http://www.yoursite.com/forum

bjhuang 01-17-2009 09:17 AM

Quote:

Originally Posted by munnakv (Post 1715478)
Hi,

The sitemap.php page works correctly.
When i try to navigate to the second page, it gives 404 error.
http://www.yoursite.com/forum/sitemap?offset=100

Also, please tell me how i can point the "View Full Version" link at the top to http://www.yoursite.com/forum/index.php instead of http://www.yoursite.com/forum

did you modified sitemap.php? i guess you've changed the value of $script variable at line2 to "sitemap". it should be "sitemap.php".

for the "View Full Version" link:

Find:
PHP Code:

$output .= "\r\n<br/><h1>".$vbphrase['view_full_version'].": <a href='".$vbulletin->options['bburl']."'>".$vbulletin->options['bbtitle']."</a></h1>"

Replace
PHP Code:

$output .= "\r\n<br/><h1>".$vbphrase['view_full_version'].": <a href='http://www.yoursite.com/forum/index.php'>".$vbulletin->options['bbtitle']."</a></h1>"


metrika 01-17-2009 03:45 PM

Does it work on 3.6.x and 3.7.x ?

crkgb 01-17-2009 04:52 PM

<a href="https://www.google.com/webmasters/tools" target="_blank">https://www.google.com/webmasters/tools</a>

Unsupported file format
Your Sitemap does not appear to be in a supported format. Please ensure it meets our Sitemap guidelines and resubmit.

bjhuang 01-18-2009 02:51 AM

yes, it works on 3.6 and 3.7

and you don't have to submit it to anywhere. it's not in any standard format. it's just a simple page to help spiders crawl your threads.

Wheemer 01-18-2009 05:26 AM

This mod would be a lot better if you could submit it to google

C138 Kaysone 01-18-2009 07:02 AM

my offset is not working... like it wont update the pages or something like that

munnakv 01-18-2009 07:33 AM

Thanks for the reply bjhuang.

Quote:

did you modified sitemap.php? i guess you've changed the value of $script variable at line2 to "sitemap". it should be "sitemap.php".
I did not modify the second line. It stays as $script = 'sitemap.php';
I changed only the third line to : $count = 2000;

The problem still remains unsolved. :eek:
I even replaced the sitemap.php with the downloaded one, but does not have any effect.
You can have a look at here: http://www.mysite.com/forum/sitemap.php

(Just to remind, the offset link http://www.mysite.com/forum/sitemap.php?offset=2000 leads to a pagenot found error.)

The "View Full Version" link works now. Thanks. :cool:

C138 Kaysone 01-18-2009 07:36 AM

Quote:

Originally Posted by munnakv (Post 1716568)
Thanks for the reply bjhuang.



I did not modify the second line. It stays as $script = 'sitemap.php';
I changed only the third line to : $count = 2000;

The problem still remains unsolved. :eek:
I even replaced the sitemap.php with the downloaded one, but does not have any effect.
You can have a look at here: http://www.indianjobtalks.com/forum/sitemap.php

(Just to remind, the offset link http://www.indianjobtalks.com/forum/sitemap?offset=2000 leads to a pagenot found error.)

The "View Full Version" link works now. Thanks. :cool:

Does your page loads or it still gives you a 404 error? im trying to figure out what i can do to fix mine as well

http://mytalkcarolina.com/community/sitemap.php

I dont know what is causing the problem for it not to allow going through the pages, only gives me a 404 error

C138 Kaysone 01-18-2009 07:49 AM

Ok now i found the problem & the correction to it, the author only needs to update the php attachment.

when clicking on the page number, it leads you to a 404 error page but as it goes

Before - http://mytalkcarolina.com/community/sitemap?offset=1800 (404 error)

After - http://mytalkcarolina.com/community/...hp?offset=1800 (Will allow to go to next page)

On line 14, just add .php to the variable.

Before
Quote:

define('SKIP_SESSIONCREATE', 1);
define('DIE_QUIETLY', 1);
define('THIS_SCRIPT', 'sitemap');
After
Quote:

define('SKIP_SESSIONCREATE', 1);
define('DIE_QUIETLY', 1);
define('THIS_SCRIPT', 'sitemap.php');
That way you will no longer see the 404 error page :) hope that helps anyone that uses my correction "which is only small, and author :) you may want to update your sitemap.php attachment with my correction so everyone will have it when they install it into their forum root.

munnakv 01-18-2009 02:01 PM

Quote:

That way you will no longer see the 404 error page hope that helps anyone that uses my correction "which is only small, and author you may want to update your sitemap.php attachment with my correction so everyone will have it when they install it into their forum root.
C138 Kaysone, Thanks. It did the trick. It helps to learn the coding at times. :)

Another suggestion / request to bjhuang the thread owner:
Can we eliminate the page "/forum/sitemap.php?offset=0" appearing in the top navigation list, as it is a duplicate of "/forum/sitemap.php?"

bjhuang 01-18-2009 11:36 PM

Quote:

Originally Posted by munnakv (Post 1716824)
C138 Kaysone, Thanks. It did the trick. It helps to learn the coding at times. :)

Another suggestion / request to bjhuang the thread owner:
Can we eliminate the page "/forum/sitemap.php?offset=0" appearing in the top navigation list, as it is a duplicate of "/forum/sitemap.php?"

open sitemap.php and find
PHP Code:

$output .= "<a href='".$sitemap_script."?offset=".(($i-1)*$count)."'>".$i."</a> "

replace with
PHP Code:

if($i==1$output .= "<a href='".$sitemap_script."'>".$i."</a> ";
else 
$output .= "<a href='".$sitemap_script."?offset=".(($i-1)*$count)."'>".$i."</a> "


nrms? 01-19-2009 03:56 PM

Quote:

Originally Posted by Alfa1 (Post 1715144)
Just hardcode the link, by replacing
PHP Code:

<a href="$vboptions[bburl]/sitemap.php">Sitemap</a> - 

with
PHP Code:

<a href="http://www.example.com/forum/sitemap.php">Sitemap</a> - 

Put your forum location instead of example.com/forum

@Alfa1, thanks in advance, but after this... continue not open a valid page, simple open a blank page...

Have you other solution...?

John1uk 01-20-2009 10:18 AM

Thanx "installed" :)

Works fine 1st time

munnakv 01-21-2009 03:16 PM

Quote:

Originally Posted by bjhuang (Post 1717302)
open sitemap.php and find
PHP Code:

$output .= "<a href='".$sitemap_script."?offset=".(($i-1)*$count)."'>".$i."</a> "

replace with
PHP Code:

if($i==1$output .= "<a href='".$sitemap_script."'>".$i."</a> ";
else 
$output .= "<a href='".$sitemap_script."?offset=".(($i-1)*$count)."'>".$i."</a> "


Perfect. Appreciate your time and help.
Thanks for that bjhuang :)

munna

marshal_ramdev 03-14-2009 12:56 PM

thank you !

Freiknecht 03-14-2009 02:14 PM

get only a white side indicated

Majora 04-02-2009 08:51 PM

how can i rewrite the links to my vbseo thread links?

Markos 04-02-2009 09:46 PM

thanks installed

Mattcch 04-08-2009 01:41 PM

@bjhuang sir
thanks for great works ,
are you a chinese?
and i from hong kong.
it is a very useful mod for bots.

Theater 05-12-2009 06:55 PM

Worked like a charm. Thank you.

TrevsRevenge 06-12-2009 06:06 PM

Great Idea !!!!!!!!!

but I am also getting a blank page when i point to this link
Code:

http://www.spinzone.net/forums/sitemap.php
is there a problem because i call it forums instead of forum if so what can I change in the sitemap.php to fix this.

Thanks

matrixc0d3 08-02-2009 06:36 PM

hi how can i rewrite this for vbseo html urls? :confused:


All times are GMT. The time now is 09:19 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01524 seconds
  • Memory Usage 1,851KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (12)bbcode_php_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete