PDA

View Full Version : Simple Automation of 'Email Users' - 'Do Next Page' Button


Elvis
01-18-2003, 10:00 PM
Well, this is a _very_ small hack.. and will take 1 minute, with one file change.

Basically, when using 'Email Users' from the Admin CP, I got REALLY annoyed with having to keep scrolling down and clicking on the 'Do Next Page' button. This _really_ should have been something automated from the start. SO...

-edited-
put hack in a txt file and attached
-edited-

This or similar should work on any version, it basically just uses javascript to submit the form 'name' automatically once the page has fully loaded. From my experience, this tends to work once you have submitted the first page manually.

Dean C
01-19-2003, 05:19 PM
Nice hack - i'd stick it in a text file though because currently unlicensed users will have access to this ... :)

- miSt

Elvis
01-19-2003, 05:23 PM
Originally posted by Mist
Nice hack - i'd stick it in a text file though because currently unlicensed users will have access to this ... :)

- miSt

Thanks... and I've attached a lil txt file instead...as suggested ;)

Dean C
01-19-2003, 05:52 PM
Thankyou :)

- miSt

Elvis
01-19-2003, 05:58 PM
I've yet to install cummunity bulletin hack... but from what I've heard/read .. it uses a similar method as 'Do Next Page' - I'm guessing this will either work for that, or could.

Boofo
01-19-2003, 10:40 PM
I'm still confused here. What does this actually do?

Elvis
01-19-2003, 10:51 PM
Originally posted by Boofo
I'm still confused here. What does this actually do?

In the Admin CP ...

if you go to Email Users ...

One of your options is:Messages to send at once:



If you end up selecting more users to send mail to, than what you have specified in that field (which would happen if you run a large board and are emailing all your users)....

After submitting the first page of emails via the 'Do Next Page' button, it will then takeover... and automattically submit the form upon each complete page of emails sent, there by going onto the next page to process.. and so forth... until it's complete.

It's a great way to avoid php timeouts.. for example, set it to send to 20 users at once (to avoid timeouts of say trying to send to 500 users at once), and let it just run unattended.

Get it now? ;)

Boofo
01-19-2003, 10:58 PM
Oh, ok, I think I git it now. So, instead of doing like 100 at a time, it will only send out like 20 at a time (or however many you have on each page) and then do the next page and so on and so on, right? Like spacing it out?

Elvis
01-19-2003, 11:07 PM
Originally posted by Boofo
Oh, ok, I think I git it now. So, instead of doing like 100 at a time, it will only send out like 20 at a time (or however many you have on each page) and then do the next page and so on and so on, right? Like spacing it out?

The problem with it (pre-my hack) is that after each X# of emails sent, you... the admin.. would have to press the feckin' 'Do Next Page' buttton, over and over again.

For instance, if you were emailing 10,000 members, and you selected to send 500 emails at a time, you'd have to press that button 19 times! ... and to avoid having to endure that boredom of sitting there so long, one would most likely not choose to do a small (and more safe) group of users for each page, and would therefore choose a larger # like 500, which also increases your chances of a php timeout.

With my code... select 100, 20, 10.. heck.. even 5.. to send email to at a time. It wont matter. Once you start the process it will take care of itself until it's complete.

I suppose this is only an issue with admins who have large boards and like to email large groups (or all) of their users often.

Boofo
01-19-2003, 11:24 PM
No, I think it will work great on small boards too. Well, done. It makes sense. Anything that is easier on the Admin, I am all for. ;)

Mutt
01-20-2003, 09:17 PM
thanks, I just installed it. Couldn't have been easier

we'll see how it works next month :)

drives fast
01-21-2003, 10:55 PM
I didn't notice anyone say it doesn't work.....but it didn't for me...I use 2.2.5

that couldn't be simpler but I have over 36000 members and when set to do 1000 at a time it never went to the next page and then after 5 pages I get the page not found error.

I even waited 3 minutes after each page to see if it was going to progress on it's own

drives fast
01-26-2003, 07:09 PM
okay...thanks anyway

Elvis
01-26-2003, 07:13 PM
Originally posted by drives fast
I didn't notice anyone say it doesn't work.....but it didn't for me...I use 2.2.5

that couldn't be simpler but I have over 36000 members and when set to do 1000 at a time it never went to the next page and then after 5 pages I get the page not found error.

I even waited 3 minutes after each page to see if it was going to progress on it's own


You really should try a smaller amount... try 100 at a time, after the first page it should start working.

I've heard that certain browsers don't allow javascript to submit a form....
However I do know that IE does, and I am using 2.2.5 vb

Martin64
02-03-2003, 12:08 AM
Excellent little tweak, I'm using this for my community bulletin (weekly newsletter). Thanks :)

drives fast
02-25-2003, 04:39 PM
this absolutely does not work for me. I tried 1000 at a time....no go....it was suggest that I try 100 at a time....still doesn't do anything.

thanks anyway

trainer
03-04-2003, 02:42 PM
is there a way to put a delay on each page. the server load goes crazy when i email 50 members at a time since there is over 18k members. i thought if i could put a 1 minute delay between loading the next page it might help??? any ideas

trainer
03-05-2003, 01:45 AM
bump!

Mutt
03-05-2003, 04:46 AM
I just wanted to saw thanks. I've always had trouble sending out the mail, until now. works like a charm. I know it was simple, but it was a huge improvement and I appreciate it. :)

PS - I set mine to 50 at a time and just let it run. Yes it takes awhile, but all the emails go out and thanks to this hack it's not a pain in the ass

trainer
03-05-2003, 07:45 PM
is there a way to put a delay on each page. the server load goes crazy when i email 50 members at a time since there is over 18k members. i thought if i could put a 1 minute delay between loading the next page it might help??? any ideas

trainer
03-09-2003, 02:56 PM
bump

Elvis
03-09-2003, 03:36 PM
Originally posted by trainer
is there a way to put a delay on each page. the server load goes crazy when i email 50 members at a time since there is over 18k members. i thought if i could put a 1 minute delay between loading the next page it might help??? any ideas


I havent done that.... but I'd imagine you could create a function for a small timer and the submit in javascript to create the delay.

Master Computer
04-05-2003, 05:35 PM
Thanks for the great hack :)

Raptor
04-08-2003, 01:52 PM
perfect hack - i have 42,000 users and i always had issues with timeouts and had to basically sit there all day when doing a mail list

Now i mail 50 at a time (812 pages) and it did it fully auto - thanks

vortech1
10-31-2003, 04:01 PM
Hmm does not seem to work for me ether on VB 2.2.9

Cold Steel
04-30-2004, 12:24 PM
Can someone port this to vB3?

trainer
04-30-2004, 06:52 PM
yes i would be interested in this being ported to VB3 aswell

MentaL
02-23-2005, 08:56 PM
me too again, convert for vb3!

andrew67
07-06-2005, 10:23 PM
Any news on this for VB3 ?

MentaL
07-06-2005, 11:45 PM
like wise

larsson
08-22-2007, 05:35 PM
yeah! Would be great to have for vb3!
Please anyone!!!

gengar56
10-24-2007, 09:21 PM
I've created it for vB3. Pretty simple. PM me if you can't figure it out.