Hello,
I am new to nextcloud, I want to know where the download file exists, I want to add an advertisement code to the download page, as shown in the screenshot.
example download page: https://clouds.example.com/s/ppRHNQA2M3esTMK
anyone can help me?
Thank you
jtr
August 3, 2023, 8:50pm
2
Here I believe, but you’ll have to customize/replace/integration your changes it every time you upgrade:
<?php
/** @var \OCP\IL10N $l */
/** @var array $_ */
?>
<div id="app-content" tabindex="0">
<?php if ($_['previewSupported']): /* This enables preview images for links (e.g. on Facebook, Google+, ...)*/?>
<link rel="image_src" href="<?php p($_['previewImage']); ?>" />
<?php endif; ?>
<input type="hidden" id="sharingUserId" value="<?php p($_['owner']) ?>">
<input type="hidden" id="filesApp" name="filesApp" value="1">
<input type="hidden" id="isPublic" name="isPublic" value="1">
<?php if (!$_['hideDownload']): ?>
<input type="hidden" name="downloadURL" value="<?php p($_['downloadURL']) ?>" id="downloadURL">
<?php endif; ?>
<input type="hidden" name="previewURL" value="<?php p($_['previewURL']) ?>" id="previewURL">
<input type="hidden" name="sharingToken" value="<?php p($_['sharingToken']) ?>" id="sharingToken">
<input type="hidden" name="filename" value="<?php p($_['filename']) ?>" id="filename">
<input type="hidden" name="mimetype" value="<?php p($_['mimetype']) ?>" id="mimetype">
<input type="hidden" name="previewSupported" value="<?php p($_['previewSupported'] ? 'true' : 'false'); ?>" id="previewSupported">
This file has been truncated. show original
For something more manageable, you’d probably want to build an add-on app.
thanks for the reply. I am not a developer, I can’t develop apps by myself.
I will add the ads code manually.
I need a public share app with domain restriction if any developer is interested. I will guide him and show him a live example.
Thanks