*

Fabio Massaro

  • *****
  • 306 posts
I've added the banners to my ad site
but when I go to click on the banner
he does not address me on the client's website but he brings me back in this link
http://miosito.com/index.php?baAdvertId=2&baAdvertRedirect=http%3A%2F%2Fwww.oksubitissimo.com


WebSite / index.php? baAdvertId = 2 & baAdvertRedirect = http% 3A% 2F% 2Fwww.oksubitissimo.com

For privacy reasons, I entered miosito.com but the code does not exist after you /index.php?baAdvertId=2&baAdvertRedirect=http%3A%2F%2Fwww.oksubitissimo.com
« Last Edit: February 11, 2018, 01:04:42 PM by Fabio Davide Massaro »

*

MB Themes

Re: I've added the banners to my ad site but when I go to click on the banner
« Reply #1 on: February 11, 2018, 08:50:54 PM »
@Fabio
Is this your homepage?
https://sedo.com/search/details/
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

MB Themes

Re: I've added the banners to my ad site but when I go to click on the banner
« Reply #2 on: February 11, 2018, 08:52:04 PM »
Also try this.
In index.php of this plugin find:
Code: [Select]
  header('Location:' . Params::getParam('baAdvertRedirect'));

Replace with:
 
Code: [Select]
header('Location:' . urldecode(Params::getParam('baAdvertRedirect')));
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Fabio Massaro

  • *****
  • 306 posts
Re: I've added the banners to my ad site but when I go to click on the banner
« Reply #3 on: February 11, 2018, 09:39:22 PM »
inserted as you said but nothing does not work

*

MB Themes

Re: I've added the banners to my ad site but when I go to click on the banner
« Reply #4 on: February 11, 2018, 09:53:04 PM »
@Fabio
It's bit strange because it works on demo:
https://plugins2.abprofitrade.eu/index.php?baAdvertId=2&baAdvertRedirect=http://www.flixbus.com

is plugin installed?
do you have something in your error log?

You may also try to replace this code:
Code: [Select]


// ADVERT REDIRECT
if(Params::getParam('baAdvertRedirect') <> '' && Params::getParam('baAdvertId') <> '' && Params::getParam('baAdvertId') > 0) {
  if(!osc_is_admin_user_logged_in()) {
    ModelBA::newInstance()->updateClicks(Params::getParam('baAdvertId'));
  }

  header('Location:' . Params::getParam('baAdvertRedirect'));
}



With:

Code: [Select]
// ADVERT REDIRECT
function ba_banner_redirect() {
if(Params::getParam('baAdvertRedirect') <> '' && Params::getParam('baAdvertId') <> '' && Params::getParam('baAdvertId') > 0) {
  if(!osc_is_admin_user_logged_in()) {
    ModelBA::newInstance()->updateClicks(Params::getParam('baAdvertId'));
  }

  header('Location:' . Params::getParam('baAdvertRedirect'));
}
}

osc_add_hook('init', 'ba_banner_redirect');
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Fabio Massaro

  • *****
  • 306 posts
Re: I've added the banners to my ad site but when I go to click on the banner
« Reply #5 on: February 12, 2018, 08:21:23 AM »
Please can you see error
I will send you the C-panel credentials in private so you can see the error