Hi!
I have some downloads, for example Opera.
I need users can download file directly from Details layout - without summary page.
How I can do this?
Also, I want to remove adsanse blocks, but only from this page.
How I can set condition - if this page is Opera - don't displays adsense blocks?
If my details layout have this code:
<table class="filetablelist">
<tbody>
<tr>
<td>
<div class="topimagesblockouter">
<div class="topimagesblock">googledetail_top</div>
<div class="topimagesblock">{screenshot_begin}<a href="{screenshot}" rel="lightbox"> <img src="{thumbnail}" title="{file_title} ???????" alt="??????? {file_title} {release}" /></a>{screenshot_end}</div>
</div>
</td>
</tr>
</tbody>
</table>
where googledetail_top - is adsense block (displays using rereplacer)
I tried to check if layout processed php and added this
<?php echo "test";?>
but it does not work...
May be you can add additional option
(https://monosnap.com/file/OE8TfeFmx3BGjjKCV2vdkKnVor70NK.png)
Use at first the 'direct download' option in first configuration TAB. More later...
Quote from: Arno on 27.10.2015 13:20:01
Use at first the 'direct download' option in first configuration TAB. More later...
If I will set 'direct download' option in first configuration TAB - all downloads will not have summary page.
I need only specifi? downloads have direct download option.
And how I can get working php in layouts?
Hi
Having direct downloading or not is setup by config parameters, see article for more info
http://www.jdownloads.net/documentations/item/download-actions-direct-via-summary-page-or-via-download-details
However that will apply to ALL Downloads. What you are seeking is not feasible at this time. And also to make things 'browser specific' would be challenging.
Colin
Ok, I'll do it myself using custom fields.
But ?ow I can get working PHP in layouts?
Try the NoNumber Sourcerer plugin.