MyBB Community Forums

Full Version: Need help renaming the Rating to Views using Clean Green template.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey guys..

I'm using the Clean Dark Green template.. and it's great.  

However,.. On my thread listings it shows the word "Rating" over where the View number count is.  And there is not the word "Views" at all .. There is not the Word "Posts or Post Count" over the post count.. and so on.

Aside from the alignment,.. I've been searching the templates and can't exactly find where to fix this and/or add in to put the header for the amount of posts and so on.

I think this image will help show the issue.

[Image: forumviews.jpg]

The Red circle is where I want it to say "Views" and not "Rating" -- And the Green circle is where the missing title for how many posts there are for each thread should be shown.

I realize there is misalignment, but that's a secondary issue.

Could you guys help with finding where to modify the template to change and perhaps add in the title for the Post count/views?

Much appreciated!
Anyone? I thought this would be a relatively easy answer.. as in Go to XYZ template to this area and Do ABC. I'd appreciate any help.
can you provide a forum url please?
Look in forumdisplay_threadlist template.
The Forum is Click to access Forum

Here is the code for forumdisplay_threadlist:

<div class="float_left">
 {$multipage}
</div>
<div class="float_right">
 {$newthread}
</div>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder clear">
 <tr>
 <td class="thead" colspan="{$colspan}">
 <div class="float_right">
 <span class="smalltext"><strong><a href="misc.php?action=markread&amp;fid={$fid}{$post_code_string}">{$lang->markforum_read}</a> | <a href="usercp2.php?action={$add_remove_subscription}subscription&amp;type=forum&amp;fid={$fid}&amp;my_post_key={$mybb->post_code}">{$add_remove_subscription_text}</a>{$clearstoredpass}</strong></span>
 </div>
 <div>
 <strong>{$foruminfo['name']}</strong>
 </div>
 </td>
 </tr>
 <tr>
 <td class="tcat" colspan="3" width="66%"><span class="smalltext"><strong><a href="{$sorturl}&amp;sortby=subject&amp;order=asc">{$lang->thread}</a> {$orderarrow['subject']} / <a href="{$sorturl}&amp;sortby=starter&amp;order=asc">{$lang->author}</a> {$orderarrow['starter']}</strong></span></td>
 <td class="tcat" align="center" width="7%"></td>
      {$ratingcol}
 <td class="tcat" align="right" width="7%"><span class="smalltext"><strong>Post info</strong></span></td>
 <td class="tcat" align="left" width="20%"><span class="smalltext"><strong><a href="{$sorturl}&amp;sortby=lastpost&amp;order=desc">{$lang->lastpost}</a> {$orderarrow['lastpost']}</strong></span></td>
 {$inlinemodcol}
 </tr>
 {$selectall}
 {$announcementlist}
 {$threads}
 <tr>
 <td class="trow1" align="right" colspan="{$colspan}">
 <form action="forumdisplay.php" method="get">
 <input type="hidden" name="selectall" value="" />
 <input type="hidden" name="fid" value="{$fid}" />
 <select name="sortby">
 <option value="subject" {$sortsel['subject']}>{$lang->sort_by_subject}</option>
 <option value="lastpost" {$sortsel['lastpost']}>{$lang->sort_by_lastpost}</option>
 <option value="starter" {$sortsel['starter']}>{$lang->sort_by_starter}</option>
 <option value="started" {$sortsel['started']}>{$lang->sort_by_started}</option>
 {$ratingsort}
 <option value="replies" {$sortsel['replies']}>{$lang->sort_by_replies}</option>
 <option value="views" {$sortsel['views']}>{$lang->sort_by_views}</option>
 </select>
 <select name="order">
 <option value="asc" {$ordersel['asc']}>{$lang->sort_order_asc}</option>
 <option value="desc" {$ordersel['desc']}>{$lang->sort_order_desc}</option>
 </select>
 <select name="datecut">
 <option value="1" {$datecutsel['1']}>{$lang->datelimit_1day}</option>
 <option value="5" {$datecutsel['5']}>{$lang->datelimit_5days}</option>
 <option value="10" {$datecutsel['10']}>{$lang->datelimit_10days}</option>
 <option value="20" {$datecutsel['20']}>{$lang->datelimit_20days}</option>
 <option value="50" {$datecutsel['50']}>{$lang->datelimit_50days}</option>
 <option value="75" {$datecutsel['75']}>{$lang->datelimit_75days}</option>
 <option value="100" {$datecutsel['100']}>{$lang->datelimit_100days}</option>
 <option value="365" {$datecutsel['365']}>{$lang->datelimit_lastyear}</option>
 <option value="9999" {$datecutsel['9999']}>{$lang->datelimit_beginning}</option>
 </select>
 {$prefixselect}
 {$gobutton}
 </form>
 </td>
 </tr>
