MyBB.de Forum

Normale Version: [ETS] Showthread Lastpost Timestamp
Du siehst gerade eine vereinfachte Darstellung unserer Inhalte. Normale Ansicht mit richtiger Formatierung.
Eine neue Erweiterung wurde veröffentlicht: [ETS] Showthread Lastpost Timestamp

Zitat:Displays the relative timestamp of the last post at the top of the thread.
Multilingual: This plug-in uses the MyBB board language set.

Plugin options and settings in ACP
- Enable/Disable

Preset classes for CSS styling
- .ets_slt (Wrapping element)
- .ets_slt_caption (Last post caption)
- .ets_slt_timestamp (Timestamp)

Installation
Copy the script of this package into ./inc/plugins/ directory of your forum and activate this plug-in in Admin-CP.

This plug-in will create a further variable {$ets_lastpost_timestamp} in template "showthread". You can manually place this variable within the template wherever the timestamp should appear.
Hallo !

Hab das Plugin eingebaut, funktioniert wie es soll - aber ich bekomm im Frontend folgende Warnungen:

Code:
<error>     <dateline>1742901251</dateline>     <script>showthread.php(1650) : eval()'d code</script>     <line>37</line>     <type>2</type>     <friendly_type>Warning</friendly_type>     <message>Undefined variable $ets_lastpost_timestamp</message>     <back_trace>#0 errorHandler->error() called at [/inc/class_error.php:153] #1 errorHandler->error_callback() called at [/showthread.php(1650) : eval()'d code:37] #2 eval() called at [/showthread.php:1650] </back_trace> </error>

<error>     <dateline>1742901251</dateline>     <script>showthread.php(1650) : eval()'d code</script>     <line>69</line>     <type>2</type>     <friendly_type>Warning</friendly_type>     <message>Undefined variable $ets_lastpost_timestamp</message>     <back_trace>#0 errorHandler->error() called at [/inc/class_error.php:153] #1 errorHandler->error_callback() called at [/showthread.php(1650) : eval()'d code:69] #2 eval() called at [/showthread.php:1650] </back_trace> </error>

Bitte um Tipps und vielen Dank im voraus

Karin
Danke für den Hinweis. Da hat sich ein Flüchtigkeitsfehler eingeschlichen.
./inc/plugins/ets_slt.php - In Zeile 39 steht ein falscher Variablenname. Bitte ersetzen:
$ets_lastpost_date -> $ets_lastpost_timestamp

Das Mybb-Download-Paket wird aktualisiert... vorab hier.

[ETS]
Ich danke für die schnelle Antwort.
Hab es ersetzt und Warnungen im Frontend sind weg - Dankeschön!

LG
Karin
Eine neue Version wurde veröffentlicht: [ETS] Showthread Lastpost Timestamp 1.0.1