Computerhilfen.de Logo
Forum
Tipps
News
Frage stellen

Newssite

Hallo

ich habe da mal eine Frage:

ich habe hier eine Siete (aktuelles.php ) sowie die seite admin.php. kann mir jemand vllt helfen? Ich möchte Gerne, dass man vom Admincenter aus News verfassen kann, also einfach Text an einer Bestimmten Stelle in die aktuelles.php einfügen.

Oder gibt es da auch scripts?

Greywolf


Antworten zu Newssite:

Hat dir diese Antwort geholfen?

Danke ButtonHilfreiche Antwort Button

Hi |

Das ist quasi eine Standardaufgabe mit und mit PHP. Allerdings nicht Standard genug, um eine allgemeingültige Lösung zu geben, erst recht nicht, wenn die Zielseite schon existiert.

Frage wäre auch noch, wie die Daten gespeichert werden sollen. Textdatei, oder Datenbank? Wenn ja, welche Datenbank?

Ich würde ja sagen, poste mal den Code der beiden Dateien, aber das wird sicher ein wenig viel werden.

Hast du denn schon Erfahrung mit PHP?

greez 8)
JoSsiF

Relativ Wenig

Alles was ich bisher habe ist folgendes:

die index.php

und die aktuelles.php. Dort soll dann Text dargestellt werden, welchen man über eine Admin-Webinterface (Texteingabefenster un OK-Button) hinzufügen. ändern und löschen kann

also der code der aktuelles.php  sieht folgendermaßen aus:

 

Zitat


<head>
</head>
<title>Aktuelles</title>
meta name="author" content="GW">
  <!--Grafiken und Inhalt sind geistiges Eigentum von GW-->
  <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  <meta name="Title" content="GW">
  <meta name="Publisher" content="GW">
  <meta name="description" content="GW">
  <meta name="keywords" content="GW, Fotografie, Bessel, Rudern, Fotos, Sport, CGW">

  <meta name="page-topic" content="GW">
  <meta name="audience" content="All">
  <meta name="Robots" content="INDEX,NOFOLLOW">
  <meta name="Language" content="Deutsch">
<body>
<html>
<a target="_self" background="http://tippex.ti.ohost.de/Testseite/bg.gif" href="http://tippex.ti.ohost.de/Testseite/aktuelles.php"><u align="center" color="silver">Aktuelles</u>
<a target="_self" background="http://tippex.ti.ohost.de/Testseite/bg.gif" href="http://tippex.ti.ohost.de/Testseite/termine.php"><u align="center" color="yellow">Termine</u>
<a target="_self" background="http://tippex.ti.ohost.de/Testseite/bg.gif" href="http://tippex.ti.ohost.de/Testseite/intern.php"><u align="center" color="yellow">Intern</u>
<a target="_self" background="http://tippex.ti.ohost.de/Testseite/bg.gif" href="http://tippex.ti.ohost.de/Testseite/intern.php"><u align="center" color="yellow">Intern</u>
</html>
<h1 align="center"><b>Aktuelles</b></h1>
</body>




Leider konnte ich sie seite noch nicht testen da funpic zz offline ist.

Hat dir diese Antwort geholfen?

Danke ButtonHilfreiche Antwort Button

Die aktuelles.php enthält ja noch kein PHP in dem Sinne. Viel testen brauchst du da ja nicht. Wenn du nur mal das Layout im Browser checken willst, dann benenne sie in aktuelles.htm um und ruf sie lokal auf.

Ich hoffe, du erwartest jetzt nicht, dass dir jemand dein Admin-Interface programmiert. Allerdings ist die Basis ja bisher PHP-frei, was durchaus auch den Einsatz eines vorgefertigten Skripts begünstigen würde.

Also schau dich einfach mal im Netz um. Bei Detailfragen können wir sicher helfen :)

greez 8)
JoSsiF

Also,
ich hab mal ne neue index gemacht, habe aber folgende probleme:

der Hintergrund der sich normalerweise über dem banner befindet (grau, weiss schraffiert) ist über die ganze seite verteilt, der Headbanner ist ein bisschen nach oben gerutscht und fängt auf der rechten seite nochmal neu an. Und (im Gegensatz zur Site KONTAKT/GÄSTEBUCH sind 2 spacer (schwarz) ein bisschen dicker geworden warum auch immer)

Alllerdings kann ich nirgendswo in der index.php nen fehler entdecken, bitte um Hilfe,, hier ist die Index (nicht wundern wenn bisher nur die index funzt, und der rest an seiten nicht!)

 

Zitat


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="description" content="x-cite">
<meta name="keywords" content="">
<link title="Themed Page Style" media="screen" href="http://tippex.ti.ohost.de/x-cite/style.css" type="text/css" rel="stylesheet">
<title>Meine Homepage</title>
</head>

<body background="images/bg.gif">
<br />
<center>
<table cellpadding="1" cellspacing="1">
<tr><td bgcolor="#000000">
<table width="800" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#ffffff">
<tr>
    <td colspan="5" class="header_bg" bgcolor="#ffffff">
   <table cellpadding="4"><tr><td><img src="http://tippex.ti.ohost.de/x-cite/spacer.gif" width="1" height="40" alt=""><br /></td><td valign="middle" align="center">
            </td>
</tr>
<tr>
    <td colspan="5" bgcolor="#ffffff">&nbsp;</td>
</tr>
<tr>
    <td colspan="5" class="header" width=800 height="180"></td>
</tr>
<tr valign="top">
  <td width="190" align="right" class="navigation">
  <table width="182" cellpadding="2" cellspacing="2">
    <tr><td align="left" valign="top">
      <table cellpadding="2" cellspacing="0"><tr><td width="8"><img src="http://tippex.ti.ohost.de/x-cite/button.gif" width="5" height="5" alt=""></td>
  <td><a href="index.htm">Home</a>
  </td>
    </tr></table><img src="http://tippex.ti.ohost.de/spacer.gif" width="1" height="2" alt=""><br /><table cellpadding="2" cellspacing="0"><tr><td width="8"><img src="http://tippex.ti.ohost.de/x-cite/button.gif" width="5" height="5" alt=""></td>
  <td><a href="http://tippex.ti.ohost.de/x-cite/news.php">News</a>
  </td>
    </tr></table><img src="http://tippex.ti.ohost.de/x-cite/spacer.gif" width="1" height="2" alt=""><br /><table cellpadding="2" cellspacing="0"><tr><td width="8"><img src="http://tippex.ti.ohost.de/x-cite/button.gif" width="5" height="5" alt=""></td>
  <td><a href="http://tippex.ti.ohost.de/x-cite/verein.php">Der Verein</a>
  </td>
    </tr></table><img src="http://tippex.ti.ohost.de/x-cite/spacer.gif" width="1" height="2" alt=""><br /><table cellpadding="2" cellspacing="0"><tr><td width="8"><img src="http://tippex.ti.ohost.de/x-cite/button.gif" width="5" height="5" alt=""></td>
  <td><a href="http://tippex.ti.ohost.de/x-cite/gallery.php">Fotos</a>
  </td>
    </tr></table><img src="http://tippex.ti.ohost.de/x-cite/spacer.gif" width="1" height="2" alt=""><br /><table cellpadding="2" cellspacing="0"><tr><td width="8"><img src="http://tippex.ti.ohost.de/x-cite/button.gif" width="5" height="5" alt=""></td>
  <td><a href="http://tippex.ti.ohost.de/x-cite/mitglieder.php">Mitglieder</a>
  </td>
    </tr></table><img src="http://tippex.ti.ohost.de/x-cite/spacer.gif" width="1" height="2" alt=""><br /><table cellpadding="2" cellspacing="0"><tr><td width="8"><img src="http://tippex.ti.ohost.de/x-cite/button.gif" width="5" height="5" alt=""></td>
  <td><a href="http://tippex.ti.ohost.de/x-cite/gaestebuch.php">G&auml;stebuch</a>
  </td>
    </tr></table><img src="http://tippex.ti.ohost.de/x-cite/spacer.gif" width="1" height="2" alt=""><br /><table cellpadding="2" cellspacing="0"><tr><td width="8"><img src="http://tippex.ti.ohost.de/x-cite/button.gif" width="5" height="5" alt=""></td>
  <td><a href="http://tippex.ti.ohost.de/x-cite/intern.php">Intern</a>
  </td>
    </tr></table><img src="http://tippex.ti.ohost.de/x-cite/spacer.gif" width="1" height="2" alt=""><br /><table cellpadding="2" cellspacing="0"><tr><td width="8"><img src="http://tippex.ti.ohost.de/x-cite/button.gif" width="5" height="5" alt=""></td>
  <td><a href="http://tippex.ti.ohost.de/x-cite/kontakt.php">Kontakt</a>
  </td>
    </tr></table><img src="http://tippex.ti.ohost.de/x-cite/spacer.gif" width="1" height="2" alt=""><br /><table cellpadding="2" cellspacing="0"><tr><td width="8"><img src="http://tippex.ti.ohost.de/x-cite/button.gif" width="5" height="5" alt=""></td>
  <td><a href="http://tippex.ti.ohost.de/x-cite/impressum-php">Impressum</a>
  </td>
    </tr></table><img src="http://tippex.ti.ohost.de/x-cite/spacer.gif" width="1" height="2" alt=""><br /><img src="http://tippex.ti.ohost.de/x-cite/spacer.gif" width="1" height="250" alt=""><br />
  </td>
    </tr></table>
  </td>
  <td width="4" bgcolor="#ffffff"></td>
<td width="1" bgcolor="#000000"></td>
<td width="4" bgcolor="#ffffff"></td>
  <td width="601" align="left">
    <table width="591" cellpadding="2" cellspacing="2">
      <tr><td>
    <span class="subject">TEST</span><br /><br />
      TEST.<br>
    </td></tr></table>
  </td>
</tr>
</table>
</td></tr>
</table>
</center>
<br>
</body>
</html>

Hier ist nochmal n screeny wies in echt aussehen sollte

 

 


« Navigationsmenü mit Grafik, hover und CSS - Anzeige BrowserabhängigCMS »
 

Schnelle Hilfe: Hier nach ähnlichen Fragen und passenden Tipps suchen!

| Mehr Themen zu "Newssite"
Fremdwörter? Erklärungen im Lexikon!
Newsgroup
Newsgroup (Englischer Begriff für "Nachrichtengruppe") und meint eine Diskussionsforum im Internet, das wie ein "schwarzes Brett" funktioniert, an dem Nachrichten ve...

Hypertext
Hypertext ( zu Deutsch: Übertext) ein ein von dem Informatiker Theodore L. Nelson in den sechziger Jahren geprägter Begriff für Text, der dreidimensional g...

Textur
Unter einer Textur versteht man eine Oberflächenstrukur, die ein bestimmtes Material simuliert, wie Holz, Tapete oder Metall. Bei der 3D-Computeranimation bezeichnet...