vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   User selectable Redirections (https://vborg.vbsupport.ru/showthread.php?t=53457)

Kars10 05-26-2003 10:00 PM

User selectable Redirections
 
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

[high]!!! PLEASE BACKUP YOUR FILES AND DATABASE, AND IF YOU LIKE THIS HACK LICK INSTALL!!![/high] :D

Have Fun Kars

007 05-27-2003 05:04 PM

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! ;)

[high]* MetroSports82 licks install![/high]

Kars10 05-27-2003 05:05 PM

@ 006, it works! ;)

007 05-27-2003 05:07 PM

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

007 05-27-2003 05:42 PM

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

[high]* Chris M gets Karsten to build a "Boofo destroying hack" that destroys Boofo when installed
[/high]

: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

[high]* squawell installed...[/high]

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...

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...

Code:

  // ###################### Start standardredirect( #######################
function standardredirect($message="",$url="") {
  // print standard redirect page

  global $header,$bbuserinfo,$redirectonoff,$footer,$headinclude,$headnewpm,$toplinks,$forumjump,$timezone,$bbtitle,$hometitle,$bburl,$homeurl,$copyrighttext,$privacyurl,$contactuslink,$webmasteremail,$technicalemail,$faxnumber,$address,$companyname,$titleimage,$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...

Code:

  // 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.

joor 11-11-2003 05:19 AM

Quote:

Originally Posted by dstruct2k
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?


All times are GMT. The time now is 04:36 AM.

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.01126 seconds
  • Memory Usage 1,802KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (37)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete