[Project_owners] Suggestion to correct downloadsNoFmt()

Jesper Staun Hansen jesper at heroes-addon.dk
Mon Mar 24 07:21:12 PDT 2008


Douglas E. Warner wrote:
> On Monday 24 March 2008 09:52:35 Jesper Staun Hansen wrote:
>   
>> Was looking at the downloadsNoFmt() once again, and as its written, then
>> downloads No Format shouldn't have any formating code assigned to it.
>> But it instead it outputs this:
>>
>> <span class="download_count">16</span>
>> While the expected result would be:
>> 16
>>     
> [snip]
>   
>> What do you fellas and girls think?
>>     
>
> When I fixed the downloads() and downloadNoFmt() functions I took the original 
> functions to be to display a download count with and without the project name 
> (respectively), not that one shouldn't have any HTML wrapping.
>
> I don't mind fixing downloadNoFmt() if there aren't any objections.  Another 
> solution would be to add a downloadsCounter() function that only displays the 
> counter.
>
> It also looks like you'd like a count of all downloads; possibly for your 
> entire project or perhaps for a specific directory; either of these would be 
> fairly easy for us to add, we just haven't had the request yet.
>
> -Doug
>   

Would probably be best to make a new version of downloadsNoFmt to comply 
with users already using it.
Is it possible for the mozdev admins to search through files to see 
who's already using it?


More information about the Project_owners mailing list