vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Standard redirect not themed (prev. prob. solved) (https://vborg.vbsupport.ru/showthread.php?t=317811)

Dr.CustUmz 03-17-2015 09:37 AM

Standard redirect not themed (prev. prob. solved)
 
1 Attachment(s)
i solved my last issue by going about it another way:
using:
Code:

if ($_REQUEST['do'] == 'drcfl_on' OR $_REQUEST['do'] == 'drcfl_off')
{
  require_once(DIR . '/includes/adminfunctions.php');
        require_once(DIR . '/includes/functions_bigthree.php');
        if($_REQUEST['do'] == 'drcfl_off')
        {
                $db->query_write("
                UPDATE " . TABLE_PREFIX . "setting
                SET value = '0'
                WHERE varname = 'drc_fl'
        ");
        }
       
        if($_REQUEST['do'] == 'drcfl_on')
        {
                $db->query_write("
                UPDATE " . TABLE_PREFIX . "setting
                SET value = '1'
                WHERE varname = 'drc_fl'
        ");
        }
        build_options();
        eval(print_standard_redirect('redirect_' . $_REQUEST['do'], true, true));
}

but im having to put this in moderation_start and do my link to it like
Code:

<a href="moderation.php?do=drcfl_on">Switch</a>
or else the redirect doesnt display the template (just a white page with text)

this should (IMO) be in global_start and my links like:
Code:

<a href="?do=drcfl_on">Switch</a>
but thats not allowing the redirects to be in the theme's box
https://vborg.vbsupport.ru/attachmen...1&d=1426588540

any suggestions to get this in global or atleast somwhere where i dont have to include another filename in my links like i have "moderation.php?" now

and yes this is something that will be on every page, thought i'd throw that out there


All times are GMT. The time now is 01:11 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.01095 seconds
  • Memory Usage 1,711KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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