Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Contact Us System
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #74
RE: Contact Us System
Update:
Since XThreads 1.43, we can design our Quick Thread form as we like Smile
Basically, we need to put the {$extra_threadfields} variable in our Quick Thread form.

This update will also put the default MyBB class back to the template, so, the Contact Us form layout will depends on our themes layout.

  1. contus_forumdisplay_quick_thread

    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
    <form method="post" action="newthread.php?fid={$fid}&amp;processed=1" name="quick_thread_form" id="quick_thread_form">
    	<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
    	<input type="hidden" name="action" value="do_newthread" />
    	<input type="hidden" name="posthash" value="{$posthash}" id="posthash" />
    	<input type="hidden" name="xthreads_contus_status" value="New" />
    	<table border="0" cellspacing="0" cellpadding="{$theme['tablespace']}" width="100%">
    		<tr>
    			<td></td>
    			<td width="620">
    				<table border="0" cellspacing="0" cellpadding="{$theme['tablespace']}" class="tborder">
    					<thead>
    						<tr>
    							<td colspan="2" class="thead">
    								<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['quickthread']}.gif" id="quickthread_img" class="expander" alt="[-]" title="[-]" /></div>
    								<div><strong>Contact Us</strong></div>
    							</td>
    						</tr>
    					</thead>
    					<tbody style="{$collapsed['quickthread_e']}" id="quickthread_e">
    						<tr>
    							<td valign="top" width="22%" class="trow1">
    								<strong>{$lang->subject}</strong>
    							</td>
    							<td class="trow1">
    								<div style="width: 95%">
    									<input type="text" class="textbox" name="subject" size="40" maxlength="85" tabindex="1" />
    								</div>
    							</td>
    						</tr>
    						{$GLOBALS['extra_threadfields']}
    						{$captcha}
    						<tr>
    							<td colspan="2" align="center" class="tfoot">
    								<input type="submit" class="button" value="Submit" tabindex="2" accesskey="s" id="quick_thread_submit" />
    								<input type="submit" class="button" name="previewpost" value="Preview" tabindex="3" />
    							</td>
    						</tr>
    					</tbody>
    				</table>
    				<br />
    				<table border="0" cellspacing="0" cellpadding="{$theme['tablespace']}" width="100%">
    					<tr>
    						<td valign="middle" align="center" class="smalltext">
    							Contact Us
    							<div>
    								Powered By <a href="http://mybbhacks.zingaburga.com/showthread.php?tid=288">XThreads</a> - <a href="http://mybbhacks.zingaburga.com">MyBB Hacks</a>
    							</div>
    						</td>
    					</tr>
    				</table>
    			</td>
    			<td></td>
    		</tr>
    	</table>
    </form>

  2. contus_editpost_first

    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
    <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="0" cellpadding="{$theme['tablespace']}" class="tborder">
    					<tr>
    						<td colspan="2" class="thead">
    							<strong>{$lang->edit_post}</strong>
    						</td>
    					</tr>
    					{$tfinputrow['contus_status']}
    					<tr>
    						<td class="trow1" width="22%">
    							<strong>{$lang->subject}</strong>
    						</td>
    						<td class="trow1">
    							<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" align="center" class="tfoot">
    							<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']}" class="tborder">
    		<tr>
    			<td colspan="3" class="thead">
    				<strong>{$lang->delete_post}</strong>
    			</td>
    		</tr>
    		<tr>
    			<td class="trow1" 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 class="trow1" width="70%">
    				{$lang->delete_1}<br />
    				<span class="smalltext">{$lang->delete_2}</span>
    			</td>
    			<td class="trow1">
    				<input type="submit" class="button" name="submit" value="{$lang->delete_now}" tabindex="10" />
    			</td>
    		</tr>
    	</table>
    	<input type="hidden" name="action" value="deletepost" />
    	<input type="hidden" name="pid" value="{$pid}" />
    </form>
    {$footer}
    </body>
    </html>

  3. contus_newthread

    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
    <html>
    <head>
    <title>Contact Us</title>
    {$headerinclude}
    <script type="text/javascript" src="jscripts/post.js?ver=1400"></script>
    </head>
    <body>
    {$header}
    <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="0" cellpadding="{$theme['tablespace']}" width="100%">
    		<tr>
    			<td></td>
    			<td width="620">
    				{$thread_errors}
    				{$preview}
    				<table border="0" cellspacing="0" cellpadding="{$theme['tablespace']}" class="tborder">
    					<thead>
    						<tr>
    							<td colspan="2" class="thead">
    								<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['quickthread']}.gif" id="quickthread_img" class="expander" alt="[-]" title="[-]" /></div>
    								<div><strong>Contact Us</strong></div>
    							</td>
    						</tr>
    					</thead>
    					<tbody style="{$collapsed['quickthread_e']}" id="quickthread_e">
    						<tr>
    							<td width="22%" class="trow1">
    								<strong>Subject</strong>
    							</td>
    							<td class="trow1">
    								<div style="width: 95%">
    									<input type="text" class="textbox" name="subject" size="40" maxlength="85" value="{$subject}" tabindex="1" />
    								</div>
    							</td>
    						</tr>
    						{$extra_threadfields}
    						{$captcha}
    						<tr>
    							<td colspan="2" align="center" class="tfoot">
    								<input type="submit" class="button" name="submit" value="Submit" tabindex="4" accesskey="s" />
    								<input type="submit" class="button" name="previewpost" value="Preview" tabindex="5" />
    							</td>
    						</tr>
    					</tbody>
    				</table>
    				<br />
    				<table border="0" cellspacing="0" cellpadding="{$theme['tablespace']}" width="100%">
    					<tr>
    						<td valign="middle" align="center" class="smalltext">
    							Contact Us
    							<div>
    								Powered By <a href="http://mybbhacks.zingaburga.com/showthread.php?tid=288">XThreads</a> - <a href="http://mybbhacks.zingaburga.com">MyBB Hacks</a>
    							</div>
    						</td>
    					</tr>
    				</table>
    			</td>
    			<td></td>
    		</tr>
    	</table>
    	<br />
    	<input type="hidden" name="action" value="do_newthread" />
    	<input type="hidden" name="posthash" value="{$posthash}" />
    	<input type="hidden" name="xthreads_contus_status" value="New" />
    	<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>
    {$footer}
    </body>
    </html>

  4. contus_postbit_first

    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
    {$ignore_bit}
    <a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
    <table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
    	<tbody>
    		<tr>
    			<td class="tcat">
    				<div class="float_left smalltext">
    					{$post['postdate']}, {$post['posttime']} <span id="edited_by_{$post['pid']}">{$post['editedmsg']}</span>
    				</div>
    				{$post['posturl']}
    			</td>
    		</tr>
    		<tr>
    			<td class="trow1 post_content {$unapproved_shade}" style="border-bottom: 2px solid #0F5C8E;" colspan="2">
    				<table border="0" width="100%">
    					<tr>
    						<td valign="top" colspan="3"><strong>{$GLOBALS['threadfields']['contus_status']}</strong></td>
    					</tr>
    					<tr>
    						<td width="75" valign="top">Subject</td>
    						<td width="1" valign="top">:</td>
    						<td valign="top">{$post['subject']} {$post['subject_extra']}</td>
    					</tr>
    					<tr>
    						<td width="75" valign="top">Name</td>
    						<td width="1" valign="top">:</td>
    						<td valign="top">{$GLOBALS['threadfields']['contus_name']}</td>
    					</tr>
    					<tr>
    						<td width="75" valign="top">E-Mail</td>
    						<td width="1" valign="top">:</td>
    						<td valign="top">{$GLOBALS['threadfields']['contus_email']}</td>
    					</tr>
    					<tr>
    						<td width="75" valign="top">Category</td>
    						<td width="1" valign="top">:</td>
    						<td valign="top">{$GLOBALS['threadfields']['contus_cat']}</td>
    					</tr>
    					<tr>
    						<td valign="top" colspan="3"><br />{$GLOBALS['threadfields']['contus_msg']}</td>
    					</tr>
    				</table>
    				<div class="post_meta" id="post_meta_{$post['pid']}">
    					{$post['iplogged']}
    				</div>
    				<br class="clear" />
    				<div class="author_buttons float_left">
    					{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}
    				</div>
    				<div class="post_management_buttons float_right">{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
    				</div>
    			</td>
    		</tr>
    	</tbody>
    </table>

  5. contus_post_captcha

    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
    <tr id="captcha_trow">
    	<td valign="top" colspan="2" class="tcat">
    		<strong>{$lang->image_verification}</strong>
    	</td>
    </tr>
    <tr>
    	<td colspan="2" class="trow1">
    		<script type="text/javascript" src="jscripts/captcha.js?ver=1400"></script>
    		<table style="width: 100%; padding: 4px;">
    			<tr>
    				<td width="40%" align="center">
    					<img src="captcha.php?imagehash={$imagehash}" alt="{$lang->image_verification}" title="{$lang->image_verification}" id="captcha_img" /><br />
    					<span style="color: red;" class="smalltext">{$lang->verification_subnote}</span>
    					<script type="text/javascript">
    					<!--
    						if(use_xmlhttprequest == "1")
    						{
    							document.write('<br \/><input type="button" class="button" name="refresh" value="{$lang->refresh}" onclick="return captcha.refresh();" \/>');
    						}
    					// -->
    					</script>
    				</td>
    				<td valign="top">
    					<div class="smalltext">{$lang->verification_note}</div>
    					<br />
    					<div align="center">
    						<input type="text" class="textbox" name="imagestring" value="" id="imagestring" /><input type="hidden" name="imagehash" value="{$imagehash}" id="imagehash" />
    					</div>
    				</td>
    			</tr>
    		</table>
    	</td>
    </tr>

  6. contus_threadfields_inputrow

    HTML Code
    <tr>
    	<td class="trow1"><strong>{$tf['title']}</strong></td>
    	<td class="trow1">{$inputfield}<small style="display: block;">{$tf['desc']}</small></td>
    </tr>

  7. Remove the contus_previewpost template


I've updated the first post and some screenshoots to reflect these changes (based on the default MyBB theme).

07-21-2011 04:12 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: