Viewing 6 reply threads
  • Author
    Posts
    • #4694
      lunatikzx
      Member

      I cant see the form in my piklist widget.

      I used the tutorial ( easy widget) to create it

      I joined the file structure

      Anyone can help?

    • #4696
      lunatikzx
      Member

      Edit since the file did not uploaded :

      symposium.php in the folder piklist/parts/widgets
      <?php

      piklist(‘field’, array(
      ‘type’ => ‘text’
      ,’field’ => ‘titre_text’
      ,’label’ => ‘Title’
      ,’description’ => ‘C\’est le titre a appliquer’
      ,’value’ => ‘text’
      ,’attributes’ => array(
      ‘class’ => ‘widget-content’
      )
      ));

      piklist(‘field’, array(
      ‘type’ => ‘text’
      ,’field’ => ‘class_text’
      ,’label’ => ‘Css class’
      ,’description’ => ‘Classe a appliquer’
      ,’value’ => ‘text’
      ,’attributes’ => array(
      ‘class’ => ‘widget-content’
      )
      ));

      piklist(‘field’, array(
      ‘type’ => ‘textarea’
      ,’field’ => ‘contenu_text’
      ,’label’ => ‘Texte du widget’
      ,’description’ => ‘Ceci est le text principal du widget’
      ,’attributes’ => array(
      ‘class’ => ‘widget-content’
      )
      ));

      symposium-form.php in piklist/parts/settings

      <?php
      /*
      Title: Symposium
      Description: Un text widget avec une classe
      */
      ?>
      <?php echo $before_widget; ?>

      <?php echo $before_title; ?>

      <?php echo $settings[‘titre_text’]; ?>

      <?php echo $after_title; ?>

      <?php echo $settings[‘class_text’]; ?>

      <?php echo $settings[‘contenu_text’]; ?>

      <?php echo $after_widget; ?>

    • #4697
      Steve
      Keymaster

      @lunatikzx– Welcome to the Piklist community!

      It looks like your putting symposium-form.php in piklist/parts/settings. Both files go in your widgets/ folder.

      Also, just to be clear, you shouldn’t be placing any files inside the main piklist/ folder. That also means no files in piklist/parts/settings or piklist/parts/widgets.

      You either need to put your files in your theme or create a Piklist plugin.

      Let us know if you need any help.

    • #4700
      lunatikzx
      Member

      This is what i get in wordpress wen i put both files in the widgets folder

      Warning: fopen(/home/dompteur/public_html/***/wp-content/themes/********/piklist/parts/settings/symposium-widget-form.php): failed to open stream: Aucun fichier ou répertoire de ce type in /home/dompteur/public_html/symposium/wp-includes/functions.php on line 4305

      Warning: fread() expects parameter 1 to be resource, boolean given in /home/***/public_html/*******/wp-includes/functions.php on line 4308

      Warning: fclose() expects parameter 1 to be resource, boolean given in /home/***/public_html/*******/wp-includes/functions.php on line 4311

    • #4701
      Steve
      Keymaster

      Which version of Piklist are you running?

      Also, this error is saying there’s still a widget file in settings/

      Warning: fopen(/home/dompteur/public_html/***/wp-content/themes/********/piklist/parts/settings/symposium-widget-form.php

    • #4702
      lunatikzx
      Member

      Superb this was a sync problem in the end … thanks
      Btw your plugin is awesome ill give it 5 stars!

    • #4703
      Steve
      Keymaster

      Awesome! Closing the ticket.

Viewing 6 reply threads
  • The topic ‘Widget fields not showing’ is closed to new replies.