</table>
<div class="float_left">
 {$multipage}
</div>
<div class="float_right" style="margin-top: 4px;">
 {$newthread}
</div>
<br class="clear" />
<br />
<div class="float_right" style="text-align: right;">
 {$inlinemod}
 {$forumjump}
</div>
<div class="float_left" style="text-align: left;">
</div>
<br class="clear" />
{$inline_edit_js}
try this:

<div class="float_left">
{$multipage}
</div>
<div class="float_right">
{$newthread}
</div>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder clear">
<tr>
<td class="thead" colspan="{$colspan}">
<div class="float_right">
<span class="smalltext"><strong><a href="misc.php?action=markread&amp;fid={$fid}{$post_code_string}">{$lang->markforum_read}</a> | <a href="usercp2.php?action={$add_remove_subscription}subscription&amp;type=forum&amp;fid={$fid}&amp;my_post_key={$mybb->post_code}">{$add_remove_subscription_text}</a>{$clearstoredpass}</strong></span>
</div>
<div>
<strong>{$foruminfo['name']}</strong>
</div>
</td>
</tr>
<tr>
<td class="tcat" colspan="3" width="66%"><span class="smalltext"><strong><a href="{$sorturl}&amp;sortby=subject&amp;order=asc">{$lang->thread}</a> {$orderarrow['subject']} / <a href="{$sorturl}&amp;sortby=starter&amp;order=asc">{$lang->author}</a> {$orderarrow['starter']}</strong></span></td>
<td class="tcat" align="center" width="7%"></td>
<td class="tcat" align="right" width="7%"><span class="smalltext"><strong>Post info</strong></span></td>
     {$ratingcol}

<td class="tcat" align="left" width="20%"><span class="smalltext"><strong><a href="{$sorturl}&amp;sortby=lastpost&amp;order=desc">{$lang->lastpost}</a> {$orderarrow['lastpost']}</strong></span></td>
{$inlinemodcol}
</tr>
{$selectall}
{$announcementlist}
{$threads}
<tr>
<td class="trow1" align="right" colspan="{$colspan}">
<form action="forumdisplay.php" method="get">
<input type="hidden" name="selectall" value="" />
<input type="hidden" name="fid" value="{$fid}" />
<select name="sortby">
<option value="subject" {$sortsel['subject']}>{$lang->sort_by_subject}</option>
<option value="lastpost" {$sortsel['lastpost']}>{$lang->sort_by_lastpost}</option>
<option value="starter" {$sortsel['starter']}>{$lang->sort_by_starter}</option>
<option value="started" {$sortsel['started']}>{$lang->sort_by_started}</option>
{$ratingsort}
<option value="replies" {$sortsel['replies']}>{$lang->sort_by_replies}</option>
<option value="views" {$sortsel['views']}>{$lang->sort_by_views}</option>
</select>
<select name="order">
<option value="asc" {$ordersel['asc']}>{$lang->sort_order_asc}</option>
<option value="desc" {$ordersel['desc']}>{$lang->sort_order_desc}</option>
</select>
<select name="datecut">
<option value="1" {$datecutsel['1']}>{$lang->datelimit_1day}</option>
<option value="5" {$datecutsel['5']}>{$lang->datelimit_5days}</option>
<option value="10" {$datecutsel['10']}>{$lang->datelimit_10days}</option>
<option value="20" {$datecutsel['20']}>{$lang->datelimit_20days}</option>
<option value="50" {$datecutsel['50']}>{$lang->datelimit_50days}</option>
<option value="75" {$datecutsel['75']}>{$lang->datelimit_75days}</option>
<option value="100" {$datecutsel['100']}>{$lang->datelimit_100days}</option>
<option value="365" {$datecutsel['365']}>{$lang->datelimit_lastyear}</option>
<option value="9999" {$datecutsel['9999']}>{$lang->datelimit_beginning}</option>
</select>
{$prefixselect}
{$gobutton}
</form>
</td>
</tr>
</table>
<div class="float_left">
{$multipage}
</div>
<div class="float_right" style="margin-top: 4px;">
{$newthread}
</div>
<br class="clear" />
<br />
<div class="float_right" style="text-align: right;">
{$inlinemod}
{$forumjump}
</div>
<div class="float_left" style="text-align: left;">
</div>
<br class="clear" />
{$inline_edit_js}
It's because the avatar on index / forum display changed the way i had the templates causing the misalignment of the tcat.

