MyBB Hacks

Full Version: Contact Us System
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10
I have quick thread installed but when I submit a "test" I do not have any content for the post...it's blank ?
Do you add/change some custom thread fields in your Contact Us form?

If you've changed the key of the custom thread fields, you need to change it in your template (eg: contus_postbit_first) too.
For example (not for file input type field):
We have a custom thread fields with key = my_key
Then we need to put {$GLOBALS['threadfields']['my_key']} variable in template to display it.
Yeah, Im gonna have to go through it again....lol....I changed quite a few of them.
This is what I have for custom thread fields (image attached)

Im not sure where to make the changes to reflect what I changed, thanks for the help Yipi

[attachment=341]
Mostly in contus_postbit_first (start from line #15):

HTML Code
<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>


Try to change it in that template first.
For example:

HTML Code
<table border="0" width="100%">
	<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">Steam ID</td>
		<td width="1" valign="top">:</td>
		<td valign="top">{$GLOBALS['threadfields']['contus_steamid']}</td>
	</tr>
	<tr>
		<td width="75" valign="top">Age</td>
		<td width="1" valign="top">:</td>
		<td valign="top">{$GLOBALS['threadfields']['contus_age']}</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">Time Zone</td>
		<td width="1" valign="top">:</td>
		<td valign="top">{$GLOBALS['threadfields']['contus_timezone']}</td>
	</tr>
	<tr>
		<td valign="top" colspan="3"><br />{$GLOBALS['threadfields']['contus_gamesplayed']}</td>
	</tr>
</table>


Later, we will try to change it in other template too.

Ok...that's done. And also just to throw this out there...the captcha is not working either Frown
On new thread or forum display?
The board doesn't seem to allow guest posting, so I can't test it.  Obviously, non-guests don't need to enter a captcha, so ensure you're testing as guest.
Ok...fixed the captcha, permissions problem. I'm always logged in as admin so I have to juggle browsers to see it as guest...D'oh.

On forum display it does not show (image attached)

[attachment=343]
(01-05-2011 12:46 AM)Vapor Wrote: [ -> ]On forum display it does not show (image attached)

Do you mean showthread?
If so, could you post your contus_postbit_first template here, Vapor?
Sure...here ya go:

Code:
{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" width="100%" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
	<tbody>
		<tr>
			<td>
				<div class="float_left smalltext">
					{$post['postdate']}, {$post['posttime']} <span id="edited_by_{$post['pid']}">{$post['editedmsg']}</span>
				</div>
				{$post['posturl']}
			</td>
		</tr>
		<tr>
			
<table border="0" width="100%">
	<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">Steam ID</td>
		<td width="1" valign="top">:</td>
		<td valign="top">{$GLOBALS['threadfields']['contus_steamid']}</td>
	</tr>
	<tr>
		<td width="75" valign="top">Age</td>
		<td width="1" valign="top">:</td>
		<td valign="top">{$GLOBALS['threadfields']['contus_age']}</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">Time Zone</td>
		<td width="1" valign="top">:</td>
		<td valign="top">{$GLOBALS['threadfields']['contus_timezone']}</td>
	</tr>
	<tr>
		<td valign="top" colspan="3"><br />{$GLOBALS['threadfields']['contus_gamesplayed']}</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>

Pages: 1 2 3 4 5 6 7 8 9 10
Reference URL's