Seitenproblem
ich habe auf unserer main-seite www.die-schlingel.de ein newsscript eingfügt, und oben ein eventkalender.
nun möchte ich im menü auch noch einen Link zu dem "Archiv" machen.
Folgender Link:
http://www.die-schlingel.de/main.php?show=archive
Aber wie bekomme ich jetzt auf der Archiv-Seite den Eventkalender weg ?
Wie geht das????
Muss ich irgendwie was anderst includen...?! Andere Link?...?
nun möchte ich im menü auch noch einen Link zu dem "Archiv" machen.
Folgender Link:
http://www.die-schlingel.de/main.php?show=archive
Aber wie bekomme ich jetzt auf der Archiv-Seite den Eventkalender weg ?
Wie geht das????
Muss ich irgendwie was anderst includen...?! Andere Link?...?
www.die-schlingel.de --> DIE PARTYSEITE
Wenn ich das jetzt richtig Verstanden habe, könntets du doch einfach Prüfen ob $_GET['show'] existiert. Sollte das der Fall sein wird eine Datei eingebunden(wobei du da aufpassen musst, dass man nicht irgend eine Datei einbinden kann...), sollte das nicht der Fall sein so wird die Mainseite angezeigt und der Eventkaldender wird ausgegeben.
Liebe Grüsse
Simon
Liebe Grüsse
Simon
"Das Problem zu erkennen ist wichtiger, als die Lösung zu erkennen, denn die genaue Darstellung des Problems führt zur Lösung." Albert Einstein
@Timido: Nein, du hast das falsch verstanden.
@dj-rider: Da du den Eventkalender wahrscheinlich fest included hast, würde ich einen weiteren Parameter per URL übertragen: z.B. evkl=off.
Dann packst du dein include für den Eventkalender in ne if-Anweisung und fragst halt ab, ob der Eventkalender off ist. Ist er das, gibst du garnichts aus und lässt das script so laufen. Und im "else" Fall, includest du einfach wie vorher...
Gruß,
tommy
@dj-rider: Da du den Eventkalender wahrscheinlich fest included hast, würde ich einen weiteren Parameter per URL übertragen: z.B. evkl=off.
Dann packst du dein include für den Eventkalender in ne if-Anweisung und fragst halt ab, ob der Eventkalender off ist. Ist er das, gibst du garnichts aus und lässt das script so laufen. Und im "else" Fall, includest du einfach wie vorher...
Gruß,
tommy
Also, du fügst einfach folgenden Code ein:
ersetzt die Pfade mit deinen Angaben,
hängst an deinen Link zum Archiv &evkl=off an
und dann müsste das eigendlich laufen.
|
|
PHP-Quelltext |
1 2 3 |
if ($_GET["evkl"] == "off")
{;} // Eventkalender nicht anzeigen.
else {include ("linkzu/eventkalender.php");} // Eventkalender anzeigen
|
ersetzt die Pfade mit deinen Angaben,
hängst an deinen Link zum Archiv &evkl=off an
und dann müsste das eigendlich laufen.
ja, die datei heißt main.php
und wo genau muss der code rein ?
und wo genau muss der code rein ?
|
|
PHP-Quelltext |
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 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 |
<html>
<head>
<title>DIE SCHLINGEL</title>
<link rel="stylesheet" type="text/css"
href="http://www.die-schlingel.de/die-schlingel/corenews23/shownews.php?show=cssonly">
<style fprolloverstyle>A:hover {color: #FF0000; font-weight: bold}
</style>
<base target="main">
<STYLE type=text/css>
BODY {
SCROLLBAR-FACE-COLOR: 5787D3;
SCROLLBAR-HIGHLIGHT-COLOR: #5787D3;
SCROLLBAR-SHADOW-COLOR: #000000;
SCROLLBAR-3DLIGHT-COLOR: #000000;
SCROLLBAR-ARROW-COLOR: #000000;
SCROLLBAR-TRACK-COLOR: #5787D3;
SCROLLBAR-DARKSHADOW-COLOR: #5787D3;
}
A:link {
COLOR: #FFFFFF; CURSOR: crosshair;TEXT-DECORATION: none
}
A:active {
COLOR: 000000; CURSOR: crosshair;TEXT-DECORATION: none
}
A:visited {
COLOR: 9FC5F5; CURSOR: crosshair;TEXT-DECORATION: none
}
A:hover {
COLOR: 000000; CURSOR: crosshair;TEXT-DECORATION: underline overline
}
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>News</title>
</head>
<body link="#0000FF">
<table border="0" width="450" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="99%" valign="top" align="right">
<table border="0" width="450" cellpadding="0" cellspacing="1">
<tr>
<td>
<table bgcolor="#003565" border="0" width="100%" cellpadding="1" cellspacing="0">
<tr>
<td>
<table border="0" width="450" cellpadding="1" cellspacing="0">
<tr>
<td bgcolor="#9FC5F5" width="80%"><font size="1" face="Verdana"><b>Einführung</b></font></td>
<td bgcolor="#9FC5F5" width="20%" align="right"> </td>
<! End Poting Date !>
</tr>
</table>
</td>
</table>
</td>
</tr>
<tr>
<td>
<table bgcolor="#003565" border="0" width="100%" cellpadding="1" cellspacing="0" height="36">
<tr>
<td height="34">
<table border="0" width="100%" cellpadding="1" cellspacing="0">
<tr>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table bgcolor="#003565" border="0" width="100%" cellpadding="1" cellspacing="0">
<tr>
<td>
<table border="0" width="100%" cellpadding="1" cellspacing="0">
<tr>
<td bgcolor="#9FC5F5" width="80%"><font size="1" face="Verdana"><b>Überschrift</b></font></td>
<td bgcolor="#9FC5F5" width="20%" align="right"><font size="1" face="Verdana"><b>06.
Dezember 2002</b></font></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table bgcolor="#003565" border="0" width="100%" cellpadding="1" cellspacing="0">
<tr>
<td>
<table border="0" width="100%" cellpadding="1" cellspacing="0">
<tr>
<td bgcolor="#FFFFFF"><font size="1" face="Verdana"> text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text.<br><br>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
</style>
</head>
<body bgcolor="#5787D3">
<div align="center">
<center>
<table border="0" width="450" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td width="450" valign="top" align="center" height="42">
<table border="0" width="450" cellpadding="0" cellspacing="0" bgcolor="#5787D3" height="25" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td width="450" height="26">
<table bgcolor="#003565" border="0" width="100%" cellpadding="1" cellspacing="0">
<tr>
<td>
<div align="center">
<center>
<table border="0" width="450" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td bgcolor="#9FC5F5" width="450"><b><font face="Verdana" size="2">Willkommen...</font></b></td>
<! End Poting Date !>
</tr>
</table>
</center>
</div>
</td>
</table>
</td>
</tr>
<tr>
<td width="544" height="1" bgcolor="#5787D3">
<table bgcolor="#003565" border="0" width="452" cellpadding="1" cellspacing="0" height="1">
<tr>
<td height="1" width="483">
<div align="center">
<center>
<table border="0" width="450" cellpadding="0" cellspacing="0" height="1" bgcolor="#5787D3" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td bgcolor="#5787D3" width="480" height="1" colspan="2"><p><font face="Verdana" size="2"><b>
...zu der Homepage von den Schlingeln</b></font></td>
</tr>
<tr>
<td bgcolor="#5787D3" width="327" height="8">
<font face="Verdana" size="2" color="#FFFFFF">trag
dich in den Geburtstagskalender ein </font></td>
<td bgcolor="#5787D3" width="179" height="8">
<font face="Verdana" size="2" color="#FFFFFF">[<a href="http://www.die-schlingel.de/die-schlingel/geburtstageintragung/gebeintragung.html">hier</a>]</font></td>
</tr>
<tr>
<td bgcolor="#5787D3" width="327" height="1">
<font face="Verdana" size="2" color="#FFFFFF">Du
hast einen Eventtipp, dann melde dich </font></td>
<td bgcolor="#5787D3" width="179" height="1">
<font face="Verdana" size="2" color="#FFFFFF">[<a href="http://www.die-schlingel.de/die-schlingel/eventtipp/eventtipp.html">hier</a>]</font></td>
</tr>
</table>
</center>
</div>
</td>
</tr>
</table>
<table border="0" width="9" cellpadding="0" cellspacing="0" height="42">
<tr>
<td width="834" valign="top" align="right" height="42">
<div align="center">
<center>
<table border="0" width="450" cellpadding="0" cellspacing="0" bgcolor="#5787D3" height="25" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td width="450" height="1" bgcolor="#5787D3" valign="top" align="left">
<font face="Verdana" size="2">
</font>
<?php include("http://www.die-schlingel.de/die-schlingel/eventkalender/modules/list.php"); ?></td>
</tr>
<tr>
<td width="450" height="1" bgcolor="#5787D3" valign="top" align="center">
<font face="Verdana" size="2">
</font>
<?php
chdir("die-schlingel/corenews23/");
$show = "main";
include("shownews.php");
chdir("..");
?></td>
</tr>
</table>
</center>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table></center>
</div>
|
www.die-schlingel.de --> DIE PARTYSEITE
Hab das dann mal eingefügt.
Hättest dir aber auch nur mal meine Posts genau durchlesen müssen, dann hättest du gewusst wohin das muss.
Hättest dir aber auch nur mal meine Posts genau durchlesen müssen, dann hättest du gewusst wohin das muss.
|
|
PHP-Quelltext |
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 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 |
<html>
<head>
<title>DIE SCHLINGEL</title>
<link rel="stylesheet" type="text/css"
href="http://www.die-schlingel.de/die-schlingel/corenews23/shownews.php?show=cssonly">
<style fprolloverstyle>A:hover {color: #FF0000; font-weight: bold}
</style>
<base target="main">
<STYLE type=text/css>
BODY {
SCROLLBAR-FACE-COLOR: 5787D3;
SCROLLBAR-HIGHLIGHT-COLOR: #5787D3;
SCROLLBAR-SHADOW-COLOR: #000000;
SCROLLBAR-3DLIGHT-COLOR: #000000;
SCROLLBAR-ARROW-COLOR: #000000;
SCROLLBAR-TRACK-COLOR: #5787D3;
SCROLLBAR-DARKSHADOW-COLOR: #5787D3;
}
A:link {
COLOR: #FFFFFF; CURSOR: crosshair;TEXT-DECORATION: none
}
A:active {
COLOR: 000000; CURSOR: crosshair;TEXT-DECORATION: none
}
A:visited {
COLOR: 9FC5F5; CURSOR: crosshair;TEXT-DECORATION: none
}
A:hover {
COLOR: 000000; CURSOR: crosshair;TEXT-DECORATION: underline overline
}
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>News</title>
</head>
<body link="#0000FF">
<table border="0" width="450" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="99%" valign="top" align="right">
<table border="0" width="450" cellpadding="0" cellspacing="1">
<tr>
<td>
<table bgcolor="#003565" border="0" width="100%" cellpadding="1" cellspacing="0">
<tr>
<td>
<table border="0" width="450" cellpadding="1" cellspacing="0">
<tr>
<td bgcolor="#9FC5F5" width="80%"><font size="1" face="Verdana"><b>Einführung</b></font></td>
<td bgcolor="#9FC5F5" width="20%" align="right"> </td>
<! End Poting Date !>
</tr>
</table>
</td>
</table>
</td>
</tr>
<tr>
<td>
<table bgcolor="#003565" border="0" width="100%" cellpadding="1" cellspacing="0" height="36">
<tr>
<td height="34">
<table border="0" width="100%" cellpadding="1" cellspacing="0">
<tr>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table bgcolor="#003565" border="0" width="100%" cellpadding="1" cellspacing="0">
<tr>
<td>
<table border="0" width="100%" cellpadding="1" cellspacing="0">
<tr>
<td bgcolor="#9FC5F5" width="80%"><font size="1" face="Verdana"><b>Überschrift</b></font></td>
<td bgcolor="#9FC5F5" width="20%" align="right"><font size="1" face="Verdana"><b>06.
Dezember 2002</b></font></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table bgcolor="#003565" border="0" width="100%" cellpadding="1" cellspacing="0">
<tr>
<td>
<table border="0" width="100%" cellpadding="1" cellspacing="0">
<tr>
<td bgcolor="#FFFFFF"><font size="1" face="Verdana"> text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text.<br><br>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
</style>
</head>
<body bgcolor="#5787D3">
<div align="center">
<center>
<table border="0" width="450" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td width="450" valign="top" align="center" height="42">
<table border="0" width="450" cellpadding="0" cellspacing="0" bgcolor="#5787D3" height="25" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td width="450" height="26">
<table bgcolor="#003565" border="0" width="100%" cellpadding="1" cellspacing="0">
<tr>
<td>
<div align="center">
<center>
<table border="0" width="450" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td bgcolor="#9FC5F5" width="450"><b><font face="Verdana" size="2">Willkommen...</font></b></td>
<! End Poting Date !>
</tr>
</table>
</center>
</div>
</td>
</table>
</td>
</tr>
<tr>
<td width="544" height="1" bgcolor="#5787D3">
<table bgcolor="#003565" border="0" width="452" cellpadding="1" cellspacing="0" height="1">
<tr>
<td height="1" width="483">
<div align="center">
<center>
<table border="0" width="450" cellpadding="0" cellspacing="0" height="1" bgcolor="#5787D3" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td bgcolor="#5787D3" width="480" height="1" colspan="2"><p><font face="Verdana" size="2"><b>
...zu der Homepage von den Schlingeln</b></font></td>
</tr>
<tr>
<td bgcolor="#5787D3" width="327" height="8">
<font face="Verdana" size="2" color="#FFFFFF">trag
dich in den Geburtstagskalender ein </font></td>
<td bgcolor="#5787D3" width="179" height="8">
<font face="Verdana" size="2" color="#FFFFFF">[<a href="http://www.die-schlingel.de/die-schlingel/geburtstageintragung/gebeintragung.html">hier</a>]</font></td>
</tr>
<tr>
<td bgcolor="#5787D3" width="327" height="1">
<font face="Verdana" size="2" color="#FFFFFF">Du
hast einen Eventtipp, dann melde dich </font></td>
<td bgcolor="#5787D3" width="179" height="1">
<font face="Verdana" size="2" color="#FFFFFF">[<a href="http://www.die-schlingel.de/die-schlingel/eventtipp/eventtipp.html">hier</a>]</font></td>
</tr>
</table>
</center>
</div>
</td>
</tr>
</table>
<table border="0" width="9" cellpadding="0" cellspacing="0" height="42">
<tr>
<td width="834" valign="top" align="right" height="42">
<div align="center">
<center>
<table border="0" width="450" cellpadding="0" cellspacing="0" bgcolor="#5787D3" height="25" style="border-collapse: collapse" bordercolor="#111111">
<tr>
<td width="450" height="1" bgcolor="#5787D3" valign="top" align="left">
<font face="Verdana" size="2">
</font>
<?php
if ($_GET["evkl"] == "off")
{;} // Eventkalender nicht anzeigen.
else {include("http://www.die-schlingel.de/die-schlingel/eventkalender/modules/list.php");} // Eventkalender anzeigen ?></td>
</tr>
<tr>
<td width="450" height="1" bgcolor="#5787D3" valign="top" align="center">
<font face="Verdana" size="2">
</font>
<?php
chdir("die-schlingel/corenews23/");
$show = "main";
include("shownews.php");
chdir("..");
?></td>
</tr>
</table>
</center>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table></center>
</div>
|
Hab ich nicht bereits im letzten Post darauf hingewiesen, dass du dir meine Beiträge mal genauern durchlesen bzw. verinnerlichen solltest.
Sorry, dass ich dich so anfahre, aber ich hatte in meinem zweiten Post folgendes geschrieben:
Also hängst du jetzt an deinen Link zum archiv (main.php?show=archive)den Rest an: (main.php?show=archive&evkl=off) und schon funzt das ganze.
Gruß,
tommy
Sorry, dass ich dich so anfahre, aber ich hatte in meinem zweiten Post folgendes geschrieben:
Zitat
...,hängst an deinen Link zum Archiv &evkl=off an
und dann müsste das eigendlich laufen.
Also hängst du jetzt an deinen Link zum archiv (main.php?show=archive)den Rest an: (main.php?show=archive&evkl=off) und schon funzt das ganze.
Gruß,
tommy
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »tommyfin« (9. Juni 2005, 22:40)
es hat geklappt siehe www.die-schlingel.de und dann Newsarchiv!
1. Nur wie bekomme ich das ganz oben noch weg ?
2. wie bekomme ich auf der Startseite den Kalender und das oben weg, wenn ich auf KOMMENTARE klicke ?
1. Nur wie bekomme ich das ganz oben noch weg ?
2. wie bekomme ich auf der Startseite den Kalender und das oben weg, wenn ich auf KOMMENTARE klicke ?
www.die-schlingel.de --> DIE PARTYSEITE



