Post by sw!tch » Sun Feb 16, 2020 2:37 am

Khwezi wrote:
Sun Feb 16, 2020 2:03 am
@sw!tch you are correct because when i modify this code and remove the (s) i get https: yet the is something i am missing because the filter still will not work
There are probably more places with similar code. If it's also affecting the filters, then I think you will find similar code in the module controller, that controls the filters. Not sure why some theme developers do this, it's really not necessary.

What does the https code snippet you are editing look like?

Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by Khwezi » Mon Feb 17, 2020 9:03 pm

sw!tch wrote:
Sun Feb 16, 2020 2:37 am
Khwezi wrote:
Sun Feb 16, 2020 2:03 am
@sw!tch you are correct because when i modify this code and remove the (s) i get https: yet the is something i am missing because the filter still will not work
There are probably more places with similar code. If it's also affecting the filters, then I think you will find similar code in the module controller, that controls the filters. Not sure why some theme developers do this, it's really not necessary.

What does the https code snippet you are editing look like?
if (isset($this->request->server['HTTP_HOST']) && isset($this->request->server['REQUEST_URI'])) {
$url = ($this->request->server['HTTPS'] ? 'https://' : 'http://') . $this->request->server['HTTP_HOST'] . $this->request->server['REQUEST_URI'];
} else {
$url = '';
}

if (isset($this->request->server['HTTP_REFERER'])) {
$referer = $this->request->server['HTTP_REFERER'];
} else {
$referer = '';

Newbie

Posts

Joined
Wed Apr 11, 2018 4:10 pm

Post by Khwezi » Mon Feb 17, 2020 9:07 pm

if ($this->request->server['HTTPS']) {
$server = $this->config->get('config_ssl');
} else {
$server = $this->config->get('config_url');

Newbie

Posts

Joined
Wed Apr 11, 2018 4:10 pm

Post by Khwezi » Mon Feb 17, 2020 10:28 pm

sw!tch wrote:
Sun Feb 16, 2020 2:37 am
Khwezi wrote:
Sun Feb 16, 2020 2:03 am
@sw!tch you are correct because when i modify this code and remove the (s) i get https: yet the is something i am missing because the filter still will not work
There are probably more places with similar code. If it's also affecting the filters, then I think you will find similar code in the module controller, that controls the filters. Not sure why some theme developers do this, it's really not necessary.

What does the https code snippet you are editing look like?
The config.pnp snippet looks as follows
// HTTP

define('HTTP_SERVER', 'https://usaamw.co.za/');

// HTTPS

define('HTTPS_SERVER', 'https://usaamw.co.za/');

Newbie

Posts

Joined
Wed Apr 11, 2018 4:10 pm

Post by Khwezi » Sat Feb 22, 2020 5:34 pm

sw!tch wrote:
Sun Feb 16, 2020 2:37 am
Khwezi wrote:
Sun Feb 16, 2020 2:03 am
@sw!tch you are correct because when i modify this code and remove the (s) i get https: yet the is something i am missing because the filter still will not work
There are probably more places with similar code. If it's also affecting the filters, then I think you will find similar code in the module controller, that controls the filters. Not sure why some theme developers do this, it's really not necessary.

What does the https code snippet you are editing look like?
@ Sw!tch, How can I ever thank you enough for all you've done? i'm forever grateful.
You helped me right when I needed help most. Your are awesome.

Newbie

Posts

Joined
Wed Apr 11, 2018 4:10 pm

Post by xxvirusxx » Sat Feb 22, 2020 6:36 pm

Khwezi wrote:
Sat Feb 22, 2020 5:34 pm
@ Sw!tch, How can I ever thank you enough for all you've done? i'm forever grateful.
You helped me right when I needed help most. Your are awesome.
Buy/donate him few coffees, beers...

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România
Who is online

Users browsing this forum: No registered users and 10 guests