Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 [Update3] Email @ eml_field, post thread , copy sent 2 eml_field addrs w/ admin mesg?
akm Offline
Member
***
Posts: 115
Joined: Nov 2011
Post: #1
Question [Update3] Email @ eml_field, post thread , copy sent 2 eml_field addrs w/ admin mesg?
Possible to set up forum with xthread field for email address, and when submit thread, copy is sent to that email address along with admin message ?

If possible, where might find info about ?

Thanks again for your help !
(This post was last modified: 03-19-2012 05:41 AM by akm.)
03-17-2012 04:18 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: Email in eml_field, post thread , copy sent to eml_field address with admin message ?
It cannot be done with XThreads.

My Blog
03-17-2012 07:00 PM
Find all posts by this user Quote this message in a reply
akm Offline
Member
***
Posts: 115
Joined: Nov 2011
Post: #3
Question [Update3] Email @ eml_field, post thread , copy sent 2 eml_field addrs w/ admin mesg?
(03-17-2012 07:00 PM)ZiNgA BuRgA Wrote:  It cannot be done with XThreads.

Fair enough, thank you for the info !
As someone said, if u dont ask...

Actually trying to figure way to let person know (automatedly), by email, that a thread is being started about them.
Any ideas on another way ?

Ps:
Might be able to do with 'subject' or 'message' field at template: tp_newthread (modified for name and display only), which are still normal MyBB fields ?
Maybe at tp_newthread.php with something from sendthread.php ?

Ps2:
Ie if 'message' field was email address ?

Ps3:
Starting to look at edit cr_newthread.
Does start even look possible ?

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<html>
<head>

<!-- revise cr_newthread for send to threadfield email address -->

<title>{$lang->newthread_in}</title>
{$headerinclude}
<script type="text/javascript" src="jscr
ipts/post.js?ver=1400"></script>
</head>
<body>
{$header}
{$preview}
{$thread_errors}
{$attacherror}
<form action="newthread.php?fid={$fid}&amp;processed=1" method="post" 
enctype="multipart/form-data" name="input">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="2"><strong>{$lang->cr_post_new_thread}</strong></td>
</tr>
{$loginbox}

<!-- use same textfield format as subject for message -->
<tr>
<td class="trow2" width="20%"><strong><font size="5">{$lang->cr_thread_subject}</font></strong></td>
<td class="trow2">{$prefixselect}
<input type="text" class="textbox" name="subject" 
size="40" maxlength="30" value="{$subject}" tabindex="1" /></td>
</tr>

<tr>
<td class="trow2" width="20%"><strong><font size="5">{$lang->cr_your_message}</font></strong></td>
<td class="trow2">
{$prefixselect}
<input type="text" class="textbox" name="message" 
size="12" maxlength="12" value="{$message}" tabindex="1" />
<small style="display: block;">Use format: 000-000-0000</small></td>
</tr>

{$codebuttons}
{$multiquote_external}
</td>
</tr>
{$extra_threadfields}

<!-- omit
$(modoptions)
$(subscriptionmethod)
$(pollbox)
$(captcha)
-->

</table>

<!-- below for additional after threadfield input note -->

<div style="text-align:center">xxx</div>

<br />
<div style="text-align:center">

<input type="submit" class="button" name="submit" value="Submit" 
tabindex="4" accesskey="s" />  

<input type="submit" class="button" name="previewpost" value="Preview" 
tabindex="5" />

{$savedraftbutton}

</div>

<input type="hidden" name="action" value="do_newthread" />
<input type="hidden" name="posthash" value="{$posthash}" />
<input type="hidden" name="attachmentaid" value="" />
<input type="hidden" name="attachmentact" value="" />
<input type="hidden" name="quoted_ids" value="{$quoted_ids}" />
<input type="hidden" name="tid" value="{$tid}" />
{$editdraftpid}

</form>


<!-- from Edit Template: sendthread, to friend -->

<form action="sendthread.php" method="post">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">

<tr>
<td colspan="2" width="100%" class="thead"><strong>{$lang->send_thread}</strong></td>
</tr>

<tr>

<td width="40%" class="trow1"><strong>{$lang->cr_your_message}</strong><br />

<span class="smalltext">{$lang->recipient_note}</span></td>

</table>

<br />

<input type="hidden" name="action" value="do_sendtofriend" />
<input type="hidden" name="tid" value="{$tid}" />

<div align="center"><input type="submit" class="button" value="{$lang->send_thread}" />

</div>
</form>

