Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 02:46:00 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155540 Posts in 21712 Topics by 7737 Members
Latest Member: deanmacullam
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Additions to existing Formlist module  (Read 1040 times)
gaartsen

Offline Offline

Posts: 3


WWW
« on: September 05, 2010, 03:02:27 PM »

Hi, after a brief correspondence with Thorn we agreed that I should start a new topic in English for the Formlist module.
I have added some stuff to the module, and would like to share these with those interested.

Changes/additions are:
 - added date field with calendar
 - added publish immediately/on activation selection
 - added activation/de-activation email to nominated address
 - added activate/de-activate per entry in admin page
 - added sort-order selection in settings
 - added Dutch language

I have upgraded 2 existing websites (both V2.8 ) with the module without problems.

Hope you find some use for it,
Gary
Logged
thorn

Offline Offline

Posts: 980


WWW
« Reply #1 on: September 05, 2010, 03:35:36 PM »

Hello,

very good improvments, as far as i can see.
I have updated the AMASP page http://www.websitebakers.com/pages/modules/interaction/formlist.php accordingly.

But I noticed some PHP Notice-Errors (I consider undefined variables to be errors, too!):
in view.php line 298 (date_format) and 376 (err_class).
Also the state of checkbox "Add field to list:" isn't saved for date-fields?!

In case you are interested to maintain this module in the future, I would be glad to inform user erpe to change the ownership of the corresponding page on AMASP accordingly.


thorn.
Logged

gaartsen

Offline Offline

Posts: 3


WWW
« Reply #2 on: September 06, 2010, 01:42:59 AM »

Hi again,

The required changes are in place now and a new archive is attached. No idea what exactly, or how much time, will be involved in maintaining a module, but I am more than willing to give it a try.

Gary
Logged
erpe

Offline Offline

Posts: 2077


WWW
« Reply #3 on: September 06, 2010, 07:48:55 AM »

Hello

I gave you (beneath thorn) access to the AMASP-page:
http://www.websitebakers.com/pages/modules/interaction/formlist.php

thanks for your efforts.

rgds

erpe
Logged

snark
Guest
« Reply #4 on: January 10, 2011, 01:55:58 PM »

it does not seem to display the list of submitted items in the frontend, is this a known fact?

the table with class="list_entry" remains empty ...

it seems that in the view somewhere near line 258 somethings is not right

it does get the 'list_header' and 'list_footer' but the 'list_loop' that should be displayed in between does not turn up ...




Code:
// Display the submissions (via a loop)
if ($num_entries > 0) {
  while ($submission = $query->fetchRow()) {
      // fetch entered form-values
      $values = unserialize($submission['body_serialized']);
      $values[] = array('Date' => $submission['submitted_when']);
      echo $list_header;
      foreach ($values as $id=>$v) {
        if (in_array($id, $inlist)) {
          if (is_array($v['content'])) $v['content'] = implode('<br />', $v['content']);
          $vals = array($v['title'] . ':', nl2br($v['content']));
          echo str_replace($vars, $vals, $list_loop);
 
        }
      }
      echo $list_footer;
    }
}


is there anyone who had the same issue?

« Last Edit: January 10, 2011, 02:22:27 PM by snoork » Logged
snark
Guest
« Reply #5 on: January 12, 2011, 06:00:09 PM »

is there really someone who has this working?

I am struggling with this thing all day now ....

if anyone can help it will be much much much appreciated


Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!