PDA

View Full Version : vRewrite


Tyler
01-02-2006, 07:27 PM
Hello Everyone,

I've been working on a hack for a few days now, and I believe I'm ready to release it to a "private group" aka y'all ;)...while there may be a few bugs, I don't want to release it on vB.org yet, as I want to remove all bugs I possibly can. If you have any suggestions please let me know, everything should be self-explanatory :)

I forgot to mention..

As a return of my thanks to you, you are more then welcome to remove my copyright. After you installed everything - simply remove or comment out the line:
$output .= '<div align="center">SEOed URLS completed by <a href="http://www.techhelpforum.com">Tech Help Forum</a>.</div>';
In global_complete plugin.

DavidL
01-02-2006, 07:43 PM
I will give this a whack on my new www.cyclez.net board tonight and let ya know what I think. I was just about to go to vb.org and get the other vb rewrite hack but this one looks like it will do more pages than that other one.
Glad I could help beta :)

Tyler
01-02-2006, 07:47 PM
Dean's does only a few of 'em :(

Much appreciated David, it is a bit buggy on a few things, but it shouldn't cause any harm. I should have an updated version shortly once I get a few more bugs :)

DavidL
01-02-2006, 10:30 PM
So far so good. Install was flawless as well as the uninstall. Then installed again to test the overwrite re-install. Much better then Deans as far as I can tell. I wont completely remove your copyright as you have worked hard on this but I will place your same text link in the friends link section when I set that up.
Great hack & looking forward to see your launch on vb.org

-Dave

Tyler
01-02-2006, 10:36 PM
Much appreciated David :)

Wheels
01-02-2006, 11:46 PM
I'll give that a try on the test forum Kim set up awhile back for WHT.

I checked David's Cyclez forum and I like the style on it. :)

DavidL
01-03-2006, 12:01 AM
I'll give that a try on the test forum Kim set up awhile back for WHT.

I checked David's Cyclez forum and I like the style on it. :)
Thank you very much. That style was created by myself. I still have a few buttons I have to finish yet but your comment makes me feel good about what I have done so far.
/me tips hat :)

spechackers
01-03-2006, 08:35 AM
what does this hack or module do , actually i donot use VB and i use Opensource PHPBB

linux-tech
01-03-2006, 09:53 AM
what does this hack or module do , actually i donot use VB and i use Opensource PHPBB
VB is open source, please stop saying that it isn't.
As far as what it does, to you, it's something that wouldn't work, because you don't VB. What this does though is make the board more "search engine friendly" by replacing most of the variables with straight html pages.
For example:
member.php?u=id becomes member-u-name-id.html which is much more friendly for them search engines

Great hack, I'll look @ installing this very shortly , and thank you :)

linux-tech
01-03-2006, 12:18 PM
A couple minor issues that I've noticed:
Firstly, in forumhome:
If a user with two words (such as News Guy)posts a thread, the link becomes

$vburl/u-news-guy-.html

instead of

$vburl/u-news-guy-id.html

Everything else looks ok for these users, links to registration work, links to profiles (in the actual post) work, etc. Of course, click on that, in the forumhome and you'll get the usual not registered message, as you should, because it's not pulling up a uid.

Next one is just a bit odd, and probably NOT a bug, not sure if this can even be improved:
again, in forumhome, the thread links go to posttitle-pid-newpost.html , which redirects right back to the showthread.php?p=$post&post=$post# . Seems to me this is defeating the purpose of the SEO, as it's rewriting right back to a php page? Of course what do I know, I'm no SEO expert ;)

Great stuff here. I've removed the copyright from the bottom, but included it with the rest of my stuff (vb/vbstyles/etc) @ the bottom of the pages.

Tyler
01-03-2006, 04:18 PM
what does this hack or module do

Exactly what Tom says, there's a bit more information in the about section in install.html for users with vB who wish to learn more. But it is only for vB (hince the v and then the capitilzed R).

If a user with two words (such as News Guy)posts a thread, the link becomes

Thank you Tom, you're the first to report this. I went ahead and fixed it for the next version (.95) which I hope to release either tonight or tomorrow.

Next one is just a bit odd, and probably NOT a bug, not sure if this can even be improved:
again, in forumhome, the thread links go to posttitle-pid-newpost.html , which redirects right back to the showthread.php?p=$post&post=$post#

This was a bug that I knew about, I posted about it on a vB Fans site but with no replies yet. I'll post it on vB.org shortly as this is much different since it is a redirect and not a rewrite - so my coding will have to change for it. Thanks for reporting though :)

If anyone finds anymore bugs please do report 'em, much appreciated :)

linux-tech
01-03-2006, 04:54 PM
The same thing shows up with search-getdaily.html and search-getnew.html, both are redirecting to the search.php?searchid=xxx page, and showing that. Not sure if that can be fixed either, just posting here so's you're aware of it if you wasn't already :)

Tyler
01-04-2006, 07:01 PM
I haven't had time to test it on vBulletin 3.5.3 but it should work. I'll go ahead and upgrade my dev board shortly to make sure :)

Tyler
01-04-2006, 10:19 PM
Hello Everyone,

Thanks for beta testing so far. The new version of vB (3.5.3) shouldn't cause any issues when you upgrade. There has been quite a few bugs reported. Everything should be fixed but the newpost bug (redirects to showthread.php?p=id#postid) which my question on vBulletin.org remains unanswered. There really isn't any new additions as far as functionality is concerned expect for you now can turn vRewrite off via the ACP. I'm hoping this is the final beta version. To upgrade, simple import the product and choose "Allow Overwrite". Thanks again :)

Tyler
01-08-2006, 11:36 AM
1.0 :)

She's a bit premature though, I'm hoping it to release it to the public tonight.

SoftWareRevue
01-08-2006, 01:42 PM
http://www.getmesmileys.com/smilies/sign0101.gif

/me raises hand

I have a question!

Why is it named vRewrite?

If it's for vB, shouldn't it be vBRewrite?

:topic: <<<< hmmm . . . no Topic emoticon. :crazy:

Tyler
01-08-2006, 01:46 PM
/me raises hand

Yes, you. The one over there! No, not you! :uzi:

I have a question!

Why is it named vRewrite?

If it's for vB, shouldn't it be vBRewrite?


I choose vRewrite for a few reasons. I wanted the emphasis on the R in Rewrite. If I've named it vBRewrite, there would be no real emphasis since both the B and R are capitalized. I liked to be different, so I wanted to steer away from the traditional hack name, and be original. And since vBSEO is vBSEO, it would kinda seem similar (which they still are), if I used the same syntax :)

SoftWareRevue
01-08-2006, 01:56 PM
What happens with your capitalization issue if you call it vbRewrite?


And . . .


rewrite sounds nothing like seo. :P

Tyler
01-08-2006, 02:21 PM
'Cuz then that's incorrect, as its vB not vb. :P

Honestly, all it does right now is rewrite the URLs. In the next version you will be able to have 301 redirects, meta description/keywords per forum, custom rules and all that good SEO stuff. But, currently all it does is rewrite the URLs. And I'm hoping I can expand on it :)

John D
01-19-2006, 10:04 AM
Hey Tyler,

I saw this a while ago but wanted to wait to see if any bugs were found/fixed.

Is the script working ok now?

Going to install it on a few of my forums today anyway ;)

Thanks a lot for this Tyler, good of you to share it.

Tyler
01-19-2006, 04:06 PM
I would wait 'till about this weekend John...There has been a few bug reports on vB.org that I haven't found time to fix yet. I would wait 'till I release the newest (probably Saturday). Sorry!

John D
01-19-2006, 04:27 PM
No problem, looking forward to using it :)

Brandon
01-19-2006, 04:39 PM
i seen this at vb.org and dl'ed it, but hadn't installed..
currently I'm using Dean C's version

I'm happy there are coders that will take time to make something like this for us, the one's who don't want to spend 150$ on the other SEO mod, most of us know about....

I'll be following this thread to find out how this is developed :)

and does this site use vRewite mod ?

Tyler
01-19-2006, 06:12 PM
and does this site use vRewite mod ?

FU runs a bit of a modified one, for a few hacks, but the core of it is indeed vRewrite. :)

Brandon
01-20-2006, 01:28 AM
interesting.. i like this part


campus/building-and-maintenance/t-vrewrite-249-page-3.html
that deans doesn't do

