Phoca Download Filter btn issue

Phoca Download - download manager
MrSolvens
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 07 Apr 2014, 00:02

Phoca Download Filter btn issue

Post by MrSolvens »

Hi and thank you for working on this free component.
I have been translating Phoca Download to Swedish as I had trouble finding a complete solution for latest version. I was thinking to upload it to you but lack info on how to (I am lazy).
Well. I have some trouble understanding where the text has gone for uploaded files button in the filter view (frontend).
Perhaps it is supposed to be that way?
I do not have a open URL to post an image here so no show.

It is hard to explain but when hovering the button a tooltip appears "Search" and the button to the right shows exactly the same... :idea:
What to do?
Sincerly
//MrSolvens
MrSolvens
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 07 Apr 2014, 00:02

Re: Phoca Download Filter btn issue

Post by MrSolvens »

Hi again.
I solved it myself again.
It was a bit tricky but I am starting to get around.
So.. in file: X:\wamp\www\sitename\components\com_phocadownload\views\user\tmpl\default_files.php
Line 38,39
I figured that something was missing. For one the button class="btn tip hasToolTip" breaks under my template for some reason I have not figured out yet, I removed the class and replace with my own btn class. You may do it yourself if so inclined and for me it works great.
I then created a new language entry called COM_PHOCADOWNLOAD_CLEAR="Clear" and replaced "Clear" with Swedish equivalent "Rensa". I then replaced the COM_PHOCADOWNLOAD_SEARCH="Search" to the new one created in the sv-SE lang ini. I also inserted php echo at the very end before the </button> tag to have it display as text on the buttons itself.
Code:
<button class="some-class-you-like" type="submit" onclick="this.form.submit();" title="<?php echo JText::_( 'COM_PHOCADOWNLOAD_SEARCH' ); ?>"><i class="icon-search"></i><?php echo JText::_( 'COM_PHOCADOWNLOAD_SEARCH' ); ?></button>

<button class="some-class-you-like" type="button" onclick="document.getElementById('pdsearch').value='';document.phocadownloadfilesform.submit();" title="<?php echo JText::_( 'COM_PHOCADOWNLOAD_CLEAR' ); ?>"><i class="icon-remove"></i><?php echo JText::_( 'COM_PHOCADOWNLOAD_CLEAR' ); ?></button>

End Code; :twisted:

I hope this helps out for others with similar troubles.

So where can I upload my translations? :roll:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48568
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Download Filter btn issue

Post by Jan »

Hi, thank you very much for the guide.

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