Today's Posts

Started by erorcun, August 20, 2010, 02:42:43 AM

Previous topic - Next topic

Dblog

can this MOD be updated ?
its not been updated since 5 years

br360

The mod author hasn't logged in for a few years, so that's doubtful. However it does work just fine in 2.0.11.

Dblog

@ovation and @Jack_elixir

to make this mod show posts in last 24 hrs, i tried multiple methods but failed.
so, just made one small adjustment to make it show topics updated between yesterday and today.

in sources/Recent.php

Quotearray_merge($query_parameters, array(
            'is_approved' => 1,
            'bugun' => mktime(0,0,0,intval(date('m')),intval(date('d')),intval(date('Y'))),
            'yarin' => mktime(0,0,0,intval(date('m')),intval(date('d'))+1,intval(date('Y'))),

replace with

Quotearray_merge($query_parameters, array(
            'is_approved' => 1,
            'bugun' => mktime(0,0,0,intval(date('m')),intval(date('d'))-1,intval(date('Y'))),
            'yarin' => mktime(0,0,0,intval(date('m')),intval(date('d'))+1,intval(date('Y'))),

you can make it -2, -3 etc in bugun line to show topics from past few days.

GleamPlay.com

Currently, this mod shows username in the "?action=todayspost" page.
How to make it so that it shows Display name instead?

Thanks!
Gleam - http://gleamplay.com
The SMF to have fun, meet new friends and play games!

Biology Forums

Quote from: Gleam.tk on February 28, 2016, 03:34:27 AM
Currently, this mod shows username in the "?action=todayspost" page.
How to make it so that it shows Display name instead?

Thanks!

I'm curious about this too

margarett

It shouldn't. Looking at the code it seems to try to fetch the "real name" by default
IFNULL(meml.real_name, ml.poster_name) AS last_poster_name
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

GleamPlay.com

I intentionally changed my Display name so it's different from my Username, but still the Today's Post page showed my Username.
Is "real name" the display name or username?
Gleam - http://gleamplay.com
The SMF to have fun, meet new friends and play games!

margarett

Try to empty the forum cache maybe... Just guessing :P
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Advertisement: