Page 1 of 1

Download button style from template

Posted: 01 Feb 2011, 01:15
by Zbyh
Hello!
First of all I want to Thank You for this great extension :).

My problem is, I don't know how to force File Details page to use my template button style.
I installed DFContact module, and my template added such a nice button to it instead of regular one:
Image

But PhocaDownload seems to not read from my template style, so Download button in File Details looks like this:
Image

Is there any way to force this button to use my template nice style ? Or how to change it manually to look like this Submit button ?

I guess I should edit components/com_phocadownload/views/file/tmpl/default.php file somehow, but unfortunatelly i don't know PHP (but i'm not so bad overall so I catch things quickly). I guess it's easy thing for people who knows PHP, I just can't figure this out by myself. I also tried to edit phocadownload-grey.css file by myself, but thats black magic for me - I copied button section from my template CSS file, but I have no idea how to link this Download button to this specific style.

So, if that's easy thing to do, can you please help me to change this button ?

Thanks in advance!
Best Regards.

Re: Download button style from template

Posted: 01 Feb 2011, 12:12
by Zbyh
Ok i've made it ! In the morning it's much easier to think about this kind of stuff ;).

Anyway, I don't know if that's proffessional and conflict-free solution, but I just changed this line:

Code: Select all

echo '<input type="submit" name="submit" id="pdlicensesubmit" value="'.JText::_('COM_PHOCADOWNLOAD_DOWNLOAD').'" />';
to this format:

Code: Select all

echo '<input type="submit" name="submit" id="pdlicensesubmit" class="my-button" value="'.JText::_('COM_PHOCADOWNLOAD_DOWNLOAD').'" />';
And in CSS I added section .my-button { } with parametres from my template style. Easy :D
All seems to work fine, and my download button looks very nice:
Image

Thanks again for great Phoca Download component!

Re: Download button style from template

Posted: 05 Feb 2011, 20:16
by Jan
Ok