Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > xBTiT
Reply
  #1  
Old 19th August 2010, 04:48
aleon aleon is offline
Member
 
Join Date: Nov 2009
P2P
Posts: 6
Exclamation need help with limiting page size
I am using PB Edition(modd BtiTracker 1.4.X) and what i am been try to do is limit the page size on Torrents.php
like

123456789 123456789 123456789
123456789 123456789 123456789 on and on

to
123456789 123456789 123456789
1234567890 1234567890 123456..

if you get what i meen it that im trying to make the torrent name go down a line after same like 10 words.
so if the torrent name is 20 words long i what it to pote 10 work on one line then 10 on a other line

not like (gos on and on)
Click image for larger version

Name:	1.JPG
Views:	15
Size:	74.3 KB
ID:	2437

some thing like (photo down) but i can not get it to do the same on torrents.php
Click image for larger version

Name:	2.JPG
Views:	14
Size:	166.4 KB
ID:	2438

what do i have to do to torrents.php to limit the page size? or
how can i make the torrent's name go down a line??

Last edited by aleon; 19th August 2010 at 05:34.
Reply With Quote
  #2  
Old 19th August 2010, 07:02
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
the code your looking for to use is
PHP Code:
((strlen($dispname) <= 51) ? $dispname substr($dispname,0,50)."..."
51 would be the max letters and 50 is the cut down to

12345678911234567892123456789312345678941234567895 123456789

would become

12345678911234567892123456789312345678941234567895 ...
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
  #3  
Old 19th August 2010, 08:49
aleon aleon is offline
Member
 
Join Date: Nov 2009
P2P
Posts: 6
Default I see
thinks for the past joeroberts
Reply With Quote
Reply

Tags
limiting , page , size

Thread Tools

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



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