Kennisbank > cms made simple > CMS MS: Newsletter Made Simple, export user status

CMS MS: Newsletter Made Simple, export user status

Ferdi Verlaan

Ferdi Verlaan

Manager OTC & NOC

Following up a feature request from one of our customers in the Newletter Made Simple (NMS) module for CMS Made Simple. Our customer wanted to export the status of the newletter users, but by default, only the email and username fields are exported. We’ve found a similar request on http://dev.cmsmadesimple.org/feature_request/view/2990.

Since we don’t have the time to create another sponsorship for CMS MS and wait until calguy1000 has time to change the code, since he is very busy with CMS MS 2.0. Please look at the following:

Change the following file:
modules/NMS/action.export_user.php

around line 56 add the green fields for the headers:

$cols = array('email','username','disabled','confirmed');

around line 131 add the green fields for the export:

 // export everything
while( !$u_dbr->EOF ) {
$row = $u_dbr->fields;
$uid = $row['userid'];
$fields = array();
$fields[] = $row['email'];
$fields[] = $row['username'];

$fields[] = $row['disabled'];

$fields[] = $row['confirmed'];

Ferdi Verlaan

Over de auteur

Ferdi Verlaan

Werkzaam bij AASHQ sinds 2005, beheert en inspireert Ferdi een team van uitstekende ontwikkelaars, systeem- en netwerkingenieurs.

Hij is bedreven in verschillende programmeertalen maar ook zeer kundig in zowel Windows (Server) als Linux-besturingssystemen.

Ook interessante artikelen

Deze artikelen kunnen jou ook misschien aanspreken

woensdag 26 april 2023

De snelheid van onze nieuwe website

Ferdi Verlaan

Ferdi Verlaan

Manager OTC & NOC

Ferdi Verlaan

Ferdi Verlaan

Manager OTC & NOC

Neem contact met ons op

En breng jouw IT omgeving ook naar 'the next level'.

Neem contact op