Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Even better spider archive? Details »»
Even better spider archive?
Version: 1.00, by krohnathlonman krohnathlonman is offline
Developer Last Online: Dec 2008 Show Printable Version Email this Page

Version: 3.0.1 Rating:
Released: 06-11-2004 Last Update: Never Installs: 31
 
No support by the author.

in archive/index.php go down around line 189....

PHP Code:
          echo "<div id=\"content\">\n<ol start=\"$start\" id=\"thread\">\n";
          while (
$thread $DB_site->fetch_array($threads))
          {
          
$bah                         str_replace(" ""_"$thread[title]);
          
             echo 
"\t<li><a href=\"t-$thread[threadid]$bah.html\" d=\"$thread[lastpost]\">$thread[title]</a></li>\n";
          }
          echo 
"</ol>\n</div>\n"
Here's this quick mod in action: http://www.iamnotageek.com/archive/index.php/f-48.html

basically it puts the Thread title into the URL which in my testing seems to give better search rankings than the URL without the name of the topic in it.

Obviously your mileage may vary..... THis is NOT to start a debate on search placements.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 12-29-2004, 02:38 PM
SHANE-D-PAIN's Avatar
SHANE-D-PAIN SHANE-D-PAIN is offline
 
Join Date: Sep 2003
Location: Sheffield, Uk
Posts: 140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

was going to do it but my archives havent worked since i set my site up last week!

can anyone help me out?

when i click the archive link at the bottom of my forums it loads up the forums index page and not the archivves like it does on other sites! :S

http://teenageforums.com/forums/archive/
Reply With Quote
  #43  
Old 12-31-2004, 03:28 PM
JulianD's Avatar
JulianD JulianD is offline
 
Join Date: Jan 2002
Posts: 455
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is a problem when the thread title starts with a number... Good hack though.
Reply With Quote
  #44  
Old 01-19-2005, 08:03 PM
Hexemer's Avatar
Hexemer Hexemer is offline
 
Join Date: Sep 2003
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How does this work with 3.0.5?
Reply With Quote
  #45  
Old 04-30-2005, 08:39 AM
Freezerator Freezerator is offline
 
Join Date: Nov 2001
Location: Den Haag
Posts: 197
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok,

i have sorted things out, so it works on 3.0.7.
Open index.php.

Search for
Code:
// list threads
A few line below you will see this lines:

PHP Code:
        echo "<div id=\"content\">\n<ol start=\"$start\">\n";
        while (
$thread $DB_site->fetch_array($threads))
        {
            echo 
"\t<li><a href=\"t-$thread[threadid].html\">$thread[title]</a>" iif($pda" <i>(" construct_phrase($vbphrase['x_replies'], $thread['replycount']) . ")</i>") . "</li>\n";
        }
        echo 
"</ol>\n</div>\n"
Replace this with:

PHP Code:
// archive thread title hack
echo "<div id=\"content\">\n<ol start=\"$start\" id=\"thread\">\n";
          while (
$thread $DB_site->fetch_array($threads))
          {
         
$bah                         str_replace(" ""-"$thread[title]);
          
            echo 
"\t<li><a href=\"t-$thread[threadid]-$bah.html\" d=\"$thread[lastpost]\">$thread[title]</a></li>\n";
          }
          echo 
"</ol>\n</div>\n"
// end archive thread title hack 
This works for me on 3.0.7.
I have used the code from Costa Rica Forums
Reply With Quote
  #46  
Old 05-02-2005, 06:34 AM
Hexemer's Avatar
Hexemer Hexemer is offline
 
Join Date: Sep 2003
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Don't work in my forums :
Reply With Quote
  #47  
Old 05-03-2005, 05:38 AM
Freezerator Freezerator is offline
 
Join Date: Nov 2001
Location: Den Haag
Posts: 197
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Hexemer
Don't work in my forums :
When i see your screenshot it appears to work???
Reply With Quote
  #48  
Old 05-07-2005, 09:22 AM
Hexemer's Avatar
Hexemer Hexemer is offline
 
Join Date: Sep 2003
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Freezerator
When i see your screenshot it appears to work???
The (Thread-)URL is okay but it links to the Forum Home in the Archive. :ermm:
Reply With Quote
  #49  
Old 05-15-2005, 05:25 PM
Hexemer's Avatar
Hexemer Hexemer is offline
 
Join Date: Sep 2003
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can nobody help me with this problem?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:08 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.05387 seconds
  • Memory Usage 2,299KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (3)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete