![]() |
This hack doesnt work with many of the redirects.
|
Quote:
|
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 |
Quote:
|
Quote:
I'll try and come up with a tutorial tomorrow - it's been one hell of a weekend. Quote:
|
Thanks!! =)
|
Quote:
For example Windows XP forum shows as this below PHP Code:
and this below after refreshing PHP Code:
|
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.
|
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 |
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. |
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 |
Not currently. I 'posse I need to get off my arse and download it and then hack it :p
|
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:
|
nevermind... I figured it out LOL
|
Is this plugin compatible with "vBSEO Google/Yahoo Sitemap Generator for vBulletin 3.5.x & vBulletin 3.0.x"??
|
Quote:
|
Quote:
Quote:
|
Quote:
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. |
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 |
Quote:
|
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. |
Quote:
Quote:
|
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. |
|
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.
|
could ya make is so profile are e.g /admin.html and not /u-admin-1.html ?
please??? or where/how do i change? |
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! =) |
Quote:
http://www.fireblades.org/forums/members/conqsoft.html |
Quote:
Aren't you tired of promoting vBSEO? ;) |
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.
|
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! |
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.
|
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") { Here is what mine says now. PHP Code:
PHP Code:
PHP Code:
|
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? |
You will need to turn your vB into debug mode, and then edit those settings. Or do I need step-by-step instructions? hehe
|
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? |
Quote:
|
Sure don't :)
|
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); } |
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|