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 Stats for topics not showing Sat Mar 24, 2012 1:45 pm

magicm00n

magicm00n
Registered Member
Registered Member
Hi, I followed exactly the the tutorial from these threads:
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

It it working fine for the forums but for the topics it is messed up. See the pic:
Stats for topics not showing Untitl16

As you can see in the pic, the 'Last post' went to the left where the 'Stats' supposed to be. Also the 'Stats' is not showing. How can I fix that?

2Solved Re: Stats for topics not showing Mon Mar 26, 2012 1:27 pm

ankillien

ankillien
Administrator
Administrator
Hi,

Which code exactly have you added?
Can you post it here?

3Solved Re: Stats for topics not showing Tue Mar 27, 2012 5:43 pm

magicm00n

magicm00n
Registered Member
Registered Member
Hi, I put this in my CSS:
Code:

.topiclist .header .posts ,
.forums .row .posts {
display:none;
}

.topics .views {
display: none !important;
}

This for the javascript for topics & posts:
Code:
$(function(){

$('.topiclist .header .topics').text('Stats');
$('.forums .row .topics').each(function(){
var topicsNo = $(this).text().split(" ")[0];
var postsNo = $(this).next('.posts').text().split(" ")[0];
$(this).html('Topics : '+topicsNo+'<br />Posts : '+postsNo);
});

});

This is the javascript for views and reply:
Code:
$(function(){

    $('.topics .header .posts').text('Stats');
    $('.topics .row .posts').each(function(){
    var postsNo = $(this).text().split(" ")[0];
    var viewsNo = $(this).next('.views').text().split(" ")[0];
    $(this).html('Views : '+viewsNo+'<br />Posts : '+postsNo);
    });

});

This is my test forum(you can see the problem there):
http://testdummy.forum.st/

4Solved Re: Stats for topics not showing Tue Mar 27, 2012 7:31 pm

ankillien

ankillien
Administrator
Administrator
Add this code in the CSS and it should work fine...

Code:
.topics .posts { display:block !important; }

5Solved Re: Stats for topics not showing Tue Mar 27, 2012 9:51 pm

magicm00n

magicm00n
Registered Member
Registered Member
Its working! Thanks^^!

Now how can I make the text smaller and make the stat column wider?

6Solved Re: Stats for topics not showing Tue Mar 27, 2012 10:03 pm

ankillien

ankillien
Administrator
Administrator
This code will do it...

Code:
.forums .topics , .header .topics , .topics .posts {
width: 200px;
font-size: 10px;
}

7Solved Re: Stats for topics not showing Thu Mar 29, 2012 4:31 am

magicm00n

magicm00n
Registered Member
Registered Member
Thank you, ankillien!

8Solved Re: Stats for topics not showing Thu Mar 29, 2012 10:22 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