Ads Membership

Posted in: Newspaper
Post count: 66

Dear TagDiv Team,

where can I find the ads.php file now?

or how can I associate Membership Pro with Hide Ads with the Theme Ads.

Membership Pro has the following snippet:

if(pmpro_displayAds())
{
//insert ad code here
}

where does the code come from? In the functions.php?

what comes from the theme Newspaper in //insert ad code here?

Thank you and have a good start to the week. Rick

Post count: 18283

Hello !

Unfortunately, the Membership Pro plugin has not been tested with our theme and therefore, we cannot say for sure if it will work or not as expected with the theme, sorry! Also, we cannot provide support for untested plugins.
This is our list with tested plugins with our theme -> https://www.screencast.com/t/cmPkh9jba4sZ

Thank you !

Post count: 66

Dear Vlad,

unfortunately I don’t understand your answer. I didn’t ask for support for this plugin, nor if it’s compatible with your theme.

My question was: *Where is the ads.ê file in your theme?* Since I want to connect this to the other plugin in order to be able to hide advertisements.

Thank you. Rick

Post count: 18283

Hello !

Sorry for missunderstanding your issue !

Here is the path for the ads.php: https://www.screencast.com/t/AlxlKwa8ynR

Thank you !

Post count: 66

Dear Vlad,

no problem. Thank you.

I have already seen that. But there is no ads file. Is it somewhere else in the new version? See the screenshot.

https://www.screencast.com/t/a7anCEFSe

Many Thanks. Best regards Rick

Post count: 18283

Hello !

Please re-check the path. The file is located in wordpress plugins: https://www.screencast.com/t/1aKXLB8gwHYU

Thank you !

Post count: 66

Perfect. Thank you. ?

Have a great day. Rick

Post count: 66

Dear Vlad,

It would be nice if you could help me again, please. I have with your instructions, which I found see screenshots, changed the code.

The code breaks my page and then there is parse error.

Many thanks. Rick

https://www.screencast.com/t/iN3BVwVzenP

My Code:

<div class=”td-header-rec-wrap”>
<?php
if(pmpro_hasMembershipLevel(array(‘1′,’2’))){

// show the header ad spot
echo td_global_blocks::get_instance(‘td_block_ad_box’)->render(array(‘spot_id’ => ‘header’, ‘spot_title’ => $tds_header_ad_title)); ?>
}
</div>

Parse error: syntax error, unexpected end of file in /wp-content/plugins/td-composer/legacy/Newspaper/parts/header/ads.php on line 8
The site is experiencing technical difficulties.

Post count: 66

e.g.

The screenshots and instructions are from you. I found them at Themeforest in the comment area.

Post count: 18283

Hello !

Unfortunately this requires custom work and is not covered by the support policy: https://forum.tagdiv.com/support-policy-2/

Ussualy we do not offer custom work but this would be the exception we will do in order to fix your page. Please take note that in the future custom works requires a lot of skills and the best way would be to hire a freelancer to help you implement everything you want on your page. Here is a better example of how your code should look like in order to work:

<?php
if(pmpro_hasMembershipLevel(array(‘1′,’2’))){?>
<div class="td-header-rec-wrap">
<?php
$tds_header_ad_title = td_util::get_option('tds_header_title');
// show the header ad spot
echo td_global_blocks::get_instance('td_block_ad_box')->render(array('spot_id' => 'header', 'spot_title' => $tds_header_ad_title)); ?>
</div>
<?php
}
?>

Please read the support policy and take note about the custom work.

Thank you !

Post count: 66

Dear Vlad,

many thanks for this solutions. Yes, I’ll take a freelancer for that. Better is this. (-;

Still great Theme with many possibilities.

Have a nice day. Cheers Rick

Viewing 11 posts - 1 through 11 (of 11 total)
The forum ‘Newspaper’ is closed to new topics and replies.