MyBB Community Forums

Full Version: Urgent Help forumbit_depth2_forum
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey

I have just been editing forumbit_depth2_forum and iv got it to how i want it (still not finished need to remove the column titles bits)

I then changed the time format because i wanted it in a text type of display, which i have done, but now, before there were only posts in the 1st category, top 2 forums,

THe second board had a thread titled Pyro Love, and the date is February 6th, 2009 12:06 PM, all the forums below this have this last thread title, date and time in them, when there is no threads or posts in the forums!!!

Any idea what i have done wrong, you can view this problem HERE

Oh and if it helps, here is the code for my forumbit_depth2_forum i have edited forumbit_depth2_forum so that i do not been to call forumbit_depth2_forum_lastpost

<tr>
   <td rowspan="2" class="{$bgcolor}" align="center" valign="middle" width="1"><img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" /></td>
   <td rowspan="2" class="{$bgcolor}" valign="middle"><strong><a href="{$forum_url}">{$forum['name']}</a></strong>{$forum_viewers_text}<div class="smalltext">{$forum['description']}{$modlist}{$subforums}</div></td>
   <td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap"><span class="float_left">Threads:</span> <span class="float_right">{$threads}{$unapproved['unapproved_threads']}</span></td>

</tr>
<tr>
   <td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap"><span class="float_left">Posts:</span> <span class="float_right">{$posts}{$unapproved['unapproved_posts']}</span></td>
</tr>
<tr>
<td class="{$bgcolor}" colspan="3" valign="top" align="left" style="white-space: nowrap">
<span class="smalltext">
<span class="float_left"><a href="{$lastpost_link}" title="{$full_lastpost_subject}">Last Post: <strong>{$lastpost_subject}</strong></a>
{$lang->by} <strong>{$lastpost_profilelink}</strong></span> <span class="float_right">{$lastpost_date} {$lastpost_time}</span>
</span>
</td>
</tr>

To add to this, if it helps the date format i have changed is - F jS, Y

Help asap please!!
Thanks, rob
When you edited that template, did you copy/paste the code from the second board? If so, you also copied the id.
(2009-02-15, 01:56 PM)Gordie Wrote: [ -> ]When you edited that template, did you copy/paste the code from the second board? If so, you also copied the id.

Nope iv only touched code originally in the template, i havnt copied any forum id Sad
(2009-02-15, 02:01 PM)Rob1991 Wrote: [ -> ]
(2009-02-15, 01:56 PM)Gordie Wrote: [ -> ]When you edited that template, did you copy/paste the code from the second board? If so, you also copied the id.

Nope iv only touched code originally in the template, i havnt copied any forum id Sad

Oops, sorry, misread.
Hmmm... I can't seem to recreate the problem on my board. I have changed everything like you have said and it works... I'll look a bit more and keep you informed..
It seems you haven't posted the most up to date code you've been using... Can you please paste in the one you are currently using?
Hey iv fixed it, its really hard to explain what i have done, but in the end i managed to use the {$lastpost} call thingy, i had to try this a few times because it didnt work with the tr and td tags of a table. Hard to explain but its working now, and the post stuff isnt repeated in the boards below it.


Thanks for your time Big Grin
(2009-02-15, 02:13 PM)Rob1991 Wrote: [ -> ]Hey iv fixed it, its really hard to explain what i have done, but in the end i managed to use the {$lastpost} call thingy, i had to try this a few times because it didnt work with the tr and td tags of a table. Hard to explain but its working now, and the post stuff isnt repeated in the boards below it.


Thanks for your time Big Grin

Okay no problem, I had to go and do something. I might join your community, as I have nothing to do Big Grin.
(2009-02-15, 03:22 PM)jlong1 Wrote: [ -> ]
(2009-02-15, 02:13 PM)Rob1991 Wrote: [ -> ]Hey iv fixed it, its really hard to explain what i have done, but in the end i managed to use the {$lastpost} call thingy, i had to try this a few times because it didnt work with the tr and td tags of a table. Hard to explain but its working now, and the post stuff isnt repeated in the boards below it.


Thanks for your time Big Grin

Okay no problem, I had to go and do something. I might join your community, as I have nothing to do Big Grin.

Haha awesome thanks Big Grin
Im hoping this time the community will get off the ground, i tried over the summer of 08, but i gave up Toungue