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)

filburt1 11-11-2006 08:55 PM

Random musings:
1. Yes, phrasetype is the main incompatibility issue.
2. Somewhere in there, there's the line:
PHP Code:

$DB_site &= $vbulletin->db

It was obviously a quick compatibility fix.
3. The issues were all caused by trivial problems, I suspected. I just didn't have any time left to fix them, so I released it to free. Glad to see it's made the progress it has.

If you can get it working to the point where it's redistributable, attach it here and I'll update the first post.
Quote:

Originally Posted by Lionel
The problem is the phrasetype table structure is not the same from 3.54 to 3.60
I had xml error from the very first line of the install. So what I did, I opened the xml and ran the queries one by one in php admin, simply changing {tp} with my prefix. Once all the tables were created and the inserts done (a matter of minutes), I imported the templates xml from the upload styles input.

Did the same for the phrases. That took a couple of minutes.

The biggest headache is the settings. I had to do them one by one, but it's only 14 of them. You need also to set the settinggroup (1 entry with phpadmin)

Then the fun begins. I replaced all $DB_Site with $db (just a search and replace for all the files).

Then within the php, some changes are needed, around $_POST calls. I introduced a hidden input in the templates and instead of if(!empty($_POST)) I made it if ($_REQUEST['do']=='addfilter') for example, and that took care of the checkboxes not displaying the updates.

Did the same thing in vbms_new.php

I would say I have it 90% working on 3.60. I still have that annoying error when deleting an empty folder. But if you go back and do it, then it is fine.

The solution posted earlier by MPDev

took care of making the html emails clean.

For some reasons, it sends double emails.

I am still sorting out the very 2 or 3 remaining issues.

I really don't know what was filburt1 problem. I am no way near the masters of this site, but am able to sort the issues, which so far seems to be insignificant.


Lionel 11-11-2006 09:36 PM

What I don't get, the cronimage, the envelope with the exclamation mark, displays every minute at the bottom of the footer. That should tell me that the cron did not run. The log tells me it was not possible to connect to IMAP, yet I get the mails, as per the image (I borrowed that code from the 3.07 zipped version that you uploaded)

One of the files, I think it was the cron, not sure, will not work until I changed it to $db so I played it safe and changed them all. I also changed some $vboptions into $vbulletin->options. Like Paul M. pointed in a post earlier, the interval settings had to be added.

Now, once I get the last bug out I could upload all my changes, someone else would have to package the xml. I still have not learned how to do it, as I code mostly for myself and work off database directly and use debug mode for settings.

filburt1 11-11-2006 09:38 PM

Try looking in the logs to see if there were warnings or something.

I don't get what the screenshot is for, though; it's just showing you have unread mail somewhere (isread, read, whatever is 0, not 1, for one of your messages).

Lionel 11-11-2006 09:44 PM

That image, I got the code from the other zip that you uploaded. It's the code that pops up under the navbar of any vb page when you have a message.

I disabled loggin errors, because all there was in there is unable to connect to imap, which is not true.

I posted screenshot to show you that email is coming. Cron is running by itself.

Lionel 11-11-2006 10:11 PM

This is another screenshot

I also need to fix the notification to real email. It comes empty

And I have not yet tested attachments.

Lionel 11-12-2006 12:12 AM

Some great news.
the main reason why the cron was not running in the cron folder is because

Quote:

require_once( "./includes/vbms_preinit.php");
should have been

Quote:

require_once(DIR . "/includes/vbms_preinit.php");
This is my log now
Quote:

Warning 11-11-06 09:10 PM Running mail check despite there being 15 seconds minimum until next scheduled run
Debug 11-11-06 09:10 PM Connecting to mail server
Debug 11-11-06 09:10 PM Retrieving message count...
Information 11-11-06 09:10 PM There are 0 messages on the POP3 server that need to be downloaded
Debug 11-11-06 09:10 PM Closing connection
Information 11-11-06 09:10 PM vBMS mail checking completed

Lionel 11-12-2006 12:23 AM

Worth checking also. Since I am forcing TLS, I had to change in the checkmail_functions
Quote:

$vulletin->options['vbms_notls']
to
Quote:

$vulletin->options['vbms_forcenotls']
as the correct options was 'vbms_forcenotls'. I am not sure if I picked that from comparing 3.07, but somehow this is what it was in vbulletin options.

Lionel 11-12-2006 12:27 AM

and the very simple query to take care of phrase type, replacing TP_ with your prefix:

Quote:

INSERT INTO `TP_phrasetype` VALUES ('vbms', 'vBulletin Mail System (vBMS)', 3, 'wdf_vbms', 0);

Lionel 11-12-2006 12:48 AM

BTW I solved the previous mystery of failed image and successful cron: I forgot I had hardcoded the login values :-)

Lionel 11-12-2006 12:52 AM

I wonder what is the name of the 1x1 successful gif? Now that it is successfull i get a broken image


All times are GMT. The time now is 10:47 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.01268 seconds
  • Memory Usage 1,746KB
  • 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_php_printable
  • (7)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