MyBB Hacks

Full Version: XThreads
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Nope, the custom fields don`t appeared with default setting or with {$tfinputrow['address']} in default template + Hide Input Field set up with YES
Again, what I meant is in a newthread page. We need to make sure that the custom thread fields (input) displayed in newthread first. Later, we will talk about the output.

You said that the custom thread fields (input / textbox) is visible in newthread with {$tfinputrow['address']} in default template + Hide Input Field set up with Yes.
(02-26-2011 03:23 AM)kitten Wrote: [ -> ]When i open a new thread the custom fields are visible, they are requiered as i set them up

I would like to know whether the custom thread fields (input / textbox) appear in newthread with the default setting.

Again, we are talking about newthread page first, and about the textbox in newthread page.
(02-26-2011 04:08 AM)RateU Wrote: [ -> ]Again, what I meant is in a newthread page. We need to make sure that the custom thread fields (input) displayed in newthread first. Later, we will talk about the output.


Sorry for misunderstanding. Yes, the custom field appear in newthread page even if i deleted the line {$tfinputrow['address']} from newthread template.[attachment=444] They were visible from the begining with default settings and they were also visible after i added the code line in the template.
Ah, yes. That's what I meant by this:
(02-26-2011 03:33 AM)RateU Wrote: [ -> ]Just to make sure that I didn't misunderstand this:
(02-25-2011 10:09 PM)kitten Wrote: [ -> ]i had added two custom fields and they dont appear at all when i create a new threads.
It seems that I've misunderstood your problem.

For the example above, try to put this variable in your postbit or postbit_classic template:

Code:
{$GLOBALS['threadfields']['address']}

Thanks for reply rateu. I modified the postbit with the new line and still no published field in the new thread Frown
Could you post your postbit template, please?
(02-26-2011 05:01 AM)RateU Wrote: [ -> ]Could you post your postbit template, please?

This is the postbit file:

Code:
{$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']}  {$GLOBALS['threadfields']['address']}
			</td>
		</tr>

		<tr>
			<td class="trow1 {$unapproved_shade}">
				<table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
					<tr>
						<td class="post_avatar" width="1" style="{$post['avatar_padding']}">
							{$post['useravatar']}
						</td>
						<td class="post_author">
							<strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />
							<span class="smalltext">
								{$post['usertitle']}<br />
								{$post['userstars']}
								{$post['groupimage']}
							</span>
						</td>
						<td class="smalltext post_author_info" width="165">
							{$post['user_details']}
						</td>
					</tr>
				</table>
			</td>
		</tr>

		<tr>
			<td class="trow2 post_content {$unapproved_shade}">
				<span class="smalltext"><strong>{$post['icon']}{$post['subject']} {$post['subject_extra']}</strong></span>

				<div class="post_body" id="pid_{$post['pid']}">
					{$post['message']}
				</div>
				{$post['attachments']}
				{$post['signature']}

				<div class="post_meta" id="post_meta_{$post['pid']}">
				{$post['iplogged']}
				</div>
			</td>
		</tr>

		<tr>
			<td class="trow1 post_buttons {$unapproved_shade}">
				<div class="author_buttons float_left">
					{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}
				</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>

It is already there, Kitten:
[attachment=445]

You can't view it because you put it there.
Try to put it above the {$post['message']} variable (line #42).
Something like this:

HTML Code
{$GLOBALS['threadfields']['address']}
{$post['message']}


If this works, we can style it later in Display Format.

(02-26-2011 05:23 AM)RateU Wrote: [ -> ]It is already there, Kitten:


You can't view it because you put it there.
Try to put it above the {$post['message']} variable (line #42).
Something like this:

HTML Code
{$GLOBALS['threadfields']['address']}
{$post['message']}


If this works, we can style it later in Display Format.


Yes it works now YipiYipi  Thank you very much rateu for the help!!
I`m will re-check other threads created by you when i saw the fields listed cute with variable in front. Thank you very much you saved another 12 hours or re-cheking Yes
Biggrin

When the first time I learned XThreads, I spent very very much time too Biggrin
Even until now, I only know some basic XThreads features.
I'm still learning too, Kitten Biggrin
This is a complex and an amazing tools Smile

Glad you can solve the problem Smile
Reference URL's