Navigazione

    Privacy - Termini e condizioni
    © 2020 Search On Media Group S.r.l.
    • Registrati
    • Accedi
    • CATEGORIES
    • Discussioni
    • Non letti
    • Recenti
    • Hashtags
    • Popolare
    • Utenti
    • Stream
    • Interest
    • Categories
    1. Home
    2. salentu
    3. Post
    S

    salentu

    @salentu

    • Profilo
    • Chi segue 0
    • Da chi è seguito 0
    • Discussioni 2
    • Post 3
    • Migliore 0
    • Gruppi 0
    Iscrizione Ultimo Accesso
    0
    Reputazione
    3
    Post
    0
    Visite al profilo
    0
    Da chi è seguito
    0
    Chi segue
    User Newbie

    Post creati da salentu

    • RE: Plugin newsletter

      @scheggia said:

      Ragazzi ditemi perfavore un plugin tramite il quale inviare ebook a chi si iscrive alla newsleter. Grazie

      Ciao,hai provato Sendit? [...]

      postato in CMS & Piattaforme Self-Hosted
      S
      salentu
    • Testo da un campo personalizzato di wordpress inserito in un plugin

      Salve ragazzi,
      è possibile ricevere un aiuto nella modifica di questo plugin? Non mastico bene php, ma con qualche aiuto credo di potercela fare :sun:

      cosa fa:
      il plugin in questione, tramite code da inserire tipo [youtube TCMszSjgKHE] mi inserisce il video di Youtube dentro al post e fin qui tutto ok.

      cosa mi serve:
      il codice riportato qui sotto è la routine del plugin e alla fine del video devo inserire il nome del video e il nome del video deve essere preso da un campo personalizzato di wordpress

      [PHP]
      define("YOUTUBE_WIDTH", 590); // default width
      define("YOUTUBE_HEIGHT", 332); // default height
      define("YOUTUBE_REGEXP", "/[youtube ([[:print:]]+)]/");
      define("YOUTUBE_TARGET", "<object width="###WIDTH###" height="###HEIGHT###" type="application/x-shockwave-flash" data="linkyoutube/v/###URL###&hl=en_US&fs=1&rel=0"><param name="movie" value="linkyoutube/v/###URL###&hl=en_US&fs=1&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param></object>**Qui il nome del video 'echo get_post_meta($post->ID, 'nome-video', true);' **");

      function youtube_plugin_callback($match)
      {
      $tag_parts = explode(" ", rtrim($match[0], "]"));
      $output = YOUTUBE_TARGET;
      $output = str_replace("###URL###", $tag_parts[1], $output);
      if (count($tag_parts) > 2) {
      if ($tag_parts[2] == 0) {
      $output = str_replace("###WIDTH###", YOUTUBE_WIDTH, $output);
      } else {
      $output = str_replace("###WIDTH###", $tag_parts[2], $output);
      }
      if ($tag_parts[3] == 0) {
      $output = str_replace("###HEIGHT###", YOUTUBE_HEIGHT, $output);
      } else {
      $output = str_replace("###HEIGHT###", $tag_parts[3], $output);
      }
      } else {
      $output = str_replace("###WIDTH###", YOUTUBE_WIDTH, $output);
      $output = str_replace("###HEIGHT###", YOUTUBE_HEIGHT, $output);
      }
      return ($output);
      }
      function youtube_plugin($content)
      {
      return (preg_replace_callback(YOUTUBE_REGEXP, 'youtube_plugin_callback', $content));
      }

      add_filter('the_content', 'youtube_plugin',1);
      add_filter('the_content_feed', 'youtube_plugin');
      add_filter('comment_text', 'youtube_plugin');
      add_filter('the_excerpt', 'youtube_plugin');
      [/PHP]
      è possibile arrivare ad una soluzione?
      Grazie

      postato in CMS & Piattaforme Self-Hosted
      S
      salentu
    • Preventivo per pubblicità

      Salve,
      possiedo un sitoweb e mi hanno chiesto un preventivo per inserire un video codice embed in home per due settimane.

      Il sito fa circa 12000 visitatori unici e 17000 pagine visitate giornaliere

      Quanto potrei chiedere secondi voi per il video in home o in tutte le pagine del sito?

      postato in Annunci Vendita e Acquisto: Pubblicità
      S
      salentu