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)

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 07:07 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.01176 seconds
  • Memory Usage 1,729KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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