Benvenuto,
Ospite
|
|
Hi,
Thanks for a great component; I'm currently trialing it with joomla 2.5, jomsocial 2.6.2 and bsmyjspace to allow each jomsocial user to create a 'homepage' where they can upload documents which are indexed and searchable by other users. Everything works fine, homepage, doc upload, indexing and jifile search via standard joomla search. The search results have the link to the uploaded documents and the introtext, it would be a perfect search plugin if there was a link back to the jomsocial user profile associated with the document in the search results. I know very little php but with some testing the .$pathD includes the jomsocial username (as it's within foldername location of the uploaded and indexed document), would you be able to point me in the direction of how best to achieve returning a href link back to the jomsocial profile, or whether it is even possible within a search plugin to combine the two? Thanks in advance for any advice, Byron |
L\'Amministratore ha disattivato l\'accesso in scrittura al pubblico.
|
|
Hi,
Unfortunately I do not have the time to understand how to work those components to find some solution, maybe in the near future |
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
L\'Amministratore ha disattivato l\'accesso in scrittura al pubblico.
|
|
If you have urgent you can contact us in confidence on info[at]isapp.it
|
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
L\'Amministratore ha disattivato l\'accesso in scrittura al pubblico.
|
|
Hi Antonio,
I got it sorted in the end, info is below for anyone who needs to edit jifile search plugin (changes the href link from the indexed document to the jomsocial profile of the user who uploaded the indexed document): $pathD = jifilehelper::getCorrectFilename($doc->getFieldValue('path')); // need to extract username from path, return userid from username, create link to js profile $lastSlash=strrpos($pathD,'/',6); $username=substr($pathD,5,$lastSlash-5); // Return current user $user =& CFactory::getUser($username); // Return user id $userid = $user->id; // Create link to CUser object $link = CRoute::_('index.php?option=com_community&view=profile&userid='.$userid); and later on... $row = array('title' => JFilterOutput::cleanText($doc->getFieldValue('name')), //'href' => 'index.php?option=com_jifile&filename='.$pathD, 'href' => ''.$link, 'created' => $created, 'browsernav' => 0, 'section' => 'Below is an excerpt from the document, click on the link above to view the user profile and access the full document.', 'text' => $text); $rows[] = JArrayHelper::toObject($row); Cheers, mr_b |
L\'Amministratore ha disattivato l\'accesso in scrittura al pubblico.
I seguenti utenti ringraziano:: Antonio
|
Facendo click su qualunque link della pagina si accetta il loro utilizzo. Per saperne di piu'