vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Redirect messages (https://vborg.vbsupport.ru/showthread.php?t=213457)

squishi 05-12-2009 04:55 AM

Redirect messages
 
How does the vbulletin redirect work?

Let's say I have this in a plugin's php code:

PHP Code:

if ($_POST['sent'] == '1') {
 
$vbulletin->url '/index.php' $vbulletin->session->vars['sessionurl'];
 eval(
print_standard_redirect('redirect_postthanks_nopermission'truetrue));



How do I change the redirect message?
I want to change the "redirect_postthanks_nopermission".
It's not a phrase, nor is it a template, though.

I want the end result to be:
PHP Code:

if ($_POST['sent'] == '1') {
 
$vbulletin->url '/index.php' $vbulletin->session->vars['sessionurl'];
 eval(
print_standard_redirect('redirect_myownredirect'truetrue));


with the redirect printing a my own adjusted redirect message.
I don't want to do this for all the redirects on the forum, only for the redirect of this plugin.

Dismounted 05-12-2009 06:41 AM

The phrase name is the first argument minus "redirect_".

squishi 05-12-2009 07:48 AM

Oh, okay. I was searching for "redirect_" in the phrases. :rolleyes:
Thank you for the quick help!

--------------- Added [DATE]1242148521[/DATE] at [TIME]1242148521[/TIME] ---------------

Still having a problem with this.

I added a phrase called "myownredirect" and used the second php code.
But I get the message
Quote:

Could not find phrase 'myownredirect'.
I know the phrase is there, and I double-checked its spelling.

squishi 06-16-2009 06:56 PM

I still am not able to get this to work!

Here's the redirect:
PHP Code:

 $vbulletin->url '/index.php';
 eval(
print_standard_redirect('redirect_myownredirect'truetrue)); 

And here's details about the phrase:
Quote:

GLOBAL Phrases, name: 'myownredirect'

Dismounted 06-17-2009 06:24 AM

The phrase should be a "Front-End Redirect" phrase.


All times are GMT. The time now is 10:36 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.02327 seconds
  • Memory Usage 1,726KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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