vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - Email Integration (New threads/replies by email) (https://vborg.vbsupport.ru/showthread.php?t=151222)

tekguru 07-20-2007 09:31 AM

Well all was looking good to me until I replied to a post from Outlook 2007 this morning and got:

http://www.4winmobile.com/news/font.jpg
http://www.4winmobile.com/news/font2.jpg

As you can see, all sorts of extra font info :(

Cyricx 07-20-2007 12:02 PM

Tek, please PM me your email address. :) I'll then send you an email that I'll have you reply to, which will give me a copy of your email format to fiddle with til i get the preg_replaces to work right :)

On your suggestions - Option to remove the signature when exporting the email. - not completely sure what you mean. You mean the email that you receive not having the signature?


Trala, if you have any luck with that please hollar!! I have only researched the imap route so far. I'm uncertain what other options are available to retrieve the email with php. Even the class files I've found at www.phpclasses.org all use imap functions that I could find :(


I'll add some of the suggestions to the future list. :)

tekguru 07-20-2007 01:02 PM

Not a problem, email address just sent over. It should be noted though that the first three or four messages processed through did not have the problem at all which is plain weird!

Yep the option was to send the email out minus the Signature as some of my guys do use rather long sigs :)

Cyricx 07-20-2007 05:34 PM

I'm gonna kinda be MIA for this afternoon and tomorrow, got some stuff going on at the homefront. Sunday I'll be back to working on this :)

Maybe sunday I can get a few of the options coded in and go to a 2.0 version ;) will have to see :)

Piggo 07-20-2007 11:25 PM

Cyricx,
This has gotta be the fastest ever developed plugin with such a HUGE HUGE benefit, a few days, and you took if from BETA, and now almost v2.0! Way cool.
I can't believe how fast you made this, and reacted to comments here.

KUDOS
KUDOS
KUDOS

Gladly made a donation of ten bucks for the effort! Great job.

Piggo 07-21-2007 02:01 AM

Quote:

Originally Posted by Tralala (Post 1296147)
Sadly, my ISP won't enable the imap_open() requirement, so I'm going to have to sit out of this one for a bit.

Darn, I'm in the same boat. :(

I might consider to move the whole thing over to a diffferent serve, just so I can run this!

If you find a relatively simple way of custom compiling PHP, Tralala, please let us know...

quiklink 07-21-2007 08:06 AM

So far it's working great! Still missing a few *'s and >'s in text replies but nothing major. One thing I did notice is that replies via email do not seem to be associated to the proper posts if you view the forum in Threaded or Hybrid modes. Again nothing major but might be worth looking into correcting.

It would also be good if we could customize the 'footer' of emails that are sent to change the links, add advertising, etc.

cmwg 07-21-2007 10:49 AM

Am i correct when saying that you need one mailbox per forum section ?
Would be nice to have it sort that out within the extension.
Something in the header for example
[Forum ID] [Thread ID] Title

or am i missing something and this is already implemented?

That way only one email address would be needed. :)

Piggo 07-21-2007 01:00 PM

Okay, still no luck; was trying to install the new/updated PHP 5 with enabled IMAP, but I have no idea how to run a .sh file. How do I execute a .sh file on a server?
Any help much appreciated.

tekguru 07-21-2007 03:31 PM

Looking at some of my font / colour issues on the email replies I'm posting into the forum when one looks at the message BBCodes on can see in:

Code:

