vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   PM messages sends blank email (https://vborg.vbsupport.ru/showthread.php?t=315382)

itayKinnrot 11-21-2014 02:37 PM

we were disabled all the rewrite rules for email, but blank email still sent when PM arrived.
the DBSEO team said that it's unlikely the issue is in DBSEO, as DBSEO will not change the content of the email if email rewrite rule is disabled.

i saw that when im changing the user language to english it sent the email correctly.
maybe i can change something in the code that email will sent with english lang template and not hebrew. this should fix the issue.

can you help with this?

thanks,
Dooby

kh99 11-21-2014 03:22 PM

Did you check in the phrase manager to see if there is a hebrew phrase 'pmreceived' (in the Email Body Text group)? If there isn't it should fall back to using the default language, but I suppose if there was a blank phrase there it might end up blank.

Otherwise, you could try a plugin using hook location pmdata_postsave_recipient and code like this:
Code:

$touserinfo['languageid'] = -1;

itayKinnrot 11-21-2014 05:19 PM

thanks,
but it doesnt work.
still receiving empty email for PM messages

thanks,
Dooby

Lynne 11-21-2014 08:17 PM

Quote:

Originally Posted by itayKinnrot (Post 2523629)
i saw that when im changing the user language to english it sent the email correctly.
maybe i can change something in the code that email will sent with english lang template and not hebrew. this should fix the issue.

can you help with this?

thanks,
Dooby

So, if you change to English to *send* the PM, then you can read it in either English or Hebrew? But if you change to Hebrew to send the PM, then you cannot read it in either English or Hebrew?

Where did you get your Hebrew language pack and what version of vbulletin is it for? And what version of vbulletin are you running?

itayKinnrot 11-25-2014 05:43 AM

lets start from beginning.
1. i had vbulletin 3.8.7 and decided to upgrade to 4.2.2. the encoding wasnt utf8 (i dont remember the encoding). anyhow after the upgrade the db were damaged because vbulletin upgrading works only with utf8. also vbulletin upgrade support center failed upgrading it :)
i took DBA to help me convert all the DB to utf8 before the upgrade.
after that i was upgraded the forum to 4.2.2 and it works :) (the current version)

2. before the upgrade i used vbseo and used some redirection rules, so because vbseo dosnt supporting 4.x.x, i was installed DragonByte SEO and rewrite the URLs of the threads and posts.

3. i had many issues after the upgrade. cache issues, damaged styles, etc.

currently the last issue(i hope) that i have is the issue with private messages.

now for the problem and the workaround:
the problem is that all my users getting blank emails when they receiving private messages
during my tests i found the following: users that changed personal forum view from hebrew to english get the private messages emails in english.
i dont want to change the forum language because 90% of my users are israelis, so i think changing just the email language will fix this issue.

details:
forum: vbulletin 4.2.2
SEO: DragonByte SEO : email rewrite disabled
style: primus http://themeforest.net/item/primus-a...-suite/3321272
language: Hebrew main default , english secondary
hebrew translation: wizcraft.info


thanks,
Dooby

Lynne 11-25-2014 05:12 PM

First off, upgrading works just fine if your database isn't utf-8. I'm not sure who told you otherwise.

Anyway, if you go to Languages & Phrases > Language Manager and click to edit the language, what is the Language Code and HTML Character Set for both the English and the Hebrew languages?

itayKinnrot 11-29-2014 07:43 PM

hi,
regarding the upgrade no one told me. i tried to upgrade my forum at least 10 times and every time the data were corrupted.

currently im using unly utf-8 for both english and hebrew

thanks,
Dooby

itayKinnrot 12-01-2014 06:10 PM

please help with this.
my users still getting empty emails.

thanks,
Dooby

ozzy47 12-01-2014 08:55 PM

What is the translation of the phrase, pmreceived?

itayKinnrot 12-02-2014 03:56 PM

Hi,
copied the english version to the hebrew :

DO NOT REPLY TO THIS EMAIL!
***************************

Dear $touserinfo[username],

You have received a new private message at $vboptions[bbtitle] from $fromusername, entitled "$plaintext_title".

To read the original version, respond to, or delete this message, you must log in here:
$vboptions[bburl]/private.php

This is the message that was sent:
***************
$plaintext_message
***************

Again, please do not reply to this email. You must go to the following page to reply to this private message:
$vboptions[bburl]/private.php

All the best,
$vboptions[bbtitle]


All times are GMT. The time now is 03:23 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.01029 seconds
  • Memory Usage 1,741KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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