Hello!
Can anyone help me fix this:
-Total Posts are appearing under the threads name.
-The views are appearing in "replies".
-The stars are appearing in "views".
-The info about the last post is appearing in "Rating".
Edit: I have a problem in the sub-forum as well:
The total of threads and posts are not showing up.
Thanks!
You have invalid HTML somewhere. Show your forumdisplay_thread and forumdisplay_threadlist templates below.
forumdiplay_thread is a mess. Try replacing it with this:
<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} {$gotounread}{$thread['threadprefix']}<a href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}">{$sticky_prf}{$closed_prf}{$closed_strike1}{$closed_color1}{$sticky_color1}{$thread['subject']}</a>{$sticky_color2}{$closed_color2}{$closed_strike2}{$closed_image}{$sticky_image}{$new_reply_button}{$thread['multipage']}</span>
</div>
</td>
<td align="center" class="{$bgcolor}{$thread_type_class}"><a href="jMyBB.whoPosted({$thread['tid']});">{$thread['replies']}</a>{$unapproved_posts}</td>
<td align="center" class="{$bgcolor}{$thread_type_class}">{$thread['views']}</td>
{$rating}
<td class="{$bgcolor}{$thread_type_class}" style="white-space: nowrap; text-align: right;">
<span class="lastpost smalltext">{$lastpostdate} {$lastposttime}<br />
<a href="{$thread['lastpostlink']}">{$lang->lastpost}</a>: {$lastposterlink}</span>
</td>
{$modbit}
</tr>
(2013-10-25, 07:21 PM)Destroy666 Wrote: [ -> ]forumdiplay_thread is a mess. Try replacing it with this:
When I tried to do it, this message appeared:
Quote:Here you can edit the template's code, title or set.
The following errors were encountered:
A potential security issue was found in the template. Please review your changes or contact the MyBB Group for support.
Uhm... paste this instead:
<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}">{$sticky_prf}{$closed_prf} {$closed_strike1}{$closed_color1}{$sticky_color1}{$thread['subject']}</a>{$sticky_color2}{$closed_color2}{$closed_strike2} {$closed_image}{$sticky_image}{$new_reply_button}{$thread['multipage']}</span>
</div>
<span class="author smalltext">{$thread['profilelink']}</span>
</td>
<td align="center" class="{$bgcolor}{$thread_type_class}"><a href="MyBB.whoPosted({$thread['tid']});">{$thread['replies']}</a>{$unapproved_posts}</td>
<td align="center" class="{$bgcolor}{$thread_type_class}">{$thread['views']}</td>
{$rating}
<td class="{$bgcolor}{$thread_type_class}" style="white-space: nowrap; text-align: right;">
<span class="lastpost smalltext">{$lastpostdate} {$lastposttime}<br />
<a href="{$thread['lastpostlink']}">{$lang->lastpost}</a>: {$lastposterlink}</span>
</td>
{$modbit}
</tr>
Be careful when editing templates because it had got at least 10 issues before I editted it.
(2013-10-25, 07:59 PM)Destroy666 Wrote: [ -> ]Uhm... paste this instead:
<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}">{$sticky_prf}{$closed_prf} {$closed_strike1}{$closed_color1}{$sticky_color1}{$thread['subject']}</a>{$sticky_color2}{$closed_color2}{$closed_strike2} {$closed_image}{$sticky_image}{$new_reply_button}{$thread['multipage']}</span>
</div>
<span class="author smalltext">{$thread['profilelink']}</span>
</td>
<td align="center" class="{$bgcolor}{$thread_type_class}"><a href="MyBB.whoPosted({$thread['tid']});">{$thread['replies']}</a>{$unapproved_posts}</td>
<td align="center" class="{$bgcolor}{$thread_type_class}">{$thread['views']}</td>
{$rating}
<td class="{$bgcolor}{$thread_type_class}" style="white-space: nowrap; text-align: right;">
<span class="lastpost smalltext">{$lastpostdate} {$lastposttime}<br />
<a href="{$thread['lastpostlink']}">{$lang->lastpost}</a>: {$lastposterlink}</span>
</td>
{$modbit}
</tr>
Be careful when editing templates because it had got at least 10 issues before I editted it.
I did not edit anything. >_<
Looks like this now:
It works partially now. I still have 2 problems:
- When I click in the number of replies, I get a message saying that the page was not found and that I should contact my hosting. It was working before the changes.
The total of threads and posts are not showing up in the sub-forum.
To fix the 1st replace again:
<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}">{$sticky_prf}{$closed_prf} {$closed_strike1}{$closed_color1}{$sticky_color1}{$thread['subject']}</a>{$sticky_color2}{$closed_color2}{$closed_strike2} {$closed_image}{$sticky_image}{$new_reply_button}{$thread['multipage']}</span>
</div>
<span class="author smalltext">{$thread['profilelink']}</span>
</td>
<td align="center" class="{$bgcolor}{$thread_type_class}"><a href="jMyBB.whoPosted({$thread['tid']});">{$thread['replies']}</a>{$unapproved_posts}</td>
<td align="center" class="{$bgcolor}{$thread_type_class}">{$thread['views']}</td>
{$rating}
<td class="{$bgcolor}{$thread_type_class}" style="white-space: nowrap; text-align: right;">
<span class="lastpost smalltext">{$lastpostdate} {$lastposttime}<br />
<a href="{$thread['lastpostlink']}">{$lang->lastpost}</a>: {$lastposterlink}</span>
</td>
{$modbit}
</tr>
It's invalid for default MyBB but I guess your style modified it and added j for some reason...
The 2nd has nothing to do with this topic.. It's a problem with
forumbit_depth2_forum. There are 2 empty <td>s.
(2013-10-25, 08:58 PM)Destroy666 Wrote: [ -> ]To fix the 1st replace again:
The 1st problem is still there. Nothing changed.
forumbit_depth2_forum:
<tr>
<td class="{$bgcolor}" align="center" valign="top" width="1"><img src="{$theme['imgdir']}/{$lightbulb['folder']}.png" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" /></td>
<td class="{$bgcolor}" valign="top">
<strong><a href="{$forum_url}" class="gzero right">{$forum['name']}<span class="tl"><i></i>Tópicos: {$threads}<br />Mensagens: {$posts}</span></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">{$unapproved['unapproved_threads']}</td>
<td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap"></td>
<td class="{$bgcolor}" valign="top" align="right" style="white-space: nowrap">{$lastpost}</td>
</tr>
Ok, it didn't work before then because I copied the old code from your post with template.. - please don't provide invalid information. This must work now (tested in Firebug). Replace again:
<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}">{$sticky_prf}{$closed_prf} {$closed_strike1}{$closed_color1}{$sticky_color1}{$thread['subject']}</a>{$sticky_color2}{$closed_color2}{$closed_strike2} {$closed_image}{$sticky_image}{$new_reply_button}{$thread['multipage']}</span>
</div>
<span class="author smalltext">{$thread['profilelink']}</span>
</td>
<td align="center" class="{$bgcolor}{$thread_type_class}"><a href="javascript:MyBB.whoPosted({$thread['tid']});">{$thread['replies']}</a>{$unapproved_posts}</td>
<td align="center" class="{$bgcolor}{$thread_type_class}">{$thread['views']}</td>
{$rating}
<td class="{$bgcolor}{$thread_type_class}" style="white-space: nowrap; text-align: right;">
<span class="lastpost smalltext">{$lastpostdate} {$lastposttime}<br />
<a href="{$thread['lastpostlink']}">{$lang->lastpost}</a>: {$lastposterlink}</span>
</td>
{$modbit}
</tr>
And
forumbit_depth2_forum:
<tr>
<td class="{$bgcolor}" align="center" valign="top" width="1"><img src="{$theme['imgdir']}/{$lightbulb['folder']}.png" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" /></td>
<td class="{$bgcolor}" valign="top">
<strong><a href="{$forum_url}" class="gzero right">{$forum['name']}<span class="tl"><i></i>Tópicos: {$threads}<br />Mensagens: {$posts}</span></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">{$lang->forumbit_threads}: {$threads}{$unapproved['unapproved_threads']}</td>
<td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap">{$lang->forumbit_posts}: {$posts}{$unapproved['unapproved_posts']}</td>
<td class="{$bgcolor}" valign="top" align="right" style="white-space: nowrap">{$lastpost}</td>
</tr>
EDIT: Forgot to modify the code with Replies link issue in this post.. Updated, try again. Now it's 100% correct..
EDIT2 @next post: No thanks. this theme seems messier than my room after my 18th birthday party. Everytime I fix something next issue shows up. I give up...