Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-07-2019, 10:18 PM
Panzer Max's Avatar
Panzer Max Panzer Max is offline
 
Join Date: May 2006
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Changing over to https

So, finally started the fun of getting our site switched over to https. Forum is working, most of the rest of the site is getting the sacred padlock.

But the forum does have ONE image that is mysteriously showing up as not cooperating.

Quote:
An image with an insecure url of "http://www.subsim.com/radioroom/images/icons/icon1.png" was loaded on line: 742 of https://www.subsim.com/radioroom/index.php.
Ok, so it sound like maybe that one icon was hardcoded into a template or php file somewhere, god only knows why. I have searched all the templates for icon1.png and http://www.subsim.com.... nothing!

I've checked the Styles CSS and MainVar section... nada!

I've dug through the php files. Cannot find it.

So, the friendly folks at vBulletin suggested using a 301 redirect and that will work, but now I want clean up as much as I can, and I gots to know, just where can I find where vBull sets the "thread icons" ?>?

Edit: Wayne+Omnibus pointed me in the right direction, vBulletin Options/Thread Display Options
Attached Images
File Type: jpg iconhighlited.JPG (18.7 KB, 0 views)
Reply With Quote
  #2  
Old 07-08-2019, 11:20 AM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tip: create a style replacement variable in your styles to replace http://www.subsim.com with https://www.subsim.com
Reply With Quote
  #3  
Old 07-08-2019, 04:41 PM
Panzer Max's Avatar
Panzer Max Panzer Max is offline
 
Join Date: May 2006
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, Dave. Yes, we did that. It was that one remaining default icon setting, I could swear I went through all the VB settings, I don't know how I missed that one, it was pretty obvious.
Reply With Quote
  #4  
Old 07-08-2019, 06:34 PM
In Omnibus's Avatar
In Omnibus In Omnibus is offline
 
Join Date: Apr 2010
Location: Inside A Blade Server
Posts: 840
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Panzer Max View Post
Thanks, Dave. Yes, we did that. It was that one remaining default icon setting, I could swear I went through all the VB settings, I don't know how I missed that one, it was pretty obvious.
Like Wayne said in the other forum it's easy to miss. vB3.x wasn't exactly laid out with ease of use in mind.
Reply With Quote
  #5  
Old 07-08-2019, 09:00 PM
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Posts: 1,314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In that case, add this to your headers

Code:
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
More info: CSP: upgrade-insecure-requests - HTTP | MDN

To sum it up, if a asset can be served via SSL (https) and isn't, then adding this tag will force it to be served via SSL.
Reply With Quote
  #6  
Old 07-08-2019, 09:28 PM
Panzer Max's Avatar
Panzer Max Panzer Max is offline
 
Join Date: May 2006
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by final kaoss View Post
In that case, add this to your headers

Code:
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
More info: CSP: upgrade-insecure-requests - HTTP | MDN

To sum it up, if a asset can be served via SSL (https) and isn't, then adding this tag will force it to be served via SSL.
Ok, kaoss, I'm on it!

Quote:
Originally Posted by In Omnibus View Post
Like Wayne said in the other forum it's easy to miss. vB3.x wasn't exactly laid out with ease of use in mind.
First let me thank you again! So nice to help.

I'm still shaking my head My first thought was to check the style templates with a search. Then we checked the StyleVars and CSS. Then I went through the various vBulletin Options, one at a time, looking for anything related to that icon, or anything with an http:// prefix. I must have skipped that one, and never looked back. I spent several hours checking php files, wow, it was so easy but I missed it!
Attached Images
File Type: jpg thread_display.JPG (50.2 KB, 0 views)
Reply With Quote
  #7  
Old 08-10-2019, 12:14 AM
kevinh kevinh is offline
 
Join Date: May 2007
Location: Melbourne, Australia
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Panzer Max View Post
So, finally started the fun of getting our site switched over to https.
Hi Panzer Max, would you mind briefly explaining the steps to switch a vBulletin site to https ?
Reply With Quote
  #8  
Old 08-10-2019, 07:03 AM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1. Buy SSL Cert
2. Install on server.
3. Setup apache/nginx whatever your running to serve the site in SSL & force a 301 to https
4. Change forum URL to https in the admincp
5. Fix any issues related to images etc by using to dev console in your browser, which could be smilies, post icons etc.
Reply With Quote
  #9  
Old 08-10-2019, 12:24 PM
Panzer Max's Avatar
Panzer Max Panzer Max is offline
 
Join Date: May 2006
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kevinh View Post
Hi Panzer Max, would you mind briefly explaining the steps to switch a vBulletin site to https ?
Hi Kevin, in our case, our data center manager called and said he had to upgrade our php to a higher version for security. Not being sure our 3.8 forum would actually work on newer versions of php, we had been hanging on to an outdated version to keep 3.8 running. We don't know if there were compatibility errors with vB, but he said he went through the whole site and fixed a few php errors.

At some point in the php upgrade he installed the SSL certificates through cPanel.

This explains the nginx change snakes is referring to. I did not make this change, I assume the DC tech did this in conjunction with the SSL certificates, but I will need to confirm.

Our admin changed the htaccess file to force the redirect to https

Then I got the job of searching the templates for http://www.oursite.com and changing to https://www.oursite.com
I also checked all the php pages in the vB folders for any mention of http

Last, we have a team who have been going through all 1800 html and php pages on site to find and replace http://www.oursite.com with https://www.oursite.com

Then some spot checking with https://www.whynopadlock.com/
Reply With Quote
  #10  
Old 10-29-2019, 05:57 AM
kevinh kevinh is offline
 
Join Date: May 2007
Location: Melbourne, Australia
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi snakes1100 and Panzer Max, thanks for the advice and sorry about the late response, juggling too many things at the moment
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:02 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.08198 seconds
  • Memory Usage 2,284KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete