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

Antworten: 9
Seite [1]
nbaumann


Beginner




Beiträge: 13
# Thema - 08.07.2008 um 15:46 Uhr
Hey,

If you go on a user's profile, on the top there is a menu that says "Board - Buddylist - Clan - Clanwars - Computer - Guestbook - User - User-Gallery" so you can navigate around the different features. Which file will allow me to modify this so I can remove/add some links?

Thanks.
Inaktiv
Pred


Poststar




Herkunft: Bischofsmais
Beiträge: 762
# Antwort: 1 - 08.07.2008 um 15:58 Uhr
these links are generated by the cms... every mod that has an users.php file and has set users/view => 1 in the info.php is shown in this navigation.

// Sorry for bad english


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


Zuletzt editiert von Pred am 08.07.2008 um 15:59 Uhr (2x Editiert)
Inaktiv
|
nbaumann
Thread-Ersteller


Beginner




Beiträge: 13
# Antwort: 2 - 08.07.2008 um 16:06 Uhr
Do you know where it is generated so I can remove cellspacing? Thanks.


Inaktiv
|
Pred


Poststar




Herkunft: Bischofsmais
Beiträge: 762
# Antwort: 3 - 08.07.2008 um 17:27 Uhr
afaik its the function cs_addons. U can edit this function in system/core/tools.php


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


Inaktiv
|
nbaumann
Thread-Ersteller


Beginner




Beiträge: 13
# Antwort: 4 - 08.07.2008 um 17:38 Uhr
I can't find it V_V


Inaktiv
|
Pred


Poststar




Herkunft: Bischofsmais
Beiträge: 762
# Antwort: 5 - 08.07.2008 um 17:57 Uhr
sytem/core/tools.php

there u find these lines:
 
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
1. / 2. / ... 
<?php 
function cs_addons($modul,$action,$id,$modul_now) {

    global 
$account$cs_main;
    
$show $modul '/' $action;
    
$addons cs_checkdirs('mods',$show);
    
$count count($addons);
    
$var '';

    if(!empty(
$count)) {
          foreach(
$addons as $mod) {
              
$acc_dir 'access_' $mod['dir'];
              if(
array_key_exists($acc_dir,$account) AND $account[$acc_dir] >= $mod['show'][$show]) {
                    
$mod['action'] = $modul == $mod['dir'] ? $action $modul;
                  
$out $modul_now == $mod['dir'] ? $mod['name'] : 
                        
cs_link($mod['name'],$mod['dir'],$mod['action'],'id=' $id);
                    
$var .= $out ' - ';
        }
      }
    }
    
$var substr($var,0,-3);
    return 
$var;
}
 
?>


how i said... afaik u can change the lookalike of the users navigation

Edit:
There u can edit the " - " between the links... if u want to change the whole style u have to edit the themes/base/users/head.tpl


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


Zuletzt editiert von Pred am 08.07.2008 um 18:00 Uhr (3x Editiert)
Inaktiv
|
nbaumann
Thread-Ersteller


Beginner




Beiträge: 13
# Antwort: 6 - 08.07.2008 um 18:46 Uhr
Alright, I am a bit further thanks to you but it seems like this doesn't work.

 
1.
1. / 2. / ... 
 $mod_info['show']         = array('users/view' => 0'users/settings' => 2);


It still displays it when I set it to 0.


Inaktiv
|
Pred


Poststar




Herkunft: Bischofsmais
Beiträge: 762
# Antwort: 7 - 08.07.2008 um 19:14 Uhr
have u deleted ur cache? otherwise it wont work... just log in, go to system -> Cache and delete the Cache files after that it should work


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


Inaktiv
|
SCHIRI ClanSphere Team


Weltmeister



Herkunft: Hamburg
Beiträge: 5299
# Antwort: 8 - 08.07.2008 um 19:57 Uhr
 
1.
1. / 2. / ... 
<?php $mod_info['show']         = array('users/view' => 0'users/settings' => 2); ?>

yout should delete it completly:
 
1.
1. / 2. / ... 
<?php $mod_info['show']         = array('users/settings' => 2); ?>



------------------
www.laszlokorte.de

Inaktiv
|
nbaumann
Thread-Ersteller


Beginner




Beiträge: 13
# Antwort: 9 - 09.07.2008 um 15:43 Uhr
Thanks a lot! I figured it out!


Inaktiv
|
Antworten: 9
Seite [1]


Sie müssen sich registrieren, um zu antworten.


ClanSphere Project - Mailus - Imprint - Disclaimer - Scriptinfo