Demo

Probiere ClanSphere aus und teste daran herum. Demo


Antworten: 3
Seite [1]
nbaumann


Beginner




Beiträge: 13
# Thema - 26.10.2007 um 23:17 Uhr
Hey I wondering if there is a way to limit how many new threads or recent news is displayed in the navigation. This is important because if I put some recent news in the top blocks and it overflows my template will break. Something like $maxlines = 6, is there also a way to limit characters in a line?

Thanks.
Inaktiv
Ramires ClanSphere Team

Supporter
Supporter



Herkunft: Waldeck
Beiträge: 1900
# Antwort: 1 - 26.10.2007 um 23:40 Uhr
if you mean the news "navlist" for the short news, yes there is a way,... take the file /mods/news/navlist.php, look at the line 21,... there must be something like that,...

$short = strlen($news['news_headline']) <= 15 ? $news['news_headline'] : substr($news['news_headline'],0,15) . '...';

the data 15 is the numbers of the letters that will display,... you can change this for your needs,...

the numbers of "news" will display in the navlist is fiind in the same file in line 11,...

$cs_news = cs_sql_select(__FILE__,$tables,$select,$public,'ne.news_time DESC',0,4);

the data 4 is the numbers of news will displayed,... to show 3 news for example change it to 3,... ^^

i hope this will help you,...


------------------

Verschwende keine Energie an Dinge die Du nicht ändern kannst...


Zuletzt editiert von Ramires ClanSphere Team am 26.10.2007 um 23:43 Uhr (2x Editiert)
Inaktiv
|
nbaumann
Thread-Ersteller


Beginner




Beiträge: 13
# Antwort: 2 - 26.10.2007 um 23:42 Uhr
Thanks,

What about characters in a line?


Inaktiv
|
Ramires ClanSphere Team

Supporter
Supporter



Herkunft: Waldeck
Beiträge: 1900
# Antwort: 3 - 26.10.2007 um 23:43 Uhr
i changed my thread,.. look at this and i hope you can understand my english,... ^^


------------------

Verschwende keine Energie an Dinge die Du nicht ändern kannst...


Inaktiv
|
Antworten: 3
Seite [1]


Sie müssen sich registrieren, um zu antworten.