Demo

Probiere ClanSphere aus und teste daran herum. Demo


Antworten: 2
Seite [1]
steste123


Rock the board




Beiträge: 60
# Thema - 18.08.2012 um 19:51 Uhr
Hallo zusammen,
hat vielleicht bereits jem. eine navlist.php für die Downloads/files wo die Kategorie, Klick/Downloadanzahl und der Dateiname ausgegeben wird?

Viele Grüße
Inaktiv
aschti


Poststar





Beiträge: 778
# Antwort: 1 - 18.08.2012 um 19:59 Uhr
nehm doch einfach die navtop bzw {files:navtop} diese hat den counter bzw hitanzahl schon dran

gruß aschti


------------------
p.s. die oben zufindenen Rechtschreibfehler sind eine gratis beigabe ^^

www.DemolitionGroup.de
It's Time to Fight - Play Hard & Fair !


Inaktiv
|
steste123
Thread-Ersteller


Rock the board




Beiträge: 60
# Antwort: 2 - 18.08.2012 um 20:11 Uhr
Jopp danke dir ;-)
Kategorien hab ich auch eingefügt. alles erledigt.

 
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
1. / 2. / ... 

navtop.php
<?php
// ClanSphere 2010 - www.clansphere.net
// $Id$
$cs_lang cs_translate('files');
$cs_get cs_get('catid');
$cs_option cs_sql_option(__FILE__,'files');
$data = array();

$join 'files fls INNER JOIN {pre}_categories cat ON fls.categories_id = cat.categories_id';
$select 'files_name, files_time, files_count, files_id, categories_name';

$where 'cat.categories_access <= ' . (int) $account['access_files'];
if(!empty(
$cs_get['catid'])) {
  
$where .= ' AND cat.categories_id = ' $cs_get['catid'];
}
$order 'files_count DESC';
$data['files'] = cs_sql_select(__FILE__,$join,$select,$where,$order,0,$cs_option['max_navtop']);

if (!empty(
$data['files'])) {
  for(
$run=0$run<count($data['files']); $run++) {
    
$data['files'][$run]['date'] = cs_date('unix',$data['files'][$run]['files_time']);
      
$data['files'][$run]['category_name'] = cs_secure($data['files'][$run]['categories_name']);  
    
$data['files'][$run]['files_name'] = strlen($data['files'][$run]['files_name']) > $cs_option['max_headline_navtop'] ? cs_substr($data['files'][$run]['files_name'], 0$cs_option['max_headline_navtop']).'..' $data['files'][$run]['files_name'];
    
$data['files'][$run]['count'] = $run+1;
  }
  echo 
cs_subtemplate(__FILE__,$data,'files','navtop');
}
else {
  echo 
$cs_lang['no_data'];
}


Inaktiv
|
Antworten: 2
Seite [1]


Sie müssen sich registrieren, um zu antworten.