Fehler bei Auswahl eines News Topics

Begonnen von Darijo, 14 Mai 2002, 17:23:26

⏪ vorheriges - nächstes ⏩

0 Mitglieder und 1 Gast betrachten dieses Thema.

Darijo

Hallo leute ich habe auf meiner Startseite den News Block.
Wenn ich eines der Themen (gif) anklicke läuft es in leere.
FM:
http://www.ostojic.de/search.php?query=&topic=3

kann mir jemand sagen wie und wo der Link angepasst werden muss.

Danke euch...

Darijo

Sorry ich meine nicht FM, sondern der link ist falsch. Also wie muss der Link lauten ? und wo muss ich ändern.

THX

Robert1968


Darijo

meine Module isdn alle aktiv...
Ich habe aber Blöcke deaktiviert, kann es daran liegen. bzw. welcher muss den Aktiv sein

Darijo

Ach kommt schon...sagt doch mal
wie mache ich es habe eigentlich alles aktiviert ohne Erfolg :(

Andi

Hi Darijo,

denke Du meinst mit dem Newsblock, den Artikel "123" oder?

Der tote Link zur search.php kommt von Deinem verwendeten Theme. Das Theme ist noch nicht vollständig an nuke 5.5 angeglichen ;)

Poste mal die function "themearticle(....)" aus Deinem Themefile und wir schauen mal nach, was da geändert werden muss ;)
schön´s Grüssle, Andi

Darijo

Du meinst doch die Date theme.php aus meinem aktuellem Theme, Oder  :quest , hoffentlich...

Also bitte schön der code:
Ich habe es bereits einmal von euch überarbeitet bekommen, ich habe dann nur die Farben abgeändert

<?php

/************************************************************/
/* Ported Theme Name: $thename (v1.0)                       */
/* Original Theme Name: FungKu (v1.0)                       */
/* Copyright (c) 2001 Somara Sem (http://www.somara.com)    */
/* Last Updated: 09/21/2001 by dezina.com                   */
/************************************************************/
/****************************************************************/
/* THEME NAME: Cirrus_Aqua                                      */
/* THEME VKP5.5: fsz-dESIGN (http://www.fsz-design.de)          */
/* fixed Article ERROR maaX DESIGN (http://www.maax-design.e)   */
/****************************************************************/
global $thename;
$thename = basename(dirname(__FILE__));
$thename = "MF_vkp55_Cirrus_Aqua";
$bgcolor1 = "#efefef";
$bgcolor2 = "#A2CCEE";
$bgcolor3 = "#efefef";
$bgcolor4 = "#A2CCEE";
$textcolor1 = "#000000";
$textcolor2 = "#000000";
function OpenTable() {
    global $bgcolor1, $bgcolor2;
    echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\"><tr><td>\n";
    echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}
function CloseTable() {
    echo "</td></tr></table></td></tr></table>\n";
}
function OpenTable2() {
    global $bgcolor1, $bgcolor2;
    echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\" align=\"center\"><tr><td>\n";
    echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}

function CloseTable2() {
    echo "</td></tr></table></td></tr></table>\n";
}
function FormatStory($thetext, $notes, $aid, $informant) {
    global $anonymous, $dbi, $thename;
    if ($notes != "") {
   $notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
    } else {
   $notes = "";
    }
    if ("$aid" == "$informant") {
   echo "<font class=\"content\" color=\"#505050\">$thetext$notes</font>\n";
    } else {
   if($informant != "") {
       $boxstuff = "<a href=\"user.php?op=userinfo&uname=$informant\">$informant</a> ";
   } else {
       $boxstuff = "$anonymous ";
   }
   $boxstuff .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
   echo "<font class=\"content\" color=\"#505050\">$boxstuff</font>\n";
    }
}

