Support Forums - Classified Ads Script Osclass

Osclass plugin support => Advertisement Manager Plugin => Topic started by: jurcc on December 18, 2015, 01:56:04 PM

Title: [SOLVED] HTML5 banners and nofollow
Post 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
Title: Re: [HELP] HTML5 banners and nofollow
Post by: MB Themes on December 18, 2015, 02:45:09 PM
@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.
Title: Re: [HELP] HTML5 banners and nofollow
Post by: jurcc on December 18, 2015, 03:23:02 PM
1. I want to have nofollow :)
2. So I gotta find another way, thanks for clarifying that.
Title: Re: [HELP] HTML5 banners and nofollow
Post by: MB Themes on December 18, 2015, 04:09:36 PM
@jurcc
You need to go to following file:
oc-content/plugins/advertisement_manager/index.php

find line:
Code: [Select]
$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:
Code: [Select]
$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"' : '') . '>';
Title: Re: [HELP] HTML5 banners and nofollow
Post by: jurcc on December 18, 2015, 04:16:04 PM
Thanks, that should work  :)
Title: Re: [HELP] HTML5 banners and nofollow
Post by: MB Themes on December 18, 2015, 05:56:42 PM
@jurcc
Welcome ;)
Title: Re: [SOLVED] HTML5 banners and nofollow
Post by: ekiz on March 05, 2016, 05:52:44 PM
-- I will remember that I should create new thread for different issues and will not spam forums --