Deprecated: Array and string offset access syntax with curly braces is deprecated in /home/mhd-01/www.claudiolocci.eu/htdocs/site/misc/typo3/phar-stream-wrapper/src/PharStreamWrapper.php on line 479
Blocchi schedulati - Drupal | Claudio Locci

guarda lontano pensa vicino

guarda lontano pensa vicino

guarda lontano pensa vicino

click to

Domini

Qui sotto raccogliamo i domini del network con cui collaboriamo e di cui gestiamo la parte IT.

Grafikpro network

Grafikpro Network

Network Grafik

Error message

  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Deprecated function: implode(): Passing glue string after array is deprecated. Swap the parameters in drupal_get_feeds() (line 394 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
  • Notice: Trying to access array offset on value of type int in element_children() (line 6609 of /home/mhd-01/www.claudiolocci.eu/htdocs/site/includes/common.inc).
 

Le Dolomiti

dolomiti box

 

Network

network grafikpro

 

Grafikpro .it

grafikpro .it

 

Claudio Locci .it

claudio locci .it

"Having troubles? Ask for solutions!"

Blocchi schedulati - Drupal

Problema: pubblicare un blocco in Drupal in base alla data.

(per i nodi possiamo utilizzare il modulo scheduler)

Durante la creazione di un nuovo blocco possiamo utilizzare la sezione "Show block on specific pages" per inserire un codice PHP che dovrà restituire il valore TRUE se la data corrente è compresa tra le date di pubblicazione scelte.

Si tratta di inserire le date volute di inizio e fine e confrontarle con la data di sistema.

Potremo usare un piccolo segmento generico di codice PHP per il controllo di verità:

 <?php
 $today = time();//data corrente
 $date_start=strtotime("2013-12-05");//esempio data inizio pubblicazione
 $date_end=strtotime("2013-12-09");//esempio data fine pubblicazione

 function datepublish($dts, $dtv, $dte){
   if($dtv >= ($dts) && $dtv <= ($dte)) {
     return true;
   }
   return false;
 }
 datepublish($date_start, $today, $date_end) //viene effettuato il controllo e restituito il booleano TRUE o FALSE
 
 ?>

(Controllare il formato data del proprio sistema).

Se usato standalone, con degli echo qua e la per il tracing, sembra funzionare.

Prima di inserirlo nel blocco nella sezione apposita semplifichiamo e otteniamo:

 <?php
 $today = time();
 $date_start=strtotime("2013-12-05");
 $date_end=strtotime("2013-12-20");
   if($today >= ($date_start) && $today <= ($date_end)) {
     return true;
   }
   return false;
 ?>

il blocco viene visualizzato nelle date previste.

Possiamo anche fare in modo che il blocco resti pubblicato fino ad una certa data e a partire da una certa data, cambiando opportunamente il ciclo if.

 <?php
 $today = time();
 $date_start=strtotime("2013-12-07");
   if($today >= ($date_start)) {
     return true;
   }
   return false;
 ?>

 

 <?php
 $today = time();
 $date_end=strtotime("2013-12-08");
   if($today <= ($date_end)) {
     return true;
   }
   return false;
 ?>

click to
  • Consulenza

    "Utilizzare la tecnologia per ottimizzare il lavoro"

    • Informatica

    • Siti web

    • CMS

    • SEO

    • Web marketing

  • Docenza

    • Formazione aziendale e scolastica

    • IT e Office Automation

    • Social networking job oriented

    • Hardware e Software

    • Laboratorio Calcolatori ed elettronica

    • Diagnostica-Collaudo e Problem Solving

  • Intermediazione

    Molto semplicemente: due realtà che non si conoscono vengono messe in contatto attraverso un nostro progetto atto a sviluppare una collaborazione profiqua.

    A volte queste due realtà si conoscono, ma non "parlano" tra loro.

    • Ci sei tu

      La tua realtà. Il meglio della tua professionalità. I tuoi investimenti.

      Talvolta senti che ti manca qualcosa..

    • Ci siamo noi

      Le idee nascono... a volte per caso. Cerchiamo di individuare dei "candidati" ai quali potrebbero interessare.

    • Ci sono gli altri

      Col loro know-how. Con loro impegno. Magari in un settore di nicchia.

  • Mission

    Per noi il cliente ha "quasi" sempre ragione. Il motivo è che molte volte chiede qualcosa di "inutile" o "per sentito dire".

    L'analisi iniziale è fondamentale per stabilire le necessità. Solo dopo viene fatta una proposta esaustiva sul da farsi. Un sito non è la "soluzione"! È un "mezzo"!

    • Per te

      Siamo un gruppo di consulenti freelance. Operiamo nei campi Web, Formazione, Grafica, Pubblicità, Software, Hardware, CAD.

      Ci offriamo come collaboratori, realizzatori o gestori di siti e portali.

      Realizziamo soluzioni personalizzate.

    • Quindi

      Non credo nella tuttologia, e nell'ottica di fornire un servizio completo a 360°, mi servo di colleghi, consulenti freelance e professionisti, che contatto secondo le necessità del cliente, e mi occupo di gestire il team così costituito.

    • ...

      Tu chiedi, noi forniamo e gestiamo il team di supporto, in modo da fornire un prodotto finito senza "farti perdere tempo".

  • Adesioni

    Se vuoi aderire al network contattaci.

    • Ristoranti

    • Campeggi

    • Agriturismo

    • Località tipiche

    • Turismo

    • Dolomiti

  • Promozione

    Vuoi farti vedere di più? Vuoi farti conoscere?

    • Ricettività

      Accogliere, promuovere, fidelizzare

      • Turistica
      • Alberghiera
      • Dolomiti
    • Pubblicità

    • Trasporti

    • Logistica

    • Ristorazione

click to

Web per tutti

Web per tutti... per privati, aziende, liberi professionisti....

Ti piacerebbe avere un tuo blog, un tuo sito, una tua veste web o un social network personale?  Vorresti avere più visibilità?

Ti offriamo la nostra consulenza per analizzare assieme le diverse specifiche.

 

Con l'opensource potrai avere la tua visibilità sul web a costi contenuti: con delle donazioni si sostiene la comunità. Noi individuiamo quello che fa per te e ti assistiamo nella registrazione di un dominio o nel rinnovo di quello esistente (per etica però non modifichiamo codice preesistente di colleghi: l'eventuale dominio dovrà essere esente da vincoli contrattuali). Ti aiutiamo a scegliere un template tra quelli disponibili, oppure possiamo creartene o adattartene uno nuovo.

Scegliamo la soluzione più adatta alle tue necessità facendoti delle proposte alla tua portata.

Previous Next
Previous Next

Claudio Locci

Owner - Team leader -Web developer senior

Freelance

According to the purpose

Approved freelance

According to the purpose