vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Even better spider archive? (https://vborg.vbsupport.ru/showthread.php?t=66083)

krohnathlonman 06-11-2004 10:00 PM

Even better spider archive?
 
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.

Kwak 06-12-2004 12:05 AM

*Clicks Install.
Thanks mate.

krohnathlonman 06-12-2004 12:10 AM

I'm planning some more archive mods :) My article system will be seeing a variation of this.

The biggest thing I'm working on with it is a uhhh.... Different way of reading threads. Basically it'll mass replace words. It's going to be an addon for humorous reading. Like say everywhere it says computer could be replaced with pie... Of course for my site I'm not going to be using mild words.... It'll have NO affect on the DB, it'll be done completely in PHP.

Kwak 06-12-2004 12:18 AM

Looking forward to it.
You are working on an article mod for vB?? :cool:

krohnathlonman 06-12-2004 12:20 AM

oh, you haven't seen the article system? I had a public beta for a couple weeks and then took the download down....

http://iamnotageek.com/articles.php

ChuanSE 06-12-2004 08:16 AM

Quote:

Originally Posted by krohnathlonman
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.

What should i exactly do with this code?
it's interfearing with the [you] hack :(

PHP Code:

cho "<div id=\"content\">\n<ol start=\"$start\" id=\"thread\">\n";
        while (
$thread $DB_site->fetch_array($threads))
        {
            
$thread['title'] = preg_replace('/\[you\]/i'$bbuserinfo['username'], $thread['title']);
            echo 
"\t<li><a href=\"t-$thread[threadid].html\" d=\"$thread[lastpost]\">$thread[title]</a></li>\n";
        }
        echo 
"</ol>\n</div>\n"


Ian Montgomerie 06-12-2004 09:26 PM

Checking your site, there is a bug if there is a "/" in the thread title.

ChuanSE 06-12-2004 10:18 PM

hmm, i meant that i couldn't add your hack because the [you] hack is also modded in that piece of orig vb code. Can you adapt your code together with it, so i can use your hack 2? :D

Would be great ;)

Osterling 06-13-2004 01:51 AM

With the code you provide.. what do I do with it? Sorry if that is a stupid question..

monstergamer 06-13-2004 04:13 AM

Quote:

Originally Posted by exasko
With the code you provide.. what do I do with it? Sorry if that is a stupid question..

you replace this
PHP Code:

 echo '<div id="navbar">' $vboptions['bbtitle'] . "</div>\n<hr />\n";
 echo 
"<p class=\"largefont\" style=\"text-align: left\">$vbphrase[view_full_version]: <a href=\"$vboptions[bburl]/$vboptions[forumhome].php\">$vboptions[bbtitle]</a></p>\n";
 echo 
"<div id=\"content\">\n";
 
print_archive_forum_list();
 echo 
"</div>\n"

with this

PHP Code:

 echo '<div id="navbar">' $vboptions['bbtitle'] . "</div>\n<hr />\n";
 echo 
"<p class=\"largefont\" style=\"text-align: left\">$vbphrase[view_full_version]: <a href=\"$vboptions[bburl]/$vboptions[forumhome].php\">$vboptions[bbtitle]</a></p>\n";
 echo 
"<div id=\"content\">\n";
 
print_archive_forum_list();
 echo 
"</div>\n"



All times are GMT. The time now is 10:26 AM.

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.01115 seconds
  • Memory Usage 1,764KB
  • 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
  • (5)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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