Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Incorrect header time in emails Details »»
Incorrect header time in emails
Version: , by SloppyGoat SloppyGoat is offline
Developer Last Online: Nov 2015 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 09-21-2003 Last Update: Never Installs: 0
 
No support by the author.

Ok, this probably doesn't bother anyone, and it really never bothered me...until someone pointed it out, and me and this other guy started trying to figure out how to fix it.
If you've never noticed, vB's email header time is off by 11 hours because it doesn't send time headers, period.
Well, Squirre1, over at vB.com figured out a fix for this, but it only works for versions before 2.3.x. So, I've been trying to figure out how to do this on 2.3.0.

You can read this thread for the background on this problem.
http://www.vbulletin.com/forum/showt...7&page=1&pp=15

Here's what I've found out, from what Squirrel1 has helped me with.

Ok, here's what we've found out so far. Maybe this will help someone to help me figure out what's going on here.

What I've found out is; if I change this line in functions.php...

vbmail($toemail, $subject, $message, $from = '', $headers = '', $username = '') {

to:

vbmail($toemail, $subject, $message, $from = '', $headers = '\nDate: $emailtime', $username = '') {

....then the correct header time is sent on subscribed thread emails, but not on regular emails. But, it also includes the variable ($emailtime) at the top of the message. The global.php's don't seem to make any difference at all. I tried replacing them with the originals one at a time, so it's definitely the funcions.php that's putting the "$emailtime" at the top of the message. Can anyone help figure out:

1) How to make functions.php send the correct header time, but not include the variable in the message

2) How to make the correct header time send in all emails, not just subscribed thread notices.

Any help would be much appreciated, since I'm no php guru.

Show Your Support

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

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

If you believe it's wrong in every board you should report it as a bug at vbulletin.com
Reply With Quote
  #3  
Old 09-22-2003, 01:09 PM
SloppyGoat's Avatar
SloppyGoat SloppyGoat is offline
 
Join Date: Feb 2002
Posts: 339
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, since vB doesn't send header time at all, it's not really a bug, just an exclusion. They already know about it, and Mike Sullivan says it's just not in the code. It probably should be though, eh? It's wrong on every board that doesn't use sendmail, I guess.

Quote:
vB doesn't send anything time related to sendmail whatsoever. Normally, I would think that sendmail sends based on the server time, but that doesn't seem to be the case here for some reason...

Code:
($toemail,$emailsubject,$emailmsg,"From: \"$bbtitle Mailer\" <$webmasteremail>");
There's no date header send whatsoever.
(This is older code. Since the version they were discussing, it appears to have been consolidated in functions.php)
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 10:56 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.03423 seconds
  • Memory Usage 2,208KB
  • Queries Executed 16 (?)
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
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (2)postbit
  • (3)postbit_onlinestatus
  • (3)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete