vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vRewrite - SEOed URLs for vBulletin (https://vborg.vbsupport.ru/showthread.php?t=104484)

joeboo 01-14-2006 10:10 PM

This hack doesnt work with many of the redirects.

Immortal 01-14-2006 10:41 PM

Quote:

Originally Posted by Immortal
Currently there is only one known issue....and that is the redirect on newpost. I have started a new thread here, and it has not have any replies yet to help resolve this issue. It's a bit different since it is a redirect and not a link. I hope to have this repaired in time for the final release. More Information regarding the bug.

Stated up above.

rlamego 01-15-2006 02:03 AM

Immortal, can you give us a brief description of the steps involved to add extra name formats or duplicate existent?
I would like to add /fid.html (or maybe just /fid/) and /fid/tid/title_of_the_thread.html (or also strip the html extension from it)

Thanks! =)
Ricardo

jmw 01-15-2006 08:32 PM

Quote:

Originally Posted by Immortal
It is still in Beta. So, why not suggest a few features if you don't think it's got anywhere "near the functionality of vBSEO"? ;)

Please do something like Vseo. Do you accept donations and where to...

Immortal 01-15-2006 09:24 PM

Quote:

Originally Posted by rlamego
Immortal, can you give us a brief description of the steps involved to add extra name formats or duplicate existent?
I would like to add /fid.html (or maybe just /fid/) and /fid/tid/title_of_the_thread.html (or also strip the html extension from it)

Thanks! =)
Ricardo

Hey Ricardo,

I'll try and come up with a tutorial tomorrow - it's been one hell of a weekend.

Quote:

Originally Posted by jmw
Please do something like Vseo. Do you accept donations and where to...

Can you explain a bit more? Sorry, I don't quite understand what you are asking. :) And I sure do accept donations, there's a Paypal button in the hack description, just click it :)

rlamego 01-15-2006 09:26 PM

Thanks!! =)

jaks 01-15-2006 10:06 PM

Quote:

Originally Posted by Immortal
One of the many questions I've been getting is "I'd like to see this live".

I run it personally on my own public board - however I do try and tinker with the latest release on my live board before releasing it to y'all, so I have a few fixes that may not have been available at to the public yet. My board can be seen using it here and a good friend of mine is using a beta as well, and can be seen here.

I don't know if you noticed this or if it has been mentioned before but when I goto your site and look at the links they are not rewritten unless I refresh the page. Is this a bug with the hack or your server? This happens in both IE and Firefox.

For example Windows XP forum shows as this below
PHP Code:

http://www.techhelpforum.com/forumdisplay.php?f=11 

( This gets shortened when posted lol. You get the idea though. end with not )
and this below after refreshing
PHP Code:

http://www.techhelpforum.com/f-windows-xp-11.html 

Jaks

Immortal 01-15-2006 10:28 PM

Last night we installed a "bad hack" (it was not vRewrite), since then we've been having a lot of issues with our plugin system. We thought we solved it last night, but apparently not. This is not an issue with vRewrite AFAIK, since it was working perfectly before last night.

jaks 01-15-2006 11:27 PM

Actually first checked your site about 4 days ago and saw the same issue. I was going to post then but thought maybe you were working on something at the time because as I said it's fine after refresh. Hopefully that will help you eliminate what ever you installed last night as the culprit. Great hack wish I knew how to code I would help you out. Hope you don't think I'm trying to trash your hack because I would love to add this to my board when it's finished.

Jaks

Immortal 01-15-2006 11:33 PM

Of course not jaks, I value any bugs or anything of that nature, I just don't like the trolls who don't read and understand the rules. ;)

I'll take a heavier look tomorrow when I have time to find the culprit.

jaks 01-16-2006 12:26 AM

Good stuff :) Just didn't want you wasting your time looking in the wrong spot ;) The sooner it's fixed the sooner it's on my boards hehe.

Jaks

Oh damn, I thought you had VBadvanced on your site. :( Guess there is no chance this will work with it is there? :S

Immortal 01-16-2006 03:16 AM

Not currently. I 'posse I need to get off my arse and download it and then hack it :p

ryuji 01-16-2006 12:59 PM

does anybody else have issues with the 'view first unread' breaking (as long as the thread is one page long, works fine with multipage threads) with this hack... i cant run it until it works and i want to know if its just me before i go get vbseo licence :ermm:

cybermomcafe 01-17-2006 01:54 AM

nevermind... I figured it out LOL

AshokForums.com 01-17-2006 11:35 AM

Is this plugin compatible with "vBSEO Google/Yahoo Sitemap Generator for vBulletin 3.5.x & vBulletin 3.0.x"??

successful 01-17-2006 03:22 PM

Quote:

Originally Posted by Wachtmeister

How did you get this working in the member list ? I followed teh instructions included with the download and memberlist does not get rewritten ?

Immortal 01-17-2006 07:43 PM

Quote:

Originally Posted by successful
How did you get this working in the member list ? I followed teh instructions included with the download and memberlist does not get rewritten ?

There is a known issue with some of the URLs not rewriting 100% of the time, I just haven't had the time to figure/fix it yet.

Quote:

Is this plugin compatible with "vBSEO Google/Yahoo Sitemap Generator for vBulletin 3.5.x & vBulletin 3.0.x"??
Not currently, sorry.

Immortal 01-18-2006 02:02 AM

Quote:

Originally Posted by jaks
I don't know if you noticed this or if it has been mentioned before but when I goto your site and look at the links they are not rewritten unless I refresh the page. Is this a bug with the hack or your server? This happens in both IE and Firefox.

For example Windows XP forum shows as this below
PHP Code:

http://www.techhelpforum.com/forumdisplay.php?f=11 

( This gets shortened when posted lol. You get the idea though. end with not )
and this below after refreshing
PHP Code:

http://www.techhelpforum.com/f-windows-xp-11.html 

Jaks


Seems I fixed the issue, do to an IF OR in THIS_SCRIPT. I'll upload an updated fix once I am positive this is the solution.

Brandon Sheley 01-18-2006 05:56 AM

good to see another seo mod out,,
and with it still in beta I'll continue with dean c mod for now, cuz i don't see what this does that his doesn't.

when you able to make all threads/post seo, it'll be prefect :)
right now if i click a thread from the index on your live sites,, and mine as well with dean's mod,, ill get the showthread=232 w/e

but if i follow the forums down to the thread, i get thread-name-we.html

anyways good to see another mod in development :) I'll click install to follow this

Snake 01-18-2006 12:44 PM

Quote:

Originally Posted by Immortal
There is a known issue with some of the URLs not rewriting 100% of the time, I just haven't had the time to figure/fix it yet.



Not currently, sorry.

Ha I knew that! :p

allstar55 01-19-2006 07:21 AM

Bad Extension:

http://www.techhelpforum.com/f-windo...itions-13.html
http://www.techhelpforum.com/forumdisplay.php?f=13

PHP-URL must forward to HTML URL

Double content, Google hate double content.

Immortal 01-19-2006 06:12 PM

Quote:

Originally Posted by allstar55
Bad Extension:

http://www.techhelpforum.com/f-windo...itions-13.html
http://www.techhelpforum.com/forumdisplay.php?f=13

PHP-URL must forward to HTML URL

Double content, Google hate double content.

Please read the first post, I am aware of the issue.

Quote:

Originally Posted by Immortal
...however I do try and tinker with the latest release on my live board before releasing it to y'all...

I am hoping to get that issue fixed on Saturday, and then release an update. Put simply, I don't have the time this week with clients.

jj 01-19-2006 07:22 PM

On your board in every forum, for example this one: http://www.techhelpforum.com/f-windows-xp-11.html only the first showthread link is being replaced. The second stay in original state.

1st http://www.techhelpforum.com/windows...of-xp-439.html

2nd http://www.techhelpforum.com/showthread.php?t=1147

Haven't read all the posts in this topic so don't know if you are already aware of that problem.

Immortal 01-19-2006 11:18 PM

https://vborg.vbsupport.ru/showpost....&postcount=262 :)

Just haven't had the time to fix it yet.

Immortal 01-20-2006 07:35 PM

I cannot duplicate any issues on my dev board. So I am assuming it is my live board, as another forum is running it perfectly fine. I'll upgrade to 3.5.3 later this evening to see if that fixes it.

Smiry Kin's 01-21-2006 02:20 AM

could ya make is so profile are e.g /admin.html and not /u-admin-1.html ?

please??? or where/how do i change?

rlamego 01-21-2006 03:12 AM

Smiry, the id needs to be there otherwise it won't work.

Immortal, remember this post on the 15th?
I know you have been busy, this is just a friendly reminder! =)

ConqSoft 01-21-2006 03:15 AM

Quote:

Originally Posted by rlamego
Smiry, the id needs to be there otherwise it won't work.

Not really. It can be done without the ID:

http://www.fireblades.org/forums/members/conqsoft.html

rlamego 01-21-2006 03:21 AM

Quote:

Originally Posted by ConqSoft
Not really. It can be done without the ID:

http://www.fireblades.org/forums/members/conqsoft.html

Yes it can, if you are using vBSEO. But we're talking about vRewrite, right? =)
Aren't you tired of promoting vBSEO? ;)

ConqSoft 01-21-2006 03:23 AM

I'm just showing proof that it CAN be done. If one product can do it, then another can? No? The previous statement that the ID *needs* to be in the URL is incorrect.

rlamego 01-21-2006 01:04 PM

Incorrect? Please! =) Incorrect is misleading other people with answers that don't relate to their questions while promoting a commercial product on the thread of a free alternative version.

If you really want to prove it can be done, although that wasn't the question of Smiry, and add some useful info while you're at it, you should have said:
"Not really. It can be done without the ID only if you use vBSEO which is a commercial product with encrypted source and costs a lot more than your vB license. Here's my URL to prove it."

This thread is about vRewrite and in that context and until further change, it is not possible to remove the id from that URL!

Immortal 01-21-2006 02:10 PM

The way vRewrite currently handles all the URLs is done by ID searching. The way vBSEO is done (to my understanding as I've never used it) is done by one file which everything goes through. vRewrite 1.5 (if I ever get to it) is done by many entries in the mod_rewrite to handle all the rewrites, not done by one file. Which is why vBSEO can handle it without IDs, and vRewrite currently can't.

Immortal 01-21-2006 02:30 PM

Tutorial on custom rewrites/changing rewrtires

The first thing is first, back up all files!

The next thing you want to decide if you are doing a new rewrite or modifying an existing one. Either way, we will need to modify the .htaccess mod_rewrite rules. If you are modifying an already existing one, try and find which rule it is (it is pretty self-explanatory, the (.*) and $# represent variables in the rewrite). If you are creating a new one, copy off of one and use it as a template.

RewriteRule ^f-(.*)-(.*).html forumdisplay.php?f=$2 [L]

What this is telling us, is anything that starts with an f and then has two variables - separated by a hyphen applies to this rewrite. Since we don't care about the name of the forum, we only want the $2 aka the ID of the forum. Let's say we want it to be forumid.html. We will need to rewrite the rule to be:

RewriteRule ^forum(.*).html forumdisplay.php?f=$1 [L]

It really is that simple! Before we continue, you want to make sure you have the rule correct. Just go to yourforum.com/forum(some real id here).html. Does it work? If it does, then you did it correctly (and if you used that example) otherwise don't go on until you perfected that rewrite rule.

Now this is where the fun begins at. We will need to modify the plugin, but for member/showthread/forumdisplay there are an if statement to decide if we are on that. So if you are modifying any of these three, go to vB Options->vRewrite and choose the first rewrite option. We do not want the second!

Now go to ACP->Plugin Manager->vRewrite under global_complete. Edit it. This is where it gets messy so I would suggest playing with it on a test vB first, and then just copy and paste the code over. It's very easy to make a small mistake and cause a white page (aka a parse error).

Each rewrite rule is commented out like so:


#------------------------------
# Replace Forums
#------------------------------

But first we see
Code:

if($vbulletin->options['vRewrite_forumrewrite'] == "2") {
This is what I was talking about earlier. If you are using any of the 3 discussed above, skip down until you see the second one (in this case the second replace forums). There are only two for forumdisplay/showthread/member.

Here is what mine says now.

PHP Code:

#------------------------------
# Replace Forums
#------------------------------
$found preg_match_all('#<a href="forumdisplay\.php\?f=([0-9]+)"#i'$output$matches);

if(
$found)
{
    
// Build an array of ID's
    
$ids = array();

    for(
$i 0$i $found$i++)
    {
        
$fid $matches[1][$i];

        if(!
array_key_exists($fid$vbulletin->forumcache))
            continue;

        
$f $vbulletin->forumcache[$fid];
        
$fid $f['forumid'];
        
$title urlize($f['title']);

        
$output str_replace("<a href=\"forumdisplay.php?f=$fid\"""<a href=\"f-$title-$fid.html\""$output);
    }


Now we don't worry about anything besides the str_replace. The first part of the str_replace stays the same. However, the second part you see:

PHP Code:

"<a href=\"f-$title-$fid.html\"" 

Using our example from above, we would change this to:

PHP Code:

"<a href=\"forum$id\"" 

It really is that simple! You just got to be very careful when you upgrade vRewrite. Any questions, please keep 'em in the thread as I "technically" don't support this, but I may not notice ;)

rlamego 01-21-2006 05:05 PM

Thanks for the tutorial! =) Very nice!
Made my edits without any problem, except that the pull-down menus on vboptions still reflect the previous (default) values.
How can I change these?

Immortal 01-21-2006 05:49 PM

You will need to turn your vB into debug mode, and then edit those settings. Or do I need step-by-step instructions? hehe

rlamego 01-21-2006 05:51 PM

A quick question, looking at the global_complete code, I see a lot of db queries that I assume are used to get some extra info not available on vb's forumcache like forum names, etc.
If we were going back to basics, using just the numeric ids, and having urls like: /f$id/, /t$id/, etc, would those queries still be needed?

rlamego 01-21-2006 05:59 PM

Quote:

Originally Posted by Immortal
You will need to turn your vB into debug mode, and then edit those settings. Or do I need step-by-step instructions? hehe

No thanks! =) Wicked! First time I turn on debug mode so never saw that before! Thanks again! =)

Immortal 01-21-2006 05:59 PM

Sure don't :)

rlamego 01-21-2006 06:31 PM

Don't? Cool! Might seem odd but I'll try to mod it down to bare basics.
My host is sponsoring my site, charging me nothing for all that I use so I'm always extra careful not to waste their resources on unnecessary stuff!

Just to be sure I'm not making it worse, would you say that this is enough?
#------------------------------
# Replace User
#------------------------------
$found = preg_match_all('#member\.php\?u=([0-9]+)#i', $output, $matches);
if($found)
{
$output = str_replace("member.php?u=$uid", "member/$uid/", $output);
}

Immortal 01-22-2006 02:25 AM

You'll need it put it in a while loop, I'll try and get you the code tomorrow. :)


All times are GMT. The time now is 01:56 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.02149 seconds
  • Memory Usage 1,860KB
  • 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
  • (7)bbcode_php_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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