MyBB Hacks

Full Version: Multiple text areas
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi All
I am having a problem using multiple text areas in one template.
What happens is :-
The multiple text areas display when you edit a post using code like this

Code:
<tr><td class="tcat" colspan="3"><b>Screen Shot Descriptions</b></td></tr>
<tr><td class="trow2"> Description #1 <br>{$tfinput['st1']}</td><td class="trow2">Description #2<br>{$tfinput['st2']}</td><td class="trow2">Description #3<br>{$tfinput['st3']}</td></tr>

and after using phpmyadmin the data is stored correctly to the database
however in postbit_first the following code

Code:
<td>{$GLOBALS['threadfields']['st1']['value']}</td>

only displays the first letter of the field any idea on what I have done wrong ?

Use

Code:
<td>{$GLOBALS['threadfields']['st1']}</td>

(12-04-2012 07:00 AM)ZiNgA BuRgA Wrote: [ -> ]Use

Code:
<td>{$GLOBALS['threadfields']['st1']}</td>


Thank you for that .... how come the ['value'] variable fails e.g

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

showing only the first letter of the field ???
Again thanks for that

Because you're not meant to use ['value']

Note that it's different for file fields because they just simply operate differently to everything else.
Reference URL's