Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

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
  #2  
Old 06-12-2004, 12:05 AM
Kwak Kwak is offline
 
Join Date: Sep 2003
Posts: 154
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*Clicks Install.
Thanks mate.
Reply With Quote
  #3  
Old 06-12-2004, 12:10 AM
krohnathlonman krohnathlonman is offline
 
Join Date: Feb 2004
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 06-12-2004, 12:18 AM
Kwak Kwak is offline
 
Join Date: Sep 2003
Posts: 154
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looking forward to it.
You are working on an article mod for vB??
Reply With Quote
  #5  
Old 06-12-2004, 12:20 AM
krohnathlonman krohnathlonman is offline
 
Join Date: Feb 2004
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 06-12-2004, 08:16 AM
ChuanSE's Avatar
ChuanSE ChuanSE is offline
 
Join Date: Feb 2003
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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"
Reply With Quote
  #7  
Old 06-12-2004, 09:26 PM
Ian Montgomerie Ian Montgomerie is offline
 
Join Date: Dec 2003
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Checking your site, there is a bug if there is a "/" in the thread title.
Reply With Quote
  #8  
Old 06-12-2004, 10:18 PM
ChuanSE's Avatar
ChuanSE ChuanSE is offline
 
Join Date: Feb 2003
Posts: 311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?

Would be great
Reply With Quote
  #9  
Old 06-13-2004, 01:51 AM
Osterling Osterling is offline
 
Join Date: Jan 2004
Posts: 381
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

With the code you provide.. what do I do with it? Sorry if that is a stupid question..
Reply With Quote
  #10  
Old 06-13-2004, 04:13 AM
monstergamer's Avatar
monstergamer monstergamer is offline
 
Join Date: Feb 2003
Location: around the corner
Posts: 433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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"
Reply With Quote
Reply

Thread Tools

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 04:09 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.04597 seconds
  • Memory Usage 2,311KB
  • 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
  • (5)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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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