The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Combining Topics + Posts into a Stats column

View previous topic View next topic Go down

Solved Combining Topics + Posts into a Stats column

Post by Kechapoo on April 8th 2014, 5:15 am

As it appears here:



I've seen how to do it on phpBB versions, but not punBB.

Kechapoo
Forumember

Male Posts : 40
Reputation : 0
Language : English
Location : Virginia

http://hurricanechronicles.forummotion.com

Back to top Go down

Solved Re: Combining Topics + Posts into a Stats column

Post by Ange Tuteur on April 8th 2014, 6:51 am

Hello Kechapoo,

Go to Administration panel > display > templates > general > index_box

Find :
Code:
<thead>
 <tr>
 <th class="tcl">{L_FORUM}</th>
 <th class="tc2">{L_TOPICS}</th>
 <th class="tc3">{L_POSTS}</th>
 <th class="tcr">{L_LASTPOST}</th>
 </tr>
 </thead>

Replace by :
Code:
<thead>
 <tr>
 <th class="tcl">{L_FORUM}</th>
 <th class="tc2">Stats</th>
 <th class="tcr">{L_LASTPOST}</th>
 </tr>
 </thead>

Find :
Code:
<td class="tc2">{catrow.forumrow.TOPICS}</td>
 <td class="tc3">{catrow.forumrow.POSTS}</td>

Replace by :
Code:
                                         <td class="tc2">
                                           Topics : {catrow.forumrow.TOPICS}<br/>
                                           Posts : {catrow.forumrow.POSTS}
                                          </td>

Save and publish the template.

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Combining Topics + Posts into a Stats column

Post by Kechapoo on April 8th 2014, 7:22 am

And how would I go about changing it at the base level forums? Putting Replies and Views into the same kind of column?

Kechapoo
Forumember

Male Posts : 40
Reputation : 0
Language : English
Location : Virginia

http://hurricanechronicles.forummotion.com

Back to top Go down

Solved Re: Combining Topics + Posts into a Stats column

Post by SLGray on April 8th 2014, 7:45 am

It will be in the topics_list_box template.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35622
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Combining Topics + Posts into a Stats column

Post by Kechapoo on April 8th 2014, 8:26 am

Yeah, I thought so. I found two instances of this series of codes there:
Code:
<tr>
    <th class="tcl">{L_TOPICS}</th>
    <th class="tc2">{topics_list_box.row.L_REPLIES}</th>
    <th class="tc3">{topics_list_box.row.L_VIEWS}</th>
    <th class="tcr">{topics_list_box.row.L_LASTPOST}</th>
   </tr>

And I switched it to this on both of them:

Code:
<tr>
    <th class="tcl">{L_TOPICS}</th>
    <th class="tc2">Stats</th>
    <th class="tcr">{topics_list_box.row.L_LASTPOST}</th>
   </tr>


But that didn't work.

Kechapoo
Forumember

Male Posts : 40
Reputation : 0
Language : English
Location : Virginia

http://hurricanechronicles.forummotion.com

Back to top Go down

Solved Re: Combining Topics + Posts into a Stats column

Post by Ange Tuteur on April 8th 2014, 8:41 am

Templates > general > topics_list_box

Find :
Code:
<tr>
 <th class="tcl">{L_TOPICS}</th>
 <th class="tc2">{topics_list_box.row.L_REPLIES}</th>
 <th class="tc3">{topics_list_box.row.L_VIEWS}</th>
 <th class="tcr">{topics_list_box.row.L_LASTPOST}</th>
 </tr>

Replace by :
Code:
<tr>
 <th class="tcl">{L_TOPICS}</th>
 <th class="tc2">Stats</th>
 <th class="tcr">{topics_list_box.row.L_LASTPOST}</th>
 </tr>

Find :
Code:
<tr>
 <th class="tcl">{L_TOPICS}</th>
 <th class="tc2">{topics_list_box.row.topic.table_sticky.L_REPLIES}</th>
 <th class="tc3">{topics_list_box.row.topic.table_sticky.L_VIEWS}</th>
 <th class="tcr">{topics_list_box.row.topic.table_sticky.L_LASTPOST}</th>
 </tr>

Replace by :
Code:
<tr>
 <th class="tcl">{L_TOPICS}</th>
 <th class="tc2">Stats</th>
 <th class="tcr">{topics_list_box.row.topic.table_sticky.L_LASTPOST}</th>
 </tr>

