3.1.x SnippetsFile Download & Downloadlog extenion combination

Snippets
User avatar

Topic Author
dmzx
Founder
Founder
Magic user status: Online
Posts: 5974
Joined: Jan 13th, '14, 20:45
    Windows 8 Firefox

File Download & Downloadlog extenion combination

Post by dmzx »

If you have File Download and Downloadlog extensions installed this is how to combine them:
Open ext\dmzx\downloadlog\styles\prosilver\template\event\attachment_file_prepend.html
Delete Remove the preceding lines

Code: Select all

<!-- IF _file.S_IMAGE -->
	<dl class="filedoawnload">
		<dt class="attach-image"><img src="{_file.U_INLINE_LINK}" class="postimage" alt="{_file.DOWNLOAD_NAME}" onclick="viewableArea(this);" /></dt>
		<!-- IF _file.COMMENT --><dd><em>{_file.COMMENT}</em></dd><!-- ENDIF -->
		<dd>{_file.DOWNLOAD_NAME} ({_file.FILESIZE} {_file.SIZE_LANG}) {_file.L_DOWNLOAD_COUNT}</dd>
	</dl>
<!-- ENDIF -->
<!-- IF _file.S_FILE -->
	<dl class="filedownload">
		<dt><!-- IF _file.UPLOAD_ICON -->{_file.UPLOAD_ICON} <!-- ENDIF --><a class="postlink" href="{_file.U_DOWNLOAD_LINK}">{_file.DOWNLOAD_NAME}</a></dt>
		<!-- IF _file.COMMENT --><dd><em>{_file.COMMENT}</em></dd><!-- ENDIF -->
		<dd>({_file.FILESIZE} {_file.SIZE_LANG}) {_file.L_DOWNLOAD_COUNT}</dd>
		<dd><!-- IF (U_MCP or U_ACP) --><a href="{U_DOWNLOADLOG}?file={_file.U_FILE_ID}" onclick="popup(this.href, 950, 350); return false;"	title="{L_DOWNLOADLOG_VIEW_LOG}" >{L_DOWNLOADLOG_VIEW_LOG}</a><!-- ENDIF --></dd>
	</dl>
<!-- ENDIF -->
And save the file.
Open ext\dmzx\filedownload\styles\prosilver\template\event\attachment_file_prepend.html
Find This may be a partial find and not the whole line

Code: Select all

<dd>({_file.FILESIZE} {_file.SIZE_LANG}) {_file.L_DOWNLOAD_COUNT}</dd>
Add after Add these lines on a new blank line after the preceding line(s) to find

Code: Select all

<dd><!-- IF (U_MCP or U_ACP) --><a href="{U_DOWNLOADLOG}?file={_file.U_FILE_ID}" onclick="popup(this.href, 950, 350); return false;"	title="{L_DOWNLOADLOG_VIEW_LOG}" >{L_DOWNLOADLOG_VIEW_LOG}</a><!-- ENDIF --></dd>
This should result in this:

Grtz dmzx
binance.com ;) try it!
User avatar

uruguayito
Donator
Donator
Magic user status: Offline
Posts: 123
Joined: Jul 2nd, '15, 17:40
    Windows 8.1 Chrome

Re: File Download & Downloadlog extenion combination

Post by uruguayito »

Oh no man :oops: :oops: :oops:

tky :buigen: dmzx
Last edited by uruguayito on Nov 12th, '15, 19:20, edited 1 time in total.
Sorry for my bad English. :oops:
I'm a latin american man.
Spanish is my language.
User avatar

merlinkv
Users
Users
Magic user status: Offline
Posts: 16
Joined: Nov 22nd, '15, 09:32
    Windows 8.1 Firefox

Re: File Download & Downloadlog extenion combination

Post by merlinkv »

Hi,

Thanks dmzx, now my downloads looks great!! :thumbup:
Last edited by merlinkv on Nov 28th, '15, 19:15, edited 1 time in total.
User avatar

tamarin
Users
Users
Magic user status: Offline
Posts: 72
Joined: Mar 15th, '15, 00:07
    Windows 10 Firefox

Re: File Download & Downloadlog extenion combination

Post by tamarin »

Hello.
Why do I have all displayed double? (s. attachment)
downloadlog.jpg
You do not have the required permissions to view the files attached to this post.
User avatar

tamarin
Users
Users
Magic user status: Offline
Posts: 72
Joined: Mar 15th, '15, 00:07
    Windows 10 Firefox

Re: File Download & Downloadlog extenion combination

Post by tamarin »

tamarin wrote:Hello.
Why do I have all displayed double?
I found the problem!
I had installed an extension [Inline images in attachment].
I turned it off and the problem disappeared.
Thank you!
User avatar

Mohammed AlSarsawi
Users
Users
Magic user status: Offline
Posts: 24
Joined: Feb 23rd, '17, 03:36
    Windows 10 Chrome

Re: File Download & Downloadlog extenion combination

Post by Mohammed AlSarsawi »

Hello

i use the steps to make the combination
but how to make downloadlog viewable to moderators not only admins


Thank you
User avatar

martin
Admin
Admin
Magic user status: Offline
Posts: 4777
Joined: Apr 6th, '14, 14:12
    Linux Chrome

Re: File Download & Downloadlog extenion combination

Post by martin »

I have both these exts into one ext and no edits needed.
Use this to install an ext on your board no more ftp or path making.
Path too install this ext is ext/boardtools/upload
Download is here Make it easy for us to solve your issues
User avatar

ivailo95
Users
Users
Magic user status: Online
Posts: 781
Joined: Feb 2nd, '18, 11:04
    Windows 7 Firefox

