![]() |
Secure or not Secure thats my question
is it possible to have a forum both HTTPS and HTTP
i know you can have it but can you have it without the privacy reports when you switch from one to the other ? i get alot of privacy reports when i am not using https and that shows up all the images as being https cheers i would like to have the option of either if possible Regards Mickie |
Any item included via HTML on a HTTPS page that is on a HTTP URL will generate a warning if the user has selected for there browser to warn them.
|
ok then i was thinking this
making 2 sections of the forums like this forum forums and editing the php file that calls the settings db and the style db calls so it hard calls maybe settings and settings1 and style and style1 (settings1 and style1 are copies of settings and style from the DB) now they are complete copies of each other apart from the fact that one has https and the other has http URLS basicly i dont like all the privacy reports stopping my https and vice versa anyway thats what i am after doing and if i had the time i would probably do it myself but i dont know if its a problem with vbulletin to run to copies even though they are the same forum ? and also i dont know which files and i am sure it will be lots of them aswell |
Hmm ...
What about replacing all hard-coded http:// in the PHP-Files & Templates with $protocol and then set $portocol at the beginning of global.php to either http:// or https:// depending on the value of getenv('SERVER_PORT')? (And for the URLs in array vboptions too) This way you would not have to duplicate anything but it should still have http or https only. |
see i knew there was an easier way lol i can code a small amount of php and in my spare time i teach myself :)
i have seen a hack b4 that used the same server_port code so help me out with this then please m8 PHP Code:
|
ok after more attempts i came up with this (with help from another source aswell)
but i cant get it to work anyone have any ideas why i am getting parse errors ? PHP Code:
|
PHP Code:
PHP Code:
|
cheers m8 i will give that a try.
and try and get it working with the styles lol thanks again |
i was just thinking does the style take the vboptions if there is no hard coded http in the style settings ??
i.e it normally would look like /images/misc/ if you get my drift ? |
If its not a full URL, ie its /images/misc and not http://mydomain.com/images/misc then it will automaticlly use HTTPS.
|
PHP Code:
so i changed the above code around this is not working :(, it does not change the url as it still calls https and changes over to https when i just visit from http i hope that makes sense ? thanks again for your help Regards Mickie |
Where have you added this code?
|
forums/global.php
i hope thats the right one lol |
Should be the right place - if you put it somewhere after
PHP Code:
|
ahhh i c i put it at the bloody top of the file thanks very much for your insight i will give it a try now :)
hopefully this is useful for others aswell as me :) |
Brilliant this is almost complete :)
all i gotta do is sort out the navbar as that must be calling stuff not using the vboptions i think thanks again its gr8 now you can switch between https or http with no privacy reports and just a padlock or no padlock now i gotta work out how to port this into photopost and thats the whole site covered ;) Regards Mickie |
Right the NavBar is being a right pain in the backside :(
i have gone through it and found all the hrefs are pointing to $vboptions[bburl]/etc/etc and i am getting the MS popup to display non secure items :( i checked all the src= and they are pointing to the $style whatever ? and the links on the navbar when i am in https still show http ? but everywhere else on the site is fine ? .. can secure sites not use java ? thanks for all the help people Regards Mickie |
@MickieD
Can you post the URL of your board? So I could check which elements (Images, etc.) cause problems. |
cee we are moving server and its on my spare box (linux) at home waiting to be transfered but i know the only problem is the navbar
but i have looked at the navbar and they all seem to have vbulletinoptions for the links but i did check the other navbar template and it has a $nav_url insert and i cannot find any reference to this anywhere ? thanks again i cant move until i fix the ssl and i am not making much progress, but thanks for your help its much appreicated :) Regards Mickie |
anyone got any ideas why my https wont work with the navbar ??
thanks in advance :) |
$nav_url is being used in function construct_navbits () in file includes/functions.php
I think i'll make a test setup to find out if there are problems with the navbar. |
thanks very much kirbyDE thats really kind of you m8y
i want to install my forums by thursday so i am porting them tomoz and i will give you a link and you can see if you like on my setup but wont be until tomorrow again thanks m8 i really need to try and get this sorted :) |
Hmm ... I just setup SSL for my Testboard and it seems to work - even without putting the bburl-replacement-code into global.php
I don't get security warnings. Did you make any changes to the default style? |
i have done quite a few bits to templates lol
let me add the default style as a new style and try it if not then i give you link :) |
i took out the hack you helped me create
and the bloody thing works ? im a little lost as to how but it works completely ? no privacy no errors ? i dont understand it ?, but im happy it works though lol thanks again for all your help |
All times are GMT. The time now is 01:09 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|