Verwandte Links

Begonnen von drag77, 02 April 2002, 20:32:46

⏪ vorheriges - nächstes ⏩

0 Mitglieder und 2 Gäste betrachten dieses Thema.

drag77

Im Modul News gibt es eine Datei: article.php

Wenn ich mir einen news-Punkt durchlese bekomme ich einen neuen Block rechts: Verwandte Links
Da erscheint dann zB immer ein Link zu GNU oder andern Links die in dem Array in der Article.php definiert sind.

wie kann man das bitte ausschalten?

übrigens bin ich heute mit http://www.dragons.at online gegangen. Ich möchte mich für eure tolle unterstützung bedanken, ohne die ich es nie so weit gebracht hätte!
DANKE nochmals!

Deepsky

ZitatIm Modul News gibt es eine Datei: article.php

Wenn ich mir einen news-Punkt durchlese bekomme ich einen neuen Block rechts: Verwandte Links
Da erscheint dann zB immer ein Link zu GNU oder andern Links die in dem Array in der Article.php definiert sind.

wie kann man das bitte ausschalten?

übrigens bin ich heute mit http://www.dragons.at online gegangen. Ich möchte mich für eure tolle unterstützung bedanken, ohne die ich es nie so weit gebracht hätte!
DANKE nochmals!


Sauber gemachtes Design, Kompliment!!!
Gruß Deepsky

drag77

hat jemand eine Lösung?

Deepsky

Hi drag,
bei mir ist in den verwaten Links ein Hinweis hostscripts.com, ich habe die Datenbank durchgesuch... nix. Suche aber weiter, wenn ich was finde poste ich hier etwas.

Gruß Deepsky

DarkBoy

Hi
 schaue in modules/News/article.php nach, in folgenden zeilen kannst du die  Box auskommentieren:Zeile 143 ff
 
Zitat$boxtitle = ""._RELATED."";
$boxstuff = "<font class=\"content\">";
dann verschwindet die Box ganz oder  lösche entsprechnde linkzeilen aus den nachfolgenden Zeilen.
Das sollte dein problem lösen

drag77

ja paaaast! das wars!
thx

Deepsky

ZitatHi
 schaue in modules/News/article.php nach, in folgenden zeilen kannst du die  Box auskommentieren:Zeile 143 ff
 
Zitat$boxtitle = ""._RELATED."";
$boxstuff = "<font class=\"content\">";
dann verschwindet die Box ganz oder  lösche entsprechnde linkzeilen aus den nachfolgenden Zeilen.
Das sollte dein problem lösen

Und wieder mal DANKESCHÖN

!!! @Dark !!!
Es liegt an Eurem WISSEN  :D ;)

Deepsky

STOPP, bei mir haut es nicht hin... folgende Sachen auskommentiert..


// $boxtitle = ""._RELATED."";
// $boxstuff = "<font class=\"content\">";

/* This is a list for automatic related links on article internal page */
/* For this I used a multi-dimensional array so we can show the links titles */
/* as we want, doesn't matter the case of the string in the article. You can */
/* add or remove links from this array as you wish to fit your needs */

