Joomla 5 Notice

We are pleased to announce that as of January 29, 2024, all of our Joomla extensions are compatible with Joomla 5.

For all who are still updateing from Joomla 3 to Joomla 4: Joomla 4 Migration instructions are available here:

There is now a separate Documentation for Visforms for Joomla 4 and for Visforms for Joomla 5!

Forum

Visforms Subscription user can ask questions in our forum. Please log in with the relevant user first.
Everybody can access the forum for reading.

Please only ask 1 question per topic.

exporting fields

More
8 years 2 days ago #3021 by mligrani
exporting fields was created by mligrani
:ohmy:
hi guys,
is it possible to export the "created by" field displayed in the data page? it's very critical to us..
thank you in advance,
regards

massimo

More
8 years 1 day ago #3024 by Administrator AV
Replied by Administrator AV on topic exporting fields
Hi,

at the moment it is not. I think, when I added the created_by field in Visforms I just "forgot" to add an option which would allow you to include/exclude the field from export.

I could add such an option in the next release.

If you just need to have this field in all your exports (without a form configuration option to set whether it is included or not) you can change the source code.

Open the file administor/components/com_visforms/models/visdatas.php

find the function createExportBuffer ($params = null, $cids = array())
find
Code:
if (isset($params->expfieldcreated) && $params->expfieldcreated == 1) { $buffer .= JText::_( 'COM_VISFORMS_FIELD_CREATED_LABEL' ) . $separator; }
and add the line
Code:
$buffer .= 'Created By' . $separator;
directly after this code. (In order to have a label in the haeder, if you export with a header

Find the function createPreFields ($params, $row, $separator = ";")

find
Code:
if (isset($params->expfieldcreated) && $params->expfieldcreated == 1) { $data .= $row->created . $separator; }
Add
Code:
$data .= $row->created_by . $separator;
directly after this code (this will add the userid to each export row).

It's not tested yet, but I think, this will work,

Regards,
Aicha

:idea: I recommend you the new and up-to-date documentation for Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/en/docs/
Most of this also applies retrospectively to Joomla 3.
Please only ask 1 question per topic :-).

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation für Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/docs/
Das meiste gilt rückwirkend auch für Joomla 3.
Bitte immer nur 1 Frage pro Thema stellen :-).
The following user(s) said Thank You: mligrani

More
8 years 1 day ago #3027 by mligrani
Replied by mligrani on topic exporting fields
Hi Aicha, it worked perfectly.
Going to rate your work on JED. Donation will come with the next release, including ID and/or user data export configuration in the administration panel... ;)
thank you very much by now

massimo

More
8 years 1 day ago #3029 by Administrator AV
Replied by Administrator AV on topic exporting fields
Thanks,

I already added a new option "included created by" to the Visforms core.
So the changes will be part of Visforms 3.8.2.

But I think it will take me some more time to release this update because I actually wanted to add some other feature to this release as well.

Regards,
Aicha

:idea: I recommend you the new and up-to-date documentation for Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/en/docs/
Most of this also applies retrospectively to Joomla 3.
Please only ask 1 question per topic :-).

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation für Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/docs/
Das meiste gilt rückwirkend auch für Joomla 3.
Bitte immer nur 1 Frage pro Thema stellen :-).

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum