vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Major Additions - DC SEO vB URL Rewrite (https://vborg.vbsupport.ru/showthread.php?t=91324)

Dean C 06-28-2005 10:00 PM

DC SEO vB URL Rewrite
 
[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.

sabret00the 06-29-2005 06:37 PM

++++ me dean released a hack :p

nice one dean, i can see me using when i upgrade :)

kall 06-29-2005 07:11 PM

Very cool! It conflicts with the 'Forum Images on Forumhome' that I have integrated with my Steel series tho. :(

'/images/forumhome/$forum[forumid].gif' gets .html bunged in there before the .gif.

Dean C 06-29-2005 07:14 PM

Can I see a live example kall? :)

Kru 06-29-2005 07:38 PM

I am getting this error message:

Quote:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator to inform of the time the error occurred and of anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

sabret00the 06-29-2005 07:44 PM

Quote:

Originally Posted by Kru
I am getting this error message:

sounds like a .htaccess problem, check the configuration

Kru 06-29-2005 08:03 PM

Quote:

Originally Posted by sabret00the
sounds like a .htaccess problem, check the configuration

Yes, I believe this, too but well I just followed the instructions and uploaded the files.

The .htaccess includes the following informations:

Quote:

RewriteEngine On
RewriteRule ^f([0-9]+)-([A-Za-z0-9\-]+)\.html$ forumdisplay.php?f=$1 [L]
RewriteRule ^t([0-9]+)(((-p)([0-9]+))?)([A-Za-z0-9\-]+)\.html$ showthread.php?t=$1&page=$5&pp=10 [L]
Once time I uploaded this file I am getting the error message.

Link14716 06-29-2005 08:14 PM

Why is this in code mods if it is a plugin?

Dean C 06-29-2005 08:35 PM

Quote:

Originally Posted by Kru
I am getting this error message:

You may have mod_rewrite disabled on your server. Contact your host and ask them to enable the apache module :)

sabret00the 06-29-2005 11:20 PM

Quote:

Originally Posted by Link14716
Why is this in code mods if it is a plugin?

it actually got moved here i beleive :ermm:

Floris 06-29-2005 11:44 PM

I use a links category where forums are actually forum links, which is a feature from vbulletin by default.

So titles are for example http://www.vBulletin.com/

which results in invalid page .html files.

Link14716 06-30-2005 12:32 AM

Quote:

Originally Posted by sabret00the
it actually got moved here i beleive :ermm:

It seems to keep jumping between plugins and code mods. This is a plugin and should be in the plugin forum. ;)

Floris 06-30-2005 01:22 AM

Quote:

Originally Posted by Link14716
It seems to keep jumping between plugins and code mods. This is a plugin and should be in the plugin forum. ;)

According to the rules by the staff it requires a file upload, therefor is a code mod. I disagree though :)

Link14716 06-30-2005 05:44 AM

Quote:

Originally Posted by floris
According to the rules by the staff it requires a file upload, therefor is a code mod. I disagree though :)

So do I. Following that logic, if Jelsoft does make a CMS, it would be classified as a code mod even though it would use the plugin system and not modify any code. (This post ignores the fact that an official Jelsoft addon wouldn't be released at vBulletin.org, of course, but it's just an example.)

Note to vB.org staff: It doesn't modify code, therefore it is not a code modification. Please, can we get some logic in this?

Marco van Herwaarden 06-30-2005 06:56 AM

Quote:

Originally Posted by Link14716
It seems to keep jumping between plugins and code mods. This is a plugin and should be in the plugin forum. ;)

I think we need a new category: Jumpin

kall 06-30-2005 07:02 AM

Quote:

Originally Posted by Dean C
Can I see a live example kall? :)

You can...PM me when you want me to throw my board into chaos for you. :)

*addendum* Aaaand...if you have commas in your forum titles, the resultant URL has them too, rendering it unusable.

*addendum2* Quick Style chooser appears to be unusable?

waza 06-30-2005 07:57 AM

does this also exist for vb 3.0.7 ?? thx,
seba

Dean C 06-30-2005 07:59 AM

Quote:

Originally Posted by Link14716
So do I. Following that logic, if Jelsoft does make a CMS, it would be classified as a code mod even though it would use the plugin system and not modify any code. (This post ignores the fact that an official Jelsoft addon wouldn't be released at vBulletin.org, of course, but it's just an example.)

Note to vB.org staff: It doesn't modify code, therefore it is not a code modification. Please, can we get some logic in this?

We're having a bit of trouble classifying everything at the moment. Give us some time ;)

Dean C 06-30-2005 08:02 AM

Quote:

Originally Posted by kall
You can...PM me when you want me to throw my board into chaos for you. :)

*addendum* Aaaand...if you have commas in your forum titles, the resultant URL has them too, rendering it unusable.

*addendum2* Quick Style chooser appears to be unusable?

I was just wondering how you were testing it out :) Note it's marked as beta still. Thanks for your feedback on the bugs. I'm going to look into them right away.

Dean C 06-30-2005 08:03 AM

Quote:

Originally Posted by waza
does this also exist for vb 3.0.7 ?? thx,
seba

I did write a version for vB3.0.7 but I'm afraid I'd rather not release it for old versions now.

Dean C 06-30-2005 08:03 AM

Quote:

Originally Posted by floris
I use a links category where forums are actually forum links, which is a feature from vbulletin by default.

So titles are for example http://www.vBulletin.com/

which results in invalid page .html files.

Thanks for the feedback, I'll look into it :)

kall 06-30-2005 08:35 AM

Quote:

Originally Posted by Dean C
I was just wondering how you were testing it out :) Note it's marked as beta still. Thanks for your feedback on the bugs. I'm going to look into them right away.

http://www.nzboards.com/forums/f2-ge...iscussion.html

Have a look at that..

kall 06-30-2005 08:39 AM

Aaaand...Heres a shot of some subforums. They're getting duplicated or something. I haven't modified any of the subforumbit templates.

*edit* removed attachement

sabret00the 06-30-2005 08:48 AM

Quote:

Originally Posted by Link14716
So do I. Following that logic, if Jelsoft does make a CMS, it would be classified as a code mod even though it would use the plugin system and not modify any code. (This post ignores the fact that an official Jelsoft addon wouldn't be released at vBulletin.org, of course, but it's just an example.)

Note to vB.org staff: It doesn't modify code, therefore it is not a code modification. Please, can we get some logic in this?

i think everyones forgetting that even the plugin's require the uploading of the xml file :o

Dean C 06-30-2005 08:56 AM

Many thanks kall, could you point me in the direction of the mod you are using for your forum images :)? Thankyou

kall 06-30-2005 09:51 AM

Quote:

Originally Posted by Dean C
Many thanks kall, could you point me in the direction of the mod you are using for your forum images :)? Thankyou

I think it was sabe's hack originally..

In forumhome_forumbit_level*post , find:
HTML Code:

<td><img src="$vboptions[cleargifurl]" alt="" width="9" height="1" border="0" /></td>

                        <td>

After, add:
HTML Code:

<if condition="in_array($forum['forumid'], array(41,9,3,37,38,8,999))">
<td><a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img src="images/forumhome/$forum[forumid].gif" alt="$forum[title]" border="0" vspace="2 px" hspace="5px" width="40" height="39" align="left"/></a>
</td>
</if>

...sorta. I had a devil of a job getting it just right, but there's the general gist.

TrentTech 06-30-2005 10:51 AM

Dean C, random copies of my sub-forums names are showing up in the sub-form list in plain text, but this is only on my forum index, because I have it show sub-forums (like how vBulletin.com/forum does)

Dean C 06-30-2005 11:20 AM

Quote:

Originally Posted by TrentTech
Dean C, random copies of my sub-forums names are showing up in the sub-form list in plain text, but this is only on my forum index, because I have it show sub-forums (like how vBulletin.com/forum does)

I'm going to look into that in an hour or so after my lunch :) Thanks for the input.

akanevsky 06-30-2005 11:57 AM

Hmmm.... f-forumtitle.. And what if the forumtitle isn't written in english letters? Will it convert?

Dean C 06-30-2005 12:12 PM

Quote:

Originally Posted by Dark Visor
Hmmm.... f-forumtitle.. And what if the forumtitle isn't written in english letters? Will it convert?

No this is only for english boards :)

Dean C 06-30-2005 12:28 PM

<font size="5">Updated to v1.1:</font>

All bugs should be fixed except the quick style chooser. I don't know how I'm going to approach that one exactly yet but at the moment unless I write it into the rewrite rules to accept an optional styleid parameter.

kall 06-30-2005 08:19 PM

Quote:

Originally Posted by Dean C
Updated to v1.1:

All bugs should be fixed except the quick style chooser. I don't know how I'm going to approach that one exactly yet but at the moment unless I write it into the rewrite rules to accept an optional styleid parameter.

Sweet...it's working now.

Any chance you could figure out how to rewrite the latest post link? Duplicate content is apparently an issue with some engines.

I don't know if you have read this seo vbulletin hack but it has some pretty excellent tips for SEOing vB...some of which were incorporated into 3.5. :)

*edit* hahaha..
PHP Code:

http://www.nzboards.com/forums/f41-img-srcimagesforumhome41gif-altthe-testing-zone-border0-vspace2-px-hspace5px-width40-height39-alignleft.html 


Dean C 06-30-2005 08:25 PM

Why would you want to rewrite the latest post link? It'll change every single time a bot spiders it. Also it'd almost be a duplicate content as you point out which is a bad thing.

kall 06-30-2005 08:40 PM

Quote:

Originally Posted by Dean C
Why would you want to rewrite the latest post link? It'll change every single time a bot spiders it. Also it'd almost be a duplicate content as you point out which is a bad thing.

Well, if I click on it from forumdisplay.php, it is
PHP Code:

http://www.nzboards.com/forums/t3042-i-hate-the-cold.html 

but from forumhome it is
PHP Code:

http://www.nzboards.com/forums/showthread.php?goto=newpost&t=3042 

... if they were the same link, that would cut down on the duplicate content.

vBSEO 06-30-2005 08:55 PM

Quote:

Originally Posted by Dean C
All bugs should be fixed except the quick style chooser. I don't know how I'm going to approach that one exactly yet but at the moment unless I write it into the rewrite rules to accept an optional styleid parameter.

Hi Dean,

I?m working on a mod_rewrite hack as well. Here is some code you can use to handle the ?quick style chooser? by adding ?&%{QUERY_STRING}? to .htaccess

Code:

RewriteEngine On
RewriteRule ^f([0-9]+)-([A-Za-z0-9\-]+)\.html$
forumdisplay.php?f=$1&%{QUERY_STRING} [L]
RewriteRule ^t([0-9]+)(((-p)([0-9]+))?)([A-Za-z0-9\-]+)\.html$ showthread.php?t=$1&page=$5&pp=10&%{QUERY_STRING} [L]

This will also add any additional parameters to the URL, and will likely help to avoid other potential issues that might occur.

Here you can find out more info about my hack, vBSEO:
https://vborg.vbsupport.ru/showthread.php?t=91362

Maybe we can do some brainstorming on potential improvements on the SEO aspects :up:

Juan

coffeefix 07-02-2005 04:37 PM

This plug in screwed up my forum, royally. Uninstalling.

Dean C 07-02-2005 05:26 PM

Quote:

Originally Posted by coffeefix
This plug in screwed up my forum, royally. Uninstalling.

Well it is clearly marked as beta, could you explain exactly what it screwed up please :)?

coffeefix 07-03-2005 04:00 AM

Quite a few of my forums became unaccessible, when clicking on a forum, you would get taken to a 404 page not found error page. Once the plug-in was turned off they became accessible again.

Dean C 07-03-2005 09:38 AM

Well it is most likely that you do not have mod_rewrite enabled. Contact your host to get it enabled and reinstall the plugin again and it should work :)

TrentTech 07-03-2005 10:45 AM

Version 1.1 works! Thanks Dean!


All times are GMT. The time now is 06:16 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.01802 seconds
  • Memory Usage 1,849KB
  • 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
  • (2)bbcode_html_printable
  • (3)bbcode_php_printable
  • (24)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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