Suscrible a lot of existing users from eZ Publish.

Author Message

Cuony Maximilien

Tuesday 07 August 2007 8:05:33 am

Hello,

Is there a way to subscribe many user already existing into eZ Publish at a subscription list ? It's possible to make this one by one with 'eZ Publish user/Select', but it's too long ;).

Thanks for the answer.

Tobias Struckmeier

Tuesday 07 August 2007 11:57:25 pm

Hi Cuony,

there is no automated way to do that.
Also it might be difficult to automatical decide which users should be added to the list as long as you don't subscribe a whole subtree of users to one list.

But back to your problem. Currently the only way you have is doing it with a small import script. A second way could be to use the import functionality with a CSV file and make the relation between the existing users and the imported users then on SQL level.

Bye
Tobias

Cuony Maximilien

Wednesday 08 August 2007 12:12:39 am

Hi,

Thanks for the quick answer, that what I thinked but I wanted to be sure.

Regards,

Tobias Struckmeier

Wednesday 08 August 2007 12:51:20 am

What we could do is maybe, that we enchance eZ Newsletter to automatically make the relation, once a user registers (also affects the import) with the same email address as an ez publish user. But you still need to export your users once to csv.

Cuony Maximilien

Wednesday 08 August 2007 1:57:39 am

Mmm, yes, it's intressting, especially if the user resgisted himself, widout be logged.

J Jones

Thursday 09 August 2007 11:25:07 am

Hi Tobias,

This is exactly what we would need too.

We just installed ezNewsletter as an integrated part of our EZ 3.9 setup.

We have a user group with a couple of hundred members that we want to send e-mails to.

Even though we could export the users to a csv and import them into EzNewsletter, we need some automation-task so when a new user has been approved by an administrator he/she will automatically also be included in the e-mail subscription list.

Since the database table-setup are different I guess there is no way to "tell" ezNewsletter to "choose" a custom user group with a specific classID from another table, rather than a subscription list?

Also, besides sending newsletters to this group on a regular basis (which the component seems very well suited for!) we want to send them an invitation letter with their username and password included. How can this be done?

I notice a password field in the table ezsubscriptionuserdata but which is empty for the imported ezusers and a hash string which is different from the one in the ezuser-table.

Thanks a lot in advance,

Jesper

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 30 2025 19:32:20
Script start
Timing: Jan 30 2025 19:32:20
Module start 'layout'
Timing: Jan 30 2025 19:32:20
Module start 'content'
Timing: Jan 30 2025 19:32:20
Module end 'content'
Timing: Jan 30 2025 19:32:20
Script end

Main resources:

Total runtime0.0255 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.4141151.2422
Module start 'layout' 0.00540.0056 739.6563220.7500
Module start 'content' 0.01100.0131 960.40631,002.9297
Module end 'content' 0.02410.0014 1,963.335933.9922
Script end 0.0255  1,997.3281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002610.0347140.0002
Check MTime0.00103.8339140.0001
Mysql Total
Database connection0.00083.086010.0008
Mysqli_queries0.004015.806130.0013
Looping result0.00000.071010.0000
Template Total0.00093.610.0009
Template load0.00072.741410.0007
Template processing0.00020.755410.0002
Override
Cache load0.00051.919710.0005
General
dbfile0.00135.107580.0002
String conversion0.00000.039240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs