The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Wed Mar 14, 2012 1:02 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Thu Mar 08, 2012 7:24 pm
Posts: 1
This applies to Phoca Download 2.1.6, as available March 14th 2012 from Phoca.cz.

So long as you do not redistribute the modified code, the following is within the terms of the GPLv2.0. To remain professional you should include credits to the work within the legal section of your website. If the developer of this extension offered an official way to remove the ad, I would not have posted this. I have read several posts on this forum inferring that the current method of removing the ad is not guaranteed.

Open:

Code:
administrator\components\com_phocadownload\helpers\phocadownload.php


Navigate to line 1135

Replace with:

Code:
   public function renderPhocaDownload() {
         return '';
   }


Top
 Profile  
 
PostPosted: Wed May 23, 2012 11:20 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Tue Aug 26, 2008 8:14 pm
Posts: 196
Location: Brisbane, Australia
Hi thanks for pointing to the right direction, I have the same version but for some reason the file includes double spacing between lines, so I have to replace line 2266 (not 1135), In other words the code to be replaced is this:
Code:
   public function renderPhocaDownload() {

         return '<div style="text-ali'

         .'gn: center; color:#c'.'cc;">Po'

         .'wered by <a href="ht'.'tp://www.pho'

         .'ca.cz/phocad'.'ownload" style="tex'

         .'t-decoration: n'.'one;" targe'

         .'t="_bla'.'nk" title="Pho'.'ca Dow'

         .'nload">Phoca Down'.'load</a></div>';

   }


Hope this help others
Thanks

_________________
Pablo Santamaría - wCreators Team
http://www.wCreators.com


Top
 Profile  
 
PostPosted: Tue May 29, 2012 1:19 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Tue Aug 26, 2008 8:14 pm
Posts: 196
Location: Brisbane, Australia
I found this solution helpful, but it has a problem, we have to do it every time there is a component update.

So I keep researching and found this extension:
http://extensions.joomla.org/extensions ... place/7642,

It works nicely, I just had to add this rule to it:

Code:
div a,/phoca\.cz/i


And it removes the div containing the link.

_________________
Pablo Santamaría - wCreators Team
http://www.wCreators.com


Top
 Profile  
 
PostPosted: Mon Jun 18, 2012 7:45 am 
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Thu Apr 24, 2008 11:29 am
Posts: 132
psantamaria wrote:
I found this solution helpful, but it has a problem, we have to do it every time there is a component update.

So I keep researching and found this extension:
http://extensions.joomla.org/extensions ... place/7642,

It works nicely, I just had to add this rule to it:

Code:
div a,/phoca\.cz/i


And it removes the div containing the link.

Thank you for this! Worked right away.


Top
 Profile  
 
PostPosted: Fri Aug 31, 2012 2:57 pm 
Joomla! Intern
Joomla! Intern

Joined: Fri Aug 24, 2012 2:39 pm
Posts: 82
Again Brilliant works like a charm with rediculous ease.


Top
 Profile  
 
PostPosted: Thu Feb 14, 2013 2:39 pm 
Joomla! Intern
Joomla! Intern

Joined: Mon Oct 03, 2011 6:13 pm
Posts: 56
Thanks that worked great!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 



Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group