UBB.Dev
Posted By: JoshPet Beta-[6.4] Email Original Poster Replies 2.0 - 01/11/2004 11:00 AM
Mod Name / Version: Email Original Poster Replies 2.0

Description: This will allow a user to enable an option in their email pref

Working Under: UBB.Threads 6.4

Mod Status: Beta

Any pre-requisites: none

Author(s): JoshPet

Date: 01/11/04

Credits: Smitdogg for commissioning orig mod - ScottCargille for requesting update

Files Altered: editemail.php, changeemail.php, editemail.tmpl, addpost.php

New Files: none

Database Altered: none

Info/Instructions: Will not email the user their own replies to ther posts, only replies from other users.

Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.

Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.


Attached File
104692-EmailOrigPoster2.0.txt  (269 downloads)
Thanks Josh! You ARE the MAN!
Posted By: salim Re: Beta-[6.4] Email Original Poster Replies 2.0 - 01/12/2004 12:41 PM
does this work for 6.3?
This version is what you would need for 6.3.
Josh,

Okay.. is THIS hack coded to send the replies in HTML format? []http://www.emotipad.com/newemoticons/Ask.gif[/]

Jeff
You can turn this function on by default by running this query instead of the one provided in the hack-mod attachment.


ALTER TABLE w3t_Users
ADD U_EmailPostReply TINYINT( 1 ) DEFAULT '1' NOT NULL ;

Great Hack Josh! Thank You
Don't suppose there's a mod for 6.5 for this..?
I followed the instructions but I get this error when I try to turn this on.

========================================================
SQL ERROR: Unable to do_query: UPDATE w3t_Users SET U_EReplies = 'Off', U_Notify = 'On', U_AdminEmails = 'On', U_EmailFormat = 'plaintext' U_EmailPostReply = '1' WHERE U_Username = 'Fred'
You have an error in your SQL syntax near 'U_EmailPostReply = '1' WHERE U_Username = 'Fred' ' at line 7
Warning: Cannot modify header information - headers already sent by (output started at /home/httpd/vhosts/domain.com/httpdocs/board/mysql.inc.php:219) in /home/httpd/vhosts/domain.com/httpdocs/board/ubbt.inc.php on line 270
===============================================

Any Ideas?

Thank you
against all reason, I have tried this one on 6.5.1 b4

the mailing of the reply works perfectly, seems there is no update necessary on that part.
but to activate myself I had to use phpmyadmin, because changeemail.php spits out the following error message:

Script: /var/www/poisonfree/community/messageboard/changeemail.php
Line#: 82
SQL Error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'U_EmailPostReply = '1' WHERE U_Username = 'flint'' at line 7
SQL Error #: 1064
Query: UPDATE w3t_Users SET U_EReplies = 'On', U_LastOn = '1105230638', U_Notify = 'On', U_AdminEmails = 'On', U_EmailFormat = 'plaintext' U_EmailPostReply = '1' WHERE U_Username = 'flint'

basically I´m already quite happy right now, cause I got what I wanted, at least for myself. Comes in handy when you have to keep track of possible replies to over 15.000 messages of yourself.

would be nice if you could update this one day, so all users can benefit from this feature, cause we even have one user closer 25.000 postings
>>'On', U_EmailFormat = 'plaintext' U_EmailPostReply = '1' WHERE U_Username = 'flint'

Check the query, looks like you're missing a comma in there

'On', U_EmailFormat = 'plaintext'[:"red"],[/] U_EmailPostReply = '1' WHERE U_Username = 'flint'

Josh,

Will this mod work for 6.5.5 ?

Also, does the user still have to mark each thread as a "favorite" for this to work ?
© UBB.Developers