vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=47886

Simple Automation of 'Email Users' - 'Do Next Page' Button
by Elvis
19 Jan 2003 16:56

1 Attachment(s)
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 19 Jan 2003 19:19

Nice hack - i'd stick it in a text file though because currently unlicensed users will have access to this ... :)

- miSt

Elvis 19 Jan 2003 19:23

Quote:

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 19 Jan 2003 19:52

Thankyou :)

- miSt

Elvis 19 Jan 2003 19:58

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 20 Jan 2003 00:40

I'm still confused here. What does this actually do?

Elvis 20 Jan 2003 00:51

Quote:

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:
Quote:

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 20 Jan 2003 00:58

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 20 Jan 2003 01:07

Quote:

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 20 Jan 2003 01:24

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 20 Jan 2003 23:17

thanks, I just installed it. Couldn't have been easier

we'll see how it works next month :)

drives fast 22 Jan 2003 00:55

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 26 Jan 2003 21:09

okay...thanks anyway

Elvis 26 Jan 2003 21:13

Quote:

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 03 Feb 2003 02:08

Excellent little tweak, I'm using this for my community bulletin (weekly newsletter). Thanks :)


All times are GMT. The time now is 01:48.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.