Hi Leute
hätte ne frage
kann man bei News Modul sowas einbauen was unter der news steht wie oft die Nachricht ( News ) gelesen wurde?
Ich mein es soll unter jeder news stehen wie oft es gelesen wurde kann man sowas nicht einbauen ?
Hi,
das ist im News-Modul drin. Der Block News-Maax zeigt das zum Beispiel an. Da mußt Du dir die Abfrage einbauen.
LG
Mecki
wenn ich wüsste welche code ich wohin einbauen muss würde ich ja hier nicht fragen ;D
Zitatkann man bei News Modul sowas einbauen was unter der news steht wie oft die Nachricht ( News ) gelesen wurde?
Ich mein es soll unter jeder news stehen wie oft es gelesen wurde kann man sowas nicht einbauen ?
Hi,
öhm, Du hast gefragt ob man sowas im News-Modul einbauen kann. Ich sagte, das es schon vorhanden ist. Du mußt dir die Abfrage halt in deine Theme einbauen. Ich weiß ja nicht was Du benutzt. Das sieht als Beispiel unter Funktion themeindex
(Ein Ausschnitt) so aus.
function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
global $anonymous, $tipath;
formatAidHeader($aid);
echo " "._ON." $time ($counter "._READS.")<br></font>\n"
."<font class=\"content\">$morelink</font>\n"
."</td></tr></table></td></tr></table>\n"
."<br>\n\n\n";
}
hmms sorry :)
ich benutze die theme Nice_Blue
soll ich mal die theme.php hier anhängen und kannst du mir das mal reinbauen ?? wäre echt nett
Hi BlackBoss,
ich habe mir gerade Nice_Blue bei http://nuke-theme.de/ gezogen und das Newsmodul auf der Startseite gesetzt. In dieser Version steht doch was Du haben möchtest.
Veröffentlicht von Mecki am Sonntag, 23.Januar 2005 (2 mal gelesen)
(mehr... | 8 mehr Zeichen | 0 Kommentare? | | Punkte: 0)
Hier der Code:
function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
global $anonymous, $tipath;
if ($notes != "") {
$notes = "<br><br><b>"._NOTE."</b> $notes\n";
} else {
$notes = "";
}
if ("$aid" == "$informant") {
$content = "$thetext$notes\n";
} else {
if($informant != "") {
$content = "<a href=\"modules.php?name=Your_Account&op=userinfo&uname=$informant\">$informant</a> ";
} else {
$content = "$anonymous ";
}
$content .= ""._WRITES." \"$thetext\"$notes\n";
}
$posted = ""._POSTEDBY." ";
$posted .= get_author($aid);
$posted .= " "._ON." $time $timezone ($counter "._READS.")";
$tmpl_file = "themes/Nice_Blue/story_home.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
na mecki ich wollte es so haben das gleich unter der nachricht steht "Diese Nachricht ( NEws) wurde schon "zahl" gelesen
hier ein beispiel...
also auf dem roten bereich sollte es stehen
(https://forum.pragmamx.org/proxy.php?request=http%3A%2F%2Fwww.dermanim.at%2Fnews1.JPG&hash=80ca276aa685d10f7bb6f9e41ddf2137594cf7e8)
Hmss kann mann den befehl _Reads nicht unter der nachricht angezeigt haben ?`
wie könnte der code lauten ?
Hallo !
_READS ist eine Konstante und kein Befehl.
Diese ist genauso wie die Konstante _ON im Language-File definiert.
Die Werte stehen in den 3 Variablen :
Zitat$posted .= " "._ON." $time $timezone ($counter "._READS.")";
Du wirst wohl am ehesten weiterkommen, wenn Du das Template-File bearbeitest :
Zitat$tmpl_file = "themes/Nice_Blue/story_home.html";
Hier das File :
Zitat<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td bgcolor="#333333"><img src="themes/Nice_Blue/images/pixel.gif" width="1" height="1" border="0" alt=""></td>
</tr>
<tr>
<td bgcolor="#69B4E8">
<table border="0" cellpadding="0" cellspacing="2" width="100%"><tr><td>
<font class="whitetext"><b>$title</b></font></td>
</td></tr></table>
</tr>
<tr>
<td bgcolor="#333333"><img src="themes/Nice_Blue/images/pixel.gif" width="1" height="1" border="0" alt=""></td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="4" width="100%"><tr><td>
<a href="modules.php?name=News&new_topic=$topic"><img src="$tipath$topicimage" border="0" Alt="$topictext" align="right" hspace="10" vspace="10"></a>
<font class="content">$content</font>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="#333333"><img src="themes/Nice_Blue/images/pixel.gif" width="1" height="1" border="0" alt=""></td>
</tr>
<tr>
<td align="center" bgcolor="#e6f3fb">
<font class="content">$posted</font><br>
<font class="content">$morelink</font>
</td>
</tr>
<tr>
<td bgcolor="#333333"><img src="themes/Nice_Blue/images/pixel.gif" width="1" height="1" border="0" alt=""></td>
</tr>
</table>
<br>
Zitat$posted .= " "._ON." $time $timezone ($counter "._READS.")";
Na, klingelt es ? ? ? ? ? ?
aha also ist read kein befehl sondern ein konstante :)
langsam check ich es :)