$relatedarray = array ("gpl"                 => array ("GPL"                         => "http://www.gnu.org"),
                       "linux"                 => array ("Linux.com"                         => "http://www.linux.com"),
                       "blender"        => array ("Blender"                         => "http://www.blender.nl"),
                       "gnu"                => array ("GNU Project"                        => "http://www.gnu.org"),
                       "gimp"                => array ("The GIMP"                        => "http://www.gimp.org"),
                       "cnn"                => array ("CNN.com"                        => "http://www.cnn.com"),
                       "news.com"        => array ("News.com"                        => "http://www.news.com"),
                       "ibm"                => array ("IBM"                                => "http://www.ibm.com"),
                       "php"                => array ("PHP HomePage"                => "http://www.php.net"),
                       "mandrake"        => array ("MandrakeSoft"                => "http://www.mandrakesoft.com"),
                       "redhat"                => array ("Red Hat"                        => "http://www.redhat.com"),
                       "red hat"        => array ("Red Hat"                        => "http://www.redhat.com"),
                       "Debian"                => array ("Debian GNU/Linux"                => "http://www.debian.org"),
                       "Slackware"        => array ("Slackware"                        => "http://www.slackware.com"),
                       "freebsd"        => array ("FreeBSD"                        => "http://www.freebsd.org"),
                       "artist"                => array ("Linux Artist"                => "http://www.linuxartist.com"),
                       "games"                => array ("Linux Games"                        => "http://www.linuxgames.com"),
                       "sourceforge"        => array ("SourceForge"                        => "http://www.sourceforge.net"),
                       "source forge"        => array ("SourceForge"                        => "http://www.sourceforge.net"),
                       "palm pilot"        => array ("Palm Pilot"                        => "http://www.palm.com"),
                       "windows"        => array ("Microsoft"                        => "http://www.microsoft.com"),
                       "microsoft"        => array ("Microsoft"                        => "http://www.microsoft.com"),
                       "kernel"                => array ("Linux Kernel Archives"        => "http://www.kernel.org"),
                       "opensource"        => array ("OpenSource"                        => "http://www.opensource.org"),
                       "open source"        => array ("OpenSource"                        => "http://www.opensource.org"),
                       "nuke"                => array ("PHP-Nuke"                        => "http://www.phpnuke.org"),
                       "compaq"                => array ("Compaq"                        => "http://www.compaq.com"),
                       "intel"                => array ("Intel"                        => "http://www.intel.com"),
                       "mysql"                => array ("MySQL Database Server"        => "http://www.mysql.com"),
                       "themes"                => array ("Themes.org"                        => "http://www.themes.org"),
                       "suse"                => array ("SuSE"                        => "http://www.suse.com"),
                       "script"                => array ("HotScripts"                        => "http://www.hotscripts.com"),
                       "transmeta"        => array ("Transmeta"                        => "http://www.transmeta.com"),
                       "apple"                => array ("Apple"                        => "http://www.apple.com"),
                       "apache"                => array ("Apache Web Server"                => "http://www.apache.org"),
                       "nasa"                => array ("NASA"                        => "http://www.nasa.gov"),
                       "documentation"        => array ("Linux Manuals"                => "http://www.linuxdoc.org"),
                       "manual"                => array ("Linux Manuals"                => "http://www.linuxdoc.org"),
                       "howto"                => array ("Linux Manuals"                => "http://www.linuxdoc.org"),
                       "rtfm"                => array ("Linux Manuals"                => "http://www.linuxdoc.org"),
                       "dell"                => array ("Dell"                        => "http://www.dell.com"),
                       "google"                => array ("Google Search Engine"        => "http://www.google.com"),
                       "translat"        => array ("Babelfish Translator"        => "http://babelfish.altavista.com"),
                       "w3"                => array ("W3 Consortium"                => "http://www.w3.org"),
                       "css"                => array ("CSS Standard"                => "http://www.w3.org/Style/CSS"),
                       " html"                => array ("HTML Standard"                => "http://www.w3.org/MarkUp"),
                       "xhmtl"                => array ("XHTML Standard"                => "http://www.w3.org/MarkUp"),
                       "rpm"                => array ("RPM"                                => "http://www.rpm.org"),
                       "3com"                => array ("3Com"                        => "http://www.3com.com"),
                       "sun microsyste" => array ("Sun Microsystems"                => "http://www.sun.com"),
                       "staroffice"         => array ("Star Office"                        => "http://www.sun.com"),
                       "star office"         => array ("Star Office"                        => "http://www.sun.com"),
                       "openoffice"         => array ("Open Office"                        => "http://www.openoffice.org"),
                       "open office"         => array ("Open Office"                        => "http://www.openoffice.org"),
                       "oracle"                => array ("Oracle"                        => "http://www.oracle.com"),
                       "informix"        => array ("Informix"                        => "http://www.informix.com"),
                       "postgre"        => array ("PostgreSQL"                        => "http://www.postgresql.org"),
                       "mp3"                => array ("MP3.com"                        => "http://www.mp3.com"),
                       "gnome"                => array ("GNOME"                        => "http://www.gnome.org"),
                       "kde"                => array ("KDE"                                => "http://www.kde.org"),
                       "mozilla"        => array ("Mozilla"                        => "http://www.mozilla.org"),
                       "netscape"        => array ("Netscape"                        => "http://www.netscape.com"),
                       "corel"                => array ("Corel"                        => "http://www.corel.com"),
                       " hp"                => array ("Hewlett Packard"                => "http://www.hp.com"),
                       "hewlett packar" => array ("Hewlett Packard"                => "http://www.hp.com"),
                       "caldera"        => array ("Caldera Systems"                => "http://www.caldera.com"),
                       "freshmeat"        => array ("Freshmeat"                        => "http://www.freshmeat.net"),
                       "slashdot"        => array ("Slashdot"                        => "http://www.slashdot.org"),
                       "spam"                => array ("Spam Cop"                        => "http://www.spamcop.net"),
                       "aol"                => array ("America Online"                => "http://www.aol.com"),
                       "america online"        => array ("America Online"                => "http://www.aol.com"),
                       "pov-ray"        => array ("POV Ray"                        => "http://www.povray.org"),
                       "povray"                => array ("POV Ray"                        => "http://www.povray.org"),
                       "pov ray"        => array ("POV Ray"                        => "http://www.povray.org"),
                       "seti"                => array ("SETI Institute"                => "http://www.seti.org"),
                       "cnet"                => array ("C|Net News"                        => "http://www.cnet.com"),
                       "zdnet"                => array ("ZDNet News"                        => "http://www.zdnet.com"),
                       "napster"        => array ("Napster"                        => "http://www.napster.com"),
                       "sony"                => array ("Sony HomePage"                => "http://www.sony.com"),
                       "xfree"                => array ("X-Free86 Project"                => "http://www.xfree.org"),
                       "x-free"                => array ("X-Free86 Project"                => "http://www.xfree.org"),
                       "x free"                => array ("X-Free86 Project"                => "http://www.xfree.org"),
                       "beos"                => array ("BeOS"                        => "http://www.beos.com"),
                       "borland"        => array ("Borland"                        => "http://www.borland.com"),
                       "kylix"                => array ("Kylix HomePage"                => "http://www.borland.com/kylix"),
                       "amazon"                => array ("Amazon.com"                        => "http://www.amazon.com")
                       );

Die kann ich doch nicht alle einfach löschen... oder???[Bearbeitet am: 3/4/2002 von Deepsky]

drag77

ichh hab die alle auskomentiert und es geht ... die brauchst ja eh nicht oder? Also ich brauchs auf meiner seite nicht ...

Andi

ZitatSTOPP, bei mir haut es nicht hin... .........
Die kann ich doch nicht alle einfach löschen... oder???[Bearbeitet am: 3/4/2002 von Deepsky]

 :D warum denn nicht?
schön´s Grüssle, Andi

DarkBoy

Hi
 er hat falsch auskommentiert :)  so wie es oben angegeben auskommentiert wurde muss es einen Fehler schmeissen !

drag77

bei mir siet es so aus:

/* $boxtitle = ""._RELATED.""; /*
/* $boxstuff = "<font class=\"content\">"; /*

/* This is a list for automatic related links on article internal page */
/* For this I used a multi-dimensional array so we can show the links titles */
/* as we want, doesn't matter the case of the string in the article. You can */
/* add or remove links from this array as you wish to fit your needs */

/* $relatedarray = array ("gpl"       => array ("GPL"          => "http://www.gnu.org"),
                       "linux"       => array ("Linux.com"          => "http://www.linux.com"),
             "blender"   => array ("Blender"          => "http://www.blender.nl"),
             "gnu"      => array ("GNU Project"         => "http://www.gnu.org"),
             "gimp"      => array ("The GIMP"         => "http://www.gimp.org"),
             "cnn"      => array ("CNN.com"         => "http://www.cnn.com"),
             "news.com"   => array ("News.com"         => "http://www.news.com"),
             "ibm"      => array ("IBM"            => "http://www.ibm.com"),
             "php"      => array ("PHP HomePage"      => "http://www.php.net"),
             "mandrake"   => array ("MandrakeSoft"      => "http://www.mandrakesoft.com"),
             "redhat"      => array ("Red Hat"         => "http://www.redhat.com"),
             "red hat"   => array ("Red Hat"         => "http://www.redhat.com"),
             "Debian"      => array ("Debian GNU/Linux"      => "http://www.debian.org"),
             "Slackware"   => array ("Slackware"         => "http://www.slackware.com"),
             "freebsd"   => array ("FreeBSD"         => "http://www.freebsd.org"),
             "artist"      => array ("Linux Artist"      => "http://www.linuxartist.com"),
             "games"      => array ("Linux Games"         => "http://www.linuxgames.com"),
             "sourceforge"   => array ("SourceForge"         => "http://www.sourceforge.net"),
             "source forge"   => array ("SourceForge"         => "http://www.sourceforge.net"),
             "palm pilot"   => array ("Palm Pilot"         => "http://www.palm.com"),
             "windows"   => array ("Microsoft"         => "http://www.microsoft.com"),
             "microsoft"   => array ("Microsoft"         => "http://www.microsoft.com"),
             "kernel"      => array ("Linux Kernel Archives"   => "http://www.kernel.org"),
             "opensource"   => array ("OpenSource"         => "http://www.opensource.org"),
             "open source"   => array ("OpenSource"         => "http://www.opensource.org"),
             "nuke"      => array ("PHP-Nuke"         => "http://www.phpnuke.org"),
             "compaq"      => array ("Compaq"         => "http://www.compaq.com"),
             "intel"      => array ("Intel"         => "http://www.intel.com"),
             "mysql"      => array ("MySQL Database Server"   => "http://www.mysql.com"),
             "themes"      => array ("Themes.org"         => "http://www.themes.org"),
             "suse"      => array ("SuSE"         => "http://www.suse.com"),
             "script"      => array ("HotScripts"         => "http://www.hotscripts.com"),
             "transmeta"   => array ("Transmeta"         => "http://www.transmeta.com"),
             "apple"      => array ("Apple"         => "http://www.apple.com"),
             "apache"      => array ("Apache Web Server"      => "http://www.apache.org"),
             "nasa"      => array ("NASA"         => "http://www.nasa.gov"),
             "documentation"   => array ("Linux Manuals"      => "http://www.linuxdoc.org"),
             "manual"      => array ("Linux Manuals"      => "http://www.linuxdoc.org"),
             "howto"      => array ("Linux Manuals"      => "http://www.linuxdoc.org"),
             "rtfm"      => array ("Linux Manuals"      => "http://www.linuxdoc.org"),
             "dell"      => array ("Dell"         => "http://www.dell.com"),
             "google"      => array ("Google Search Engine"   => "http://www.google.com"),
             "translat"   => array ("Babelfish Translator"   => "http://babelfish.altavista.com"),
             "w3"      => array ("W3 Consortium"      => "http://www.w3.org"),
             "css"      => array ("CSS Standard"      => "http://www.w3.org/Style/CSS"),
             " html"      => array ("HTML Standard"      => "http://www.w3.org/MarkUp"),
             "xhmtl"      => array ("XHTML Standard"      => "http://www.w3.org/MarkUp"),
             "rpm"      => array ("RPM"            => "http://www.rpm.org"),
             "3com"      => array ("3Com"         => "http://www.3com.com"),
             "sun microsyste" => array ("Sun Microsystems"      => "http://www.sun.com"),
             "staroffice"    => array ("Star Office"         => "http://www.sun.com"),
             "star office"    => array ("Star Office"         => "http://www.sun.com"),
             "openoffice"    => array ("Open Office"         => "http://www.openoffice.org"),
             "open office"    => array ("Open Office"         => "http://www.openoffice.org"),
             "oracle"      => array ("Oracle"         => "http://www.oracle.com"),
             "informix"   => array ("Informix"         => "http://www.informix.com"),
             "postgre"   => array ("PostgreSQL"         => "http://www.postgresql.org"),
             "mp3"      => array ("MP3.com"         => "http://www.mp3.com"),
             "gnome"      => array ("GNOME"         => "http://www.gnome.org"),
             "kde"      => array ("KDE"            => "http://www.kde.org"),
             "mozilla"   => array ("Mozilla"         => "http://www.mozilla.org"),
             "netscape"   => array ("Netscape"         => "http://www.netscape.com"),
             "corel"      => array ("Corel"         => "http://www.corel.com"),
             " hp"      => array ("Hewlett Packard"      => "http://www.hp.com"),
             "hewlett packar" => array ("Hewlett Packard"      => "http://www.hp.com"),
             "caldera"   => array ("Caldera Systems"      => "http://www.caldera.com"),
             "freshmeat"   => array ("Freshmeat"         => "http://www.freshmeat.net"),
             "slashdot"   => array ("Slashdot"         => "http://www.slashdot.org"),
             "spam"      => array ("Spam Cop"         => "http://www.spamcop.net"),
             "aol"      => array ("America Online"      => "http://www.aol.com"),
             "america online"   => array ("America Online"      => "http://www.aol.com"),
             "pov-ray"   => array ("POV Ray"         => "http://www.povray.org"),
             "povray"      => array ("POV Ray"         => "http://www.povray.org"),
             "pov ray"   => array ("POV Ray"         => "http://www.povray.org"),
             "seti"      => array ("SETI Institute"      => "http://www.seti.org"),
             "cnet"      => array ("C|Net News"         => "http://www.cnet.com"),
             "zdnet"      => array ("ZDNet News"         => "http://www.zdnet.com"),
             "napster"   => array ("Napster"         => "http://www.napster.com"),
             "sony"      => array ("Sony HomePage"      => "http://www.sony.com"),
             "xfree"      => array ("X-Free86 Project"      => "http://www.xfree.org"),
             "x-free"      => array ("X-Free86 Project"      => "http://www.xfree.org"),
             "x free"      => array ("X-Free86 Project"      => "http://www.xfree.org"),
             "beos"      => array ("BeOS"         => "http://www.beos.com"),
             "borland"   => array ("Borland"         => "http://www.borland.com"),
             "kylix"      => array ("Kylix HomePage"      => "http://www.borland.com/kylix"),
             "amazon"      => array ("Amazon.com"         => "http://www.amazon.com")
             ); */

/* while (list ($key) = each ($relatedarray)) {
    $relarr = eregi($key, $bodytext);
    if ($relarr) {
        list($rep, $val) = each ($relatedarray[$key]);
        $boxstuff .= "<strong><big>·</big></strong> <a href=\"$val\" target=\"new\">$rep</a><br>\n";
    }
}
*/

/* Multi-dimensional array end here */

delabona

Habe mal gehört, dass es für dieses Problem einen verwandte Links Manager geben soll... Wollte mir diesen schon mal runterladen! Einfach mal auf www.kritikerseiten.de danach suchen!!