View Full Version : Solved vbet redirecting query strings in urls
Hi i am running another mod and i need to use query strings in urls for testing.
vbet redirects any thread url with a query sting, how can i stop this.
http://www.computer-juice.com/forums/f10/short-5-10-sec-freeze-only-games-new-computer-30576/?555
redirects to
http://www.computer-juice.com/forums/f10/short-5-10-sec-freeze-only-games-new-computer-30576/
Hello,
Try to modify Translation links type in Admin CP->VBET->Main and reply, does it work.
Yes it works, but will this cause any other problems?
Thank you.
My links break for flags, they change to non seo links, so this is not a fix.
And did you change a 'link type' in 'vBET->Main' options as well?
Why cant i upload files here! Its very annoying.
http://img16.mediafire.com/febe8163ffae9fdd8d2d65ca12ff6a5918fdec59830387214fd54a466a5848515g.jpg
And did you change a 'link type' in 'vBET->Main' options as well?
As well as what? Thats all you told me to do and no, it doesnt work it makes all translated urls non-seo urls.
Hmm.. Give me some time, I'll investigate it more precisely
To solve your issue we need access data to your server - login/pass to admincp, ftp (private message of course :) ) and precisely describe, what to do to make this issue happen
Why?
It does the same thing here at vbet.
So you have test forum here.
kamilkurczak
19-11-10, 14:25
Hello
we are still working on in.
I am not quite sure so I have some questions to you.
1. this 555 - this is parameter to your mod, right?
so is this mod use it?
2. if you enable vBET (stay only with SEO) this should not be cutted but will it work (this mod with this parameter)?
3. Is this mod use .htaccess file?
Thanks
555 was an example, any querystring gets redirected.
http://www.vbenterprisetranslator.com/forum/troubleshooting/1220-vbet-redirecting-query-strings-urls-2.html?hello999randomnumber7676476437634
I dont see why you are asking me to debug, you can test on your forum HERE!
Thanks.
kamilkurczak
19-11-10, 17:12
Yes, I can reproduce it here and on my test forum but I need to know why you need this string in url? This should be redirect like a parametr to your mod?
or maybe this should not be cutted only.
Im running a mod that needs to add query strings to urls. What else matters. VBET should NOT redirect querystrings. Period.
kamilkurczak
19-11-10, 17:25
I noticed that only in url to threads this string is cutted.
for example to vBulletin Enterprise Translator (vBET) - Powered by vBulletin (http://www.vbenterprisetranslator.com/forum/?555) not.
I will try to find a solution.
That is correct;
vbet redirects any thread url with a query sting, how can i stop this.
kamilkurczak
22-11-10, 12:16
hello, I am still working on it.
Or is it so hard or ... is it so easy and I'm looking where I should not have ;)
thank you for your patience.
kamilkurczak
23-11-10, 15:38
I found something in this file:
includes/vbenterprisetranslator_functions_hooks.php
in this function:
function vbet_global_start(&$template_hook) {
I found this line:
exec_header_redirect($threadurl);
this is redirected when link is not good to vBSEO
if you edit this file and comment this line like below:
//exec_header_redirect($threadurl);
this "?555" shouldn't be cutted.
I tested it when this function was commented and I didn't notice any issues ( translations worked good, urls to threads too, pages too) but I am not quite sure that now vBET works good. MichaĆ will confirm it soon.
That seems to work, thank you.
kamilkurczak
23-11-10, 15:59
Thanks for your confirmation. At this moment I will move this thread into Bug reporting section. If we test it and it will be without any issues - will be included in the next relase.
kamilkurczak
26-11-10, 09:22
Hello Snake,
I have a better solution for you. My previous solution was not complete and now you dont have one from vBET functionality. Please change it.
1. make a copy and edit a file:
includes/vbenterprisetranslator_functions_hooks.php
2. in this file find function:
function vbet_global_start(&$template_hook) {
3. in this function find:
if ($threadrow && $threadurl != $_SERVER['VBSEO_URI']) {
4. and replace with:
if ($threadrow && strpos($_SERVER['VBSEO_URI'], $threadurl)!= 0) {
5. save and update file.
This solution will be include in the next relase.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.