vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - HTTP Error Response Codes by BOP5 (Soft 404 Solution) (https://vborg.vbsupport.ru/showthread.php?t=309415)

geovadim 02-26-2015 02:22 PM

Great mod. Thanks.

hilaryl 04-14-2015 01:02 AM

Our PHP version is currently 5.2.11 - what can we do to effectively get the same result as this mod?

BirdOPrey5 04-14-2015 07:06 AM

It may work on PHP 5.2 but it works best on PHP 5.4 or higher. You should try it, I don't think there is any major difference between 5.3 and 5.2 and I know it works OK on 5.3.

hilaryl 04-15-2015 12:03 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2543026)
It may work on PHP 5.2 but it works best on PHP 5.4 or higher. You should try it, I don't think there is any major difference between 5.3 and 5.2 and I know it works OK on 5.3.

Thanks.

I was also wondering - I only wanted to change the response header for the No Permission pages, and just leave the other pages for now.

Is there a way I can do this? With the plugin, or just by creating my own plugin for those particular pages?

Cheers

BirdOPrey5 04-15-2015 07:34 AM

Quote:

Originally Posted by hilaryl (Post 2543064)
Thanks.

I was also wondering - I only wanted to change the response header for the No Permission pages, and just leave the other pages for now.

Is there a way I can do this? With the plugin, or just by creating my own plugin for those particular pages?

Cheers

Easiest way would be to set the options you don't want to change to 200 in the mod settings. 200 is what they would be normally. Keep only the No Permission pages as 403/404 whatever you choose.

hilaryl 04-29-2015 12:14 AM

Just thought I would update to say that I have successfully implemented this plugin in vBulletin 4.1.9 - running PHP 5.2.11.

All response headers are returning as per the settings.

Cheers!

hilaryl 05-14-2015 11:44 PM

Hi BOP5,

I've added the plugin to our site and all is going well.

I've found that in addition to pages that require a user login to access particular areas, we also have pages where the administrator sets a specific password just for that forum.

With the plugin installed the pages header response code is returning a 404, where as it would be better if this was a 403 response, like the other login required pages.

Is that possible?

We only have a small amount of these pages, so it's not a big deal - just thought I would ask.

Thanks,
hilaryl

Stratis 05-15-2015 04:26 PM

Tested in PHP 5.2.17

PHP Code:

Date:Fri15 May 2015 18:20:28
GMTServer
:Apache
X
-Powered-By:PleskLin
Cache
-Control:private
Pragma:private
X-UA-Compatible:IE=Edge
X
-PHP-Response-Code:404 

I will see after some days with google, thank you very much, I appreciate this.

BirdOPrey5 05-15-2015 04:35 PM

I'm sure it's not impossible but it isn't something I can implement quickly. VB just uses the generic error call to display the request for the password so the response code will be whatever you have configured for generic errors, 404 by default.

To be honest very few people use forum passwords so I don't think I'll be adding functionality just for forum passwords.

hilaryl 05-17-2015 09:36 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2545574)
I'm sure it's not impossible but it isn't something I can implement quickly. VB just uses the generic error call to display the request for the password so the response code will be whatever you have configured for generic errors, 404 by default.

To be honest very few people use forum passwords so I don't think I'll be adding functionality just for forum passwords.

Hi BOP5,

That's cool - I wasn't sure how that page was generated, but that makes sense as to why it's returning the 404.

Thanks for your quick reply.

Cheers


All times are GMT. The time now is 11:48 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.01246 seconds
  • Memory Usage 1,741KB
  • 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_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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