( RISOLTO ) Modulo download Topic is solved

La discussione sul CMS Made Simple in italiano.

Moderator: magallo

Post Reply
Rubio

( RISOLTO ) Modulo download

Post by Rubio »

Secondo voi quale è il modulo migliore per gestire i download, dividendo i file anche per categorie e mostrando il numero di download effettuati?

Grazie
Last edited by Rubio on Thu Oct 14, 2010 4:51 pm, edited 1 time in total.
User avatar
blast2007
Power Poster
Power Poster
Posts: 508
Joined: Wed Aug 01, 2007 5:36 pm

Re: Modulo download

Post by blast2007 »

Credo che tu abbia descritto le caratteristiche del modulo Uploads...

Ciao
blast
Rubio

Re: Modulo download

Post by Rubio »

Ma ho capito bene??
Il modulo Upload per gestire i download?
User avatar
blast2007
Power Poster
Power Poster
Posts: 508
Joined: Wed Aug 01, 2007 5:36 pm

Re: Modulo download

Post by blast2007 »

Non ci posso fare niente se si chiama cosi'...  ;D
Rubio

Re: Modulo download

Post by Rubio »

Ok il modulo funziona bene, vorrei però chiedervi se sapete dirmi quale stringa devo inserire nel sommario-template per far visualizzare il numero di download effettuati. ;D ;D

GRAZIE

Alfredo
User avatar
blast2007
Power Poster
Power Poster
Posts: 508
Joined: Wed Aug 01, 2007 5:36 pm

Re: Modulo download

Post by blast2007 »

Modifica il summary template cosi'

{if isset($input_filter) }
{$startform}
{$prompt_filter}{$input_filter}{$hidden_params}{$input_submit}
{$endform}

{$matches} {$matchestext}
{/if}

  {"\n"}
  {"\n"}
    {$name}
    Data UPL
    Dim.(Kb)
    N.Download
 
{foreach from=$items item=entry}
 
   
download_url}" >
      {if isset($entry->thumbnail_url)}
        {$thumbnail} thumbnail_url}" border="0" alt="bullet lista" />
      {else}
        iconurl}" border="0" alt="bullet lista" />      {/if}{$entry->description}
{$entry->summary}
    {$entry->date|date_format:"%d/%m/%Y"}
    {$entry->size}
    {$entry->downloads}
 
{/foreach}
{"\n"}

Dovrebbe andare.

ciao
blast
Rubio

Re: Modulo download

Post by Rubio »

OTTIMO  :D :D :D :D

Tra le altre cose ho visto che l'hai messo in tabella, ed è quello che avrei cercato di fare anch'io per ordinarli.

Meglio di così non potevo aspettarmi.

GRAZIE 1000  ;) ;).

Alfredo
User avatar
blast2007
Power Poster
Power Poster
Posts: 508
Joined: Wed Aug 01, 2007 5:36 pm

Re: Modulo download

Post by blast2007 »

Scrivi [Risolto] nell'oggetto del topic.

ciao
blast
Rubio

Re: ( RISOLTO ) Modulo download

Post by Rubio »

Avrei un altro problemi da risolvere con il modulo upload.

Poichè devo importare nel sito file che sono già stati scaricati, avrei la necessità di modificare il numero di downlad in modo che il conteggio non inizi da zero.

Si può fare?

Magari anche entrando nel database e inserendo il numero.

grazie
User avatar
blast2007
Power Poster
Power Poster
Posts: 508
Joined: Wed Aug 01, 2007 5:36 pm

Re: ( RISOLTO ) Modulo download

Post by blast2007 »

Certo che si può fare...
Entra nel db mysql con phpmyadmin o simili e modifica la tabella
`cms_module_uploads_downloads`
aggiungendo le tante righe per ogni file del quale vuoi aumentare il numero dei download.

Es. (non testato)
Hai il file che corrisponde a file_id = 6 e vuoi portare a 10 il numero dei download? Allora aggiungi 10 righe identiche alla tabella, ovviamente con dati fittizi.
Una volta finito aggiungi alla tabella `cms_module_uploads_downloads_seq` l'ultimo numero di id.
Dovrebbe funzionare...

ciao
blast
Post Reply

Return to “Italian - Italiano”