[COLOR=#1F497D']Yeah I know Steph ? this is one of the issues the =authorhas to fix.[/color]
Code:

[COLOR=#1F497D']Ignoring away Jim [/color][COLOR=#1F497D']J[/color]
Code:

[COLOR=#1F497D']Fairy nuff keep us posted![/color]
That the ' character appears in there spuriously if that is actually removed by hand then the font format issues are fixed.

Mind you it may well be worth killing off any FONT / COLOR codes in imported messages as that would fix the issue.

------

Suggestion - another useful features would be for an Admin to be able to see via the CPL who was subscribed to each forum and also have the abilitry (probably from teh same page) to add in users either by usergroup or via individual username.

Tralala 07-21-2007 04:33 PM

Quote:

Originally Posted by tekguru (Post 1297457)
Suggestion - another useful features would be for an Admin to be able to see via the CPL who was subscribed to each forum and also have the abilitry (probably from teh same page) to add in users either by usergroup or via individual username.

Yes... or an option to have subscriptions turned on by default for all members!

Piggo 07-21-2007 06:42 PM

Tralala, it seems to start to come together.

Using PuTTy and installing PHP5 and the custom one...
will update if successful....

quiklink 07-21-2007 06:52 PM

You are going to have to rebuild Apache as well.

Piggo 07-21-2007 09:45 PM

It works!

Managed to get it working on a DREAMHOST server.
It took almost all day (I am new to all this, hence the time) but it works.

Testing it now...

Tralala 07-22-2007 12:16 AM

Cool, Piggo, looking forward to hearing your notes. Much appreciated!

Piggo 07-22-2007 01:25 PM

As mentioned, installing this GREAT email integration plugin isn't difficult, as long as IMAP is enabled on your server.
It isn't with DREAMHOST.
All the following is based on this, and using a WINDOWS XP machine.

To enable IMAP on a DREAMHOST server, you need to custom compile a PHP5 file.

In order to do that, you need to be able to setup SSH on your WINDOWS computer.

This isn't really a step-by-step, but just some points that need to be done.

1) Select a USER on the DREAMHOST panel that has access to your DOMAIN hosted by DREAMHOST. Change to USER ACCOUNT TYPE "Shell account - allows FTP plus ssh/telnet access."

2) Go here and do what that describes in order to get PuTTy working:
http://www.phileplanet.com/archives/...on-windows-xp/
(more reading here: http://www.wiki.dreamhost.com/SSH , but above link should be all that is necessary)
NOTE: I needed to change the PUTTY setting to CATEGORY/TERMINAL: Local echo and local line editing to FORCE ON, and used the PuTTY comand promt by going START/ RUN / and type putty

3) You will need 3 files/codes.
The first two can be found here:
http://wiki.dreamhost.com/PHP_5_install_script
a) called php5-install-prep.sh ; b) called php5-install.sh
The third comes later....
The easiest way is to COPY those codes, and save them as a TEXT FILE IN NOTEPAD. The simpleton I am, I used file names 1.txt for php5-install-prep.sh, and 2.txt for php5-install.sh
Before saving those files, change the DOMAIN NAME to your DOMAIN in BOTH FILES, in this line which is about line #22 or so:
export DOMAIN="your-domain-here.com"

4) Then follow the instructions here:
http://wiki.dreamhost.com/Custom_compile_PHP_5
Pertinent will be this, although you will need to do it TWICE, using the 1.txt file and then the 2.txt file:

Install/Compile PHP 5

Open 1.txt and SELECT ALL and COPY.
Log in to your account using SSH with the PuTTY program mentioned above.
Create a new file in your SSH by entering the command:

vim 1

Hit i for insert mode, then right-click to paste your clipboard (the install script) contents, then hit Esc, type :wq (that's 'colon', 'w', 'q'), and press Enter to save and exit.
Make the file executable by entering the command:

chmod +x 1

Run the script by entering the command:

./1

Now the initial script will install; it will take a few minutes!

Now repeat for the second file:

Open 2.txt and SELECT ALL and COPY.
You are probably still logged in right now...
Create a new file in your SSH by entering the command:

vim 2

Hit i for insert mode, then right-click to paste your clipboard (the install script) contents, then hit Esc, type :wq (that's 'colon', 'w', 'q'), and press Enter to save and exit.
Make the file executable by entering the command:

chmod +x 2

Run the script by entering the command:

./2

Now the final script will install; it will take a few minutes!

After it has finished you will need to edit your htaccess file appropriately. Add the following:
Copy the following and paste into NOTEPAD, and saving it as ".htaccess":

AddHandler phpFive .php
Action phpFive /cgi-bin/php.cgi:


And FTP that file ".htaccess" to your DOMAIN.

Notes:
1) For the SSH session you need to be above your DOMAIN. I.e. you should see such folders as Maildir, logs, yourdomain.com, etc. The .htaccess file however, goes INTO yourdomain.com folder.
2) the FTP program I normally use isn't really good in showing such files as .htaccess, so i downloaded WinSCP free from:
http://winscp.net/eng/index.php


I also did this at the end of this page:
http://www.davidfugate.com/roll-your...eamhost-drupal
cp /etc/php5/cgi/php.ini /home/yourusername/
although I am not sure if that was necessary.

Hope some of this is helpful....

Andreas 07-22-2007 03:22 PM

