PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : [Release v2.0.1] LastTitleHack


Afterburner
15.07.2001, 22:44
Deutsch:

Dieser Hack zeigt in der Spalte Letzter Beitrag unter dem Datum und den Usernamen des letzten Posters auch den Titel des Topics an.

um euch den hack anzusehen klickt hier:

www.the-afterburner.de

English:

This hack shows in the row 'last post' on the mainpage below the date and the username of the last posting also the title of the last posting.

to see the hack in action click here:

www.the-afterburner.de

The_Sisko
15.07.2001, 23:50
Wie sieht es aus mit privaten Foren, die aber sichtbar sind? Werden dort die Titel auch angezeigt? ICh gebe zu, ich habe noch nicht in Deinen Code geschaut!

Afterburner
16.07.2001, 00:02
kommt drauf an wie du es einstellst.
Du kannst für jedes Board selbst entscheiden ob es angezeigt werden soll.
Nach der Installation sind erst mal alle Boards (die neue Funktion) eingeschaltet, wenn Du es bei einem nicht magst dann kannst du es dort ausstellen.

The_Sisko
16.07.2001, 13:15
OK, das hört sich gut und vernüpftig an! Ich werde es mal auf meinem Test Board probieren!

Afterburner
16.07.2001, 13:42
sorry I forgot a little bit, I think it was to late yesterday.


If you have already installed this hack and nothing is shown on the manpage please download the hack again or follow this instructions:


download the 'newthread.php' into ASCII Mode and backup this file.


look for this code (ca. line 230):


// update forum stuff
if ($visible==1) {
$DB_site->query('UPDATE forum SET replycount=replycount+1,threadcount=threadcount+1,lastpost=''.time().'',lastposter=''.addslashes($po stusername).'' WHERE forumid IN ($foruminfo[parentlist])');
}


replace it with:


// update forum stuff
if ($visible==1) {
$DB_site->query('UPDATE forum SET replycount=replycount+1,threadcount=threadcount+1,lastpost=''.time().'',lastposter=''.addslashes($po stusername).'', lasttitle=''.addslashes(htmlspecialchars($subject)).'' WHERE forumid IN ($foruminfo[parentlist])');
}


save the 'newthread.php' and upload it into ASCII Mode.


download the 'newreply.php' into ASCII Mode and backup this file.


look for this code (ca. line 278):


// update forum stuff
if ($visible==1) {
$DB_site->query('UPDATE forum SET replycount=replycount+1,lastpost=''.time().'',lastposter=''.addslashes($postusername).'' WHERE forumid IN ($foruminfo[parentlist])');
}


replace it with:


// update forum stuff neuster beitrag auf der startseite
if ($visible==1) {
$DB_site->query('UPDATE forum SET replycount=replycount+1,lastpost=''.time().'',lastposter=''.addslashes($postusername).'', lasttitle=''.addslashes(htmlspecialchars($threadinfo[title])).'' WHERE forumid IN ($foruminfo[parentlist])');
}


save the 'newreply.php' and upload it into ASCII Mode.

s.molinari
16.07.2001, 20:35
Hallo Afterburner,

Danke für die Aktuelle Infos, aber dieses Board ist an Deutsch sprechende Benutzer gezielt. Kannst Du vielleicht deinen Beitrag übersetzen?

Vielleicht war es wirklich zu spät?;)

Afterburner
16.07.2001, 22:16
hier das deutesche:

ich vergaß etwas code in dem hack
wenn du den hack schon installiert hast dann lade ihn neu runter oder folge diesen Schritten:


lade die 'newthread.php' im ASCII Mode runter und sichere die datei.


suche diesen code (ca. zeile 230):


// update forum stuff
if ($visible==1) {
$DB_site->query('UPDATE forum SET replycount=replycount+1,threadcount=threadcount+1,lastpost=''.time().'',lastposter=''.addslashes($po stusername).'' WHERE forumid IN ($foruminfo[parentlist])');
}


ersetze ihn durch:


// update forum stuff
if ($visible==1) {
$DB_site->query('UPDATE forum SET replycount=replycount+1,threadcount=threadcount+1,lastpost=''.time().'',lastposter=''.addslashes($po stusername).'', lasttitle=''.addslashes(htmlspecialchars($subject)).'' WHERE forumid IN ($foruminfo[parentlist])');
}


speicher die 'newthread.php' und lade sie wieder im ASCII Mode hoch.


lade die 'newreply.php' im ASCII Mode runter und sicher die datei.


suche diesen code (ca. zeile 278):


// update forum stuff
if ($visible==1) {
$DB_site->query('UPDATE forum SET replycount=replycount+1,lastpost=''.time().'',lastposter=''.addslashes($postusername).'' WHERE forumid IN ($foruminfo[parentlist])');
}


ersetze ihn durch:


// update forum stuff neuster beitrag auf der startseite
if ($visible==1) {
$DB_site->query('UPDATE forum SET replycount=replycount+1,lastpost=''.time().'',lastposter=''.addslashes($postusername).'', lasttitle=''.addslashes(htmlspecialchars($threadinfo[title])).'' WHERE forumid IN ($foruminfo[parentlist])');
}


speicher die 'newreply.php' und lade sie wieder im ASCII Mode hoch.