Forums / Extensions / eZ Newsletter / Suscrible a lot of existing users from eZ Publish.

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

eZ debug

Timing: Jan 18 2025 14:58:12
Script start
Timing: Jan 18 2025 14:58:12
Module start 'content'
Timing: Jan 18 2025 14:58:12
Module end 'content'
Timing: Jan 18 2025 14:58:13
Script end

Main resources:

Total runtime0.3690 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0093 589.1250180.7500
Module start 'content' 0.00930.0131 769.875099.0391
Module end 'content' 0.02240.3465 868.9141527.8047
Script end 0.3689  1,396.7188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00431.1683200.0002
Check MTime0.00150.4133200.0001
Mysql Total
Database connection0.00070.199710.0007
Mysqli_queries0.305882.87911410.0022
Looping result0.00140.38461390.0000
Template Total0.346093.810.3460
Template load0.00140.375610.0014
Template processing0.344693.396110.3446
Override
Cache load0.00110.309010.0011
Sytem overhead
Fetch class attribute can translate value0.00100.265610.0010
XML
Image XML parsing0.00030.072910.0003
General
dbfile0.01123.0357200.0006
String conversion0.00000.001930.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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