vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vBulletin Mail System (https://vborg.vbsupport.ru/showthread.php?t=125890)

Lionel 11-18-2006 02:13 AM

I also put this at the end of navbar template so members know when they have new mail.

PHP Code:

<!-- vBMS new mail notification -->
<if 
condition="$vbulletin->options['vbms_enabled'] and $vbulletin->options['vbms_headernotification'] and $vbms_newmessages['newcount'] > 0">
<
br />
<
table cellpadding="$stylevar[outerborderwidth]cellspacing="0" border="0" class="tborder" width="$stylevar[tablewidth]align="center">
<
tr>
<
td>
<
table cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%">
<
tr>
<
td class="thead" colspan="2">$vbphrase[vbms_you_have_new_email]</b>
</
td>
</
tr>
<
tr>
<
td class="alt2" style="width:30px; text-align:center; overflow:hidden; padding:1px; vertical-align:middle">
<
span style="font-family:'Trebuchet MS', Verdana, Tahoma, Arial, sans-serif; font-weight:bold; font-size:xx-large">!</span>
</
td>
<
td valign="top" class="alt1">
<
b>
<if 
condition="$vbms_newmessages['newcount'] == 1">
$vbphrase[vbms_one_unread_message]
<else />
<
phrase 1="$vbms_newmessages[newcount]">$vbphrase[vbms_x_unread_messages]</phrase>
</if>
</
b><br />
<
span class="smallfont"><phrase 1="/forums/vbms.php?$session[sessionurl]">$vbphrase[vbms_to_read_your_email]</phrase>
</
span>
</
td>
</
tr>
</
table>
</
td>
</
tr>
</
table>
</if>
<!-- / 
vBMS new mail notification --> 


Lionel 11-18-2006 02:18 AM

You guys make sure you have 15 settings, and the one for NOTLS is named force_notls and not notls.

If you have problems, post it and I will help you.

Lionel 11-18-2006 03:29 AM

My setup is very different. So in the code that I posted, you need to look for and replace every instance of

Quote:

" . "user
with

Quote:

" . TABLE_PREFIX . "user

Lionel 11-18-2006 04:49 AM

in vbms_functions.php look for

Quote:

// convert ab aliases to actuals
$result = $db->query("
SELECT LCASE(alias) AS alias, actual FROM " . TABLE_PREFIX . "vbms_addressbook
WHERE userid = " . $bbuserinfo['userid']);
and replace with

PHP Code:

$alias=str_replace("\"","",$to);
     
     
// convert ab aliases to actuals
     
$result $db->query("
       SELECT LCASE(alias) AS alias, actual FROM " 
TABLE_PREFIX "vbms_addressbook
          WHERE alias='
$alias' AND userid = " $bbuserinfo['userid']); 

before sending, the script looks at the address book for an alias and if you do have an address book, it assumes that the entry exists, not taking into consideration new emails that you are replying to. Since it will not find it, it will throw an error.

The fix above introduce the alias in the WHERE clause, so if alias is not in there it will ignore it and send the mail without errors.

Andre31 11-18-2006 05:45 PM

Work this nice Addon under 3.6.2 without Problems? I´ve tried, but i became trouble with the installer. Have anybody an idea?

filburt1 11-18-2006 06:56 PM

Did you read any of the posts in this thread?

Lionel 11-19-2006 08:00 AM

Instructions.

BACKUP your database and your templates
  1. Run the included queries in phpadmin. Make sure you replace the " . TABLE_PREFIX . " with your own prefix
  2. Merge the included templates into your existing style by importing the xml in Upload/Download Templates
  3. Import the product. That will set the phrases, the plugins and the settings
  4. upload the files
  5. Refresh admincp and look for the new link for the mail system and set your settings
Know bugs: Permissions need to be setup twice for it to be accepted.

This has been working on my site with no reported problems.
Some FAQ are specific to my site and you will not need. Simply delete them in FAQ admin

If you want to display a mail notification to your members on the site, follow the instructions here
https://vborg.vbsupport.ru/showpost....&postcount=221

uploaded images

dodgeboard.com 11-19-2006 02:52 PM

At Query:

UPDATE phrase SET product = "wdf_vbms" WHERE varname LIKE "vbms%" OR phrasetypeid = 500

Quote:

Error
SQL query:

UPDATE phrase SET product = "wdf_vbms" WHERE varname LIKE "vbms%" OR phrasetypeid =500

MySQL said:

#1054 - Unknown column 'phrasetypeid' in 'where clause'

Lionel 11-19-2006 02:54 PM

Quote:

Originally Posted by dodgeboard.com (Post 1120809)
At Query:

UPDATE phrase SET product = "wdf_vbms" WHERE varname LIKE "vbms%" OR phrasetypeid = 500

disregard this query. Since this is a copy of my product, you don't need. or simply remove that part

"OR phrasetypeid =500 "

dodgeboard.com 11-19-2006 02:55 PM

same with this one? (same error)


UPDATE phrasetype SET product = "wdf_vbms" WHERE phrasetypeid = 500


All times are GMT. The time now is 11:48 AM.

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.02993 seconds
  • Memory Usage 1,762KB
  • 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
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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