REGISTER or LOGIN to have the annoying ads removed.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to display age column?
#1
[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!
Reply
#2
Is this the age of the forum or the age of the member that started the thread?
Reply
#3
The age of the member that started the thread (the OP).
Each row in that table is a post, so they are not subforums.
Reply
#4
What code are you trying to input into the row?
Reply
#5
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
Reply
#6
Is this just the standard forumdisplay_thread template?
I cant find any reference to Age.
Reply
#7
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.
Reply
#8
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
Reply
#9
Yeah, I actually posted at mybb.com before I came here but nobody there answered me...
Reply
#10
Can somebody please help me? It's quite important.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Warning Display Groups Flawless 0 1,068 Jul 22, 2014, 02:58 PM
Last Post: Flawless
  Remove Threads Column? Chicken 1 941 Jun 02, 2012, 11:07 AM
Last Post: heavaz60
  1054 - Unknown column 'forum_icon' in 'field list' Deer 2 1,117 Nov 23, 2011, 09:01 PM
Last Post: F4T4L 3RR0R
  Online24 - Display ashy 5 1,877 Aug 01, 2011, 08:44 AM
Last Post: ashy
  Necropost Notice - does not display information in a quick reply albatros 5 2,081 Mar 02, 2011, 01:00 PM
Last Post: Oliver Evans

Forum Jump:


Users browsing this thread: 1 Guest(s)