make button (static / numbered) served via https

Discussion in 'General Help' started by PPNSteve, Oct 6, 2018.

  1. PPNSteve

    PPNSteve PPN Top 50

    currently hqave our VL and the button image dirs set to a https url but when button.php processes the link, it serves a http image (not the expected https).

    What can we do to get it to use https?

    example headers:


    VL URL:

    sample button link code:
    <a href=""><img src=";buttontype=rank" alt="PPN Top 50"></a>
    cajkan likes this.
  2. Basti
    • Staff

    Basti Administrator Staff Member

    Have a look in your admin settings. Looks like you didn't updated the button urls to https yet
    cajkan and Mark like this.
  3. PPNSteve

    PPNSteve PPN Top 50

    Pretty sure its using HTTPS


    Attached Files:

  4. Basti
    • Staff

    Basti Administrator Staff Member

    Was the image in your first post already there when you posted it? How could I miss that? I get old....

    Have a close look at the request and response headers. Your member requested http, but got a 302 redirect for the image url to https.

    I see, he indeed use the button.php url, please post your button.php here to investigate

    P.s your site returns error 500 for me today
    Last edited: Oct 22, 2018
  5. PPNSteve

    PPNSteve PPN Top 50

    Yup sorry if i wasn't being clear.. the requests are definitely HTTPS however the actual button image is served via HTTP..
    code tag didn't allow post to process.. txt file attached..

    OK apparently switching the server over to PHP 7.x breaks the topsite script.. set domain back to php5

    Attached Files:

  6. Basti
    • Staff

    Basti Administrator Staff Member

    Did you modified button.php?

    I see some non default redirects which should not happen. e.g should normally not redirect to a rank button unless you have buttontype=rank in it
    This happens because of the last statement in here and a another
    if ($_GET['buttontype'] == 'rank' || $_GET['buttontype'] == 'stats' || !isset($_GET['buttontype'])) {
    Normally these members should get the default static button, not a rank one.
    This is not really related but pls update your button.php with the attached code and instead put the redirect into .htaccess if you need that functionality

    button.php is from vl 1.6 with some error fixes as well

    Any other custom stuff? button related plugins? custom htaccess code? redirects set in cpanel?

    It seems you have a https redirect in htaccess, is that correct? can you post that one?
    If you want you can also drop me ftp info so I can verify stuff easier and maybe test

    Attached Files:

    Last edited: Oct 30, 2018

Share This Page