Forum

JiFile for Joomla!

JIFile
JiFile is a component for Joomla! that allows you to index file contents (PDF, DOC, etc..) to perform searches in them.

Learn more...  Demo

JoomPhoto Mobile

JPhotoMobile
JoomPhoto Mobile is a component for Joomla! that allows you to share the photos from your Android device to your site Joomla.

Learn more...  Demo

iFile Framework

IFile
IFile is an open source framework written entirely in PHP, allows the indexing of textual content of a document (DOC, PDF, EXCEL, etc.) and a quick search within them.

Learn more...  Demo

Easy Language

EasyLanguage
Easy Language is a plugin for easy and immediate management of multilingual texts in every possible area of joomla, articles, components, modules, metadata, template, other components(example K2) etc.

Learn more...

Article Book Effect

Article Book Effect
View Joomla articles with the effect turns the page of a book. This plugin will display the contents of an article in Joomla as a real book or magazine, using all the benefits of HTML5

Learn more...  Demo

 

Passport photo

Passport photo
The most popular Android app that allows you to print photos cards for your documents with your Android smartphone, in a simple and intuitive way.

Learn more...

 

Crazy Shadow

Crazy Shadow
Crazy Shadow is the 3D fast-paced and fun puzzle Android game! Try to rotate and drag shapes in the position of their shadows without fail! Solve in succession all combinations of levels of the game.

Learn more...

 

Admin Countdown

Admin Countdown
Module for Joomla! 2.5 and 3.x displays in the administration part of the site, a timer with countdown of the time remaining in your session.

Learn more...  Demo

 
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Display results as links that load in browser

Display results as links that load in browser 27 Aug 2012 16:17 #534

My site is indexed with jifile. I want the results of a search to display as links that load in a browser not files that download. How is this done?
The administrator has disabled public write access.

Re: Display results as links that load in browser 27 Aug 2012 16:27 #535

  • Antonio
  • Antonio's Avatar
  • OFFLINE
  • Administrator
  • Posts: 486
  • Thank you received: 66
is not a thing you can set, you should modify the code of the component:
if you have version 1.07 you must edit the file /components/com_jifile/jifile.php
and comment lines 25-29
...
header("Content-Transfer-Encoding: binary");
/*header('Content-Disposition: attachment;'
. ' filename="' . $name . '";'
. ' modification-date="' . filemtime($filename) . '";'
. ' size=' . $size .';'
); //RFC2183*/
header("Content-Type: "    . jifilehelper::getMimetype(JFile::getExt($name)) );			// MIME type
...
If you like, if it was useful, consider a donation, Thanks
Se vuoi, se ti siamo stati utili, considera una donazione, Grazie
Help us by voting our extensions on Joomla.org:
JiFile
JoomPhoto Mobile
Easy Language
The administrator has disabled public write access.

Re: Display results as links that load in browser 27 Aug 2012 17:12 #536

Ok that works - the htmal page does load but as

www.astarmathsandphysics.com/component/j...ween_two_points.html
I want it to load as
www.astarmathsandphysics.com/gcse_maths_...ween_two_points.html
How do I do this?
The administrator has disabled public write access.

Re: Display results as links that load in browser 27 Aug 2012 17:15 #537

cos every page has images and the images dont load with the unedited link
The administrator has disabled public write access.

Re: Display results as links that load in browser 27 Aug 2012 17:45 #538

  • Antonio
  • Antonio's Avatar
  • OFFLINE
  • Administrator
  • Posts: 486
  • Thank you received: 66
Try to change the plugin /plugins/search/jifile/jifile.php the line 113 as follows:
...
$row = array('title' => JFilterOutput::cleanText($doc->getFieldValue('name')), 
						'href' => $pathD, 
						'created' => $created, 
...
I'm not sure works, I can't test now
If you like, if it was useful, consider a donation, Thanks
Se vuoi, se ti siamo stati utili, considera una donazione, Grazie
Help us by voting our extensions on Joomla.org:
JiFile
JoomPhoto Mobile
Easy Language
Last Edit: 27 Aug 2012 17:47 by Antonio.
The administrator has disabled public write access.

Re: Display results as links that load in browser 27 Aug 2012 18:05 #539

That works great
The administrator has disabled public write access.

Re: Display results as links that load in browser 27 Sep 2012 16:27 #614

Not sure whats happening now
Search results include '/component/search/' in the url although I have changed nothing in the configuration. For example,
www.astarmathsandphysics.com/component/s...notes_sine_rule.html
Which should display as
www.astarmathsandphysics.com/gcse_maths_...notes_sine_rule.html
every joomla article behaves normally.
Last Edit: 27 Sep 2012 16:46 by Paul Smith.
The administrator has disabled public write access.

Re: Display results as links that load in browser 27 Sep 2012 22:18 #615

If I turn off SEF url's then the search results are links I can click, but then every joomla page returns the homepage.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2