Phrases instead of hardcoded text would be nice :)

Tralala 07-22-2007 03:39 PM

Quote:

Originally Posted by Piggo (Post 1298229)
As mentioned, installing this GREAT email integration plugin isn't difficult, as long as IMAP is enabled on your server.

Thanks so much for this, Piggo... you rock!

tekguru 07-23-2007 08:58 AM

Any developments with the coding this weekend? Just wondering as on the forum here we are suffering from:
  • Additional = characters appearing
  • ' characters appearing in the wrong place
  • Some online posts appearing without bodies via email
  • Signatures not appearing in emails

Cyricx 07-23-2007 03:13 PM

Quote:

Originally Posted by cmwg (Post 1297298)
Am i correct when saying that you need one mailbox per forum section ?
Would be nice to have it sort that out within the extension.
Something in the header for example
[Forum ID] [Thread ID] Title

or am i missing something and this is already implemented?

That way only one email address would be needed. :)

The original version required that. I found it to be very unuser friendly. Those that love mailing lists hate any inconveiance and having to put a specific prefix in the subject line like [f-5] for forumid 5, was shot down unanimously and would result in none of the mailing list people moving over of the ones I polled :)

If someone wants to make a mod based off of this one that does that, they are welcome to :)

Eventually I might code a version like that, but it would be FAR down the line :)



Quote:

Originally Posted by tekguru (Post 1297457)
Looking at some of my font / colour issues on the email replies I'm posting into the forum when one looks at the message BBCodes on can see in:

Code:

[COLOR=#1F497D']Yeah I know Steph ? this is one of the issues the =authorhas to fix.[/color]

The plan is to rip out any color or font html that has # ' or " in it, before it converts to bbcode which should keep any extra [/font] from being left over. Gotta test this out over the next day or two :) I'll get with you to get some scripts to test out :)

Quote:

Originally Posted by tekguru (Post 1297457)
Suggestion - another useful features would be for an Admin to be able to see via the CPL who was subscribed to each forum and also have the abilitry (probably from teh same page) to add in users either by usergroup or via individual username.

Great idea!! Adding to future plans :)

Quote:

Originally Posted by Andreas (Post 1298302)
Phrases instead of hardcoded text would be nice :)

Absolutely, I hope to get this into 2.0, it'll depend on how quickly the debugging goes :) But yes, phrasing is absolutely planned! :)

Quote:

Originally Posted by tekguru (Post 1298894)
Any developments with the coding this weekend? Just wondering as on the forum here we are suffering from:
  • Additional = characters appearing
  • ' characters appearing in the wrong place
  • Some online posts appearing without bodies via email
  • Signatures not appearing in emails

Sorry, this weekend was VERY hectic! I'm a pretty busy bee on the weekends hehe.

Digging into the list of bugs today and tomorrow to see what all I can get resolved as quickly as possible.

AyeCapn 07-23-2007 05:34 PM

Cyricx - I got directed to this thread from the custom app discussion in RedTyger's thread (https://vborg.vbsupport.ru/showthread.php?t=141280) and I am glad to see how well your app has been coming along. I'll be installing and testing this afternoon sometime.

Would a modification to this app be possible taht would provide instant email notification like this:

vBulletin has a features in the AdminCP that allows administrators to be notified via email for each new post that is made. I would like to extend this functionality to all users who request it.

The current feature can be found here:

Forums & Moderators > Forum Manager > {some forum} > Moderation Options > Email Addresses to Notify When there is a New Post (Separate each address with a SPACE)

The space provided is finite, and I'd like it to be a profiule option instead. There would be one profile checkbox (yes to reveive or no don't receive) for each parent forum on my site.

Combine that functionality with reply by email and you have effectively rendered Yahoo groups useless :)

quiklink 07-23-2007 05:50 PM

If you are subscribed to the forum using this mod you receive immediate copies of all posts.

AyeCapn 07-23-2007 05:53 PM

Quote:

Originally Posted by quiklink (Post 1299389)
If you are subscribed to the forum using this mod you receive immediate copies of all posts.

get the funk out!

like... for serious? :eek:

Cyricx 07-23-2007 06:30 PM

Yep! This mod is meant to completely simulate the yahoo groups and other mailing lists :)

Though it is a constant work in progress due to the various email processors out there :)

AyeCapn 07-23-2007 06:32 PM

