Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Template Shares
Reply
Thread Tools
  #1  
Old 1st August 2008, 10:44
Mika Mika is offline
Senior Member
 
Join Date: Jun 2008
Posts: 15
Default
How do you get the number behind the category

Gr Mika
Attached Thumbnails
browse.JPG  
Reply With Quote
The Following User Says Thank You to Mika For This Useful Post:
zenja7777 (8th September 2008)
  #2  
Old 2nd August 2008, 23:14
Fynnon's Avatar
Fynnon Fynnon is offline
xxx
 
Join Date: Nov 2007
P2P
Posts: 984
Default
What TS version are you using ?

That is a mod, i was thinking those numbers are there by default...
Reply With Quote
  #3  
Old 4th August 2008, 14:52
Mika Mika is offline
Senior Member
 
Join Date: Jun 2008
Posts: 15
Default
Ts 3.4

Like here: nzbmasters :: Login



EDIT: (found the solution)

In browse.php find this or similar

Code:
$catsperrow = 4;
print(($i && $i % $catsperrow == 0) ? "</tr><tr>" : "");
Above that add
Code:
$countcats = get_row_count('torrents', "WHERE category = $cat[id]");
Code:
print("<td class=bottom style=\"padding-bottom: 2px;padding-left: 7px\"><input name=c$cat[id] type=\"checkbox\" " . (in_array($cat[id],$wherecatina) ? "checked " : "") . "value=1><a class=catlink href=browse.php?cat=$cat[id]>" . htmlspecialchars($cat[name]) . "</a></td>\n");
Replace it with

Code:
print("<td class=bottom style=\"padding-bottom: 2px;padding-left: 7px\"><input name=c$cat[id] type=\"checkbox\" " . (in_array($cat[id],$wherecatina) ? "checked " : "") . "value=1><a class=catlink href=browse.php?cat=$cat[id]>" . htmlspecialchars($cat[name]) . "</a>&nbsp;($countcats)</td>\n");
Tested and works

Gr Mika
Reply With Quote
The Following User Says Thank You to Mika For This Useful Post:
zenja7777 (8th September 2008)
  #4  
Old 7th September 2008, 20:05
ohm2525 ohm2525 is offline
Senior Member
 
Join Date: Aug 2008
Posts: 15
Default
Thank. I apply work in TS 4.3 too.
Reply With Quote
Reply

Tags
browse


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Anonymous in browse.php lovebeer TBDev 2 17th March 2010 15:13
how to add a search box in browse.php irfan TBDev 0 22nd October 2009 17:25
browse.php sql error. biggyb Template Shares 4 7th July 2009 13:20
browse.php ahly Community Cafe 0 12th December 2008 17:12
browse page trouble :( snakebite Torrent Strike 4 20th May 2008 19:03



All times are GMT +2. The time now is 19:51. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.