Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 11-21-2014, 02:37 PM
itayKinnrot itayKinnrot is offline
 
Join Date: Dec 2007
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #12  
Old 11-21-2014, 03:22 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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;
Reply With Quote
  #13  
Old 11-21-2014, 05:19 PM
itayKinnrot itayKinnrot is offline
 
Join Date: Dec 2007
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

thanks,
Dooby
Reply With Quote
  #14  
Old 11-21-2014, 08:17 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by itayKinnrot View Post
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?
Reply With Quote
  #15  
Old 11-25-2014, 05:43 AM
itayKinnrot itayKinnrot is offline
 
Join Date: Dec 2007
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #16  
Old 11-25-2014, 05:12 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #17  
Old 11-29-2014, 07:43 PM
itayKinnrot itayKinnrot is offline
 
Join Date: Dec 2007
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #18  
Old 12-01-2014, 06:10 PM
itayKinnrot itayKinnrot is offline
 
Join Date: Dec 2007
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

thanks,
Dooby
Reply With Quote
  #19  
Old 12-01-2014, 08:55 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What is the translation of the phrase, pmreceived?
Reply With Quote
  #20  
Old 12-02-2014, 03:56 PM
itayKinnrot itayKinnrot is offline
 
Join Date: Dec 2007
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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]
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 08:54 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.10370 seconds
  • Memory Usage 2,252KB
  • Queries Executed 11 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)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
  • (10)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