managed to get the thread posts to generate an email, but creating a post from an email doesn;t seem to do anyhting.

When I run the CRON job manually I get this error even after testing all the 6 email types:

Code:

Fatal error: Call to undefined function imap_open() in /home/yaddayadda/public_html/forum/includes/cron/emailintegration.php on line 70

AyeCapn 07-23-2007 06:34 PM

is it feasible to subscribe to a parent forum and then be automatically subscribed to all child forums? What about parent forums that do not allow posting?

quiklink 07-23-2007 06:47 PM

Quote:

Originally Posted by AyeCapn (Post 1299430)
managed to get the thread posts to generate an email, but creating a post from an email doesn;t seem to do anyhting.

When I run the CRON job manually I get this error even after testing all the 6 email types:

Code:

Fatal error: Call to undefined function imap_open() in /home/yaddayadda/public_html/forum/includes/cron/emailintegration.php on line 70


IMAP isn't configured in your PHP setup.

AyeCapn 07-23-2007 07:02 PM

talked to my host and he confirmed that athough IMAP is working for email, he didn;t compile PHP with te IMAP module.

self-pwned :)

quiklink 07-23-2007 07:16 PM

Heh, I found out the same thing from my old host. Was the last straw in a series of 'what the hell are you guys thinking' problems with them and I moved.

Cyricx 07-23-2007 08:35 PM

Quote:

Originally Posted by AyeCapn (Post 1299431)
is it feasible to subscribe to a parent forum and then be automatically subscribed to all child forums? What about parent forums that do not allow posting?

A separate email address is needed for each forum. Otherwise in order to start a new thread from email you'd have to do type something like [f-2] this is new thread title

into the subject line. Very inconveinant and it was not pretty when I discussed doing that with the users I was trying to convert when I was making this mod :)

But I'm planning a simple interface to enable people to easily subscribe to multiple forums, though it will be a ways down the pipe til I get the issues solved with various mailbrowsers.

On the parent forums that don't allow posting, I'll have to investigate if the current error checks catch that.

Cyricx 07-24-2007 11:42 AM

I've started coding 2.0 and I'll be looking for a few beta testers. I'm changing the method that I decode emails back to beginning with plain text as there are entirely too many different html formats. We would be in constant development at that route :)

For 2.0, I've already coded in the phrased controlled error messages and will be working on the user options as well as some usergroup / admin options.

AyeCapn 07-24-2007 11:45 AM

i'm in for beta testing

henrikhansen 07-24-2007 11:46 AM

Quote:

Originally Posted by Cyricx (Post 1300084)
I'm changing the method that I decode emails back to beginning with plain text as there are entirely too many different html formats. We would be in constant development at that route :)

Seems like a good priority

tekguru 07-24-2007 11:55 AM

As per the email Chris you can sign me up for testing!

Tralala 07-24-2007 05:12 PM

Another idea I'm hoping you'll consider, Cyricx. I'm wondering if your ambitious hack is overlooking a very simple need, one that would satisfy the demands of a small (about 150-200 users) forum I'm administrating... and many others out there, I'm sure.

Your current mod allows for users to "subscribe" to forums (to receive every thread and post via email) as well as to post via email. Much appreciated. But it does require action on their part... action which is often too much to expect from the less active or less savvy members. That's why the request to allow moderators to set this for them-- or allowing auto-subscription to be the default -- is important. Without that, I fear a user's inactivity will spiral downward, without any email alerts, until they fade into oblivion with no participation at all.

But how about going in the other direction... affording users (in certain usergroups, if necessary) to be able to mass email out announcements to all other registered users, from within the forum interface?

Right now, only Admins can do this, from AdminCP. Under Users -> Send Email to Users. I'd like to afford that privilege to all of my users, without forcing them to "create a thread" (and involving your hack in its current incarnation) to do so.

Match the "from" address to be the same as their confirmed, registered one (and mask them from being able to change it) and it'd be a real winner, in my book.

On my small forum that's exactly what we'd need to finally be able to kick Yahoo! Mailing list to the curb.

In the meantime I have installed Super PM (Mass PM) and enabled it for individual users. But it's not the same -- PM alerts aren't received exactly as emails are (and are often ignored.) And users need to be added individually and manually to be able to use the hack. And that mod, apparently, in need of a vB 3.6.x port anyway. So it's not going to do the trick.

