• Page 1 of 1
  • 1
uCause Community » uCoz Modules » Forum » Replace the Thread and Replies rows with the row "Statistcs"
Replace the Thread and Replies rows with the row "Statistcs"
CheburatorDate: Friday, 2011-07-01, 8:40 AM | Message # 1
Member
Group: Senior Members
Messages: 43
Awards: 2
Reputation: 3
Status: :-(


Description:
This script replaces in the forum the 2 rows "Threads and Replies" with only 1 row "Statistics".

Installation:
Login in your CP then go to Customize design - Forums - General form of the forum pages and add after $BODY$ the following code:
Code
<?if($PAGE_ID$='main' || $PAGE_ID$='category')?>
<script type="text/javascript">
     $(".gTableSubTop:contains('Threads')").text('Statistics').attr({'width' : '9%'}).next().hide();
     $(".forumThreadTd").each(function(){
         var datka = [$(this).text(),$(this).next().text()];
         dat = function(number, one, two, five) { number = Math.abs(number); number %= 100; if (number >= 5 && number <= 20) {return five;} number %= 10; if (number == 1) {return one;} if (number >= 2 && number <= 4) {return two;} return five;}   
             $(this).html('<div align="right">'+datka[0]+' '+dat(datka[0], 'thread', 'threads', 'thrads')+'</div><div style="margin-top:2px;" align="right">'+datka[1]+' '+dat(datka[1], 'answer', 'answers', 'answers')+'</div>');
     }).next().hide();
</script>
<?endif?>

Finished ;)tags-zB11Replace,Thread,Replies,row,Statistcs,
Attachments: 5723795.jpg(23.4 Kb)
 
0 Thanked you For This Useful Post:
SirDarknight(Tonmoy)Date: Friday, 2011-07-01, 9:23 AM | Message # 2
Member
Group: Senior Members
Messages: 894
Awards: 10
Reputation: 15
Status: :-(
great

Please Give Me A Award or + Rep If My Post Helps You

Please Give Me A Award or + Rep If You Like my Scripts
 
0 Thanked you For This Useful Post:
AnimorphDate: Friday, 2011-07-01, 2:11 PM | Message # 3
uCause forum Admin
Group: Developer
Messages: 2835
Awards: 73
Status: :-(
nice , thankyou smile
 
0 Thanked you For This Useful Post:
HermesDate: Friday, 2011-07-01, 2:44 PM | Message # 4
Member
Group: Senior Members
Messages: 455
Awards: 7
Reputation: 8
Status: :-(
Cheburator, Good job smile
 
0 Thanked you For This Useful Post:
BlazerDate: Friday, 2011-07-01, 6:27 PM | Message # 5
Member
Group: Senior Members
Messages: 471
Awards: 2
Reputation: 4
Status: :-(
Cheburator, nice btw your website is great
 
0 Thanked you For This Useful Post:
Silence-PrayerDate: Saturday, 2011-07-02, 10:03 AM | Message # 6
uCause Co-Admin
Group: Senior Members
Messages: 519
Awards: 21
Reputation: 17
Status: :-(
Thank You smile

uCause is the Best
 
0 Thanked you For This Useful Post:
uCause Community » uCoz Modules » Forum » Replace the Thread and Replies rows with the row "Statistcs"
  • Page 1 of 1
  • 1
Search:


"Making uCoz web designs simple and easy to use"
- uCause Developers