Page 1 of 1

[Feature Request] Couple of things

Posted: 16 Dec 2008, 06:00
by MetZ
Hi..

Love the component, however, I am missing some features:
  • Possible to add external files (local/external)
    Possible to vote (with top voted files list to the right of most downloaded).
    Comment system (perhaps tied to the votin system?)
    Using same tooltip class as joomla on hover details.
    auto-thumb/fixed size on file icons
Have an idea for the voting to, to stand out from the other voting system for other components:
http://balsfjord.com/nedlastinger/category/3-ikon.html

EDIT : After reading trough the forums, I have to agree with this viewtopic.php?f=31&t=2276

Both commenting and voting could be here. However, I would still want a tooltip (joomla tooltip class) when hovering details button (some minor information - title, avarage vote, number of comments and so on).

Thanks!

Btw, any ETA on next release? and will any features be added ?

Re: [Feature Request] Couple of things

Posted: 16 Dec 2008, 19:53
by Jan
Hi, added into a feature request list...

external files - there is such option (e.g. download of phoca gallery here:
https://www.phoca.cz/documentation/index ... -component

tooltip - there is used an overlib effect which is a part of Joomla! framework ...

Jan

Re: [Feature Request] Couple of things

Posted: 17 Dec 2008, 05:53
by MetZ
Yeah sure, ;)
I figured out that it was external linking as well.. Kinda hidden ;)
... Voting and comment still wanted though..

Btw.. Regarding tooltip vs. overlib.. I like the tooltip ;)

So if anyone want to use mootools tooltip :

Edit : components\com_phocadownload\views\category\tmpl\default.php

Line 177 - change :

Code: Select all

$overlib 	= "OnClick=\"return overlib('".htmlspecialchars( addslashes('<div style="text-align:left;padding:5px;background:#f6f4d0;">'.$details) )."</div>', CAPTION, '".JText::_('Details')."', BELOW, RIGHT, FGCOLOR, '".$this->ol['fgColor']."', BGCOLOR, '".$this->ol['bgColor']."', TEXTCOLOR, '".$this->ol['textColor']."', CAPCOLOR, '".$this->ol['capColor']."',CLOSECOLOR, '".$this->ol['closeColor']."', STICKY, MOUSEOFF);\"";

			//$overlib .= " onmouseout=\"return nd();\"";
To :

Code: Select all

$overlib = "".JText::_('Details')."::".htmlspecialchars(addslashes($details));
Around Line 190 - add (below //output)

Code: Select all

// OUTPUT
JHTML::_('behavior.tooltip');


and change (line 210 somewhere):

Code: Select all

echo '<a '.$overlib.' href="#">'. JText::_('Details').'</a>';
To :

Code: Select all

echo '<span class="editlinktip hasTip" title="'.$overlib.'"><a href="#">'. JText::_('Details').'</a></span>';
Did not look into creating a sticky tip with close button, but maybe I will take the time some other day..
You can view it in action at my site (link previous post).

-Tom-

Re: [Feature Request] Couple of things

Posted: 17 Dec 2008, 17:37
by Jan
Ok, the goal of overlib should be that you can go over the overlib and you can click on e.g. link which is displayed in overlib... but thank your for this solution...

Jan

Re: [Feature Request] Couple of things

Posted: 17 Dec 2008, 20:12
by MetZ
I know ;)

That is why I mentioned the sticky.. However.. have neem playing around with mootools, and some different approaches.. If I come up with something real nice,, I'll let you know ;)

Excellent component btw...

Re: [Feature Request] Couple of things

Posted: 18 Dec 2008, 22:02
by Jan
ok, thanks