Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Contact Us System
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #9
RE: Contact Us System
I didn't "play" much with 1.6 Biggrin But I hope this can help, Lee:

At least there are two problem found applying this Contact Us to MyBB v1.6:

1. When editing a thread, we are prompted with an error message "The message is missing. Please enter a message.".
Solution:
Add this code after {$extra_threadfields} variable in contus_editpost_first template.

HTML Code
1
2
3
4
5
6
7
8
<tr style="display: none;">
	<td class="trow2" valign="top">
		<strong>{$lang->your_message}:</strong>
	</td>
	<td class="trow2">
		<textarea name="message" id="message" rows="20" cols="70" tabindex="3">{$message}</textarea>
	</td>
</tr>

Because this change doesn't impact 1.4, so, we apply it to 1.4. Thanks to Lee for finding this issue.

Or, if we didn't change anything from the contus_editpost_first template, just replace the template with this one (I've edited this template in the first post):

HTML 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
<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->edit_post}</title>
{$headerinclude}
<script type="text/javascript" src="jscripts/post.js?ver=1400"></script>
</head>
<body>
{$header}
<form action="editpost.php?pid={$pid}&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="0" cellpadding="{$theme['tablespace']}" width="100%">
		<tr>
			<td></td>
			<td width="620">
				{$preview}
				{$post_errors}
				<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" width="100%">
					<tr>
						<td colspan="2" style="background: #D6ECA6; border-top: 2px solid #8DC93E; border-bottom: 2px solid #8DC93E;">
							<strong>{$lang->edit_post}</strong>
						</td>
					</tr>
					{$tfinputrow['contus_status']}
					<tr>
						<td width="22%">
							<strong>{$lang->subject}</strong>
						</td>
						<td>
							<input type="text" class="textbox" name="subject" size="40" maxlength="85" value="{$subject}" tabindex="1" />
						</td>
					</tr>
					{$extra_threadfields}
					<tr style="display: none;">
						<td class="trow2" valign="top">
							<strong>{$lang->your_message}:</strong>
						</td>
						<td class="trow2">
							<textarea name="message" id="message" rows="20" cols="70" tabindex="3">{$message}</textarea>
						</td>
					</tr>
					<tr>
						<td colspan="2" style="border-bottom: 2px solid #8DC93E;"></td>
					</tr>
					<tr>
						<td colspan="2">&nbsp;</td>
					</tr>
					<tr>
						<td colspan="2" align="center" style="background: #ADCBE7; border-top: 2px solid #0F5C8E; border-bottom: 2px solid #0F5C8E;">
							<input type="submit" class="button" name="submit" value="{$lang->update_post}" tabindex="3" />
							<input type="submit" class="button" name="previewpost" value="{$lang->preview_post}" tabindex="4" />
						</td>
					</tr>
				</table>
			</td>
			<td></td>
		</tr>
	</table>
	<input type="hidden" name="action" value="do_editpost" />
	<input type="hidden" name="posthash" value="{$posthash}" />
	<input type="hidden" name="attachmentaid" value="" />
	<input type="hidden" name="attachmentact" value="" />
</form>
<br />
<form action="editpost.php" method="post" name="editpost">
	<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
	<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" width="100%">
		<tr>
			<td colspan="3" style="background: #FFF6BF; border-top: 2px solid #FFD324; border-bottom: 2px solid #FFD324;">
				<strong>{$lang->delete_post}</strong>
			</td>
		</tr>
		<tr>
			<td style="white-space: nowrap; width: 15%;" align="center">
				<input type="checkbox" class="checkbox" name="delete" value="1" tabindex="9" /><br />
				<strong>{$lang->delete_q}</strong>
			</td>
			<td width="70%">
				{$lang->delete_1}<br />
				<span class="smalltext">{$lang->delete_2}</span>
			</td>
			<td>
				<input type="submit" class="button" name="submit" value="{$lang->delete_now}" tabindex="10" />
			</td>
		</tr>
		<tr>
			<td colspan="3" style="border-bottom: 2px solid #FFD324;"></td>
		</tr>
	</table>
	<input type="hidden" name="action" value="deletepost" />
	<input type="hidden" name="pid" value="{$pid}" />
</form>
{$footer}
</body>
</html>


2. Clicking the inline moderation column won't count all thread. If any action applied to them, we will get the error message "Sorry, but you did not select any threads to perform inline moderation on, or your previous moderation session has expired (Automatically after 1 hour of inactivity). Please select some threads and try again.".
Solution:
Replace the contus_forumdisplay_inlinemoderation template with this one (only for MyBB 1.6):

