Caricamento...
Mostra Eventi

Add posts and topics date

Specific support for my extension "Top Ten Topics". This forum include support, request and bug tracker.
(Supporto specifico per la mia estensione 'Top Ten Topics". In questo forum si può anche segnalare bug e fare richieste, oltre al supporto)
Avatar utente
drweiss
Messaggi: 4
Iscritto il: sab dic 19, 2015 1:42 pm

Add posts and topics date

Messaggio da leggereda drweiss » sab dic 19, 2015 1:45 pm

Hello brunino!
Thanks for nice Extension.
I have one question. I need to output date (time) of topic creation or time of last reply into two last columns. is it so hard for modification?
With best regards, Mikhail.


Avatar utente
brunino
Site Admin
Messaggi: 665
Iscritto il: dom nov 02, 2014 7:21 pm
Has thanked: 2 times
Been thanked: 57 times

Re: [RC] Top Ten Topics

Messaggio da leggereda brunino » sab dic 19, 2015 2:40 pm

drweiss ha scritto:Hello brunino!
Thanks for nice Extension.
I have one question. I need to output date (time) of topic creation or time of last reply into two last columns. is it so hard for modification?
With best regards, Mikhail.


It isn't a problem of code, it's a problem of style: there isn't space to insert it...


Avatar utente
drweiss
Messaggi: 4
Iscritto il: sab dic 19, 2015 1:42 pm

Re: Add posts and topics date

Messaggio da leggereda drweiss » sab dic 19, 2015 8:13 pm

Hm...

For example, i add:
$last_post_time[$n4] = $row4['topic_last_post_time'];
in listener.php for last_post section

and

<dd class="responsive-hide xttt-one_third xttt-one_third_last">
<a class="topictitle subforum read" href="{topten_list.LAST_POST_LINK}" title="{topten_list.LAST_POST_TITLE} ({L_IN}{L_COLON} {topten_list.LAST_POST_FORUM})">{topten_list.LAST_POST_TITLE_SHORT}</a>
<span>({L_POST_BY_AUTHOR} {topten_list.LAST_POST_AUTHOR} {topten_list.LAST_POST_TIME})</span>
</dd>

and get, for example "postname post author 1449489564" when i try to output value in topten extension

if i use

$last_post_time[$n4] = $user->format_date($row4['topic_last_post_time']);

i have mistake.
Why?

I think, for desktop, enough place to output date&time together with autor for last post and last topic row.

With best regards,
Mike


Avatar utente
brunino
Site Admin
Messaggi: 665
Iscritto il: dom nov 02, 2014 7:21 pm
Has thanked: 2 times
Been thanked: 57 times

Re: Add posts and topics date

Messaggio da leggereda brunino » sab dic 19, 2015 9:06 pm

Codice: Seleziona tutto

$last_post_time[$n4]   = $this->user->format_date($row4['topic_last_post_time']);


Avatar utente
drweiss
Messaggi: 4
Iscritto il: sab dic 19, 2015 1:42 pm

Re: Add posts and topics date

Messaggio da leggereda drweiss » dom dic 20, 2015 6:39 am

My god, i'm stupid :)
Thank you!


Avatar utente
drweiss
Messaggi: 4
Iscritto il: sab dic 19, 2015 1:42 pm

Re: Add posts and topics date

Messaggio da leggereda drweiss » dom dic 20, 2015 6:45 am

Not working...

[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/user.php on line 729: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, null given
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/datetime.php on line 156: array_filter() expects parameter 1 to be array, null given
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/datetime.php on line 120: strtr(): The second argument is not an array


Avatar utente
brunino
Site Admin
Messaggi: 665
Iscritto il: dom nov 02, 2014 7:21 pm
Has thanked: 2 times
Been thanked: 57 times

Re: Add posts and topics date

Messaggio da leggereda brunino » dom dic 20, 2015 1:36 pm

I've done some test but that error appears every time. I don't know why... It's better to ask at phpBB.com



Chi ha visto questo topic

brunino (9), drweiss (12), KEKO (1), RTI kartname (1)

Torna a “Top Ten Topics”

Chi c’è in linea

Visitano il forum: Nessuno e 1 ospite

  • Argomenti più visti
    Top Poster
    Ultimi Post
cron

Login