Find :
Code:
<tr>
 <td class="tcl tdtopics <!-- BEGIN line_sticky --> sticky-separator <!-- END line_sticky -->">
 <span class="status">
 <img title="{topics_list_box.row.L_TOPIC_FOLDER_ALT}" src="{topics_list_box.row.TOPIC_FOLDER_IMG}" alt="{topics_list_box.row.L_TOPIC_FOLDER_ALT}" />
 </span>
 <!-- BEGIN single_selection -->
 <input type="radio" name="{topics_list_box.FIELDNAME}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} /> 
 <!-- END single_selection -->
 {topics_list_box.row.ICON} 
 {topics_list_box.row.NEWEST_POST_IMG}
 {topics_list_box.row.PARTICIPATE_POST_IMG} 
 {topics_list_box.row.TOPIC_TYPE} 
 <h2 class="topic-title"><a class="topictitle" href="{topics_list_box.row.U_VIEW_TOPIC}">{topics_list_box.row.TOPIC_TITLE}</a></h2> 
 {topics_list_box.row.GOTO_OPEN} {topics_list_box.row.GOTO_PAGE_NEW} {topics_list_box.row.GOTO_CLOSE} 
 {topics_list_box.row.L_BY} {topics_list_box.row.TOPIC_AUTHOR}
 <!-- BEGIN switch_description -->
 <br />
  {topics_list_box.row.topic.switch_description.TOPIC_DESCRIPTION}
 <!-- END switch_description -->
 </td>
 <td class="tc2 <!-- BEGIN line_sticky --> sticky-separator <!-- END line_sticky -->">{topics_list_box.row.REPLIES}</td>
 <td class="tc3 <!-- BEGIN line_sticky --> sticky-separator <!-- END line_sticky -->">{topics_list_box.row.VIEWS}</td>
 <td class="tcr <!-- BEGIN line_sticky --> sticky-separator <!-- END line_sticky -->">{topics_list_box.row.LAST_POST_TIME} {topics_list_box.row.L_BY} {topics_list_box.row.LAST_POST_AUTHOR} {topics_list_box.row.LAST_POST_IMG}</td>
 <!-- BEGIN multi_selection -->
 <td><input onclick="javascript:check_uncheck_main_{topics_list_box.row.BOX_ID}();" type="checkbox" name="{topics_list_box.FIELDNAME}[]{topics_list_box.row.BOX_ID}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} /></td>
 <!-- END multi_selection -->
 </tr>

Replace by :
Code:
<tr>
 <td class="tcl tdtopics <!-- BEGIN line_sticky --> sticky-separator <!-- END line_sticky -->">
 <span class="status">
 <img title="{topics_list_box.row.L_TOPIC_FOLDER_ALT}" src="{topics_list_box.row.TOPIC_FOLDER_IMG}" alt="{topics_list_box.row.L_TOPIC_FOLDER_ALT}" />
 </span>
 <!-- BEGIN single_selection -->
 <input type="radio" name="{topics_list_box.FIELDNAME}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} /> 
 <!-- END single_selection -->
 {topics_list_box.row.ICON} 
 {topics_list_box.row.NEWEST_POST_IMG}
 {topics_list_box.row.PARTICIPATE_POST_IMG} 
 {topics_list_box.row.TOPIC_TYPE} 
 <h2 class="topic-title"><a class="topictitle" href="{topics_list_box.row.U_VIEW_TOPIC}">{topics_list_box.row.TOPIC_TITLE}</a></h2> 
 {topics_list_box.row.GOTO_OPEN} {topics_list_box.row.GOTO_PAGE_NEW} {topics_list_box.row.GOTO_CLOSE} 
 {topics_list_box.row.L_BY} {topics_list_box.row.TOPIC_AUTHOR}
 <!-- BEGIN switch_description -->
 <br />
  {topics_list_box.row.topic.switch_description.TOPIC_DESCRIPTION}
 <!-- END switch_description -->
 </td>
 <td class="tc2 <!-- BEGIN line_sticky --> sticky-separator <!-- END line_sticky -->">
                         Replies : {topics_list_box.row.REPLIES}<br/>
                         Views : {topics_list_box.row.VIEWS}
                   </td>
 <td class="tcr <!-- BEGIN line_sticky --> sticky-separator <!-- END line_sticky -->">{topics_list_box.row.LAST_POST_TIME} {topics_list_box.row.L_BY} {topics_list_box.row.LAST_POST_AUTHOR} {topics_list_box.row.LAST_POST_IMG}</td>
 <!-- BEGIN multi_selection -->
 <td><input onclick="javascript:check_uncheck_main_{topics_list_box.row.BOX_ID}();" type="checkbox" name="{topics_list_box.FIELDNAME}[]{topics_list_box.row.BOX_ID}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} /></td>
 <!-- END multi_selection -->
 </tr>

Then save and publish.

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Combining Topics + Posts into a Stats column

Post by Kechapoo on April 8th 2014, 8:48 am

Done and done!

SOLVED!

Kechapoo
Forumember

Male Posts : 40
Reputation : 0
Language : English
Location : Virginia

http://hurricanechronicles.forummotion.com

Back to top Go down

Solved Re: Combining Topics + Posts into a Stats column

Post by Ange Tuteur on April 8th 2014, 8:54 am

Topic solved and archived

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum