News - Features - Downloads - Forum - Team - Support - Switch View: Screen
Login - Registrierung - Passwort vergessen

Antworten: 2
Seite [1]
microz


Rock the board




Beiträge: 86
# Thema - 27.09.2007 um 00:17 Uhr
hi

i need {replays:navlist}, try modifying navlist of download, but it did not show to anything xD.

some suggestion of like doing?


grettings

pd: i not to program itself :(
pd: by google
Inaktiv
fay-pain


Specialist




Beiträge: 2006
# Antwort: 1 - 27.09.2007 um 00:22 Uhr
can you post your modification here? (code)
then we can see where the problem is


------------------
Manchmal hast du fay und machmal pain.
- hajo

Inaktiv
|
microz
Thread-Ersteller


Rock the board




Beiträge: 86
# Antwort: 2 - 27.09.2007 um 01:17 Uhr
replays/navlist.php
 
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
1. / 2. / ... 
<?php
// ClanSphere 2007 - www.clansphere.net
// $Id: $
$cs_lang cs_translate('files');
$max 5;
$cs_replays cs_sql_select(__FILE__,'replays','replays_team1, replays_team2, replays_id',0,'replays_id DESC');

if (!empty(
$cs_replays)) {
  
$data = array();
  
$count_replays count($cs_replays);
  for (
$run 0$run $count_replays$run++) {
    
$cs_replays[$run]['url'] = cs_url('replays','view','where='.$cs_replays[$run]['replays_id']);
  }
  
$data['replays'] = $cs_replays;
  echo 
cs_subtemplate(__FILE__,$data,'replays','navlist');
} else {
  echo 
$cs_lang['no_data'];
}
?>


theme/base/replays/navlist.tpl

{loop:replays}
<a href="{files:url}">{files:files_name}</a>
<br />
{stop:files}





Zuletzt editiert von microz am 27.09.2007 um 01:24 Uhr (2x Editiert)
Inaktiv
|
Antworten: 2
Seite [1]


Sie müssen sich registrieren, um zu antworten.


ClanSphere Project - Mailus - Imprint - Disclaimer - Scriptinfo