WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You

WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You


You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

1Solved How can i do the stats like this Sun Mar 11, 2012 4:04 am

black beauty

black beauty
Registered Member
Registered Member
Hello again


i want to do the stats for the topic like your forum


How can i do the stats like this  E9301adfe05b4a6a8ad84cb



i am using phpp2

and i have an access to Templates thanks

2Solved Re: How can i do the stats like this Sun Mar 11, 2012 5:08 am

Drogba921


Registered Member
Registered Member
go into the homepage category templates. You then need to change the views and replies to have the words before them.

I do this on punbb all the time, dunno how it is on Phpbb2 so cant be that specific.

http://www.codinghelp.org

3Solved Re: How can i do the stats like this Sun Mar 11, 2012 9:49 am

mioshi11

mioshi11
Registered Member
Registered Member
i am punbb2 also i want that code... hihihi hope admin help us Smile

http://angelicsoyeon.4ulike.com

4Solved Re: How can i do the stats like this Mon Mar 12, 2012 6:43 pm

black beauty

black beauty
Registered Member
Registered Member
i need the code i am not very good in this

5Solved Re: How can i do the stats like this Mon Mar 12, 2012 10:44 pm

ankillien

ankillien
Administrator
Administrator
Go to Admin CP > Display > Templates > General > index_box

Look for this part...

Code:
<th colspan="{catrow.tablehead.INC_SPAN}" nowrap="nowrap" width="100%" class="secondarytitle"> {catrow.tablehead.L_FORUM} </th>
<th nowrap="nowrap" width="100">{L_TOPICS}</th>
<th nowrap="nowrap" width="50">{L_POSTS}</th>
<th nowrap="nowrap" width="150"><div style="width:150px;">{L_LASTPOST}</div></th>

replace it with this...

Code:
<th colspan="{catrow.tablehead.INC_SPAN}" nowrap="nowrap" width="100%" class="secondarytitle"> {catrow.tablehead.L_FORUM} </th>
<th nowrap="nowrap" width="100">Stats</th>
<!-- <th nowrap="nowrap" width="50">{L_POSTS}</th> -->
<th nowrap="nowrap" width="150"><div style="width:150px;">{L_LASTPOST}</div></th>

Now search for this part...

Code:
<td class="row3" align="center" valign="middle" height="50">
   <span class="gensmall">{catrow.forumrow.TOPICS}</span>
</td>
<td class="row2" align="center" valign="middle" height="50">
   <span class="gensmall">{catrow.forumrow.POSTS}</span>
</td>

replace it with this..

Code:
<td class="row3" align="center" valign="middle" height="50">
   <span class="gensmall">Posts : {catrow.forumrow.POSTS}<br />Topics : {catrow.forumrow.TOPICS}</span>
</td>
<!-- <td class="row2" align="center" valign="middle" height="50">
   <span class="gensmall">{catrow.forumrow.POSTS}</span>
</td> -->

Save the template and publish it Smile

6Solved Re: How can i do the stats like this Wed Mar 14, 2012 7:28 am

magicm00n

magicm00n
Registered Member
Registered Member
i like it Very Happy

can this be done for phpbb3 also?

7Solved Re: How can i do the stats like this Wed Mar 14, 2012 7:14 pm

ankillien

ankillien
Administrator
Administrator
magicm00n wrote:i like it Very Happy

can this be done for phpbb3 also?

It is done here: http://www.webartzforum.com/t2876-how-do-i-hide-topics-and-posts

8Solved Re: How can i do the stats like this Thu Mar 15, 2012 8:28 pm

magicm00n

magicm00n
Registered Member
Registered Member
black beauty wrote:Hello again


i want to do the stats for the topic like your forum


How can i do the stats like this  E9301adfe05b4a6a8ad84cb



i am using phpp2

and i have an access to Templates thanks

I mean like that^^ Is it possible for phpbb3?

9Solved Re: How can i do the stats like this Thu Mar 15, 2012 8:32 pm

ankillien

ankillien
Administrator
Administrator
Sorry, wrong link!
Here it is:
http://www.webartzforum.com/t2853-change-the-columns-topics-and-replies-at-column-stats
http://www.webartzforum.com/t2860-i-need-a-column-stat-for-topics-and-subforums

10Solved Re: How can i do the stats like this Thu Mar 15, 2012 10:48 pm

