Option 1 - Modify the component file
We need to open file with current path /site_root/components/com_jdownloads/jdownloads.php and comment out the code that generates the Powered By HTML.
Because of the old architecture, file has over 4,000 lines of code. You need to find line 2912 or so, I am using jDownloads 1.7.5 Stable Build 775. The line might be different depending on the version that you are using, but it will be around there...
You need to find the following code
1.
$b_link = JText::_('JLIST_PRODUCT_FOOTER');
2.
if ($b_link) {
3.
$footer .= ' ';
4.
}
and comment it out so it looks like this
1.
/*
2.
$b_link = JText::_('JLIST_PRODUCT_FOOTER');
3.
if ($b_link) {
4.
$footer .= ' ';
5.
}
6.
*/
Option 2 - Modify the language file for the Front-End
In option 1 you might noticed that there is a codition that checks is $b_link variable is set before adding Powered By text to the footer. To remove the Powered By text we need to set the JLIST_PRODUCT_FOOTER to empty string in the language file. In PHP empty string is evaluated to false and therefore will not fall into the condition to add Powered By text.
Open file located at /site_root/languages/en-GB/en-GB.com_jdownloads.ini
Find JLIST_PRODUCT_FOOTER around line 15
1.
JLIST_PRODUCT_FOOTER=Powered by jDownloa ds
and change it to
1.
JLIST_PRODUCT_FOOTER=
Do not comment JLIST_PRODUCT_FOOTER out because it will be translated to "JLIST_PRODUCT_FOOTER" which will evaluate to true and will display Powered By text. You have to set the value to empty.
No comments:
Post a Comment