Support Forums - Classified Ads Script Osclass
Osclass plugin support => Advertisement Manager Plugin => Topic started by: jurcc on December 18, 2015, 01:56:04 PM
-
Hello,
I would like to know two things regarding plugin:
1. When inserting On click target URL, it doesn't seem to be nofollow, so how do I change that so it will be, because it's crucial for banner links to be nofollow?
2. Clients sent me some HTML5 banners, hosted on their server, which I'm inserting as HTML banner via iframe. But this way links from On click target URL does not work. Do you know why or have any better suggestion to implement HTML5 banners using your plugin?
Thanks
Best regards
-
@jurcc
1) I am not sure if you want to have follow or nofollow links, you did not explained that well.
2) It even cannot work and there is no way it should work, it is iframe that means it is not loaded from your website.
-
1. I want to have nofollow :)
2. So I gotta find another way, thanks for clarifying that.
-
@jurcc
You need to go to following file:
oc-content/plugins/advertisement_manager/index.php
find line:
$text .= '<a href="' . osc_base_url() . 'index.php?redirect_active=1&campaign='. $banner['b_id'] .'&url_go='. $banner['b_url'] .'" ' . ($banner['b_url_target'] == 1 ? 'target="_blank"' : '') . '>';
replace with:
$text .= '<a rel="nofollow" href="' . osc_base_url() . 'index.php?redirect_active=1&campaign='. $banner['b_id'] .'&url_go='. $banner['b_url'] .'" ' . ($banner['b_url_target'] == 1 ? 'target="_blank"' : '') . '>';
-
Thanks, that should work :)
-
@jurcc
Welcome ;)
-
-- I will remember that I should create new thread for different issues and will not spam forums --