Support Home Page › Forums › Joomla Software › Easy Folder Listing Pro Plugin › Hyperlink to files inside folder › Re: Hyperlink to files inside folder
March 16, 2011 at 4:40 pm
#993
Michael Gilkes
Keymaster
I got a fix for you. Since we can't avoid the use of DS from Joomla's functions, we are just going to fix out links directly. Here is what you do.
1. Go to the easyfolderlistingpro.php file
2. find line 631:
1 |
$html .= '<a href=&quot;'.JURI::base().$subfolder.'/'.$rows[$i]['name'].'.'.$rows[$i]['ext'].'&quot; target=&quot;'.$this->_params_array['target'].'&quot;>'; |
3. find line 771:
1 |
$html .= '<a href=&quot;'.JURI::base().$relpath.'/'.$rows[$i]['name'].'.'.$rows[$i]['ext'].'&quot; target=&quot;'.$this->_params_array['target'].'&quot;>'; |
4. add this line BEFORE line 631:
1 |
$path = str_replace('\', '/', $subfolder); |
5. change $subfolder in (the now) line 632 to $path.
6. add this line BEFORE line 771:
1 |
$path = str_replace('\', '/', $relpath); |
7. change $subfolder in (the now) line 772 to $path.
That's it!
Do this and let me know. This should fix your problem entirely.