vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   redirect after page save not working? (https://vborg.vbsupport.ru/showthread.php?t=229826)

Wired1 12-09-2009 06:51 AM

redirect after page save not working?
 
Anyone have a snippet of code for redirecting the user to a Front-End Redirect Message after they save a page (think saving profile fields)? Can't get it to work for the life of me.

Here's some snippets of what I've tried (not each line at the same time obviously):

PHP Code:

eval(print_standard_redirect('redirect_updatethanks'));
eval(
print_standard_redirect('redirect_updatethanks'truetrue));
eval(
print_standard_redirect('redirect_updatethanks'truetrue, -1)); 

Note that regardless of those lines being commented out it always comes back to the user.php page. Also can't redirect back to the same page like I used to.

Code:

$vbulletin->url = 'profile.php?' . $vbulletin->session->vars['sessionurl_q'];
Something like this should work, but doesn't. What am I missing?

Almotmaiz.Net 12-09-2009 11:04 AM

workin for me ! used on my products
PHP Code:

$vbulletin->url 'myscript.php?' $vbulletin->session->vars['sessionurl'];
eval(
print_standard_redirect('myscript_phrase'));
exit; 


Wired1 12-09-2009 10:32 PM

No go. Just doesn't make any sense. Odd thing is checking some of the vB 4 code it has the same code but isn't working either (3 different browsers as well). Code's the same as 3.8.x, so no idea what's going on. Isn't a mod breaker, just a nice thing to have when a page is saved.

Almotmaiz.Net 12-10-2009 06:37 AM

can you post all code to find where is problem please ?


All times are GMT. The time now is 08:48 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.01098 seconds
  • Memory Usage 1,716KB
  • 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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