vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Administrative and Maintenance Tools - Cron based e-mail sending (https://vborg.vbsupport.ru/showthread.php?t=231715)

Paul M 07-27-2011 03:00 PM

Yes, that sounds right.

ip-ip 09-03-2011 11:30 AM

Hi,
I changed my server and went to a better server, my new server accepted 1000 send mails per hours and i think this is ok with your mod.
Default Number of Emails to Send Per Batch is 80, but Per Batch will take time is Unknown, How each Batch takes in Default option ?

Paul M 09-03-2011 02:20 PM

The default is every 10 minutes, if you set the batch to 150, that will give you 900 / hr.

g00gl3r 09-07-2011 03:50 PM

Just checking that still works with 4.1.5 etc?

g00gl3r 09-07-2011 04:29 PM

Seems so.

Am I being a bit daft or what here? Where are the options that I need to change to manage how many mails per hour go out? Am I changing the standard VB settings?

g00gl3r 09-08-2011 07:18 PM

Righteo.

Thread notification emails are not sending.

What setting do I need to change?

99% of our members have instant notification, could do without these being queued, we could lose traffic.

Paul M 09-09-2011 10:55 PM

There is no such setting, queuing them is hard coded into vb.

g00gl3r 09-11-2011 03:08 PM

Okay thanks paul. Which setting do I need to change to increase the emails per hour? I'll just increas that somewhat. Our spec server should take it. It's just when I did a mass mail on many forums at the same time we lagged a little.

Your mod is great by the way. Just need to tweak it to get these notifications out at least the same day.

Paul M 09-11-2011 09:28 PM

'Number of Emails to Send Per Batch' in vboptions. As detailed in the first post. :)

Paul M 10-16-2011 11:50 AM

Updated: This is now available for the 4.1.x series of vBulletin only.

arkueckelhan 11-18-2011 09:44 PM

Quote:

Originally Posted by Makaveli007 (Post 2150759)
Yes the one towards the end is the one I thought. I tried it probably six times even using ctrl h to find and replace indentically with the install instructions, and tried using wordpad, notepad, and my webhosts file editor. Changing the admincp > email.php in the same manner (ctrl h) worked perfectly. I used this mod great on vb3 and had no trouble editing the files.

screenshot
http://img8.imageshack.us/img8/7910/capturelvy.png

Ill give it a go again in the AM


Paul, I am having this EXACT same error. I am running vbulletin 4.1.7

I get no errors from editing the other files but funcitons.php gives me the syntax error every time. If I return it to before, the error goes away. I am literally opening the file, highlighting the to-be-changed code, and pasting over it with the new code, not editing a single other thing. Does the functions.php need a different chmod or something?


Thanks
(btw, I am installing this on vb4, your other mod for 3.8 worked great for me on another forum)

Paul M 11-18-2011 11:48 PM

Nothing special is required, nor can I actually see anything wrong with the linked image.

arkueckelhan 11-23-2011 08:58 PM

Quote:

Originally Posted by Paul M (Post 2269381)
Nothing special is required, nor can I actually see anything wrong with the linked image.

The error is live on my site: http://www.battleforums.com/forums/forum.php

Message says:

Quote:

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at [path]/includes/functions.php:1) in [path]/includes/facebook/facebook.php on line 37
I made no changes to line 1 of functions.php or touch the facebook.php file AT ALL. Followed your instructions to a T.

Please help me with a workaround.

Thank you

arkueckelhan 11-23-2011 09:09 PM

Paul. I will post if things change, but if anyone else is having this problem, it seems that mine was due to some issue when editing functions.php in notepad... using notepad ++ solved the issue. I recall having a similar issue back in the day and hopefully this will fix that as well!

arkueckelhan 11-30-2011 09:58 PM

Quote:

Originally Posted by Paul M (Post 1962136)
Delete the e-mails from the mailqueue table.

I need to cancel a mailing after I have started already. How do I clear the data from the mailqueue table?

admin cp> maintenance > repair/ optimize tables
is the closest I have found. Googling didn't yield much help. Could you please shoot me a quick rundown or a link to the information

Paul M 11-30-2011 10:42 PM

[sql]TRUNCATE MAILQUEUE[/sql]

aboayoy 12-01-2011 08:05 PM

when i changed function.php

the forum stop and this messege will be shown :

Warning: Cannot modify header information - headers already sent by (output started at [path]/includes/functions.php:1) in [path]/includes/functions.php on line 3968

forum
4.1.4

aboayoy 12-01-2011 08:25 PM

please ,
i want the one for 4.1.4

Paul M 12-02-2011 11:35 AM

This is for any 4.1.x version.

Quote:

vB Version: 4.1.x

final kaoss 12-22-2011 07:15 PM

Paul, ever think about upgrading the little txt document to a diff file?

Paul M 12-22-2011 08:38 PM

You would need a new version each time the vbulletin file changed.

Sworm 12-29-2011 08:16 AM

Hi Paul it work on 4.1.9? Thanks.... great job like ever!

athlon64bit 01-25-2012 08:53 AM

