View Full Version : User selectable Redirections
Kars10
05-26-2003, 10:00 PM
About this Hack:
With this feature, your users can decide to use the vBulletin-redirection pages or not. ;)
Time to install:
15 min
Files to edit: 3
member.php, register.php, admin/functions.php
Templates to edit: 3
modifyoptions, registeradult, registercoppa
Templates to add: 0
!!! PLEASE BACKUP YOUR FILES AND DATABASE, AND IF YOU LIKE THIS HACK LICK INSTALL!!! :D
Have Fun Kars
Hmm, if this works this would be awesome.
I'll check it out in a bit. :)
MetroSports82
05-27-2003, 05:04 PM
great work m8! one of the few things that i was looking for too! ;)
* MetroSports82 licks install!
Kars10
05-27-2003, 05:05 PM
@ 006, it works! ;)
Ok, I'll try it right now then. :)
I'll click install once I'm done. Don't worry ;)
Chris M
05-27-2003, 05:35 PM
Lol!:)
I wrote my own only a few days ago, after vB.org said they turned re-directions off...
I decided that not allowing users to choose re-directions or not was a bit poor, so I coded something almost exactly like this:)
Good job;)
Satan
This works! Nice. Thanks man.
Kars10
05-27-2003, 05:44 PM
Glad you Guys like this Hack!
Thanks for installing... :)
Kars
Koutaru
05-27-2003, 08:22 PM
Niiiice -- will install in a bit :)
Boofo
05-27-2003, 09:24 PM
You know me, Karsten, "if you build it, I will install". ;)
Chris M
05-27-2003, 09:27 PM
* Chris M gets Karsten to build a "Boofo destroying hack" that destroys Boofo when installed
:p
Satan
Boofo
05-27-2003, 09:29 PM
Think about that, Chris. Do you think you are the first person that has come up with that idea? And I am still here after 49 years? Give it your best shot! ;) :p
squawell
05-28-2003, 12:23 AM
nice hack i like it.....
Thankz Kars10....:D:D:D:D
* squawell installed...
Kars10
05-28-2003, 06:03 AM
@ Boofo, hehehe...i know you!! Thanks Buddy! ;)
@ Hellsatan, i work on it! :p
@ Squawell, glad you like it!! :D
Kars
MindTrix
05-28-2003, 12:01 PM
Newbie Question :p If redirections are turnt off then what xactly happens? like after posting ur usually told ur goin to ur post etc etc, wut happens instead?? so 4 my dumbness. Also on my board after makin a new thread it posts the new thread but takes me bck to makin a new thread screen. Would installin this hack fix that? lol :s
Kars10
05-28-2003, 12:06 PM
@ MindTrix, here on vBulletin.org the Redirections are turned of. So you see what happens here.
With your second Problem, normaly after Posting you should be redirected to your new Thread.
Kars :)
MindTrix
05-28-2003, 05:29 PM
@ kars10 yea i should but i dont :p i posted in support but got nuttin :(
NE wayz guess ima just install this hack should be cool
**Wacks install**
Tigga
05-28-2003, 05:56 PM
Damn, I wish I had seen or thought about this before I removed most of the redirects from my site. Oh well, nice idea. :)
Austin Dea
05-28-2003, 07:59 PM
NICE!
/me installs
Question: When a new user registers, is the option set to On or Off?
If I change the query to DEFAULT '1', will that make it so when people register redirects are on?
Or do I just have to change value="yes" to value="no" in the register templates?
todd.o.callen
05-29-2003, 07:39 PM
Is this confirmed?
OH SH!+
By redirections, are we talking about the function that allows you to relocate a thread but leave a redirect? If so, I am REALLY MAD!!
Our corporate boards make heavy use of redirections to make it appear like a thread is in multiple spots.
Will this hack FIX (and I do mean FIX) vB3.0 ??
Tigga
05-29-2003, 09:01 PM
todd.o.callen - No, it will give your users the option to remove the redirect pages after posting, editing their profiles, and etc... Like the page that says "Thank you for posting. You are now being taken to your post. Bla bla bla..."
todd.o.callen
05-29-2003, 09:15 PM
whew!
Sam FT
06-05-2003, 07:58 PM
Hey Kars I really like this hack alot, I have installed many of your hacks for my website. Just one error...it is the modifyoptions template. Right now the hack the background color as "#13486D", but it should be this { firstaltcolor} (minus the space in front of it). You may have the firstaltcolor in it, but forgot to add a space in front of it, so now it has parse itself. Just a minor error, no biggy. Thanks for creating this hack...because I hate the redirection but some of my members do...
eXtremeTim
06-09-2003, 09:51 PM
Nice hack i might install this one or possible just turn them off all together.
David Bott
07-03-2003, 08:33 PM
Hi All...
I seems to have an issue now with this hack installed. FOr some reason, if you have it set to NOT show the redirect page, it affect the SUBSCRIBE TO THIS THREAD link and also the MARK FORUM AS READ link. It comes back with a...
"No forum specified. If you followed a valid link, please notify the webmaster"
The link looks like this...
http://www.tivocommunity.com/tivo-vb/showthread.php?s=&threadid=120629
If you have it set to SHOW the redirect, no issue.
Please advise. Thank you.
David Bott
07-03-2003, 08:47 PM
Well the link did not turn out right...sorry. But the issue seems to be in the functions.php file. But I can not figure out way.
Parker Clack
07-03-2003, 09:13 PM
David:
I am not having an issue with either one. They all work just fine.
Parker
David Bott
07-03-2003, 09:21 PM
I don't get it, works fine showing the redirect, but does not whe nI have it off. Here is the code I have in that section of functions.php...
// ###################### Start standardredirect( #######################
function standardredirect($message="",$url="") {
// print standard redirect page
global $header,$bbuserinfo,$redirectonoff,$footer,$headin clude,$headnewpm,$toplinks,$forumjump,$timezone,$b btitle,$hometitle,$bburl,$homeurl,$copyrighttext,$ privacyurl,$contactuslink,$webmasteremail,$technic alemail,$faxnumber,$address,$companyname,$titleima ge,$replyimage,$newthreadimage,$closedthreadimage, $lastvisitdate,$timenow,$session;
$title=$bbtitle;
$pagetitle = "$title";
$errormessage = $message;
// User selectable Redirection by Kars
$url = str_replace("\"", "", $url);
if ($bbuserinfo[redirectonoff]==1) {
$redirectonoff = eval("dooutput(\"".gettemplate("standardredirect")."\");");
}else{
$redirectonoff = header ("Location: $url");
}
exit;
}
// User selectable Redirection by Kars End
The link looks good when I however over it, but when I click it, it removes the action part of the statement.
Note...the action does occure however...I am unsubscribed from the thread for example.
Anyone?
David
David Bott
07-03-2003, 10:34 PM
Also seems to have the same error with the buddy link. Both Subscribe and Buddy use the Member2.php file. I am jsut at a loss and can not seem to locate the issue.
Parker Clack
07-04-2003, 01:24 PM
David:
I still don't have any problems with this script on our forum. It works as it should either with the redirection turned off or on.
Parker
David Bott
07-04-2003, 01:34 PM
Thanks Parker....Pondering. Maybe it has something to do with the hack "CHANGE SUBSCRIBE LINK TO UNSUBSCRIBED IF ALREADY SUBSCRIBED HACK" by Logician or something for it does also modify member2.php. I see yuo do not use that one, so, maybe, just maybe.
Dang! For I liked this one.
David Bott
07-05-2003, 03:00 AM
Ok...Here is the scoop...
For some reason I was getting some extra code added into the URL.
When I have it turned ON (so you get the redirect page)...I get...(Note shortened so it all would show)
http://DOMAIN/tivo-vb/showthread.php?s=&threadid=5
When OFF....I get...
http://DOMAIN/tivo-vb/showthread.php?s=&-amp;threadid=5
Not sure where the extra "amp;" is being added. (Spaced '-' added for the site stripped it as it should have.
So, to get around this, I added a second str_replace line to remove it.... My code now looks like this for that area...
// User selectable Redirection by Kars
$url = str_replace("\"", "", $url);
$url = str_replace("amp;", "", $url);
As mentioned, I have NO CLUE where it was coming from. IF anyone does, please be so kind to let me know. :) Hack does now work for me as needed.
Thanks
David
Drowned
07-09-2003, 05:18 PM
Hmmm... after replying to a thread, the link seems to include the post ID but not the part for the bookmark, so it only redirects you to the thread, but not to the last post you made... what part must I modifiy to add that?
Drowned
07-15-2003, 01:58 PM
Anybody? :(
dstruct2k
08-12-2003, 03:36 PM
Just add #post$post[postid] to the end of the link, I think... If I remember right...
Tae-Hwan
11-01-2003, 12:29 PM
i too am having a problem with the & error that david bott described.
Just add #post$post[postid] to the end of the link, I think... If I remember right...
I am trying to make this sitewide so all I am doing is changing the redirect code to use the header call. But I am having the same issue, I can't for the life of me figure out why header ("Location: $url"); produces no #post7879 to the end of the url but the redirect template that it submits to does and the same $url is used. Completely baffles me. I tried playing with the code in the quote but I couldn't get it to work, any ideas?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.