Is there any chances to create additional custom ad spots? I have a site that could use additional spots, since it has several categories and we’d like to use custom advertisement for each.
Could this be done?
Kind regards.
Hi
To add a new custom ad you have to edit the following files like here:
– td_panel_ads.php – http://screencast.com/t/csyUpkoa – http://pastebin.com/v9xwLdQz
– td_block_ad_box.php – http://screencast.com/t/mRzwOa0Q5
– td_config.php – http://screencast.com/t/m3REo5pm
Result should be like here: http://screencast.com/t/FxYioNcpNS
This was just an example for custom ad 6. To add more custom ads follow the same steps but make sure you update properly the ad-spot ids.
Thanks!
I am just about to update my site and I am getting all my modified pages sorted first including custom ad spots
I just opened the link for td_panel_ads.php – above and it looks like the 7.4 version i am upgrading from
the 7.6 version i just downloaded has only the following 58 lines of code
what am i doing wrong
<?php
td_api_ad::helper_display_ads();
?>
<?php
//backround add
echo td_panel_generator::box_start(‘Background click Ad’, false);?>
<div class=”td-box-row”>
<div class=”td-box-description td-box-full”>
<span class=”td-box-title”>Notice:</span>
<p>Please go to BACKGROUND tab if you also need a background image</p>
</div>
<div class=”td-box-row-margin-bottom”></div>
</div>
<!– ad box code –>
<div class=”td-box-row”>
<div class=”td-box-description”>
<span class=”td-box-title”>URL</span>
<p>Paste your link here like : http://www.domain.com</p>
</div>
<div class=”td-box-control-full td-panel-input-wide”>
<?php
echo td_panel_generator::input(array(
‘ds’ => ‘td_option’,
‘option_id’ => ‘tds_background_click_url’,
));
?>
</div>
</div>
<!– ad taget –>
<div class=”td-box-row”>
<div class=”td-box-description”>
<span class=”td-box-title”>Open in new window</span>
<p>If enabled, this option will open the URL in a new window. Leave disabled for the URL to be loaded in current page</p>
</div>
<div class=”td-box-control-full”>
<?php
echo td_panel_generator::checkbox(array(
‘ds’ => ‘td_option’,
‘option_id’ => ‘tds_background_click_target’,
‘true_value’ => ‘_blank’,
‘false_value’ => ”
));
?>
</div>
</div>
<?php echo td_panel_generator::box_end();?>
-
This reply was modified 9 years by
haychart. Reason: typo
Hi,
If you update from your current version, the files are changed and the implementation method is different in the current theme version
The theme code has been changed a lot with newer updates and the implementation method for another custom ad is different. Now, you should edit only the td_config.php and have to register your new custom ad code in two places, like this -> http://screencast.com/t/drqt26uCI
Thanks!