vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   404 header on empty threads (https://vborg.vbsupport.ru/showthread.php?t=286662)

motorhaven 04-18-2013 09:24 AM

If you put the above in init_startup it messes up tab ids and tab text. You'll get something like this in your tabs:

#vbtab_forum# #vbflink_bbmenu# #vbflink_newposts# #link_mzew_621# #vbflink_pms# #vbflink_faq
etc.

tpearl5 09-30-2013 04:43 PM

has anyone found a better way to do this?

M.C. 10-01-2013 09:09 AM

there is a hack for error pages: https://vborg.vbsupport.ru/showthread.php?t=281410

tpearl5 10-01-2013 12:49 PM

Quote:

Originally Posted by M.C. (Post 2449237)

That's similar, but not the same thing as discussed above. The problem is that deleted threads don't return a 404.

M.C. 10-02-2013 05:17 AM

Ahh.. Ok, sorry...

May be is better to edit template and add redirector?

So I use same hack I mention.

Now edit template:
STANDARD_ERROR

find:
Code:

{vb:raw headinclude}
replace:
Code:

<vb:if condition="$show['permission_error'] OR $show['inlinemod_form']">{vb:raw headinclude}<vb:else />
        <!-- redirect -->
        <script type="text/javascript">
        <!--
        location.replace("http://path_to_your_error_page/forum/404.php"); -->
        </script>
        <noscript>
        <meta http-equiv="refresh" content="0; url=http://path_to_your_error_page/forum/404.php">
        </noscript>
        <!-- redirect -->
        </vb:if>


synseal 04-23-2014 03:52 PM

Hi did anyone figure out how to fix this issue, I see many threads about it but no working solutions? tia.

vbresults 04-23-2014 04:34 PM

Quote:

Originally Posted by motorhaven (Post 2417101)
If you put the above in init_startup it messes up tab ids and tab text. You'll get something like this in your tabs:

#vbtab_forum# #vbflink_bbmenu# #vbflink_newposts# #link_mzew_621# #vbflink_pms# #vbflink_faq
etc.

I came up with a fix to this, PM for more details.


All times are GMT. The time now is 02:09 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.01100 seconds
  • Memory Usage 1,728KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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