function themeheader() {
    global $user, $banners, $sitename, $slogan, $cookie, $prefix, $admin, $dbi, $thename;
    cookiedecode($user);
    $username = $cookie[1];
    if ($username == "") {
        $username = "Anonymous";
    }
   # so sollte es funktionieren: wechsele Background.gif gegen deim .gif aus
   
   echo "<body bgcolor=\"#C0C0C0\" background=\"themes/MF_vkp55_Cirrus_Aqua/images/Background.gif\" text=\"#000000\" link=\"#363636\" vlink=\"#363636\" alink=\"#d5ae83\">\n"
   ."<br>\n";
    echo "<body bgcolor=\"#FFFFFF\" text=\"#000000\" link=\"#363636\" vlink=\"#363636\" alink=\"#d5ae83\">\n"
   ."\n";
   if (is_admin($admin)) {        
        echo "<td align=\"center\" bgcolor=\"#CACACA\" colspan=\"4\"><center><br><a href=\"admin.php\">Admin</a>\n";
                          $res=sql_query("select * from $prefix"._queue."", $dbi);
           $num = sql_num_rows($res, $dbi);
           echo " | <a href=\"admin.php?op=submissions\">News: $num</a>\n";           
           $res=sql_query("select * from $prefix"._links_newlink."", $dbi);
           $num = sql_num_rows($res, $dbi);
           echo " | <a href=\"admin.php?op=Links\">Links: $num</a>\n";           
           $res=sql_query("select * from $prefix"._downloads_newdownload."", $dbi);
           $num = sql_num_rows($res, $dbi);
           echo " | <a href=\"admin.php?op=downloads\">Downloads: $num</a>\n";           
           $res=sql_query("select * from $prefix"._gallery_pictures_newpicture."", $dbi);
           $num = sql_num_rows($res, $dbi);
           echo " | <a href=\"admin.php?op=GallAdmin\">Bilder: $num</a>\n";           
           $res=sql_query("select * from $prefix"._events_queue."", $dbi);
           $num = sql_num_rows($res, $dbi);
           echo " | <a href=\"admin.php?op=CalendarAdmin\">Termine: $num</a>\n";           
           $res=sql_query("select * from $prefix"._reviews_add."", $dbi);
           $num = sql_num_rows($res, $dbi);
           echo " | <a href=\"admin.php?op=reviews\">Tests: $num</a>\n";           
           $res=sql_query("select * from $prefix"._nukebook_queue."", $dbi);
           $num = sql_num_rows($res, $dbi);
           echo " | <a href=\"admin.php?op=NukebookAdmin\">Gästebuch: $num</a>\n";
                          echo " | <a href=\"admin.php?op=who\">Online</a>\n";
           echo " | <a href=\"admin.php?op=hreferer\">Referer</a>\n";
           echo " | <a href=\"admin.php?op=logout\">Logout</a>\n\n";
           echo "</font></td>";
       } else {
       echo "";
    }
    echo "\n"
   ."<table cellpadding=\"0\" cellspacing=\"0\" width=\"800\" border=\"0\" align=\"center\" bgcolor=\"#ffffff\">\n"
   ."<tr>\n"
   ."<td bgcolor=\"#3366CC\" width=\"400\">\n"
   ."<td width=\"74\" height=\"19\" bgcolor=\"#ffffff\" align=\"right\" valign=\"bottom\">\n"
   ."<a href=\"index.php\"><img src=\"themes/$thename/images/home.gif\" width=\"74\" height=\"19\" border=\"0\" alt=\"home\"></a></td>\n"
   ."<td width=\"73\" height=\"19\" bgcolor=\"#ffffff\" align=\"right\" valign=\"bottom\">\n"
   ."<a href=\"modules.php?name=Topics\"><img src=\"themes/$thename/images/topics.gif\" width=\"73\" height=\"19\" border=\"0\" alt=\"topics\"></a></td>\n"
   ."<td width=\"74\" height=\"19\" bgcolor=\"#ffffff\" align=\"right\" valign=\"bottom\">\n"
   ."<a href=\"modules.php?name=Downloads\"><img src=\"themes/$thename/images/downloads.gif\" width=\"74\" height=\"19\" border=\"0\" alt=\"downloads\"></a></td>\n"
   ."<td width=\"74\" height=\"19\" bgcolor=\"#ffffff\" align=\"right\" valign=\"bottom\">\n"
   ."<a href=\"modules.php?name=Your_Account\"><img src=\"themes/$thename/images/your_account.gif\" width=\"74\" height=\"19\" border=\"0\" alt=\"your account\"></a></td>\n"
   ."<td width=\"75\" height=\"19\" bgcolor=\"#ffffff\" align=\"right\" valign=\"bottom\">\n"
   ."<a href=\"modules.php?name=Submit_News\"><img src=\"themes/$thename/images/submit_news.gif\" width=\"75\" height=\"19\" border=\"0\" alt=\"submit news\"></a></td>\n"
   ."<td width=\"74\" height=\"19\" bgcolor=\"#ffffff\" align=\"right\" valign=\"bottom\">\n"
   ."<a href=\"modules.php?name=Top\"><img src=\"themes/$thename/images/top_ten.gif\" width=\"74\" height=\"19\" border=\"0\" alt=\"top ten\"></a></td>\n"
   ."</tr>\n"
   ."</table>\n"
   ."<table cellpadding=\"0\" cellspacing=\"0\" width=\"800\" border=\"0\" align=\"center\" bgcolor=\"#ffffff\">\n"
   ."<tr>\n"
   ."<td bgcolor=\"#3366CC\">\n"
   ."</table>\n"
   ."<table cellpadding=\"0\" cellspacing=\"0\" width=\"800\" border=\"0\" align=\"center\" bgcolor=\"#ffffff\">\n"
   ."<tr valign=\"middle\">\n"
   ."<td width=\"400\" bgcolor=\"#3366CC\" align=\"left\">\n"
        ."<a href=\"index.php\"><img src=\"themes/$thename/images/logo.gif\" align=\"left\" alt=\""._WELCOMETO." $sitename\" border=\"0\"></a></td>\n"
        ."</td>\n"
   ."<td bgcolor=\"#3366CC\" align=\"center\">\n"
   ."<form action=\"modules.php?name=Search\" method=\"post\"><font class=\"content\" color=\"#990000\"><b>"._SEARCH." </b>\n"
   ."<input type=\"text\" name=\"query\" size=\"14\"></font></form></td>\n"
   ."<td bgcolor=\"#3366CC\" align=\"center\">\n"
   ."<form action=\"modules.php?name=Search\" method=\"post\"><font size=\"2\"><b>"._TOPICS." </b>\n";
   $toplist = sql_query("select topicid, topictext from $prefix"._topics." order by topictext", $dbi);
    echo "<select name=\"topic\"onChange='submit()'>\n"
   ."<option value=\"\">"._ALLTOPICS."</option>\n";
    while(list($topicid, $topics) = sql_fetch_row($toplist, $dbi)) {
    if ($topicid==$topic) { $sel = "selected "; }
   echo "<option $sel value=\"$topicid\">$topics</option>\n";
   $sel = "";
    }
    echo "</select></font></form></td>\n"
   ."</tr></table>\n"
   ."<table cellpadding=\"0\" cellspacing=\"0\" width=\"800\" border=\"0\" align=\"center\" bgcolor=\"#fefefe\">\n"
   ."<tr>\n"
   ."<td bgcolor=\"#000000\" colspan=\"4\"><IMG src=\"themes/$thename/images/pixel.gif\" width=\"1\" height=1 alt=\"\" border=\"0\" hspace=\"0\"></td>\n"
   ."</tr>\n"
   ."<tr valign=\"middle\" bgcolor=\"#A2CCEE\">\n"
   ."<td width=\"15%\" nowrap><font class=\"content\" color=\"#363636\">\n";
    if ($username == "Anonymous") {
   echo "  <font color=\"#363636\"><a href=\"modules.php?name=Your_Account\">Create</a></font> an account\n";
    } else {
   echo "  Welcome $username!   <a href=\"modules.php?name=Your_Account&op=logout\">logout</a>";
    }
    echo "</font></td>\n"
   ."<td align=\"center\" height=\"20\" width=\"60%\"><font class=\"content\">\n"
        ." \n"
        ."</td>\n"
        ."<td align=\"right\" width=\"25%\"><font class=\"content\">\n"
        ."<script type=\"text/javascript\">\n\n"
   ."var now = new Date();\n"
        ."<!--   // Array ofmonth Names\n"
        ."var monthNames = new Array( \""._JANUARY."\",\""._FEBRUARY."\",\""._MARCH."\",\""._APRIL."\",\""._MAY."\",\""._JUNE."\",\""._JULY."\",\""._AUGUST."\",\""._SEPTEMBER."\",\""._OCTOBER."\",\""._NOVEMBER."\",\""._DECEMBER."\");\n"
        ."thisYear = now.getYear();\n"
        ."if(thisYear < 1800) {thisYear += 1800}; // corrections if Y2K display problem\n"
        ."document.write(now.getDate() + \". \" + monthNames[now.getMonth()] + \" \" + thisYear);\n"
        ."// -->\n\n"                        
        ."</script></b></font></td>\n"
        ."<td> </td>\n"
        ."</tr>\n"
        ."<tr>\n"
        ."<td bgcolor=\"#000000\" colspan=\"4\"><IMG src=\"themes/$thename/images/pixel.gif\" width=\"1\" height=\"1\" alt=\"\" border=\"0\" hspace=\"0\"></td>\n"
        ."</tr>\n"
        ."</table>\n"
   ."<!-- FIN DEL TITULO -->\n"
   ."<table width=\"800\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"#ffffff\" align=\"center\">\n"
   ."<tr valign=\"top\">\n"
   ."<td bgcolor=\"#3366CC\"><img src=\"themes/$thename/images/pixel.gif\" width=\"1\" height=\"3\" border=\"0\" alt=\"\"></td>\n"
   ."</tr>\n"
   ."<tr valign=\"top\">\n"
   ."<td bgcolor=\"#ffffff\"><img src=\"themes/$thename/images/pixel.gif\" width=\"1\" height=\"5\" border=\"0\" alt=\"\"></td>\n"
   ."</tr>\n"
   ."</table>\n"
   ."<table width=\"800\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"#ffffff\" align=\"center\"><tr valign=\"top\">\n"
   ."<td bgcolor=\"#B8D4EF\" width=\"150\" valign=\"top\">\n";
    blocks(left);
    echo "</td><td><img src=\"themes/$thename/images/pixel.gif\" width=\"15\" height=\"1\" border=\"0\" alt=\"\"></td><td width=\"100%\">\n";
         include ("themes/$thename/cblock.php");
}
function themefooter() {
    global $index, $dbi, $thename;
    if ($index == 1) {
   echo "</td><td><img src=\"themes/$thename/images/pixel.gif\" width=\"15\" height=\"1\" border=\"0\" alt=\"\"></td><td valign=\"top\" width=\"150\" bgcolor=\"#B8D4EF\">\n";
   blocks(right);
    }
    echo "</td>\n"
   ."</tr></table>\n"
        ."<table bgcolor=\"#000000\" width=\"800\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\">\n"
        ."<tr>\n"
        ."<td width=\"800\" height=\"5\"><img src=\"themes/$thename/images/bottombar.gif\" width=\"800\" height=\"5\" border=\"0\" alt=\"\"></td>\n"
        ."</tr>\n"
        ."<tr>\n"
        ."<td width=\"100%\"><img src=\"themes/$thename/images/pixel.gif\" width=\"1\" height=\"1\" border=\"0\" alt=\"\"></td>\n"
        ."</tr>\n"
        ."</table>\n"
        ."<br>\n"
        ."<br>\n"
        ."<table width=\"800\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\">\n"
        ."<tr align=\"center\">\n"
        ."<td width=\"100%\" colspan=\"3\">\n";
        global $prefix, $bannersfsz, $index;
   if ($bannersfsz) {
   include("bannersfsz.php");
    }
         include ("themes/$thename/disc.php");
    footmsg();
    echo "</td>\n"
        ."</tr>\n"
        ."</table>\n";
}
function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
    global $anonymous, $tipath, $dbi, $thename;
    echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#ffffff\" width=\"100%\"><tr><td>\n"
   ."<table border=\"0\" cellpadding=\"1\" cellspacing=\"0\" bgcolor=\"#000000\" width=\"100%\"><tr><td>\n"
   ."<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" bgcolor=\"#3366CC\" width=\"100%\"><tr><td align=\"left\">\n"
   ."<font class=\"option\" color=\"#363636\"><b>$title</b></font>\n"
   ."</td></tr></table></td></tr></table>\n"
   ."<font color=\"#999999\"><b><a href=\"search.php?query=&topic=$topic\"><img src=\"$tipath$topicimage\" border=\"0\" Alt=\"$topictext\" align=\"right\" hspace=\"10\" vspace=\"10\"></a></B></font>\n";
    FormatStory($thetext, $notes, $aid, $informant);
    echo "</td></tr></table><br>\n"
   ."<table border=\"0\" cellpadding=\"1\" cellspacing=\"0\" bgcolor=\"#eeeeee\" width=\"100%\"><tr><td>\n"
   ."<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" bgcolor=\"#ffffff\" width=\"100%\"><tr><td align=\"center\">\n"
   ."<font color=\"#999999\" size=\"1\">"._POSTEDBY." ";
    formatAidHeader($aid);
    echo " "._ON." $time $timezone ($counter "._READS.")<br></font>\n"
   ."<font class=\"content\">$morelink</font>\n"
   ."</td></tr></table></td></tr></table>\n"
   ."<br>\n\n\n";
}
function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
    global $admin, $sid, $tipath, $dbi, $thename;
    echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#ffffff\" width=\"100%\"><tr><td>\n"
        ."<table border=\"0\" cellpadding=\"1\" cellspacing=\"0\" bgcolor=\"#000000\" width=\"100%\"><tr><td>\n"
        ."<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" bgcolor=\"#A2CCEE\" width=\"100%\"><tr><td align=\"left\">\n"
        ."<font class=\"option\" color=\"#363636\"><b>$title</b></font><br>\n"
        ."<font class=\"content\">"._POSTEDON." $datetime "._BY." ";
    formatAidHeader($aid);
    if (is_admin($admin)) {
   echo "<br>[ <a href=\"admin.php?op=EditStory&sid=$sid\">"._EDIT."</a> | <a href=\"admin.php?op=RemoveStory&sid=$sid\">"._DELETE."</a> ]\n";
    }
    echo "</td></tr></table></td></tr></table><br>";
    echo "<a href=\"search.php?query=&topic=$topic\"><img src=\"$tipath$topicimage\" border=\"0\" Alt=\"$topictext\" align=\"right\" hspace=\"10\" vspace=\"10\"></a>\n";
    FormatStory($thetext, $notes="", $aid, $informant);
    echo "</td></tr></table><br>\n\n\n";
}
function themesidebox($title, $content) {
    echo "<table border=\"0\" cellpadding=\"1\" cellspacing=\"0\" bgcolor=\"#000000\" width=\"150\"><tr><td>\n"
   ."<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" bgcolor=\"#3366CC\" width=\"100%\"><tr><td align=left>\n"
   ."<font class=\"content\" color=\"#363636\"><b>$title</b></font>\n"
   ."</td></tr></table></td></tr></table>\n"
   ."<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" width=\"150\">\n"
   ."<tr valign=\"top\"><td>\n"
   ."$content\n"
   ."</td></tr></table>\n"
   ."<br>\n\n\n";
}
?>



Darijo

Ach PS unetr dem Posting steht noch geschriben...
Geschrieben von Darijo am Dienstag, 14.Mai. @ 21:01:26 CEST (0 mal gelesen)
(Kommentare? | Punkte: 0)

Wenn ich jetzt Darijo anklicke kommt auch eine leere Seite und der Link ist :http:///

Andi

 :cry uups  :puzz

Hi Darijo,
die funktion themearticle() häte gereicht!

Ersetze den String:
Zitat<a href=\"search.php?query=&topic=$topic\">
durch:
 
Zitat<a href=\"modules.php?name=Search?query=&topic=$topic\">

Dass der Link funktioniert, musst Du in Deinem Adminprofil eine Webadresse angeben ;)
schön´s Grüssle, Andi