magicm00n

magicm00n
Registered Member
Registered Member
Thanks! Very Happy

11Solved Re: How can i do the stats like this Fri Mar 16, 2012 3:25 am

black beauty

black beauty
Registered Member
Registered Member
thanks but i want the stats for the topic not forum as your forum

the replies in the topic and how much views in the topic not forum

Cool

12Solved Re: How can i do the stats like this Fri Mar 16, 2012 11:48 am

ankillien

ankillien
Administrator
Administrator
For views and replies, replace your topic_list_box template with this...

Code:
<!-- BEGIN topics_list_box --><!-- BEGIN row --><!-- BEGIN header_table --><!-- BEGIN multi_selection -->
<script type="text/javascript">
function check_uncheck_main_{topics_list_box.row.header_table.BOX_ID}() {
   var all_checked = true;
   for (i = 0; (i < document.{topics_list_box.FORMNAME}.elements.length) && all_checked; i++) {
      if (document.{topics_list_box.FORMNAME}.elements[i].name == '{topics_list_box.FIELDNAME}[]{topics_list_box.row.header_table.BOX_ID}') {
         all_checked = document.{topics_list_box.FORMNAME}.elements[i].checked;
      }
   }
   document.{topics_list_box.FORMNAME}.all_mark_{topics_list_box.row.header_table.BOX_ID}.checked = all_checked;
}
function check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}() {
   for (i = 0; i < document.{topics_list_box.FORMNAME}.length; i++) {
      if (document.{topics_list_box.FORMNAME}.elements[i].name == '{topics_list_box.FIELDNAME}[]{topics_list_box.row.header_table.BOX_ID}') {
         document.{topics_list_box.FORMNAME}.elements[i].checked = document.{topics_list_box.FORMNAME}.all_mark_{topics_list_box.row.header_table.BOX_ID}.checked;
      }
   }
}
</script>
<!-- END multi_selection -->

<table class="forumline" width="100%" border="0" cellspacing="1" cellpadding="0">
   <tr>
      <th colspan="{topics_list_box.row.header_table.COLSPAN}" align="center" nowrap="nowrap"> {topics_list_box.row.L_TITLE} </th>
      <th align="center" nowrap="nowrap" width="80"> Stats </th>
      <!-- <th align="center" nowrap="nowrap" width="100"> {topics_list_box.row.L_AUTHOR} </th> -->
      <!-- <th align="center" nowrap="nowrap" width="50"> {topics_list_box.row.L_VIEWS} </th> -->
      <th align="center" nowrap="nowrap" width="150"> {topics_list_box.row.L_LASTPOST} </th>
      <!-- BEGIN multi_selection -->
      <th align="center" nowrap="nowrap" width="20"><input onclick="check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}();" type="checkbox" name="all_mark_{topics_list_box.row.header_table.BOX_ID}" value="0" /></th>
   <!-- END multi_selection -->
   </tr>
   <!-- BEGIN pagination -->
   <tr>
      <td class="row1" colspan="7" align="right"><span class="gensmall">{PAGINATION}</span></td>
   </tr>
   <!-- END pagination -->
   <!-- END header_table --><!-- BEGIN header_row -->
   <tr>
      <td class="row3" colspan="{topics_list_box.row.COLSPAN}"><span class="gensmall"> <b>{topics_list_box.row.L_TITLE}</b></span></td>
   </tr>
<!-- END header_row -->