Right now, we're straddling the fence, using Yahoo! for email announcements, and vBulletin for interaction and discussion. It's annoying to me, because the member lists aren't in sync and it's becoming a nightmare to keep straight. Users are getting confused as to why we're maintaining both.

And yet, if someone wants to simply "email all registered users," the only way they can do this now is by using the Yahoo! mailing list. There's no such functionality in vBulletin.



Perhaps this hack may assist, at least for permissions: "Allow Users to eMail other Members" per Usergroup

I haven't seen any mod like this yet, and it would be a major boon for small forums that need the simple functionality of a mailing list. I think if users could have a easy way to blast out emails to all other users (for, say, very important announcements,) while still being able to use the forum as it was originally designed and intended, it would fit the bill for many, many folks hoping to migrate away from Yahoo!'s mailing list. And it leaves just enough incentive for folks to sign up and check out vBulletin, and start getting their feet wet with the forum interface for all other kinds of chat and discussion.

Whaddaya think?

Cyricx 07-24-2007 05:17 PM

I do have plans to enable this to have automatic subscription if the admin wants, that's hoped to be accomplished very soon.

Would that resolve your needs?

You'd be able to have an announcement forum, that all the users are automatically subscribed too. Then the users you wished to be able to create threads could do so and it would send out the email to all your members.

Tralala 07-24-2007 07:50 PM

Quote:

Originally Posted by Cyricx (Post 1300348)
I do have plans to enable this to have automatic subscription if the admin wants, that's hoped to be accomplished very soon.

Would that resolve your needs?

You'd be able to have an announcement forum, that all the users are automatically subscribed too. Then the users you wished to be able to create threads could do so and it would send out the email to all your members.


Hmm. I suppose I could work with that. I'll have to give it a try. What I don't like about that is the "FROM" address would be the forum admin's email address I imagine -- alerting the recipient essentially that a thread has been created -- and not from the actual sender. It adds a level of confusion and complexity I was hoping to avoid.

Would it be possible that this "announcement forum" is invisible, only set up as a gateway for the emails to get sent out? (I don't see it as even having to be an "active" forum.)

Also, if I only plan to allow users to receive new threads and replies (and these "announcements") via email ... but not actually POST via email... is the IMAP support still required?

I ask because my webhoster (Dreamhost) doesn't support it, and I'm not really sure we need that component. If a user wants to post, well, they can revisit the forum.

I simply want my users to get informed of posts and announcements via email, so they are kept in the loop about an upcoming event that's being planned for them. They rarely respond, but need to get info from the smaller subset of organizers. So that's why I love the idea of your hack. I'm just hoping it could be used more like a mailing (mass distro) list, sourced by the vBulletin's member database.

Cyricx 07-24-2007 09:08 PM

Tralala,

I'm not really sure I would want to work that level of specialization into this modification. It's not something I would ever use and I see the use of that being very low. Perhaps if I got this mod to my super happy spot where I was proud of it and had nothing else to do, I might work up those tweaks, but it seems that what you are wanting is much more extensive then I could put time into doing at this time.

I'm hoping to truly just replace the yahoo group and similiar type mailing lists. :)

I think what you are wanting is not what I'm offering here. The bulk of this modification about 90% of it, is handling retrieving emails and putting them into posts. Something your not wanting to do, your just looking for the notification aspect.

ChurchMedia 07-25-2007 04:59 AM

Sorry if this has already been addressed. I couldn't find an answer. This is a brilliant hack and my users are going to love it! I plan on making a sizable donation as soon as I release it to my community.

The problem I am having is that on a reply I get a lot of BBcode that is a mess. New threads (plain or HTML) and plain text replies are fine, but if you use HTML for an email reply the email AND the forum show the messy BBcode.

Did I miss something or is this being worked on? I've attached a screenshot so you can see what I'm getting. I'm using Outlook XP.

Thanks for all your hard work. VERY cool hack. I'll go on strike if you don't get HOTM for this one! :)

Cyricx 07-25-2007 11:17 AM

Thanks!!

Fixes for that should be included in 2.0 which should be released soon

I'm currently workin on the admin option to enable/disable links in the footer of the emails.

Then I'll work on automatically subscribing members of certain usergroups. Once that is done I'll release 2.0 :)


All times are GMT. The time now is 02:32 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.02274 seconds
  • Memory Usage 1,887KB
  • 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
  • (6)bbcode_code_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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