Phoca Download Empty Categories

Phoca Download Empty Categories

Phoca Download is am amazing free document repository for Joomla. However I found one feature lacking, when a category was empty (contained no files), there was no obvious message to the visitor - there was simply the category name and a blank page.


I always thought there should be a message 'Oops - nothing here!', or similar.


To save you some time, you need to edit the file located at \components\com_phocadownload\views\category\tmpl\default_files.php


​Add this code just after the closing } (around line 502)

 else {
    echo '<div class="alert alert-warning" role="alert">Empty</div>';    
} 
Server Side Events with MySQL and PHP
Chrome “disable developer mode extensions” pop up
 

Comments

No comments made yet. Be the first to submit a comment
Already Registered? Login Here
Guest
July 15, 2020

Captcha Image

Latest Comments

Guest - Susan Hermiston Virtual Hosts
October 7, 2015
Wow 747 just blew me away. Sorry not a tech person at all!! But I still love you!! Rock on!!?
Guest - Johmny Invisible Mouse Cursor Ubuntu & Synergy
September 2, 2015
Glad I was ble to help!
Guest - Kristian Falk Invisible Mouse Cursor Ubuntu & Synergy
September 1, 2015
Thank you for this! Had the exact same problem. I almost went crazy.