linux-tech
01-20-2006, 06:19 PM
VRewrite is a full SEO rewrite, Dean's doesn't do half of what it should. For example, the usernames aren't rewritten properly, and many other things aren't done, as well.

I've been using VRewrite for a while, no problems at all, at least nothing service affecting. Sure, it's going to be perfect, but it's damn good ;)

Brandon
01-20-2006, 11:08 PM
i just don't want to jump into this, untill i learn a bit more about this mod.
i do have links indexed that are seo from deans mod, and if i change i'll lose those..

Tyler
01-20-2006, 11:12 PM
You can always do a 301 redirect from his URLs. :)

Brandon
01-21-2006, 02:19 AM
maybe I'll give it a try

i gave it a try, but ran into problems

when I'd mouse over the thread on forum home i see that it should go to

http://locoforum.com/forums/01-29-2006josies-emporia-ks-dewayn-bros-w-white-ghost-shivers-640-newpost.html

but when I'd click it, i would be redirected to locoforum.com

any ideas ?

*edit.. i had a 404 redirect that was redirecting bad pages.. so i removed that and now the link above is a blank page ?

ps I use vbportal and when I click "new post" I'll be directed to my portal search modual..

/me uninstalling, but I liked what it should look like :)

Tyler
01-21-2006, 12:11 PM
I am so very lost by your last post, sorry LocoForum. :S

Brandon
01-21-2006, 07:30 PM
ya, i can understand that..lol

okay I tested your vRewrite and it didn't work..

it would make the url mysite.com/forum-section/thread-titles.html but when i would go to that page it is a blank page...

and also, when i search "getnew" new post,, i was directed to my portals search feature...

hope that clears things up

Tyler
01-21-2006, 08:14 PM
Did you get a 404? If so, you must've a) not uploaded your .htaccess or b) you didn't change the RewriteBase.

As for the portal search thing, that shouldn't affect it as vRewrite does nothing with vBA.

Hope that helps if you decide to install it sometime in the future.

Brandon
01-22-2006, 04:18 AM
Did you get a 404? If so, you must've a) not uploaded your .htaccess or b) you didn't change the RewriteBase.

i did the style edits and the htaccess

if i didn't have a 404 setup in my cpanel when I'd go to a link with this mod it was a blank page..

if I enabled 404 in cpanel, this same link would be redirected to my main page, as orders of the 404 code...

and I'm not using vBa its vBPortal...vbportal.com

this portal is in the root/ and my forums are in the root/forums/ maybe this has something to do with the search messing up..


thx for replying, will try again after beta has ran for a little longer

Tyler
01-22-2006, 11:09 AM
When I go stable, this mod will be pretty much identical. If you still have your .htaccess can you copy and paste it for me? And did you upload it to /forums and not root?

Brandon
01-22-2006, 05:46 PM
When I go stable, this mod will be pretty much identical. If you still have your .htaccess can you copy and paste it for me? And did you upload it to /forums and not root?

i uploaded it to the /forums. and i also tried at the root.. both has issues...as for pasting the htaccess its in your zip ?



...if I get a chance this evening, I'll try and install it again, the instructions where pretty easy from what I remember, but maybe I had missed something

Tyler
01-22-2006, 06:04 PM
Sounds like to me you may have missed the editing of the RewriteBase in the .htaccess. Pay extra close attention to that this time :)

John D
01-22-2006, 06:14 PM
Look at your root website folder, there should be a file called .htaccess, paste the contents of that here.

Brandon
01-22-2006, 06:19 PM
yup, this was the problem, my forums are in the /forum folder,, so just added this is the htaccess and all is good :) ( thank you tyler for the pms )

btw, when i look at My profile on this site,, i see softwarerev's profile :|

if i view my profile from this page, show post, its fine..

but if i click vew my prifile from the quick links in the nav,, or if i click my name at the bottom of the index, i see some one elses profile

btw, i read this in the install

vRewrite accomplishes both of this, for all URLs that a search engine (or a guest) will see.
and i see this isn't completly true, i can get to showthread=page# page's, but it does look good.. thanks for the help :)

Tyler
01-22-2006, 06:28 PM
It's another hack conflicting with vRewrite. When I get time again, I'll try it correct it.

