opening pdf in new window

Phoca Download - download manager
SonRiab
Phoca Professional
Phoca Professional
Posts: 258
Joined: 02 Jun 2011, 09:29
Contact:

Re: opening pdf in new window

Post by SonRiab »

Ok, you are using PD for Joomla 1.5 obviously. :lol:
Should be one of this entries:

FILENAME - PREVIEW=Filename - Preview
PREVIEW=Preview
sboedie
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 16 Aug 2011, 16:25

Re: opening pdf in new window

Post by sboedie »

I am having the same issue with Preview showing as Play on a Joomla 1.6 web site. I have followed the instructions above and cannot get it changed from Play to Preview. Any other ideas on how or where to make the change? I have been working on this on and off for several weeks and cannot get the change to the language file to take effect.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48595
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: opening pdf in new window

Post by Jan »

Hi, check if the translation is OK

I see no problem with original:

COM_PHOCADOWNLOAD_FIELD_FILEPLAY_LABEL="File - Play"
COM_PHOCADOWNLOAD_FIELD_FILEPREVIEW_LABEL="File - Preview"
COM_PHOCADOWNLOAD_PREVIEW="Preview"
COM_PHOCADOWNLOAD_PLAY="Play"

:idea:
If you find Phoca extensions useful, please support the project
primoz
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 08 Apr 2012, 11:42

Re: opening pdf in new window

Post by primoz »

.
inspeckatahdeck wrote: ... but it is possible to change the word "Preview" to something else? ...
Actual name of the document instead of "Preview"

Is it possible to rename "Preview" into the real name of the document?
For pdf files I would use "Preview" button instead of download button.
Users can view pdf documents, and if they need it they can easily downloaded it and save it from preview pop up window.
I want every pdf file to be seen first and than if needed downloaded. I have already changed path to the preview folder from (phocadownloadpap) to download folder (phocadownload), so i don't need to upload every pdf file twice.
Is there any better option for pdf files??

Where can i change the default width and height of preview window (I am using Phoca Download Button Plugin)?
Thanks for the answer.
primoz
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48595
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: opening pdf in new window

Post by Jan »

Hi, yes the files should be uploaded twice - see similar posts where I have explained it (e.g. one pdf with table of contents for preview, second full for download) ... To upload it only one time, the code needs to be customized - depends on where you are uploading it, e.g. in frontend:


components/com_phocadownload/controllers/user.php
components/com_phocadownload/models/user.php
components/com_phocadownload/views/user/ ...

Jan
If you find Phoca extensions useful, please support the project
primoz
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 08 Apr 2012, 11:42

Re: opening pdf in new window

Post by primoz »

Sorry to ask you again:

I'm using Phoca Download component.

Actual name of the document instead of "Preview"

Is it possible to rename "Preview" into the "real name" of the document?
On my site i would like to use the whole Preview for all pdf documents instead of download button.
I just don't want to be shown the word "Preview".
I would like to be shown the real name of the document.
Users can preview pdf documents, and if they need it they can easily downloaded it and save it from preview pop up window.
I want every pdf file to be seen first and than if needed downloaded.

Is there any better option for pdf files??

Where can i change the default width and height of preview window (I am using Phoca Download Button Plugin)?

Thanks for the answers.
primoz
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48595
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: opening pdf in new window

Post by Jan »

Hi, this needs to be customized in the code, you can change the "preview" string in language file, but if you want to display a filename (dynamically), this needs to be customized in the code.

Jan
If you find Phoca extensions useful, please support the project
Post Reply