Re: File Download & Downloadlog extenion combination

Post by ivailo95 »

Code: Select all

		<dd>{_file.DOWNLOAD_NAME} ({_file.FILESIZE} {_file.SIZE_LANG}) {_file.L_DOWNLOAD_COUNT}</dd>
	</dl>
<!-- ENDIF -->
<!-- IF _file.S_FILE -->
	<dl class="filedownload">
		<dt><!-- IF _file.UPLOAD_ICON -->{_file.UPLOAD_ICON} <!-- ENDIF --><a class="postlink" href="{_file.U_DOWNLOAD_LINK}">{_file.DOWNLOAD_NAME}</a></dt>
		<!-- IF _file.COMMENT --><dd><em>{_file.COMMENT}</em></dd><!-- ENDIF -->
		<dd>({_file.FILESIZE} {_file.SIZE_LANG}) {_file.L_DOWNLOAD_COUNT}</dd>
		<dd><!-- IF (U_MCP or U_ACP) --><a href="{U_DOWNLOADLOG}?file={_file.U_FILE_ID}" onclick="popup(this.href, 950, 350); return false;"	title="{L_DOWNLOADLOG_VIEW_LOG}" >{L_DOWNLOADLOG_VIEW_LOG}</a><!-- ENDIF --></dd>
	</dl>
<!-- ENDIF -->
<dd><!-- IF (U_MCP or U_ACP) --><a href="{U_DOWNLOADLOG}?file={_file.U_FILE_ID}" onclick="popup(this.href, 950, 350); return false;"	title="{L_DOWNLOADLOG_VIEW_LOG}" >{L_DOWNLOADLOG_VIEW_LOG}</a><!-- ENDIF --></dd>
:roll:
User avatar

Painkiller88
Donator
Donator
Magic user status: Offline
Posts: 66
Joined: Jan 3rd, '19, 23:51
    Mac OS X Firefox

Re: File Download & Downloadlog extenion combination

Post by Painkiller88 »

ivailo95 wrote: Mar 2nd, '19, 08:10

Code: Select all

		<dd>{_file.DOWNLOAD_NAME} ({_file.FILESIZE} {_file.SIZE_LANG}) {_file.L_DOWNLOAD_COUNT}</dd>
	</dl>
<!-- ENDIF -->
<!-- IF _file.S_FILE -->
	<dl class="filedownload">
		<dt><!-- IF _file.UPLOAD_ICON -->{_file.UPLOAD_ICON} <!-- ENDIF --><a class="postlink" href="{_file.U_DOWNLOAD_LINK}">{_file.DOWNLOAD_NAME}</a></dt>
		<!-- IF _file.COMMENT --><dd><em>{_file.COMMENT}</em></dd><!-- ENDIF -->
		<dd>({_file.FILESIZE} {_file.SIZE_LANG}) {_file.L_DOWNLOAD_COUNT}</dd>
		<dd><!-- IF (U_MCP or U_ACP) --><a href="{U_DOWNLOADLOG}?file={_file.U_FILE_ID}" onclick="popup(this.href, 950, 350); return false;"	title="{L_DOWNLOADLOG_VIEW_LOG}" >{L_DOWNLOADLOG_VIEW_LOG}</a><!-- ENDIF --></dd>
	</dl>
<!-- ENDIF -->
<dd><!-- IF (U_MCP or U_ACP) --><a href="{U_DOWNLOADLOG}?file={_file.U_FILE_ID}" onclick="popup(this.href, 950, 350); return false;"	title="{L_DOWNLOADLOG_VIEW_LOG}" >{L_DOWNLOADLOG_VIEW_LOG}</a><!-- ENDIF --></dd>
:roll:

Can u explain a bit or do we have to figure out what it does and where to put?
User avatar

ivailo95
Users
Users
Magic user status: Online
Posts: 781
Joined: Feb 2nd, '18, 11:04
    Windows 7 Firefox

Re: File Download & Downloadlog extenion combination

Post by ivailo95 »

I put it in \Downloadlog_v102\styles\prosilver\template\event attachment_file_prepend
i want to combine these two extension in one
User avatar

Midway
Translators
Translators
Magic user status: Offline
Posts: 113
Joined: Dec 8th, '14, 09:27
    Windows 7 Firefox

Re: File Download & Downloadlog extenion combination

Post by Midway »

With its code there is no longer the orange block it is replaced by the phpBB icon
before
before.png
then with his code
after.png
You do not have the required permissions to view the files attached to this post.
User avatar

ivailo95
Users
Users
Magic user status: Online
Posts: 781
Joined: Feb 2nd, '18, 11:04
    Windows 7 Firefox

Re: File Download & Downloadlog extenion combination

Post by ivailo95 »

I know what is for this ext,just want it in one
User avatar

Midway
Translators
Translators
Magic user status: Offline
Posts: 113
Joined: Dec 8th, '14, 09:27
    Windows 7 Firefox

Re: File Download & Downloadlog extenion combination

Post by Midway »

You want the same of this ?
You do not have the required permissions to view the files attached to this post.
User avatar

ivailo95
Users
Users
Magic user status: Online
Posts: 781
Joined: Feb 2nd, '18, 11:04
    Windows 7 Firefox

Re: File Download & Downloadlog extenion combination

Post by ivailo95 »

Midway wrote: Mar 2nd, '19, 09:57 you want the same of this ?
i want this
You do not have the required permissions to view the files attached to this post.
User avatar

Midway
Translators
Translators
Magic user status: Offline
Posts: 113
Joined: Dec 8th, '14, 09:27
    Windows 7 Firefox

Re: File Download & Downloadlog extenion combination

Post by Midway »

You have this here
Downloadlog