MyBB Hacks

Full Version: XThreads
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi LeeFish
Sure, i specified the forum and also i`m not using anything fancy, in fact i use the default xthreads options without any code line modification
Thats very odd - perhaps try one of the simpler setups that RateU has made and see if that works?
thanks for reply lee. I tested now the Pre Formatted Thread from here http://mybbhacks.zingaburga.com/showthread.php?tid=289 step by step and also i deactivate the Apart theme because of those modification specifed by rateu were for default template. The PHP Version is : 5.2.17
Now i saw i use MyBB version 1.6.2
May I know your custom thread fields settings?
(02-26-2011 02:25 AM)RateU Wrote: [ -> ]May I know your custom thread fields settings?

hi rateu
I use only default setings, for example:
Title: address
Key: address
Applicable Forums : all forums selected
Input Field Type : texbox
Editable by / Required Field? : Admins
Display Parsing : plain text
Display Order: 1
Please take a look to my test board Test , fi you wanna take a look closely i can give you my admin pass.
PS: the mybb version i use it is 1.6.2 , it`s kinda weird, i read and re-read almost everything on this board, for more than 10 hours and i guess it could be a trouble with the new version maybe ?! Aww.
Based on the above custom thread fields, try to set the Hide Input Field settings to Yes.
Then put {$tfinputrow['address']} variable in your newthread template, or your template_prefix_newthread template if you use template prefix. You can put it after the {$posticons} variable.
I`m not using template prefix, i add the line into newthread template

Code:
<html>
<head>
<title>{$lang->newthread_in}</title>
{$headerinclude}
<script type="text/javascript" src="jscripts/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->post_new_thread}</strong></td>
</tr>
{$loginbox}
<tr>
<td class="trow2" width="20%"><strong>{$lang->thread_subject}</strong></td>
<td class="trow2">{$prefixselect}<input type="text" class="textbox" name="subject" size="40" maxlength="85" value="{$subject}" tabindex="1" /></td>
</tr>
{$extra_threadfields}{$posticons} {$tfinputrow['address']}
<tr>
<td class="trow2" valign="top"><strong>{$lang->your_message}</strong>{$smilieinserter}</td>
<td class="trow2">
<textarea name="message" id="message" rows="20" cols="70" tabindex="2">{$message}</textarea>
{$codebuttons}
{$multiquote_external}
</td>
</tr>
<tr>
<td class="trow1" valign="top"><strong>{$lang->post_options}</strong></td>
<td class="trow1"><span class="smalltext">
<label><input type="checkbox" class="checkbox" name="postoptions[signature]" value="1" tabindex="7"{$postoptionschecked['signature']} /> {$lang->options_sig}</label>
{$disablesmilies}</span></td>
</tr>
{$modoptions}
{$subscriptionmethod}
{$pollbox}
{$captcha}
</table>
{$attachbox}
<br />
<div style="text-align:center"><input type="submit" class="button" name="submit" value="{$lang->post_thread}" tabindex="4" accesskey="s" />  <input type="submit" class="button" name="previewpost" value="{$lang->preview_post}" 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>
{$forumrules}
{$footer}
</body>
</html>


And still no custom field appeared

What I meant is in newthread. Does the textbox appear in the newthread template?
(02-26-2011 03:07 AM)RateU Wrote: [ -> ]What I meant is in newthread. Does the textbox appear in the newthread template?

Thanks for reply.  Yes , i modified the newreply file from New Reply Templates. When i open a new thread the custom fields are visible, they are requiered as i set them up , but they don`t show up at all after the post it`s published.
Does it appear in newthread when you set the Hide Input Field settings to No? Remove the {$tfinputrow['address']} variable from your newthread template.

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.
Reference URL's