m du hast doch ne RSS feed
http://www.boatnews.eu/include.php?path=rssfeeds
da sollte man auch mehr einstellen können.
http://www.boatnews.eu/include.php?path=rssfeeds
da sollte man auch mehr einstellen können.
ist gerade angekommen
Schlagt mich nicht das ich dieses uralt Thema wieder hoch hole aber wollt für meine Frage jetzt nicht extra ein neues Thema aufmachen. Vermutlich beschäftigt sich sowieso niemand mehr mit dem Hack.
Ich nutze den RSS Feed von rEd1Z1_2k in einem PHP Kit 1.6.1
Läuft auch prima, einziges Problem - bei den Foren Feeds werden Themen angezeigt die in nem internen Forum liegen und nicht für die öffentlichkeit bestimmt sind. Klickt man auf den Link kommt zwar das "betreten Verboten Schild" vom PHP Kit aber mir wärs ganz lieb wenn der Link und Themenname garnicht im Feed auftaucht.
Gibts ne Möglichkeit das Script so umzuändern das bestimmte Unterforen IDs ausgeschlossen werden können bzw. Themen die nur für Mod/Admin sichtbar sind vom Feed auszuschließen ?
Gruß
Ich nutze den RSS Feed von rEd1Z1_2k in einem PHP Kit 1.6.1
Läuft auch prima, einziges Problem - bei den Foren Feeds werden Themen angezeigt die in nem internen Forum liegen und nicht für die öffentlichkeit bestimmt sind. Klickt man auf den Link kommt zwar das "betreten Verboten Schild" vom PHP Kit aber mir wärs ganz lieb wenn der Link und Themenname garnicht im Feed auftaucht.
Gibts ne Möglichkeit das Script so umzuändern das bestimmte Unterforen IDs ausgeschlossen werden können bzw. Themen die nur für Mod/Admin sichtbar sind vom Feed auszuschließen ?
Gruß
ich habe jetzt nur wage in erinnerung wie das script aufgegebaut war.
gleiche doch in der SQL abfrage den notwendigen userstatus ab, da dieser ja ebenfals in jeder kategorie gespeichert ist.
ich meine die angaben der lese und schreibrechte. sag der sql abfrage einfach das sie alles mit dem lesestatus gast (guest) auslesen soll.
gleiche doch in der SQL abfrage den notwendigen userstatus ab, da dieser ja ebenfals in jeder kategorie gespeichert ist.
ich meine die angaben der lese und schreibrechte. sag der sql abfrage einfach das sie alles mit dem lesestatus gast (guest) auslesen soll.
ist gerade angekommen
Hi Bullet,
hm
danke erstmal für die Antwort.
Also nochmal langsam,
der betreffende Part aus der rssfeed.php wäre ja dieser hier
ich würde mir jetzt (weil ich kaum Ahnung hab) also die forum/main.php nehmen
Wo steht da die betreffende Codezeile, kannst du mir das vllt sagen ?
hm
danke erstmal für die Antwort.
Also nochmal langsam,
der betreffende Part aus der rssfeed.php wäre ja dieser hier
|
|
PHP-Quelltext |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
// die neuesten board einträge
if($_GET['section'] == 'board' OR empty($_GET['section'])) {
$result = $DB->query("SELECT forumthread_id, forumthread_title, forumthread_lastreply_time,forumthread_lastreply_autor FROM ".$db_tab['forumthread']." ORDER by forumthread_lastreply_time DESC LIMIT ".$lines."");
while($row = $DB->fetch_array($result)){
$itemtitle = $row['forumthread_title'];
$itemLink = $config['site_url']."/include.php?path=forum/showthread.php&threadid=".$row['forumthread_id'];
$itemtime = date("D, d M Y H:i", $row['forumthread_lastreply_time']);
echo "<item>\n";
echo "<title><![CDATA[".$itemtitle."]]></title>\n";
echo "<link>".$itemLink."</link>\n";
echo "<pubDate>".$itemtime."</pubDate>\n";
echo "<author><![CDATA[".$row['forumthread_lastreply_autor']."]]></author>\n";
echo "</item>\n";
}
}
|
ich würde mir jetzt (weil ich kaum Ahnung hab) also die forum/main.php nehmen
|
|
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 |
<?php
$path='forum/main.php';
include("forum/kopf.php");
if (is_array($forumcat_cache)) {
unset($sqlcommand);
foreach($forumcat_cache as $forumcat) {
if ($sqlcommand) $sqlcommand.=" OR forumthread_id='".$forumcat['forumcat_lastreply_threadid']."'";
else $sqlcommand="SELECT * FROM ".$db_tab['forumthread']." WHERE forumthread_id='".$forumcat['forumcat_lastreply_threadid']."'";
}
if ($sqlcommand) {
$getforumthread=$DB->query($sqlcommand);
while($forumthread=$DB->fetch_array($getforumthread)) {$forumthread_cache[$forumthread['forumthread_id']]=$forumthread;}
unset($sqlcommand);
}
if (is_array($forumthread_cache)) {
foreach($forumthread_cache as $forumthread) {
if ($sqlcommand) $sqlcommand.=" OR user_id='".$forumthread['forumthread_lastreply_autorid']."'";
else $sqlcommand="SELECT user_nick, user_id FROM ".$db_tab['user']." WHERE user_id='".$forumthread['forumthread_lastreply_autorid']."'";
}
}
if ($sqlcommand) {
$getuserinfo=$DB->query($sqlcommand);
while($userinfo=$DB->fetch_array($getuserinfo)) {$userinfo_cache[$userinfo['user_id']]=$userinfo;}
}
foreach($forumcat_cache as $forumcat) {
if ($forumcat['forumcat_subcat']=="0") {
// if ($forumcat['forumcat_option']==2) {include ("forum/inc.subcat2.php");}
// elseif ($forumcat['forumcat_option']==1) {include ("forum/inc.subcat.php");}
if (getrights($forumcat[forumcat_rrights])=="true" || userrights($forumcat['forumcat_mods'],$forumcat['forumcat_rrights'])=="true" || userrights($forumcat['forumcat_user'],$forumcat['forumcat_rrights'])=="true" || $subcat_row!='') {
if ($forumcat['forumcat_status']==1) {
if ($forumcat['forumcat_lastreply_time']>$posttime && $posttime>0 && $isreaded_cat_id[$forumcat['forumcat_id']]<=$forumcat['forumcat_lastreply_time']) {
$cat_icon="catnew";
$cat_icon_alt=$lang['open'];
}
else {
$isreaded_cat_id[$forumcat['forumsubcat_id']]=time();;
$cat_icon="catopen";
$cat_icon_alt=$lang['open'];
}
}
else {
$cat_icon="catclose";
$cat_icon_alt=$lang['closed'];
}
if ($forumcat['forumcat_description_show']==1) {
$cat_description=stripslashes($forumcat['forumcat_description']);
eval ("\$cat_description= \"".getTemplate("forum/main_row_description")."\";");
}
$threads=$forumcat['forumcat_threadcount'];
$postings=$forumcat['forumcat_postcount'];
if (!$forumcat['forumcat_lastreply_threadid'] || $forumthread_cache[$forumcat['forumcat_lastreply_threadid']]==0) {
eval ("\$cat_reply_info= \"".getTemplate("forum/main_thread_empty")."\";");
}
else {
$forumthread=$forumthread_cache[$forumcat['forumcat_lastreply_threadid']];
$userinfo=$userinfo_cache[$forumthread['forumthread_lastreply_autorid']];
$forumthread_title=cutstring($forumthread['forumthread_title'],$config['forum_threadtitle_cut']);
$forumthread_time=formattime($forumthread['forumthread_lastreply_time']);
if ($forumthread['forumthread_lastreply_autorid']>0 && $userinfo['user_nick']!='') {
$forumthread_autor=cutstring($userinfo['user_nick'],$config['forum_threadautor_cut']);
eval ("\$forumthread_autor= \"".getTemplate("forum/main_row_autor")."\";");
}
else {
$forumthread_autor=cutstring($forumthread['forumthread_lastreply_autor'],$config['forum_threadautor_cut']);
eval ("\$forumthread_autor= \"".getTemplate("forum/main_row_guestautor")."\";");
}
eval ("\$cat_reply_info= \"".getTemplate("forum/main_thread_link")."\";");
}
if ($config['forum_showmod']==1) {
$mods=new moderators();
$cat_mod=$mods->getMods(1,$forumcat['forumcat_id']);
eval ("\$mod_col2= \"".getTemplate("forum/main_mod_col2")."\";");
}
eval ("\$main_row.= \"".getTemplate("forum/main_row")."\";");
$main_row.=$subcat_row;
unset($savecatinfo);
unset($threads);
unset($subcat_threadcount);
unset($postings);
unset($subcat_postcount);
unset($cat_description);
unset($mods);
unset($cat_mod);
unset($cat_reply);
unset ($subcat_row);
unset($cat_reply_autor);
unset($cat_reply_time);
unset($cat_reply_autor);
unset($cat_reply_thread);
unset($forumthread);
unset($forumthread_title);
unset($forumthread_time);
unset($forumthread_autor);
unset($cat_reply_info);
unset($mods);
}
}
}
}
if ($config[forum_showmod]=="1") {$mc="50"; eval ("\$mod_col= \"".getTemplate("forum/main_mod_col")."\";");}
else $mc="60";
eval ("\$site_body.= \"".getTemplate("forum/main")."\";");
include("forum/fuss.php");
?>
|
Wo steht da die betreffende Codezeile, kannst du mir das vllt sagen ?
|
|
PHP-Quelltext |
1 |
$result = $DB->query("SELECT forumthread_id, forumthread_title, forumthread_lastreply_time,forumthread_lastreply_autor FROM ".$db_tab['forumthread']." WHERE forumcat_rrights = guest ORDER by forumthread_lastreply_time DESC LIMIT ".$lines."");
|
ich habe nun in die zeile eine WHERE forumcat_rrights = guest hinzugefügt.
damit sollten ausschließlich nur cats geladen werden, die für gäste sichtbar sind.
ist gerade angekommen
Also wenn ich in der rssfeed.php
durch deinen Codeteil ersetze werden garkeine Themen mehr angezeigt.
|
|
PHP-Quelltext |
1 |
$result = $DB->query("SELECT forumthread_id, forumthread_title, forumthread_lastreply_time,forumthread_lastreply_autor FROM ".$db_tab['forumthread']." ORDER by forumthread_lastreply_time DESC LIMIT ".$lines."");
|
durch deinen Codeteil ersetze werden garkeine Themen mehr angezeigt.
Ähnliche Themen
-
alte Versionen [1.6.03|1.6.1|1.6.4] »-
RSS Feed funktioniert nach Hack Block V2 nicht mehr
(12. Februar 2008, 22:20)
-
Web | Allgemein »-
RssFeed funct nicht
(2. Januar 2008, 12:31)