HTML 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
</table>
</td>
</tr>
<tr>
	<td align="right">
		<script type="text/javascript" src="jscripts/inline_moderation.js?ver=1600"></script>
		<form action="moderation.php" method="post">
			<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
			<input type="hidden" name="fid" value="{$fid}" />
			<input type="hidden" name="modtype" value="inlinethread" />
			<span class="smalltext"><strong>{$lang->inline_thread_moderation}</strong></span>
			<select name="action">
				<option value="delayedmoderation">{$lang->delayed_moderation}</option>
				<optgroup label="{$lang->standard_mod_tools}">
					<option value="multiclosethreads" selected="selected">{$lang->close_threads}</option>
					<option value="multiopenthreads">{$lang->open_threads}</option>
					<option value="multistickthreads">{$lang->stick_threads}</option>
					<option value="multiunstickthreads">{$lang->unstick_threads}</option>
					<option value="multideletethreads">{$lang->delete_threads}</option>
					<option value="multimovethreads">{$lang->move_threads}</option>
					<option value="multiunapprovethreads">{$lang->unapprove_threads}</option>
				</optgroup>
				{$customthreadtools}
			</select>
			<input type="submit" class="button" name="go" value="{$lang->inline_go} ({$inlinecount})" id="inline_go" />&nbsp;
			<input type="button" onclick="javascript:inlineModeration.clearChecked();" value="{$lang->clear}" class="button" />
		</form>
		<script type="text/javascript">
		<!--
			var go_text = "{$lang->inline_go}";
			var all_text = "{$threadcount}";
			var inlineType = "forum";
			var inlineId = {$fid};
		// -->
		</script>
	</td>
</tr>


Thank you very much for the report, Lee.


08-12-2010 04:29 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Contact Us System - RateU - 07-11-2010, 12:55 PM
RE: Contact Us System - ZiNgA BuRgA - 07-11-2010, 03:27 PM
RE: Contact Us System - leefish - 07-11-2010, 08:18 PM
RE: Contact Us System - ZiNgA BuRgA - 07-11-2010, 09:13 PM
RE: Contact Us System - RateU - 07-12-2010, 08:50 AM
RE: Contact Us System - ZiNgA BuRgA - 07-12-2010, 09:15 AM
RE: Contact Us System - Imran - 08-04-2010, 06:06 PM
RE: Contact Us System - leefish - 08-11-2010, 11:03 PM
RE: Contact Us System - RateU - 08-12-2010 04:29 AM
RE: Contact Us System - leefish - 08-12-2010, 12:36 PM
RE: Contact Us System - RateU - 08-13-2010, 05:17 AM
RE: Contact Us System - Pirata Nervo - 08-14-2010, 09:14 AM
RE: Contact Us System - RateU - 08-15-2010, 03:28 AM
RE: Contact Us System - techu - 09-07-2010, 11:05 PM
RE: Contact Us System - RateU - 09-08-2010, 01:03 AM
RE: Contact Us System - techu - 09-08-2010, 01:08 AM
RE: Contact Us System - RateU - 09-08-2010, 01:22 AM
RE: Contact Us System - techu - 09-08-2010, 01:31 AM
RE: Contact Us System - RateU - 09-08-2010, 01:52 AM
RE: Contact Us System - techu - 09-08-2010, 02:00 AM
RE: Contact Us System - RateU - 09-08-2010, 02:28 AM
RE: Contact Us System - techu - 09-08-2010, 02:42 AM
RE: Contact Us System - ZiNgA BuRgA - 09-08-2010, 09:17 AM
RE: Contact Us System - techu - 09-08-2010, 12:15 PM
RE: Contact Us System - ZiNgA BuRgA - 09-08-2010, 12:35 PM
RE: Contact Us System - RateU - 09-16-2010, 02:12 AM
RE: Contact Us System - 1master1 - 10-25-2010, 01:54 PM
RE: Contact Us System - techu - 10-25-2010, 02:59 PM
RE: Contact Us System - leefish - 10-25-2010, 08:36 PM
RE: Contact Us System - 1master1 - 10-26-2010, 02:49 AM
RE: Contact Us System - leefish - 10-26-2010, 03:16 AM
RE: Contact Us System - 1master1 - 10-26-2010, 03:46 AM
RE: Contact Us System - leefish - 10-26-2010, 05:00 AM
RE: Contact Us System - 1master1 - 10-27-2010, 12:06 AM
RE: Contact Us System - techu - 10-27-2010, 02:39 AM
RE: Contact Us System - RateU - 11-09-2010, 04:53 AM
RE: Contact Us System - x-Treme - 11-13-2010, 03:49 AM
RE: Contact Us System - 1master1 - 11-13-2010, 05:26 AM
RE: Contact Us System - RateU - 11-14-2010, 07:35 AM
RE: Contact Us System - Vapor - 01-03-2011, 02:17 PM
RE: Contact Us System - Vapor - 01-04-2011, 02:38 AM
RE: Contact Us System - RateU - 01-04-2011, 02:45 AM
RE: Contact Us System - Vapor - 01-04-2011, 03:26 AM
RE: Contact Us System - RateU - 01-04-2011, 03:38 AM
RE: Contact Us System - Vapor - 01-04-2011, 04:23 AM
RE: Contact Us System - RateU - 01-04-2011, 04:28 AM
RE: Contact Us System - Vapor - 01-04-2011, 04:31 AM
RE: Contact Us System - RateU - 01-04-2011, 04:46 AM
RE: Contact Us System - Vapor - 01-04-2011, 04:56 AM
RE: Contact Us System - RateU - 01-04-2011, 05:01 AM
RE: Contact Us System - Vapor - 01-04-2011, 07:44 AM
RE: Contact Us System - RateU - 01-04-2011, 08:32 AM
RE: Contact Us System - Vapor - 01-04-2011, 10:52 AM
RE: Contact Us System - Vapor - 01-04-2011, 11:32 AM
RE: Contact Us System - RateU - 01-04-2011, 11:51 AM
RE: Contact Us System - Vapor - 01-04-2011, 04:09 PM
RE: Contact Us System - ZiNgA BuRgA - 01-04-2011, 05:43 PM
RE: Contact Us System - Vapor - 01-05-2011, 12:46 AM
RE: Contact Us System - RateU - 01-05-2011, 02:55 AM
RE: Contact Us System - Vapor - 01-05-2011, 03:07 AM
RE: Contact Us System - RateU - 01-05-2011, 03:31 AM
RE: Contact Us System - Vapor - 01-05-2011, 06:31 AM
RE: Contact Us System - ZiNgA BuRgA - 01-05-2011, 09:24 AM
RE: Contact Us System - Vapor - 01-05-2011, 09:58 AM
RE: Contact Us System - ZiNgA BuRgA - 01-05-2011, 10:16 AM
RE: Contact Us System - Vapor - 01-05-2011, 10:27 AM
RE: Contact Us System - Vapor - 01-06-2011, 05:39 AM
RE: Contact Us System - RateU - 01-06-2011, 06:09 AM
RE: Contact Us System - Vapor - 01-06-2011, 06:31 AM
RE: Contact Us System - RateU - 01-07-2011, 05:59 AM
RE: Contact Us System - ZiNgA BuRgA - 01-07-2011, 09:59 AM
RE: Contact Us System - RateU - 02-11-2011, 03:24 AM
RE: Contact Us System - RateU - 03-19-2011, 09:05 AM
RE: Contact Us System - RateU - 07-21-2011, 04:12 AM
RE: Contact Us System - Vapor - 01-06-2012, 03:12 AM
RE: Contact Us System - RateU - 01-06-2012, 05:51 AM
RE: Contact Us System - Vapor - 01-06-2012, 09:07 PM
RE: Contact Us System - nier3 - 08-16-2012, 01:03 AM
RE: Contact Us System - RateU - 08-16-2012, 01:47 AM
RE: Contact Us System - nier3 - 08-16-2012, 08:23 PM
RE: Contact Us System - RateU - 08-17-2012, 01:30 AM
RE: Contact Us System - nier3 - 08-18-2012, 11:01 PM
RE: Contact Us System - Vapor - 09-10-2012, 04:10 AM
RE: Contact Us System - RateU - 10-08-2012, 02:52 AM
RE: Contact Us System - Fring - 12-01-2013, 09:16 AM
RE: Contact Us System - RateU - 12-02-2013, 10:55 PM
RE: Contact Us System - hamidkag - 01-20-2014, 10:37 PM
RE: Contact Us System - Kylin - 12-29-2014, 03:32 AM
RE: Contact Us System - Marc A - 02-28-2015, 01:46 AM
RE: Contact Us System - ZiNgA BuRgA - 02-28-2015, 09:23 AM
RE: Contact Us System - Marc A - 03-02-2015, 02:15 PM
RE: Contact Us System - Vapor - 08-18-2015, 03:01 PM
RE: Contact Us System - Vapor - 08-19-2015, 04:40 AM
RE: Contact Us System - Vapor - 08-22-2015, 03:14 AM
RE: Contact Us System - ZiNgA BuRgA - 09-01-2015, 04:55 PM
RE: Contact Us System - xensor - 12-12-2015, 07:17 PM
RE: Contact Us System - RateU - 12-13-2015, 01:53 AM
RE: Contact Us System - xensor - 12-13-2015, 06:49 AM
RE: Contact Us System - RateU - 12-14-2015, 01:38 AM

 Standard Tools
Forum Jump: