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 - 15.12.2007 um 02:27 Uhr
It's possible to change the redireccion of the links of navlist files.

The links of navlist / files leads to "xx.php" by default, but I need to let fixed at any page that is (index.php, files.php, replays.php, etc.), this "files.php"

files.php?mod=files&action=view&where=1

 
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.
1. / 2. / ... 
<?php
// ClanSphere 2007 - www.clansphere.net
// $Id: $

$cs_lang cs_translate('files');

$max 4;

$cs_files cs_sql_select(__FILE__,'files','categories_id, files_name, files_id',0,'files_time DESC',0,$max);

if (!empty(
$cs_files)) {

  
$data = array();
  
$count_files count($cs_files);
  for (
$run 0$run $count_files$run++) {
    echo 
cs_html_img('uploads/categories/picture-' $files['categories_id'] . '.gif');
    
$cs_files[$run]['url'] = cs_url('files','view','where='.$cs_files[$run]['files_id']);

  }
  
  
$data['files'] = $cs_files;
  
  
  echo 
cs_subtemplate(__FILE__,$data,'files','navlist');
} else {

  echo 
$cs_lang['no_data'];
  
}

?>




thx

Inaktiv
duRiel ClanSphere Team


Weltmeister




Herkunft: Cambridge
Beiträge: 7300
# Antwort: 1 - 15.12.2007 um 04:13 Uhr
hi!
$cs_files[$run]['url'] = ....
you can put your finished link into there, for example

$cs_files[$run]['url'] = 'files.php?mod=files&amp;action=view&amp;where=1';


Inaktiv
|
microz
Thread-Ersteller


Rock the board




Beiträge: 86
# Antwort: 2 - 17.12.2007 um 17:17 Uhr
Thanks for responding.

But that whole navlist are redirected to "files.php?mod=files&amp;action=view&amp;where=1" I need to be redigido every file created "files.php?mod=files&amp;action=view&amp;where=xx"

 
1.
1. / 2. / ... 
<?php $cs_files[$run]['url'] = cs_url('files.php','files','view','where='.$cs_files[$run]['files_id']); ?>


im not a Programmer :(

grettings


Inaktiv
|
Antworten: 2
Seite [1]


Sie müssen sich registrieren, um zu antworten.


ClanSphere Project - Mailus - Imprint - Disclaimer - Scriptinfo