For me it did not work on 4.1.9 nor does it work on 4.1.10. Avatars won't display, reply function to posts, pms etc malfunctions,, browsers such as firefox and opera, only have white screen for adminCP and the emails fail to send. I guess we need to wait for an update for this add-on. If anyone knows of a work around for my problems I would welcome in.
The problems I describe appear to result from editing the includes/functions.php file.

Paul M 01-25-2012 11:22 AM

I suggest you check your edit.

athlon64bit 01-27-2012 01:50 PM

Quote:

Originally Posted by Paul M (Post 2292173)
I suggest you check your edit.

I have multiple times and I have read over this thread. I have uninstalled/reinstalled multiple times. I am at a loss. Maybe it is something to do with another add-on conflicting? Or something to do with my web server/web host? Thanks for getting back to me.

This is what I see on opera browser, in adminCP, after editing the functions file, in opera browser,
Code:


. Dunno if that helps. Replying to threads, won't work, box won't load to type in; avatars won't display and the whole forum becomes unusable with all browsers.

Paul M 01-27-2012 07:50 PM

That's a BOM mark - added to files when you edit then in something like notepad (on windows 7).
It will 100% break a php file as the server will have a fit over it. You need to find a text editor that doesnt do this.

beatyourtruck 03-27-2012 12:57 AM

Quote:

Originally Posted by arkueckelhan (Post 2271290)
Paul. I will post if things change, but if anyone else is having this problem, it seems that mine was due to some issue when editing functions.php in notepad... using notepad ++ solved the issue. I recall having a similar issue back in the day and hopefully this will fix that as well!

Thank you! Was having the same issue with Notepad and Windows 7. Notepad ++ solved my issue also.

http://notepad-plus-plus.org/

arkueckelhan 04-06-2012 12:14 AM

The cron system was working but recently my site is taking EXCESSIVE amounts of time to start adding emails to the queue (the point right after your write the email and the default value is 500). I dropped the value to 50 and still it is about 4 minutes to add a set of 50 emails. It is NOT sending them out and is successfully adding them to the queue for later processing.

Any thoughts on what is going on?

I recently have cached my pages as well as vbseo, added vb optimise and vb4 supercharged (plug-ins) to my site. Do you know if one of these is causing the issue?
---- I haven't sent any emails out in about 3 months so couldn't tell you if the issue followed one of these things or not.

final kaoss 05-23-2012 11:33 AM

Well, looks like we won't be needing this mod any more.

Quote:

Cron-Based Batch Email Sending
Previously, any attempt to send email to a large number of forum users might have resulted in overloading your server and/or running the risk of exceeding your web host's email send limit. We've added batch email sending via cron job to version 4.2 to help you avoid such issues.

Paul M 05-23-2012 11:42 AM

Correct, its been added to the 4.2 core.

Ziki 05-30-2012 11:22 AM

Hi Paul

I tried using this in conjunction with a mod of mine which sends to all users of a specific social group a notification when a new thread is made in a specific forum. This can be well about 4500 e-mails. But when I try to submit a new thread, it gets inserted into the database but the page keeps hanging until it times out. Is it taking so long for the e-mails to be inserted into the queue? Because even after waiting for a while, no e-mails show up in the e-mail queue.

You can find the code I am using here: https://vborg.vbsupport.ru/showthrea...19#post2334619

Thank you very much

Sworm 05-31-2012 06:05 PM

For me this one is better than the one integrated in vb 4.2.0.. With the integrated tool, i have always the queue full. Unuseful tool. I'll reinstall this one on my 4.2.0.

--------------Edit--------------

Not compatible with 4.2.0. :( Paul please help me.

Paul M 05-31-2012 07:21 PM

Quote:

Originally Posted by Sworm (Post 2335170)
For me this one is better than the one integrated in vb 4.2.0.

They are the same.


Quote:

Originally Posted by Sworm (Post 2335170)
Not compatible with 4.2.0. :( Paul please help me.

It isnt required for 4.2.

Nirjonadda 08-13-2012 03:56 PM

Does It work without manually file edit on 4.1.10 ?

carrlos 09-06-2012 10:36 AM

I was using this mod until updating to 4.2.0 last week. I have not received a new registration email since then. I'm not sure if it's related or not but I don't even know where to begin troubleshooting. Users are getting the activation email but I stopped getting emails of new registrations or emails from forums where I asked to be notified of new posts and threads. Can anyone point me in the right direction to begin troubleshooting?

Paul M 09-07-2012 11:17 AM

Have you viewed the mail queue ?

hamdanikcung 09-21-2012 08:43 AM

i wannt to ask the queue in my bulletin stil 2000 queue, i set the packet send 15 email and no delay time .. but only send a few and 1 hour still queue what happen ??

Farsisat 10-15-2012 06:46 PM

please update for 4.2

Paul M 10-15-2012 10:43 PM

Did you read the main post ??

Quote:

This modification is not required for vBulletin 4.2.x Onwards.

sat2006 01-28-2013 02:23 PM

please update for 4.2


All times are GMT. The time now is 03:46 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01443 seconds
  • Memory Usage 1,819KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete