Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Simple Automation of 'Email Users' - 'Do Next Page' Button Details »»
Simple Automation of 'Email Users' - 'Do Next Page' Button
Version: 1.00, by Elvis Elvis is offline
Developer Last Online: May 2008 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 01-18-2003 Last Update: Never Installs: 11
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 01-19-2003, 05:19 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

- miSt
Reply With Quote
  #3  
Old 01-19-2003, 05:23 PM
Elvis Elvis is offline
 
Join Date: Jul 2002
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 01-19-2003, 05:52 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thankyou

- miSt
Reply With Quote
  #5  
Old 01-19-2003, 05:58 PM
Elvis Elvis is offline
 
Join Date: Jul 2002
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 01-19-2003, 10:40 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm still confused here. What does this actually do?
Reply With Quote
  #7  
Old 01-19-2003, 10:51 PM
Elvis Elvis is offline
 
Join Date: Jul 2002
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #8  
Old 01-19-2003, 10:58 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #9  
Old 01-19-2003, 11:07 PM
Elvis Elvis is offline
 
Join Date: Jul 2002
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 01-19-2003, 11:24 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:57 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04873 seconds
  • Memory Usage 2,291KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete