MyBB Central

Full Version: How to display age column?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
[Image: 242688m.jpg]

So in my subforums, I want to have a subforum that displays the age of the OP. Originally, I tried to get the age value from member profiles but I couldn't get that working. Afterwards, I created a custom profile field for age and I tried to use that value and I still couldn't get it to work. If anyone knows how, please help me!

Thanks!
Is this the age of the forum or the age of the member that started the thread?
The age of the member that started the thread (the OP).
Each row in that table is a post, so they are not subforums.
What code are you trying to input into the row?
My code is probably all wrong because I don't know how to code at all... I've been altering the forum using tutorials and reading forums. I tried to show the age using the "add author column" method but it doesn't work.


Anyway, I posted my code for forumdisplay_thread template. I don't know how to proceed from here... Sad

PHP Code:
<tr>
    <
td align="center" class="{$bgcolor}{$thread_type_class}width="2%"><img src="{$theme['imgdir']}/{$folder}.gif" alt="{$folder_label}title="{$folder_label}/></td>

<!--    
<
td align="center" class="{$bgcolor}{$thread_type_class}width="2%">{$icon}</td>
-->


    <
td class="{$bgcolor}{$thread_type_class}">
        {
$attachment_count}
        <
div>
            <
span>{$prefix}{$thread['threadprefix']}<a href="{$thread['threadlink']}class="{$inline_edit_class} {$new_class}id="tid_{$inline_edit_tid}">{$thread['subject']}</a>{$thread['multipage']}</span>

<!-- 
squiggly mark money sign "gotounread" this was supposed to be directly after prefix two lines above   -->


        </
div>
    </
td>


        <
td align="center" class="{$bgcolor}{$thread_type_class}"><div class="author smalltext">{$thread['profilelink']}</div></td>
        <
td align="center" class="{$bgcolor}{$thread_type_class}"><div class="author smalltext">{$thread['fid5']}</div></td>



<!-- 
replies column
    
<td align="center" class="{$bgcolor}{$thread_type_class}"><a href="javascript:MyBB.whoPosted({$thread['tid']});">{$thread['replies']}</a>{$unapproved_posts}</td>
-->


<!--
thread views
    
<td align="center" class="{$bgcolor}{$thread_type_class}">{$thread['views']}</td>
-->


<!-- 
squiggly mark money sign rating} -->

    <
td class="{$bgcolor}{$thread_type_class}style="white-space: nowrap; text-align: right;">
        {
$lastpostdate} {$lastposttime}<br />
<
span class="lastpost smalltext">

<!--
        <
a href="{$thread['lastpostlink']}">
               {
$lang->lastpost}</a>: {$lastposterlink}
-->

</
span>
    </
td>
{
$modbit}
</
tr
Is this just the standard forumdisplay_thread template?
I cant find any reference to Age.
I modified the forumdisplay_thread a bit. For example, I added an "Author" column.
I have a custom profile field for age, so it's supposed to be in "fid5". If I use fid5 in a post, it works no problem, but it doesn't work in the subforum.
Im not sure sorry. Ive never had to add a field into forum before Tongue
If nobody helps here then it might be worth making a thread at MyBB.com
Yeah, I actually posted at mybb.com before I came here but nobody there answered me...
Can somebody please help me? It's quite important.
Pages: 1 2