Brandon
01-22-2006, 06:37 PM
okay, sounds good :)

also u may check out this..
I have this hack Gallery for vBulletin 3.5.X (http://www.vbulletin.org/forum/showthread.php?t=92875) installed for my gallery

and there is an error with this URLs..
http://locoforum.com/forums/the-band-rocking-out-or-the-basturd-bluegrass/t-more-anchor-603.html


this link ^ is to an image in the gallery that doesn't show either, but you can get to the gallery categories and see..

good luck :) still looking good to me

*edit* here is a suggestion, or a question
can this work on v3arcade ?

forums/arcade.php?do=play&gameid=95

to

forums/arcade/counterstrike.html ?

Brandon
01-22-2006, 09:29 PM
i found out how to fix the gallery issue i was having with
inserting this code above the $headerinclude in the gallery templates

<base href="$vboptions[bburl]/" />

John D
01-22-2006, 09:37 PM
Would you recommend installing now Tyler and updating when you bring out an update or will you be doing one soon?

Tyler
01-22-2006, 09:44 PM
Would you recommend installing now Tyler and updating when you bring out an update or will you be doing one soon?

I'd say give her a whirl now John. Let me know how it goes :)

John D
01-22-2006, 10:09 PM
No probs :)

Is 1.0 in this thread the latest version?

Jan
01-23-2006, 10:35 AM
Merging threads don't work to good with that ;)

Brandon
01-23-2006, 10:48 AM
another bug..

in newthread when a user clicks on [more] for more smilies.. it pulls up the mysite.com

Tyler
01-23-2006, 04:05 PM
Is 1.0 in this thread the latest version?
1.0P (Preview)

Merging threads don't work to good with that ;)

Yuh I need to work on that part. ;)

another bug..

in newthread when a user clicks on [more] for more smilies.. it pulls up the mysite.com

Make sure you edited all the templates.

Brandon
01-23-2006, 08:30 PM
Make sure you edited all the templates.

i did edit the newthread template, but I'll check it again tonight.

Brandon
01-26-2006, 04:29 AM
this is the top of my newthread template

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<base href="$vboptions[bburl]/" />
$headinclude
<title>$vboptions[bbtitle] - $vbphrase[post_new_thread]</title>
</head>
<body$onload>
$header
$navbar

$postpreview

see, the code is there, but the problem still shows :(

when i mouseover [More]
it shows it should go to
http://www.locoforum.com/forums/#

just like on this site.. but then the popup, loads up my front page...

any ideas ?

and this is the top of newreply

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<base href="$vboptions[bburl]/" />
$headinclude
<title>$vboptions[bbtitle] - $vbphrase[reply_to_topic]</title>
</head>
<body$onload>
$header
$navbar

ps,, the manage attachments, i get the same issue

Brandon
01-29-2006, 04:00 AM
this is working good for me.

i had missed the forumdisplay template

John D
01-29-2006, 01:07 PM
Any info for the next release?

I have to merge a lot of threads so I think I'm going to wait to see if anyone can come up with a fix :)

Thanks

Tyler
01-29-2006, 02:40 PM
I'll try and find some time John :)

John D
01-31-2006, 11:27 AM
Great, thanks Tyler :)

Brandon
02-08-2006, 12:14 AM
looking foward to a new version :)

Tyler
02-19-2006, 08:53 PM
I have released the first stable release. I thank everyone for help beta testing vRewrite, but I now ask you to please download it strictly from vBulletin.org (http://www.vbulletin.org/forum/showthread.php?t=104484).

Thanks again everyone! :)

John D
02-26-2006, 08:50 PM
Great, looking forward to trying it out Tyler!

Thanks :)

IonutZ
03-09-2006, 07:41 PM
Hey Tyler,

I wonder if you can help me sort this out - if you take a look at http://ionutz.biz - I'm using vBaCMPS with your script but I can't seem to get those "Recent Threads" to work --- on the front page... if you look into the forums, everything is cool but the front page... :)

Thanks

Tyler
03-09-2006, 08:16 PM
http://www.vbulletin.com/order

I'm going to close this thread to prevent other pirated users seeking help. If you want to pirate vB, don't pirate my hack with vB.