You should also revert forumbit_depth2_forum_lastpost so it uses three lines instead of two.
(2015-03-09, 03:20 PM)Leefish Wrote: [ -> ]try this:


<div class="float_left">
{$multipage}
</div>
<div class="float_right">
{$newthread}
</div>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder clear">
<tr>
<td class="thead" colspan="{$colspan}">
<div class="float_right">
<span class="smalltext"><strong><a href="misc.php?action=markread&amp;fid={$fid}{$post_code_string}">{$lang->markforum_read}</a> | <a href="usercp2.php?action={$add_remove_subscription}subscription&amp;type=forum&amp;fid={$fid}&amp;my_post_key={$mybb->post_code}">{$add_remove_subscription_text}</a>{$clearstoredpass}</strong></span>
</div>
<div>
<strong>{$foruminfo['name']}</strong>
</div>
</td>
</tr>
<tr>
<td class="tcat" colspan="3" width="66%"><span class="smalltext"><strong><a href="{$sorturl}&amp;sortby=subject&amp;order=asc">{$lang->thread}</a> {$orderarrow['subject']} / <a href="{$sorturl}&amp;sortby=starter&amp;order=asc">{$lang->author}</a> {$orderarrow['starter']}</strong></span></td>
<td class="tcat" align="center" width="7%"></td>
<td class="tcat" align="right" width="7%"><span class="smalltext"><strong>Post info</strong></span></td>
     {$ratingcol}

<td class="tcat" align="left" width="20%"><span class="smalltext"><strong><a href="{$sorturl}&amp;sortby=lastpost&amp;order=desc">{$lang->lastpost}</a> {$orderarrow['lastpost']}</strong></span></td>
{$inlinemodcol}
</tr>
{$selectall}
{$announcementlist}
{$threads}
<tr>
<td class="trow1" align="right" colspan="{$colspan}">
<form action="forumdisplay.php" method="get">
<input type="hidden" name="selectall" value="" />
<input type="hidden" name="fid" value="{$fid}" />
<select name="sortby">
<option value="subject" {$sortsel['subject']}>{$lang->sort_by_subject}</option>
<option value="lastpost" {$sortsel['lastpost']}>{$lang->sort_by_lastpost}</option>
<option value="starter" {$sortsel['starter']}>{$lang->sort_by_starter}</option>
<option value="started" {$sortsel['started']}>{$lang->sort_by_started}</option>
{$ratingsort}
<option value="replies" {$sortsel['replies']}>{$lang->sort_by_replies}</option>
<option value="views" {$sortsel['views']}>{$lang->sort_by_views}</option>
</select>
<select name="order">
<option value="asc" {$ordersel['asc']}>{$lang->sort_order_asc}</option>
<option value="desc" {$ordersel['desc']}>{$lang->sort_order_desc}</option>
</select>
<select name="datecut">
<option value="1" {$datecutsel['1']}>{$lang->datelimit_1day}</option>
<option value="5" {$datecutsel['5']}>{$lang->datelimit_5days}</option>
<option value="10" {$datecutsel['10']}>{$lang->datelimit_10days}</option>
<option value="20" {$datecutsel['20']}>{$lang->datelimit_20days}</option>
<option value="50" {$datecutsel['50']}>{$lang->datelimit_50days}</option>
<option value="75" {$datecutsel['75']}>{$lang->datelimit_75days}</option>
<option value="100" {$datecutsel['100']}>{$lang->datelimit_100days}</option>
<option value="365" {$datecutsel['365']}>{$lang->datelimit_lastyear}</option>
<option value="9999" {$datecutsel['9999']}>{$lang->datelimit_beginning}</option>
</select>
{$prefixselect}
{$gobutton}
</form>
</td>
</tr>
</table>
<div class="float_left">
{$multipage}
</div>
<div class="float_right" style="margin-top: 4px;">
{$newthread}
</div>
<br class="clear" />
<br />
<div class="float_right" style="text-align: right;">
{$inlinemod}
{$forumjump}
</div>
<div class="float_left" style="text-align: left;">
</div>
<br class="clear" />
{$inline_edit_js}

Thanks,.. I put that code in.  And it's running right now.  However, it didn't seem to change anything ?

There is not a Replies category over the reply number -- And from what I can tell at first glance it looks identical to the way it did previously?

Care to take a look at it?

Chromatic's forum click here