Demo

Give it a try
and play around
with ClanSphere
Demo


Answers: 10
Page [1]
theGrimm


Rock the board




Posts: 62
# Thread - 2006-10-28 at 4:00 PM
Hiho
ich würde gerne auf meiner Clanpage eine Navigation wie auf http://www.desert-gaming.de anlegen also die Topnavi nur bekomme ich das nicht wirklich so hin hättet ihr da ein paar Tipps für mich oder gibts es schon ein Modul ?

mfg
Grimm

PS. sry falls ich ins falsche Board gepostet habe.


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

"Die Herrschaft der Dummen ist unüberwindlich, weil es so viele sind, und ihre Stimmen zählen genau wie unsere."



Last edit by theGrimm at 2006-10-28 at 4:27 PM (1x Edited)
Inactive
maikoldi


Going for pro




Location: Ottersberg
Posts: 545
# Answer: 1 - 2006-10-28 at 4:22 PM
öm ja einmal was für ne bananenpage oO?
dann das nennt man "subnavi"also das man auf ein menü punkt klick und unten die links erscheinen,das musste mit java oder so machen...
http://nopaste.php-q.net/207541
das ist von duriel aber ich weiss nicht ob das was damit zu tuen hat oO


------------------
Visit:http://www.roundowner.de
Puplicons +-



Inactive
|
theGrimm
Thread author


Rock the board




Posts: 62
# Answer: 2 - 2006-10-28 at 8:28 PM
hmm irgendwie werd ich daraus auch nicht schlauer ....


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

"Die Herrschaft der Dummen ist unüberwindlich, weil es so viele sind, und ihre Stimmen zählen genau wie unsere."



Inactive
|
maikoldi


Going for pro




Location: Ottersberg
Posts: 545
# Answer: 3 - 2006-10-28 at 8:33 PM
ja ich auch nciht das ist ja mein problem ich weiss ncihtmal ob das damit zusammenhängt


------------------
Visit:http://www.roundowner.de
Puplicons +-



Inactive
|
theGrimm
Thread author


Rock the board




Posts: 62
# Answer: 4 - 2006-10-30 at 3:48 PM
sonst noch jemand ne idee ??


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

"Die Herrschaft der Dummen ist unüberwindlich, weil es so viele sind, und ihre Stimmen zählen genau wie unsere."



Inactive
|
duRiel ClanSphere Team


Weltmeister




Location: Cambridge
Posts: 7300
# Answer: 5 - 2006-10-30 at 5:07 PM
maikoldi hat recht. hast du grundkentnisse von php?
falls nicht:

 
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
1. / 2. / ... 
<?php

switch ($mod) {
// Bedeutet: "durchprobieren der variable 'mod'". mod ist das, was in der adressleiste steht, also z.B ?mod=board
 
case 'news':
// das, was passieren soll, wenn 'mod' den wert 'news' hat, also in der adressleiste ?mod=news steht
   
echo "Link 1";
// echo heißt so viel wie "gebe aus:"
   
echo "Link 2";
   break; 
// musst du nicht verstehen :-)
 
case 'modul2':
   echo 
"Link 1";
   echo 
"Link 2";
   break;
 default: 
# ausgabe, wenn kein oben aufgeführter fall eintritt
   
echo "Link 1";
   echo 
"Link 2";
}
?>


das ganze packst du in eine datei.
ist jetzt zwar unprofessionell, aber zur einfachheit halber machst du diese datei in einen ordner wie zb mods/wars/

dann schreibst du das ins template:

{wars:navigation}

in diesem fall müsste die php datei mods/wars/navigation.php heißen.


Last edit by duRiel ClanSphere Team at 2006-10-30 at 5:11 PM (1x Edited)
Inactive
|
theGrimm
Thread author


Rock the board




Posts: 62
# Answer: 6 - 2006-10-31 at 10:07 AM
hiho ist es möglich für case'': auch mehrere Abfragen zu haben?
also ich mein jetzt : wenn Mod = news oder Wars oder board dann zeig die links an

