News:

Wondering if this will always be free?  See why free is better.

Main Menu

Today's Posts

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

Previous topic - Next topic

erorcun

Link to Mod

Today's Posts by erorcun


This modification, indicates today commented topics.
You can set who can see Today's Posts.


Compatibility



SMF 1.1.11
SMF 2.0 RC3



Available Languages


   
English + utf8
Turkish + utf8
German + utf8
French + utf8



Change Log


! bug fix | x changed | + added feature | - Info



v1.1
! Fixed "ms.subject" error
   
v1.0
- Initial release
-Yemeklerin niye bu kadar lezzetli?
-Sana koyuyorum.
-Hmm ben diğer ustalara söyliyim onlar da sana koysun.

akbora

Very good mod thanks...

Today is mod's festival day in this site, there al lot of new mods ...
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

erorcun

Customizer team may have come back from holiday today. lol

-Yemeklerin niye bu kadar lezzetli?
-Sana koyuyorum.
-Hmm ben diğer ustalara söyliyim onlar da sana koysun.

Afro

Can you make this in a way that admins can select boards for todays posts or topics ?
I mean there are some boards i wouldnt want its posts to be on the todays posts.

erorcun

I'll try to do, but I can not guarantee.
-Yemeklerin niye bu kadar lezzetli?
-Sana koyuyorum.
-Hmm ben diğer ustalara söyliyim onlar da sana koysun.

Afro

Very good. I will be waiting for it mate.

erorcun

v1.1 released. Fixed "ms.subject" error.

v1.2 will be released soon with board selecting feature.
-Yemeklerin niye bu kadar lezzetli?
-Sana koyuyorum.
-Hmm ben diğer ustalara söyliyim onlar da sana koysun.

ovation22

Great mod.  Though, it doesn't appear to be respecting "Overall time offset" so mid-day it no longer shows the posts for today.  Looking at the install xml it looks like it's using server time, not forum time.  I would love to see this using the forum/user time instead.

ovation22

#8
I'm thinking of changing:

$bugun = mktime(0,0,0,intval(date('m')),i​ntval(date('d')),intval(date('Y')​));
$yarin = mktime(0,0,0,intval(date('m')),i​ntval(date('d'))+1,intval(date('Y'​)));

to:

$date = forum_time();

$bugun = mktime(0,0,0,intval(date('m', $date)),intval(date('d', $date)),intval(date('Y', $date)));
$yarin = mktime(0,0,0,intval(date('m', $date)),intval(date('d', $date))+1,intval(date('Y', $date)));


Would that work?

Eclipse16V

Hi erorcun,

in the Mod is an error.
You forgot a lang row:
$txt['cannot_view_todays_posts'] = 'You are not allowed to view today\'s posts!';

Than runs nice on 2.0 Gold

Thanks
I worked with:
SMF 2 in German

Shop:
SID Giessen

supercar1000

I can't find any settings to enable or disable... where is this setting?

Thanks for the mod ;)

Chalky

I can't find any settings either... please how can I change the mod to display all posts from the last 24 hours instead of just since midnight?  Thanks.

Inti31

@Sabrinova: what about the topics filter mod where you can filter in a category for topics are written

-today
-since yesterday
-last 7 days
-last 30 days
-last 60 days
...
older than 1 year...
my forum
my testforum


my mods - which I only made them work for 2.0 Gold:
Topics Filter v3.2 SMF 2.0 Gold
MemberNumber

Chalky

Quote from: Inti31 on February 22, 2012, 01:13:29 PM
@Sabrinova: what about the topics filter mod where you can filter in a category for topics are written

-today
-since yesterday
-last 7 days
-last 30 days
-last 60 days
...
older than 1 year...

Thank you, that looks great... I just tried to install it but I'm getting the error in installation message:

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

I'm running SMF 2.0.2 but I get the same error emulating 2.0.  Any suggestions?

I also broke my Today's Posts mod - I tried to modify the code myself, failed and reinstalled the original version and now that's giving me a fatal error too, so I uninstalled and deleted it before I tried to install Topic Filter.  Please help, why is Topic Filter giving me this error and what can I do about it?

Thanks  :)

Biology Forums

Could this be customized to show only today's posts from a specific category? Like index.php?action=todayspost;c=3

GleamPlay.com

Thanks for the mod :)

After installing, I found it really useful :p

But there is one tiny problem,
is it possible to make the Today's Posts page show the user with their Display name instead of Username?
Just like Recent Unread Topics and other pages?
Gleam - http://gleamplay.com
The SMF to have fun, meet new friends and play games!

margarett

I gave a quick glance at the code and it seems to fetch the same field from database, for first and last user. And I see no conditionals so I assume it always uses the username (since it is mandatory).

But, again, this was just a quick glance...
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

Kays

From what I can see, this mod takes the user name from the "messages" table. Which is the user's login name.

Getting it to show the display name is not that simple and will require a re-write of the query rather than just changing the name of a variable.

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Jack_Elixir

Can we have posts in last 24 hours?

GleamPlay.com

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

Advertisement: