OK, I've finished the hack and it seems to work fine on my board. I'm using the Extra2 field, but you can change it to any of the others. I've only done it on the flat view at the moment, if you are happy with how it works I'll fix it for the threaded view as well.
Open up the file showflat.php and do the following:
Find a line that looks like this (at line 638):
code:
SELECT t1.B_Number,t1.B_Username,t1.B_Posted,t1.B_IP,t1.B_Subject,t1.B_Body,t1.B_File,t1.B_Status,t1.B_Approved,t2.U_Picture,t1.B_Reged,t2.U_Title,t1.B_Sticky,t2.U_Color,t1.B_Icon,t1.B_Poll,t1.B_ParentUser,t1.B_Parent,t2.U_Status,t2.U_Signature,t1.B_LastEdit,t1.B_LastEditBy,t2.U_Location,t2.U_TotalPosts,t2.U_Registered,t2.U_Rating,t2.U_Rates,t2.U_RealRating,t2.U_PicWidth,t2.U_PicHeight,t2.U_Number
And change it to this, change the U_Extra1 to the extra field that you want to use.
code:
SELECT t1.B_Number,t1.B_Username,t1.B_Posted,t1.B_IP,t1.B_Subject,t1.B_Body,t1.B_File,t1.B_Status,t1.B_Approved,t2.U_Picture,t1.B_Reged,t2.U_Title,t1.B_Sticky,t2.U_Color,t1.B_Icon,t1.B_Poll,t1.B_ParentUser,t1.B_Parent,t2.U_Status,t2.U_Signature,t1.B_LastEdit,t1.B_LastEditBy,t2.U_Location,t2.U_TotalPosts,t2.U_Registered,t2.U_Rating,t2.U_Rates,t2.U_RealRating,t2.U_PicWidth,t2.U_PicHeight,t2.U_Number,t2.U_Extra2
Then find this line (at 652):
code:
list ($Number,$Username,$Posted,$IP,$Subject,$Body,$File,$Open,$Approved,$Picture,$Reged,$Title,$Sticky,$Color,$Icon,$Poll,$Parent,$ParentPost,$PostStatus,$Signature,$LastEdit,$LastEditBy,$Location,$TotalPosts,$Registered,$Rating,$Rates,$stars,$picwidth,$picheight,$usernum) = $dbh -> fetch_array($sth);
And change it into this:
code:
list ($Number,$Username,$Posted,$IP,$Subject,$Body,$File,$Open,$Approved,$Picture,$Reged,$Title,$Sticky,$Color,$Icon,$Poll,$Parent,$ParentPost,$PostStatus,$Signature,$LastEdit,$LastEditBy,$Location,$TotalPosts,$Registered,$Rating,$Rates,$stars,$picwidth,$picheight,$usernum,$userextra2) = $dbh -> fetch_array($sth);
Then find this line (at 656):
code:
if ( ($Reged == 'y') && ($usernum != 1)){
And add this line AFTER it:
code:
$postrow[$i]['Extra2'] = $userextra2;
You should now be able to add "{$postrow[$i]['Extra2']}" where you want it to show up in the showflat.tmpl template.
To add it above the user picture, find this code:
<tr>
<td class="small">
{$postrow[$i]['Picture']}
<br />
</td>
</tr>
And add the following BEFORE it:
<tr>
<td class="small">
{$postrow[$i]['Extra2']}
<br />
</td>
</tr>