hoffe ist verständlich ^^


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

"Die Herrschaft der Dummen ist unüberwindlich, weil es so viele sind, und ihre Stimmen zählen genau wie unsere."



Inactive
|
GoldenjuP


Rock the board



Location: München
Posts: 48
# Answer: 7 - 2006-10-31 at 11:07 AM
mach halt einfach bei case news und wars die gleichen sublinks hin.


Inactive
|
theGrimm
Thread author


Rock the board




Posts: 62
# Answer: 8 - 2006-10-31 at 11:08 AM
dann wird das aber alles so ellen lang kann man das nicht in den selben case schreiben ?


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

"Die Herrschaft der Dummen ist unüberwindlich, weil es so viele sind, und ihre Stimmen zählen genau wie unsere."



Inactive
|
Fidan


King for a day



Location: -----
Posts: 331
# Answer: 9 - 2006-11-05 at 7:02 PM
Edit: sorry war im falschen thread


Last edit by Fidan at 2006-11-05 at 7:03 PM (1x Edited)
Inactive
|
SCHIRI ClanSphere Team


Weltmeister



Location: Hamburg
Posts: 5299
# Answer: 10 - 2006-11-05 at 7:26 PM
oO

hattest du mich mal in icw geaddet? ich glaube ich hab dir das mal geuppt aber scheinbar hast du den link net erhalten.

ich hoffe ich irre mich nicht, dass du das warst, sonst schreib mich nochmal an

edit, ich poste es einfach mal hier:


mods/navigation/topnav.php +-


 
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.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
73.
74.
75.
76.
77.
78.
79.
80.
81.
82.
83.
84.
85.
86.
87.
88.
89.
90.
91.
92.
93.
94.
95.
96.
97.
98.
99.
100.
101.
102.
103.
104.
105.
106.
107.
1. / 2. / ... 
<?php 

if(empty($_REQUEST["mod"])) $mod="news";

else 
$mod=$_REQUEST["mod"];

$module_kat=array();
$module_kat["news"]="home";
$module_kat["gbook"]="home";
$module_kat["articles"]="home";
$module_kat["search"]="home";
$module_kat["clansphere"]="home";
$module_kat["banners"]="home";
$module_kat["bannerrotation"]="home";
$module_kat["count"]="home";
$module_kat["explorer"]="home";
$module_kat["errors"]="home";
$module_kat["install"]="home";
$module_kat["navigation"]="home";
$module_kat["newsletter"]="home";
$module_kat["rss"]="home";
$module_kat["pages"]="home";
$module_kat["captcha"]="home";
$module_kat["updates"]="home";
$module_kat["access"]="home";

$module_kat["members"]="clan";
$module_kat["awards"]="clan";
$module_kat["history"]="clan";
$module_kat["wars"]="clan";
$module_kat["cash"]="clan";
$module_kat["maps"]="clan";
$module_kat["rules"]="clan";
$module_kat["ranks"]="clan";
$module_kat["servers"]="clan";
$module_kat["games"]="clan";
$module_kat["squads"]="clan";
$module_kat["training"]="clan";

$module_kat["users"]="community";
$module_kat["board"]="community";
$module_kat["computers"]="community";
$module_kat["clans"]="community";
$module_kat["characters"]="community";
$module_kat["buddys"]="community";
$module_kat["faq"]="community";
$module_kat["abcode"]="community";
$module_kat["boardmods"]="community";
$module_kat["boardranks"]="community";
$module_kat["irc"]="community";
$module_kat["comments"]="community";
$module_kat["messages"]="community";
$module_kat["options"]="community";
$module_kat["shoutbox"]="community";

$module_kat["files"]="media";
$module_kat["gallery"]="media";
$module_kat["categories"]="media";
$module_kat["links"]="media";
$module_kat["logs"]="media";
$module_kat["replays"]="media";
$module_kat["ts2panel"]="media";
$module_kat["events"]="media";
$module_kat["votes"]="media";
$module_kat["usergallery"]="media";
$module_kat["quotes"]="media";

$module_kat["fightus"]="contact";
$module_kat["joinus"]="contact";
$module_kat["contact"]="contact";
$module_kat["linkus"]="contact";



while(list(
$key$val) = each($module_kat)) {

if(!empty(
$module_kat[$mod]))
{
$cat_button=$module_kat[$mod];
}

else 
$cat_button="home";

if(
$mod=="clansphere" && $action=="about"$cat_button="about";
}

$home_button =($cat_button=="home") ? "topnavactiv" "topnavnorm";
$clan_button =($cat_button=="clan") ? "topnavactiv" "topnavnorm";
$community_button =($cat_button=="community") ? "topnavactiv" "topnavnorm";
$media_button =($cat_button=="media") ? "topnavactiv" "topnavnorm";
$contact_button =($cat_button=="contact") ? "topnavactiv" "topnavnorm";
$about_button =($cat_button=="about") ? "topnavactiv" "topnavnorm";
?>



<div style="width: 100%;" class="noborder">

<div style="float: left;"><a href="index.php?mod=news&action=recent" class="<?php echo $home_button?>">Home</a></div>
<div style="float: left;"><a href="index.php?mod=members&action=overview" class="<?php echo $clan_button?>">Clan</a></div>
<div style="float: left;"><a href="index.php?mod=board" class="<?php echo $community_button?>">Community</a></div>
<div style="float: left;"><a href="index.php?mod=files&action=overview" class="<?php echo $media_button?>">Media</a></div>
<div style="float: left;"><a href="index.php?mod=contact&action=mail" class="<?php echo $contact_button?>">Contact</a></div>
<div style="float: left;"><a href="index.php?mod=clansphere&action=about" class="<?php echo $about_button?>">About</a></div>
<div style="float: left;"><img src="templates/desert-gaming_v4/images/index_18.png" alt=" " /></div>

</div>




mods/navigation/subnav.php +-


 
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.
33.
34.
35.
36.
37.
38.
39.
1. / 2. / ... 


<?php 

$modules_sub
=array();
$modules_link=array();

$modules_sub["home"]=array("News","Gbook","Coverage","Suche");
$modules_link["home"]=array("news&action=recent","gbook","articles&action=listcat&id=45","search");

$modules_sub["clan"]=array("Übersicht","Mitglieder","Matches","History","Awards","Servers");
$modules_link["clan"]=array("members&action=overview","members","wars","history","awards","servers");

$modules_sub["community"]=array("Board","Userlist","WebIRC","FAQ","Anmelden");
$modules_link["community"]=array("board","users","irc","faq","users&action=register");

$modules_sub["media"]=array("Files","Gallery","Replays","Links","Umfragen","Events");
$modules_link["media"]=array("files&action=overview","gallery","replays","links","votes","events");

$modules_sub["contact"]=array("Impressum","Mail us","Join us","Fight us");
$modules_link["contact"]=array("contact&action=imprint","contact&action=mail","joinus&action=new","fightus&action=new");

?>



<div style="width: 100%;height:18px;" class="noborder">
<?php 
if(!empty($modules_sub[$cat_button]))
{
for(
$x=0;$x<sizeof($modules_sub[$cat_button]);$x++) { 
if(!empty(
$modules_sub[$cat_button][$x]) && !empty($modules_link[$cat_button][$x]))
echo 
"<div style="padding:0pxmargin:0pxtext-alignleft;floatleft;"><a href="index.php?mod=".$modules_link[$cat_button][$x]."" class="subnavnorm">   ".$modules_sub[$cat_button][$x]."</a></div>";
}
}
?>
</div>






dann kannst du mit {navigation:topnav} und {navigation:subnav}
die beiden navis, also topnav und subnav ins template einbinden, aber ich hab das jetzt exakt aus meinen datein kopiert und weiss auch nicht ob es die beste lösung is, muss also noch angepasst werden


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

Last edit by SCHIRI ClanSphere Team at 2006-11-05 at 7:30 PM (1x Edited)
Inactive
|
Answers: 10
Page [1]


You must be registered.