<!-- BEGIN topic -->
{topics_list_box.row.END_TABLE_STICKY}
   <tr>
      <!-- BEGIN single_selection -->
      <td class="{topics_list_box.row.ROW_CLASS}" align="center" valign="middle" width="20"><input type="radio" name="{topics_list_box.FIELDNAME}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} /></td>
      <!-- END single_selection -->
      <td class="{topics_list_box.row.ROW_FOLDER_CLASS}" align="center" valign="middle" width="20"><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}" /></td>
      <!-- BEGIN icon -->
      <td class="{topics_list_box.row.ROW_CLASS}" align="center" valign="middle" width="20">{topics_list_box.row.ICON}</td>
      <!-- END icon -->
      <td class="{topics_list_box.row.ROW_CLASS}" onmouseover='this.className="row2"' onmouseout='this.className="{topics_list_box.row.ROW_CLASS}"' width="100%">
         <div class="topictitle">
            {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>
         </div>
         <!-- BEGIN switch_description -->
         <span class="genmed">
            <br />
            {topics_list_box.row.topic.switch_description.TOPIC_DESCRIPTION}
         </span>
         <!-- END switch_description -->
         <span class="gensmall">{topics_list_box.row.TOPIC_ANNOUNCES_DATES}{topics_list_box.row.TOPIC_CALENDAR_DATES}</span> 
         <span class="gensmall">{topics_list_box.row.GOTO_PAGE}<!-- BEGIN nav_tree -->{topics_list_box.row.TOPIC_NAV_TREE} <!-- END nav_tree --></span>
      </td>

          <td class="row2" align="center" valign="middle"><span class="postdetails">Replies : {topics_list_box.row.REPLIES}<br />Views : {topics_list_box.row.VIEWS}</span></td>
      <!-- <td class="row3" align="center" valign="middle"><span class="name"><strong>{topics_list_box.row.TOPIC_AUTHOR}</strong></span></td> -->
      <!-- <td class="row2" align="center" valign="middle"><span class="postdetails">{topics_list_box.row.VIEWS}</span></td> -->
      <td class="row3Right" onmouseover='this.className="row1"' onmouseout='this.className="row3Right"' align="center" valign="middle" nowrap="nowrap"><span class="postdetails">{topics_list_box.row.LAST_POST_TIME}<br />{topics_list_box.row.LAST_POST_AUTHOR} {topics_list_box.row.LAST_POST_IMG}</span></td>
<!-- BEGIN multi_selection -->
      <td class="row2" align="center" valign="middle"><span class="postdetails"><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} /></span></td>
   <!-- END multi_selection -->
   </tr>
   <!-- END topic --><!-- BEGIN no_topics -->
   <tr>
      <td class="row1" colspan="{topics_list_box.row.COLSPAN}" align="center" valign="middle" height="30"><span class="gen">{topics_list_box.row.L_NO_TOPICS}</span></td>
   </tr>
   <!-- END no_topics --><!-- BEGIN bottom -->
   <tr>
      <td class="catBottom" colspan="{topics_list_box.row.COLSPAN}" valign="middle">
         <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
               <td> <span class="gensmall">{PAGINATION}</span></td>
               <td align="right"><a href="#top">{L_BACK_TO_TOP}</a> </td>
            </tr>
         </table>
      </td>
   </tr>
<!-- END bottom --><!-- BEGIN footer_table -->
</table><!-- END footer_table --><!-- BEGIN spacer --><br class="gensmall" /><!-- END spacer --><!-- END row --><!-- END topics_list_box -->

13Solved Re: How can i do the stats like this Fri Mar 16, 2012 6:53 pm

black beauty

black beauty
Registered Member
Registered Member
this is what happened when i add the new code

How can i do the stats like this  Aba5487362224d108ac5973


there is a column still there how can i release it

14Solved Re: How can i do the stats like this Fri Mar 16, 2012 9:40 pm

ankillien

ankillien
Administrator
Administrator
I can't see it properly on the image. Can you post link to the forum? or a bigger screen shot?

15Solved Re: How can i do the stats like this Sat Mar 17, 2012 1:22 am

black beauty

black beauty
Registered Member
Registered Member
How can i do the stats like this  E8bc08aadcc245a4b239b6e

16Solved Re: How can i do the stats like this Sat Mar 17, 2012 12:57 pm

ankillien

ankillien
Administrator
Administrator
So you want to remove last post column?

17Solved Re: How can i do the stats like this Sun Mar 18, 2012 3:06 am

black beauty

black beauty
Registered Member
Registered Member
there is the last column is blank as you can see i want to remove it

18Solved Re: How can i do the stats like this Sun Mar 18, 2012 9:17 am

ankillien

ankillien
Administrator
Administrator
Can I get a link to your forum? I haven't faced this issue in my forum.

19Solved Re: How can i do the stats like this Thu Mar 22, 2012 2:43 am

black beauty

black beauty
Registered Member
Registered Member
it is ok now

thx

20Solved Re: How can i do the stats like this Thu Mar 22, 2012 9:01 am

ankillien

ankillien
Administrator
Administrator
Solved | Locked

Sponsored content


View previous topic View next topic Back to top  Message [Page 1 of 1]

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