Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard

Reply
 
Thread Tools
DC SEO vB URL Rewrite Details »»
DC SEO vB URL Rewrite
Version: 1.00, by Dean C Dean C is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Major Additions - Version: 3.5.0 Beta 3 Rating:
Released: 06-28-2005 Last Update: Never Installs: 264
Uses Plugins
Is in Beta Stage  
No support by the author.

[high]Removed until further notice[/high]

[DC Seo vB URL Rewrite]

Information
  • [high]vBulletin Version:[/high] 3.5.x
  • [high]Author:[/high] Dean Clatworthy
  • [high]Copyright:[/high] You may use this modification at your own risk. I cannot and will not be held responsible for any damage you may cause to your forums during installation or thereafter. You may not distribute this modification in whole or parts and anyone found doing so faces risk of prosecution. All my modifications are released at vBulletin.org and anyone found releasing them elsewhere also faces risk of prosecution. You may not translate this modification without my prior permission.
  • [high]Donations:[/high] I release my modifications for free. If you wish to donate please contact me and I will give you my details. All donations are graciously appreciated.
What does this modification do?
This modification will allow you to automatically have more search engine friendly URLs in your vBulletin. A forum which would normally display as forumdisplay?f=1 will now appear as f1-forumtitle.html and the same with threads. Having keywords in your URL can be of an advantage in search-engine ranking.

Requirements:
  • You must have mod_rewrite apache module enabled on your server. Contact your host for more information.
  • This will not work well for non-english boards as it strips most non-alpha numeric characters. E.g. ? would be stripped on french boards etc

Installation

1/

Please read the readme.txt file included in the zip for details on how to install this modification.


Please Click Install!
If you installed this modifcation please click the install button. It'll help you keep up to date with future releases and important bugfixes, security updates.

Show Your Support

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

Comments
  #242  
Old 10-23-2005, 11:32 AM
xtreme-mobile xtreme-mobile is offline
 
Join Date: Jul 2004
Posts: 366
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how do i know idf this is working? im a little confused as to what this does

this is what shows as a link to a thread after installing (i cant see any difference)


this is a show thread

http://www.talk-365.com/forum/showth...=1237#post1237

should it have .html in there somewhere? does this mean its not working? im confused lol

UPDATE when i go into a thread it now shows like this

http://www.talk-365.com/forum/t75-kids-suggestions.html

does this mean its working 100% now?
Reply With Quote
  #243  
Old 10-23-2005, 11:39 AM
dn lodge dn lodge is offline
 
Join Date: Oct 2005
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by deathemperor
would you like to share the xml file of the edited plugin ?

also what about the showthread url if I don't want to display the thread title on url ?

thanks for your help
ok I got some time.

I'll just give you my whole xml file I edited. If you go into plugin manager, and then click edit on the first listed file for this hack, this is what you have to replace. Leave the 2nd url mod rewrite file alone.

heres my global_complete
Please note, for this XML file to work, you must have the same .htaccess code as me, as this is configured to display forums as forum-14.html and threads the defualt way except this removes the "t" that was before the topic number. So if you want to use my XML, replace your current .htaccess with the following...

Code:
RewriteEngine On
RewriteRule ^forum-([0-9]+)\.html$ forumdisplay.php?f=$1 [L]
RewriteRule ^([0-9]+)(((-p)([0-9]+))?)([A-Za-z0-9\-]+)\.html$ showthread.php?t=$1&page=$5&pp=10 [L]
and your global_complete with the following..

PHP Code:
// lets fix the forum links in the navbar
if(THIS_SCRIPT == 'forumdisplay' OR THIS_SCRIPT == 'showthread' OR THIS_SCRIPT == 'newthread' OR THIS_SCRIPT == 'newreply')
{
    
preg_match_all('/<a href="forumdisplay\.php\?f=([0-9]+)">(.*?)<\/a>/i'$GLOBALS['navbits']['breadcrumb'], $nnavbits);
    
$size sizeof($nnavbits[1]);
    for(
$i 0$i <= $size$i++)
    {
        
$output str_replace('forumdisplay.php?f=' $nnavbits[1][$i] . '"''f' $nnavbits[1][$i] . '-' strtolower(str_replace('--''-'preg_replace('/[^A-Za-z0-9-]+/i'''str_replace(' ''-'$nnavbits[2][$i])))) . '.html"'$output);
    }
}

// we better do the same here on forumhome and forumdisplay
if(THIS_SCRIPT == 'index' OR THIS_SCRIPT == 'forumdisplay')
{
    
preg_match_all('/<a href="forumdisplay\.php\?f=([0-9]+)">(.*?)<\/a>/i'$GLOBALS['forumbits'], $seobits);
    
$size sizeof($seobits[1]);
    for(
$i 0$i $size$i++)
    {
        if(!
preg_match('/forum_link\.gif".*?forumdisplay.php\?f=' $seobits[1][$i] . '/is'$GLOBALS['forumbits']))
        {
            
$output str_replace('forumdisplay.php?f=' $seobits[1][$i] . '"''forum-' $seobits[1][$i] . '' strtolower(str_replace('--''-'preg_replace('/[^0-9]+/i'''str_replace(array(' ''<strong>''</strong>'), array('-'''''), $seobits[2][$i])))) . '.html"'$output);
        }
    }
}

// we need to fix the thread links and also the multi-page thread links on forumdisplay
if(THIS_SCRIPT == 'forumdisplay')
{
        
// normal thread bits
     
if(!empty($GLOBALS['threadbits']))
     {
            
preg_match_all('/<a href="showthread\.php\?t=([0-9]+)" id="(.*)">(.*?)<\/a>/i'$GLOBALS['threadbits'], $seobits2);
            
$size sizeof($seobits2[1]);
            for(
$j 0$j $size$j++)
            {
                   
$output str_replace('showthread.php?t=' $seobits2[1][$j] . '"''' $seobits2[1][$j] . '-' strtolower(str_replace('--''-'str_replace(' ''-'preg_replace('/[^\sA-Za-z0-9]+/'''$seobits2[3][$j])))) . '.html"'$output);
            }
    }
    
        
// normal thread bits
     
if(!empty($GLOBALS['threadbits_sticky']))
     {
            
preg_match_all('/<a href="showthread\.php\?t=([0-9]+)" id="(.*)">(.*?)<\/a>/i'$GLOBALS['threadbits_sticky'], $stickybits);
            
$size sizeof($stickybits[1]);
            for(
$j 0$j $size$j++)
            {
                   
$output str_replace('showthread.php?t=' $stickybits[1][$j] . '"''' $stickybits[1][$j] . '-' strtolower(str_replace('--''-'str_replace(' ''-'preg_replace('/[^\sA-Za-z0-9]+/'''$stickybits[3][$j])))) . '.html"'$output);
            }
    }
        
        
// do pagenav
        
if(substr_count($GLOBALS['threadbits'], 'page=') > 0)
        {
               
preg_match_all('/<a href="showthread\.php\?t=([0-9]+)&amp\;page=([0-9]+)">(.*?)<\/a>/i'$GLOBALS['threadbits'], $lala);
               
$somesize sizeof($lala[1]);
               for(
$i 0$i <= $somesize$i++)
               {
                   
$tid $lala[1][$i];
                   
preg_match('/<a href="showthread\.php\?t=(' $tid ')" id="(.*)">(.*)<\/a>/i'$GLOBALS['threadbits'], $somematch);
                   
$output str_replace(
                       
'showthread.php?t=' $lala[1][$i] . '&amp;page=' $lala[2][$i], 
                       
'' $lala[1][$i] . '-p' $lala[2][$i] . '-' strtolower(str_replace('--''-'str_replace(' ''-'preg_replace('/[^\sA-Za-z0-9]+/'''$somematch[3])))) . '.html"'$output
                   
);
                   unset(
$tid$somematch);
               }
        }
}

// we need to rewrite the pagenav links on showthread and also similar threads O_.
if(THIS_SCRIPT == 'showthread')
{
    
// do pagenav
        
if($GLOBALS['totalposts'] > $GLOBALS['perpage'])
        {
            
preg_match_all('/<a class="smallfont" href="showthread\.php\?t=([0-9]+)(&amp\;page=([0-9]+))?&amp\;pp=([0-9]+)".*>(.*?)<\/a>/i'$GLOBALS['pagenav'], $seobits3);
            
$size2 sizeof($seobits3[1]);
            for(
$k 0$k $size2$k++)
            {
                if(
$seobits3[2][$k] != '')
                {
                
$output str_replace('showthread.php?t=' $seobits3[1][$k] . '&amp;page=' $seobits3[3][$k] . '&amp;pp=' $seobits3[4][$k], '' $seobits3[1][$k] . '-p' $seobits3[3][$k] . '-' strtolower(str_replace('--''-'str_replace(' ''-'preg_replace('/[^\sA-Za-z0-9]+/'''$GLOBALS['thread']['title'])))) . '.html"'$output);
            }
            else
            {
                
$output str_replace('showthread.php?t=' $seobits3[1][$k] . '&amp;pp=' $seobits3[4][$k], '' $seobits3[1][$k] . ($seobits3[1][$k] == '' '-p' $seobits3[3][$k]) . '-' strtolower(str_replace('--''-'str_replace(' ''-'preg_replace('/[^\sA-Za-z0-9]+/'''$GLOBALS['thread']['title'])))) . '.html"'$output);
            }
            }
        }
        
// do similar threads
        
if($GLOBALS['vboptions']['showsimilarthreads'] AND $GLOBALS['thread']['similar'])
        {
            
preg_match_all('/<a href="showthread\.php\?t=([0-9]+)">(.*?)<\/a>/i'$GLOBALS['similarthreads'], $seobits4);
               
$yetanothervar sizeof($seobits4[1]);
               for(
$l 0$l $yetanothervar$l++)
               {
                   
$output str_replace('showthread.php?t=' $seobits4[1][$l] . '"''' $seobits4[1][$l] . '-' strtolower(str_replace('--''-'str_replace(' ''-'preg_replace('/[^\sA-Za-z0-9]+/'''$seobits4[2][$l])))) . '.html"'$output);
               }
        }


I hope I helped someone or anyone! If you need any help...

aim: daredevilbp
msn: neomania60@hotmail.com
- Credits to www.DnLodge.com
Reply With Quote
  #244  
Old 10-23-2005, 11:40 AM
dn lodge dn lodge is offline
 
Join Date: Oct 2005
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes, its working, your probably just didnt refresh your page aftyer install or something. If you didnt know what this did, it creates most of your forum files to .html so its alot more navigatable for search engines.

Quote:
Originally Posted by xtreme-mobile
how do i know idf this is working? im a little confused as to what this does

this is what shows as a link to a thread after installing (i cant see any difference)


this is a show thread

http://www.talk-365.com/forum/showth...=1237#post1237

should it have .html in there somewhere? does this mean its not working? im confused lol

UPDATE when i go into a thread it now shows like this

http://www.talk-365.com/forum/t75-kids-suggestions.html

does this mean its working 100% now?
Reply With Quote
  #245  
Old 10-23-2005, 11:49 AM
xtreme-mobile xtreme-mobile is offline
 
Join Date: Jul 2004
Posts: 366
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice one thanks for fast response

look forward to seeing some good results

clicked install
Reply With Quote
  #246  
Old 10-24-2005, 09:46 PM
Zhen-Xjell's Avatar
Zhen-Xjell Zhen-Xjell is offline
 
Join Date: Oct 2005
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi folks, I have this installed. As an FYI, I have modified this to permit non-english characters to be enhanced (at least for the extended ASCII such as ?????, etc). This applies for the topics and the forums.

This is very similar to my SEO hack for all the *Nuke/phpbb sites:

http://googletap.com

Great work on getting this hack working. I know there is the commercial vbSEO hack, however, with some help, we can make this free one better if folks are interested.
Reply With Quote
  #247  
Old 10-24-2005, 09:56 PM
Nutz's Avatar
Nutz Nutz is offline
 
Join Date: Aug 2004
Location: United Kingdom
Posts: 436
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a very good hack. Good work Dean C.

PS: I'm loving the Johnny Cash Pic

Thanks,
Mat
Reply With Quote
  #248  
Old 10-24-2005, 10:43 PM
Lizard King Lizard King is offline
 
Join Date: Jan 2005
Location: Mersin
Posts: 907
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zhen-Xjell
Hi folks, I have this installed. As an FYI, I have modified this to permit non-english characters to be enhanced (at least for the extended ASCII such as ?????, etc). This applies for the topics and the forums.

This is very similar to my SEO hack for all the *Nuke/phpbb sites:

http://googletap.com

Great work on getting this hack working. I know there is the commercial vbSEO hack, however, with some help, we can make this free one better if folks are interested.
may i ask how did you permit non english characters
Reply With Quote
  #249  
Old 10-24-2005, 11:36 PM
Zhen-Xjell's Avatar
Zhen-Xjell Zhen-Xjell is offline
 
Join Date: Oct 2005
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lizard King
may i ask how did you permit non english characters
Sure, let me get my site finalized (its a new install) and I'll make the data available. Should take a day or two.
Reply With Quote
  #250  
Old 10-25-2005, 03:27 AM
vau7 vau7 is offline
 
Join Date: Mar 2004
Posts: 199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One Problem: Have you ever moved 1 Posting into another Thread?
In this case you have to give vBulletin a URL of the Thread where the Post has to be moved, and unfornatelty vB doesnt want to take the new URLs.

I wrote this little workaround for my moderators, you can use it for yours:

Quote:
  • Schritt 1:
    mark the checkbox of the posting to move




  • Schritt 2:
    "move postings" and go




  • Schritt 3:
    Now you see this.




  • Schritt 4:
    Now do a new Tab / Window of the Thread where the posting should be moved in.Rightklick on #1 and copy the Link.





    Mark the &postcount=1 and delete it. )




I hope this Bug will be fixed.
Reply With Quote
  #251  
Old 10-25-2005, 02:18 PM
D|ver's Avatar
D|ver D|ver is offline
 
Join Date: Feb 2003
Posts: 177
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zhen-Xjell
Sure, let me get my site finalized (its a new install) and I'll make the data available. Should take a day or two.
thank you
i could use that too
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 12:30 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08150 seconds
  • Memory Usage 2,402KB
  • Queries Executed 25 (?)
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
  • (1)bbcode_php
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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