vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   Reply by email v. 0.1 (https://vborg.vbsupport.ru/showthread.php?t=36899)

Gimp 04-01-2002 10:00 PM

Reply by email v. 0.1
 
It works just like FireFly described it here

Note: Your PHP must be compiled with IMAP support (read inside in the install.txt file)

This hack should be working just fine on EVERY vBulletin version.

I hope you like it:)
Post all your comments,bugs, improvements you would like to see.

Its not perfect yes.. i know :)

[Last update: 19/04/02 version 0.3]

Admin 04-02-2002 12:40 PM

It will post the posts as a Guest since $bbuserinfo is not set correctly. ;)

Gimp 04-02-2002 02:03 PM

new version is out (some bugfixes inluding FireFly one)

Bald Bouncer 04-02-2002 02:50 PM

fantastic mate, I like the sound of this hack and hopefully my members will use it....will have to install it ;)

James Cridland 04-02-2002 05:51 PM

If you only want to put the contents of a reply in your e-mail, download this hack.

Ignore everything till "Go to admin cp and edit the 'email_notify' template". Then, obviously, only put in $message in the template where you want the text to be.

Ignore everything starting with "Then you just need to run mailreply.php every 10 minutes or so."

This way, your users can read replies but not post anything without returning to the site.

For an example of the e-mail you might get, see http://forums.mediauk.com/showthread...threadid=15339

James Cridland 04-02-2002 06:47 PM

Note that there's another "sendnotification" to find. You need to add this to your hack.

Open "mod/moderate.php"
Find sendnotification($thread['threadid'], $thread['userid'], $key);
Replace with sendnotification($thread['threadid'], $thread['userid'], $key, $message);

Otherwise this will cause problems when your moderators try to moderate any postings.

My board is heavily hacked, so check that this is present in your version of moderate.php.

Renegade 04-02-2002 07:25 PM

Very cool, maybe I will give it a try!

Neo 04-02-2002 10:34 PM

nice

Gimp 04-03-2002 06:27 AM

Quote:

Originally posted by James Cridland
Note that there's another "sendnotification" to find. You need to add this to your hack.

Open "mod/moderate.php"
Find sendnotification($thread['threadid'], $thread['userid'], $key);
Replace with sendnotification($thread['threadid'], $thread['userid'], $key, $message);

Otherwise this will cause problems when your moderators try to moderate any postings.

My board is heavily hacked, so check that this is present in your version of moderate.php.

Note that you gotta add $message to sendnotification function in admin/functions.php

Admin 04-03-2002 06:40 AM

Or you can just re-declare sendnotification() and default $meesage to nothing...

James Cridland 04-03-2002 07:46 PM

Yep, I defaulted it to "(Unavailable)", so it isn't obviously wrong.

bitbender 04-04-2002 12:10 AM

Thank you for releasing this.

TheCaver 04-04-2002 07:10 PM

Gimp, any chance of making this more like a listserv to where all prior posts in that thread show up? Maybe even HTML it to make it pretty?

Curious.......

JC

Gimp 04-05-2002 09:31 AM

whats *like listserv* give me an example and ill do it

TheCaver 04-06-2002 09:17 PM

Thanks for the reply.

More like a listserv:

Like more user friendly reply, ie, when the user hits reply, he doesn't have to cut and paste/type anything in the subject line.

Also, be able to remove the "you will not receive any more notifications till you visit the board" thing.

If it helps, here's my scenario, I run a large automotive site where people have outings in their local regions. They currently use Yahoo Groups to stay updated on local stuff.....

We have regional forums, but most like to get their local news in email format....And I'd rather have them stay on my site rather than going off to Yahoo ;)

Thanks for any consideration,

JC

Gimp 04-07-2002 05:59 PM

well i could not make it clean the message when the user hits reply.. its server side (on yahoo and i dont yet control it :P)

TheCaver 04-07-2002 06:49 PM

Yea, I can see how that would be an issue. Chen, any input?

JC

TheCaver 04-09-2002 02:42 PM

Gimp, is there any advantage of using IMAP over POP? Mine seems to work ok with POP but fails to open stream with IMAP.....

Thanks!

JC

hypedave 04-09-2002 05:09 PM

okay when I run the mailreply.php

I get this error

Fatal error: Call to undefined function: imap_open() in C:\Inetpub\wwwroot\forums\mailreply.php on line 14

I setup is

Windows 2000 Server
iMail email server using pop3

any suggestion

TheCaver 04-09-2002 05:57 PM

Got another question :)

On this forum, there are 2 series of numbers when you get notified. What's the significance of the second set?

Thanks!

JC

TheCaver 04-09-2002 07:19 PM

Notes for others trying this hack:

To allow people to hit reply on the email instead of cutting and pasting you must edit a couple of items.

First, in mailreply.php find:

list($check,$threadid)=explode("-",$letter->subject);
if ($check!="[thread") {

replace by:

list($check,$threadid)=explode("-",$letter->subject);
$check = substr($check, -7);
if ($check!="[thread") {


Next, edit your emailsubject_notify to:


Reply to post '$threadinfo[title]' [thread-$threadinfo[threadid]]







I'm working on getting the server to strip everything but the reply but its uphill, if anyone wants to help, I'd sure appreciate it...... :D

JC

hypedave 04-10-2002 04:53 AM

has anyone been able to get this to work at all, ????

TheCaver 04-10-2002 05:00 AM

It works, it's just not polished.....

Hopefully, we'll get some news on whether or not it will be in vB3, then I can stop this madness :)

JC

hypedave 04-10-2002 05:39 AM

Quote:

Originally posted by TheCaver
It works, it's just not polished.....

Hopefully, we'll get some news on whether or not it will be in vB3, then I can stop this madness :)

JC


well can you help me out then, with my error, I got the error to go wat, now when I run mailreply.php it takes foreverrrrrr, then php jus times out, how does your mailreply.php file look like

and how exactly to the users respond back ?

TheCaver 04-10-2002 06:04 AM

Umm, how did you get the error to "go away" ? :)

JC

Gimp 04-10-2002 01:38 PM

Quote:

Originally posted by TheCaver
Notes for others trying this hack:

To allow people to hit reply on the email instead of cutting and pasting you must edit a couple of items.

First, in mailreply.php find:

list($check,$threadid)=explode("-",$letter->subject);
if ($check!="[thread") {

replace by:

list($check,$threadid)=explode("-",$letter->subject);
$check = substr($check, -7);
if ($check!="[thread") {


Next, edit your emailsubject_notify to:


Reply to post '$threadinfo[title]' [thread-$threadinfo[threadid]]







I'm working on getting the server to strip everything but the reply but its uphill, if anyone wants to help, I'd sure appreciate it...... :D

JC

it has notting to do with that.. you CANT clear the message on the user side its IMPOSSIBLE

Gimp 04-10-2002 01:40 PM

Quote:

Originally posted by TheCaver
Got another question :)

On this forum, there are 2 series of numbers when you get notified. What's the significance of the second set?

Thanks!

JC

the 2nd number is a password for email notification.. I could do it but because of not much popularity with this hack i dont think i will. only if u REALLY need it i might

Gimp 04-10-2002 01:42 PM

Quote:

Originally posted by hypedave
okay when I run the mailreply.php

I get this error

Fatal error: Call to undefined function: imap_open() in C:\Inetpub\wwwroot\forums\mailreply.php on line 14

I setup is

Windows 2000 Server
iMail email server using pop3

any suggestion

look/check ur pm:
Quote:

Taken from install.txt

PHP compiled to support IMAP
Linux users read here:
http://www.php.net/manual/en/ref.imap.php
======
Windows users:
1. Copy php_imap.dll from your phpdir/extenstions to your windows dir
2. Edit path/to/windows/dir/php.ini (open it)
Find:
;extension=php_imap.dll

Replace with:
extension=php_imap.dll



Gimp 04-10-2002 01:44 PM

Quote:

Originally posted by TheCaver
Gimp, is there any advantage of using IMAP over POP? Mine seems to work ok with POP but fails to open stream with IMAP.....

Thanks!

JC

I tested it with IMAP (MDaemon mail server).. i dont know if there is any difference and there shhouldnt

James Cridland 04-10-2002 03:18 PM

Quote:

Originally posted by TheCaver
Also, be able to remove the "you will not receive any more notifications till you visit the board" thing.
To do this:

Open \admin\functions.php

Find:
PHP Code:

  $useremails=$DB_site->query("SELECT user.*
                               FROM subscribethread,user
                               WHERE subscribethread.threadid='
$threadid'
                                 AND subscribethread.userid=user.userid
                                 AND user.userid<>'
$userid'
                                 AND user.lastactivity>'
$lastposttime[dateline]'
"
); 

Replace with:
PHP Code:

  $useremails=$DB_site->query("SELECT user.*
                               FROM subscribethread,user
                               WHERE subscribethread.threadid='
$threadid'
                                 AND subscribethread.userid=user.userid
                                 AND user.userid<>'
$userid'"); 


hypedave 04-10-2002 03:32 PM

okay I got it to work, the mailreply.php works
and comes with the message

All done!

now the reply by email's arent being sended the the thread ID's
any tips on this, im getting closer :glasses:

Gimp 04-10-2002 05:21 PM

did u follow all the steps in the installtions guide?
did u update the templates?

hypedave 04-10-2002 05:25 PM

Quote:

Originally posted by Gimp
did u follow all the steps in the installtions guide?
did u update the templates?

yep I sure did

Gimp 04-11-2002 05:05 PM

do u get the thread id by email?

hypedave 04-11-2002 05:08 PM

yes I do and when I reply back , it goes back to the server, then I wait for about 5min and run the mailreply.php and it says all done, but I dont see it being inputted in the thread on the forum

TheCaver 04-11-2002 10:18 PM

Its because the string replace function is not working correctly. Try my modification or format the subject of the reply email to look like:

[thread-<whatever>]

If your email reply is like:

Re: blah blah [thread-12345]

then the stock version won't work........

Also, when mailreply.php works, it will say:

Added #1
Added #2
etc.
All Done.

not just All Done.

JC

hypedave 04-11-2002 10:27 PM

Quote:

Originally posted by TheCaver
Notes for others trying this hack:

To allow people to hit reply on the email instead of cutting and pasting you must edit a couple of items.

First, in mailreply.php find:

list($check,$threadid)=explode("-",$letter->subject);
if ($check!="[thread") {

replace by:

list($check,$threadid)=explode("-",$letter->subject);
$check = substr($check, -7);
if ($check!="[thread") {


Next, edit your emailsubject_notify to:


Reply to post '$threadinfo[title]' [thread-$threadinfo[threadid]]







I'm working on getting the server to strip everything but the reply but its uphill, if anyone wants to help, I'd sure appreciate it...... :D

JC




okay if you are talking about these modification, still no go on this end

TheCaver 04-11-2002 10:29 PM

When you hit reply in your email, cut and paste the Subject line in here........

JC

hypedave 04-11-2002 10:31 PM

Quote:

Originally posted by TheCaver
When you hit reply in your email, cut and paste the Subject line in here........

JC


here ya go

=====================================


Hello hypedave,

grisu has just replied to a thread you have subscribed to entitled - Referreal Program - in the Flabber forum of Mindsights Forums.

This thread is located at:
http://www.mindsights.com/forums/sho...6&goto=newpost

There may be other replies also, but you will not receive any more notifications until you visit the board again.

Yours,
Mindsights Forums team

~~~~~ NEW ~~~~~
New at Mindsights Forums!
You can now reply to the thread by replying to this message. All you need to do is to make sure this code appears in the e-mail subject:
[thread-466]
You should also remove this text to ensure your reply is readable by other forum users.
~~~~~ NEW ~~~~~

Here are the contents of the post:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
100? it took us half a year to get the first 100
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unsubscription information:

To unsubscribe from this thread, please visit this page:
http://www.mindsights.com/forums/mem...b&threadid=466

To unsubscribe from ALL threads, please visit this page:
http://www.mindsights.com/forums/mem...type=allthread

hypedave 04-11-2002 10:33 PM

and when I hit reply this is how the subject looks like

Re: Reply to post 'Referreal Program' [thread-466]


All times are GMT. The time now is 12:50 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.02189 seconds
  • Memory Usage 1,837KB
  • 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
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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