{$forumrules}
{$footer}
</body>
</html>

...if possible, need to figure out how to just do send-to-friend process without textbox and other display code ?


Thanks again for your help !
(This post was last modified: 03-19-2012 05:30 AM by akm.)
03-18-2012 03:29 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #4
RE: [Update3] Email @ eml_field, post thread , copy sent 2 eml_field addrs w/ admin mesg?
I'm sorry, but is there any reason why you don't want to use the Send Thread to a Friend feature?

03-19-2012 06:11 AM
Find all posts by this user Quote this message in a reply
akm Offline
Member
***
Posts: 115
Joined: Nov 2011
Post: #5
RE: [Update3] Email @ eml_field, post thread , copy sent 2 eml_field addrs w/ admin mesg?
(03-19-2012 06:11 AM)RateU Wrote:  I'm sorry, but is there any reason why you don't want to use the Send Thread to a Friend feature?

Thank you for the followup question.

Per the previous post...
Quote:Actually trying to figure way to let person know (automatedly), by email, that a thread is being started about them.
Any ideas on another way ?

Ie, do not want to eliminate 'Send Thread to a Friend', just trying to use part of that code (if possible) to send a new thread post to a person to let them know (send them a notice) there is a new thread being posted which has information about them... actually an 'online' business referral, ie the forum is a list of business referrals (threads).
And would like the notice to be sent when the new thread post is 'submitted'.

Hope that clarifies.

Ps:
Maybe this thread should be moved to MyBB Hacks / Modifications ?
The forum uses xthread fields along with the normal 'subject' and 'message' fields, which hopefully could be used for this 'auto email' question (ie the 'message' field has the 'friend' (person who needs to be notified) email address in it.

Latest attempt a cr_newthread modify...

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<html>
<head>

<!-- revise cr_newthread for send to threadfield ('message') email address -->

<title>{$lang->newthread_in}</title>
{$headerinclude}
<script type="text/javascript" src="jscr
ipts/post.js?ver=1400"></script>
</head>
<body>
{$header}
{$preview}
{$thread_errors}
{$attacherror}
<form action="newthread.php?fid={$fid}&amp;processed=1" method="post" 
enctype="multipart/form-data" name="input">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="2"><strong>{$lang->cr_post_new_thread}</strong></td>
</tr>
{$loginbox}

<!-- use same textfield format as subject for message -->
<tr>
<td class="trow2" width="20%"><strong><font size="5">{$lang->cr_thread_subject}</font></strong></td>
<td class="trow2">{$prefixselect}
<input type="text" class="textbox" name="subject" 
size="40" maxlength="30" value="{$subject}" tabindex="1" /></td>
</tr>

<tr>
<td class="trow2" width="20%"><strong><font size="5">{$lang->cr_your_message}</font></strong></td>
<td class="trow2">
{$prefixselect}
<input type="text" class="textbox" name="message" 
size="12" maxlength="12" value="{$message}" tabindex="1" />
<small style="display: block;">Use format: 000-000-0000</small></td>
</tr>

{$codebuttons}
{$multiquote_external}
</td>
</tr>
{$extra_threadfields}

<!-- omit
$(modoptions)
$(subscriptionmethod)
$(pollbox)
$(captcha)
-->

</table>

<!-- below for additional after threadfield input note -->

<div style="text-align:center">xxx</div>

<br />
<div style="text-align:center">

<input type="submit" class="button" name="submit" value="Submit" 
tabindex="4" accesskey="s" />  

<input type="submit" class="button" name="previewpost" value="Preview" 
tabindex="5" />

{$savedraftbutton}

</div>

<input type="hidden" name="action" value="do_newthread" />
<input type="hidden" name="posthash" value="{$posthash}" />
<input type="hidden" name="attachmentaid" value="" />
<input type="hidden" name="attachmentact" value="" />
<input type="hidden" name="quoted_ids" value="{$quoted_ids}" />
<input type="hidden" name="tid" value="{$tid}" />
{$editdraftpid}

</form>

<!-- from Edit Template: sendthread, to friend -->

<form action="sendthread.php" method="post">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />

<input type="hidden" name="action" value="do_sendtofriend" />
<input type="hidden" name="tid" value="{$tid}" />

<div align="center"><input type="submit" class="button" value="{$lang->send_thread}" />

</div>
</form>

{$forumrules}
{$footer}
</body>
</html>


Thanks again for your help !
(This post was last modified: 03-19-2012 12:19 PM by akm.)
03-19-2012 11:09 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: