Salta al contenuto
  • CATEGORIES
  • La Community Connect.gt
  • Presentati alla Community
  • News Ufficiali da Connect.gt
  • Internet News
  • A Scuola Di
  • Digital Marketing
  • Intelligenza Artificiale
  • SEO & GEO
  • Web Marketing e Content
  • Google Analytics e Web Analytics
  • Google Ads & Advertising
  • YouTube
  • TikTok, Instagram e altri Social
  • Google Adsense, Affiliazioni e Guadagno
  • E-Commerce
  • Coding e Sistemistica
  • Help Center: consigli per il tuo progetto
  • Hosting e Cloud
  • Coding
  • CMS & Piattaforme Self-Hosted
  • Annunci e Collaborazioni
  • Annunci Vendita e Acquisto: Pubblicità, Domini, Link e altro
  • Collaborazioni WEB e Lavoro: offro e cerco
  • Impresa, Fisco e Leggi
  • Consulenza Legale e Professioni Web
  • Consulenza Fiscale, Imprese, Startup e P.Iva
  • Gli Off Topic
  • PC, Smartphone e altri Hardware
  • Tutti i Software
  • GT Fetish Cafè
  • Discussioni
  • 0 Non letti 0
  • Recenti
  • Hashtag
  • Popolare
  • Utenti
  • Privacy
  • Termini e condizioni
  • © 2026 Search On Media Group S.r.l.
Collassa
Connect.gt
Il network Search On
Connect.gt WMF AI Festival Accademia Advanced SEO Tool AgentCy Social Media Strategies Search Tech
Registrati Accedi
Connect.gt
Stream Interest Categorie Hashtag
  1. La community italiana di SEO, marketing digitale e AI
  2. Categorie
  3. Coding e Sistemistica
  4. CMS & Piattaforme Self-Hosted
  5. wordpress vivistats widget

wordpress vivistats widget

Pianificato Fissato Bloccato Spostato CMS & Piattaforme Self-Hosted
2 Post 1 Autori 1.0k Visualizzazioni 1 Seguito
  • Da Vecchi a Nuovi
  • Da Nuovi a Vecchi
  • Più Voti
Rispondi
  • Risposta alla discussione
Effettua l'accesso per rispondere
Questa discussione è stata eliminata. Solo gli utenti con diritti di gestione possono vederla.
  • B
    B
    bubu3k
    scritto su ultima modifica di
    User 0
    #1
    wordpress vivistats widget
    <?php
    /*
    Plugin Name: Vivistats Widget
    Plugin URI: forum.myflashxml.it/plugins-f198/vivistats-widget-t71564 .html
    Description: vivistats sidebar widget.
    Author: Marco Sottana
    Version: 0.1
    Author URI: forum.myflashxml .it
    
        
    */
    
    // We're putting the plugin's functions in one big function we then
    // call at 'plugins_loaded' (add_action() at bottom) to ensure the
    // required Sidebar Widget functions are available.
    
    
    
    function widget_vivistats_init() {
    
        // Check to see required Widget API functions are defined...
        if ( !function_exists('register_sidebar_widget') || !function_exists('register_widget_control') )
            return; // ...and if not, exit gracefully from the script.
    
        // This function prints the sidebar widget--the cool stuff!
        function widget_vivistats($args) {
        $number=0;
            // $args is an array of strings which help your widget
            // conform to the active theme: before_widget, before_title,
            // after_widget, and after_title are the array keys.
            extract($args);
    
            // Collect our widget's options, or define their defaults.
            $options = get_option('widget_vivistats');
            //$title = empty($options['title']) ? 'My Widget' : $options['title'];
            //$text = empty($options['text']) ? 'Hello World!' : $options['text'];
             $title = attribute_escape($options[$number]['title']);
             $code = attribute_escape($options[$number]['code']);
    
             // It's important to use the $before_widget, $before_title,
             // $after_title and $after_widget variables in your output.
            echo $before_widget;
            echo $before_title . $title . $after_title;
              
            echo '<!-- inizio codice vivistats.com -->'.chr(13);
        echo '<script type="text/javascript" language="JavaScript" src="htt p :// count.vivistats.com/laser.asp?CountId='.$code.'"></script>'.chr(13);
        echo '<noscript>'.chr(13);
        echo '<a href="htt p: //it.vivistats.com/"><img src="ht tp: //count.vivistats.com/laser.asp?CountId='.$code.'&js=off" border="0" alt="contatore sito web"></a>'.chr(13);
       echo '</noscript>'.chr(13);
       echo '<!-- fine codice vivistats.com -->'.chr(13);
    
            
    //        echo $code."";
    //        echo $text;
            echo $after_widget;
        }
    
    
        
    function widget_vivistats_control() {
       $number=0;
       $options = $newoptions = get_option('widget_vivistats');
       if ( !is_array($options) )
          $options = $newoptions = array();
       if ( $_POST["widget_vivistats-$number"] ) {
          $newoptions[$number]['title'] = strip_tags(stripslashes($_POST["widget_vivistats-$number"]));
          $newoptions[$number]['code'] = strip_tags(stripslashes($_POST["widget_vivistats-code-$number"]));
          }
       if ( $options != $newoptions ) {
          $options = $newoptions;
          update_option('widget_vivistats', $options);
       }
       $title = attribute_escape($options[$number]['title']);
       $code = attribute_escape($options[$number]['code']);
    ?>
    <p><label for="advertising_widget-title"><?php _e('Title:'); ?> <input style="width: 250px;" id="widget_vivistats-<?php echo $number; ?>" name="widget_vivistats-<?php echo $number; ?>" type="text" value="<?php echo $title; ?>" /></label></p>
    <p><label for="advertising_widget-code"><?php _e('Code:'); ?> <input style="width: 250px;" id="widget_vivistats-code-<?php echo $number; ?>" name="widget_vivistats-code-<?php echo $number; ?>" type="text" value="<?php echo $code; ?>" /></label></p>
    <input type="hidden" id="widget_vivistats-submit-<?php echo "$number"; ?>" name="widget_vivistats-submit-<?php echo "$number"; ?>" value="1" />
    <?php
    }
    
    
        // This registers the widget. About time.
        register_sidebar_widget('Vivistats Widget', 'widget_vivistats');
    
        // This registers the (optional!) widget control form.
        register_widget_control('Vivistats Widget', 'widget_vivistats_control');
    }
    
    // Delays plugin execution until Dynamic Sidebar has loaded first.
    add_action('plugins_loaded', 'widget_vivistats_init');
    ?>
    
    1 Risposta Ultima Risposta
    Miglior risposta 0
    0
    • B
      B
      bubu3k
      scritto su ultima modifica di
      User 0
      #2

      Edit:

      • Inizia con una maiuscola e termina con un punto.
      1 Risposta Ultima Risposta
      Miglior risposta 0
      0

      Ciao! Sembra che tu sia interessato a questa conversazione, ma non hai ancora un account.

      Stanco di dover scorrere gli stessi post a ogni visita? Quando registri un account, tornerai sempre esattamente dove eri rimasto e potrai scegliere di essere avvisato delle nuove risposte (tramite email o notifica push). Potrai anche salvare segnalibri e votare i post per mostrare il tuo apprezzamento agli altri membri della comunità.

      Con il tuo contributo, questo post potrebbe essere ancora migliore 💗

      Registrati Accedi
      Rispondi
      • Risposta alla discussione
      Effettua l'accesso per rispondere
      • Da Vecchi a Nuovi
      • Da Nuovi a Vecchi
      • Più Voti


      • Accedi

      • Non hai un account? Registrati

      • Accedi o registrati per effettuare la ricerca.
      • Primo post
        Ultimo post
      Home Accedi Registrati
      Menu
      • CATEGORIES
      • La Community Connect.gt
      • Presentati alla Community
      • News Ufficiali da Connect.gt
      • Internet News
      • A Scuola Di
      • Digital Marketing
      • Intelligenza Artificiale
      • SEO & GEO
      • Web Marketing e Content
      • Google Analytics e Web Analytics
      • Google Ads & Advertising
      • YouTube
      • TikTok, Instagram e altri Social
      • Google Adsense, Affiliazioni e Guadagno
      • E-Commerce
      • Coding e Sistemistica
      • Help Center: consigli per il tuo progetto
      • Hosting e Cloud
      • Coding
      • CMS & Piattaforme Self-Hosted
      • Annunci e Collaborazioni
      • Annunci Vendita e Acquisto: Pubblicità, Domini, Link e altro
      • Collaborazioni WEB e Lavoro: offro e cerco
      • Impresa, Fisco e Leggi
      • Consulenza Legale e Professioni Web
      • Consulenza Fiscale, Imprese, Startup e P.Iva
      • Gli Off Topic
      • PC, Smartphone e altri Hardware
      • Tutti i Software
      • GT Fetish Cafè
      • Discussioni
      • Non letti 0
      • Recenti
      • Hashtag
      • Popolare
      • Utenti
      • Privacy
      • Termini e condizioni
      • © 2026 Search On Media Group S.r.l.