Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: floomp on February 22, 2012, 11:25:46 AM

Title: Show Event Dates
Post by: floomp on February 22, 2012, 11:25:46 AM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=3331)

Show Event Dates is a simple mod that displays the starting date of an event next to its title on the upcoming events list (at the bottom of the index), and after topic titles that have a linked event. This can be useful when you want to quickly see when events take place without having to open them or require that your users manually add the dates to the event titles themselves.

The format of the dates displayed is easily configurable in the admin center.

Title: Re: Show Event Dates
Post by: OCJ on February 22, 2012, 10:50:45 PM
Like it! Nice to have more calendar event mods.

Suggestion... maybe start and end date if not a 1 day event (Sat, Mar 3-4) .
Might take up too much space if another day included ... dunno. And if going into the next month it might look odd if only date...
Andy
Title: Re: Show Event Dates
Post by: Dave J on February 23, 2012, 04:01:07 AM
The idea is nice.

I have installed it but can't see events in the 'Info Center'. The date etc works OK in the topics as per screenshots below. I have done all the usual empty cache etc but still doesn't show.

Any ideas?

Thanks

Dave


My Test Site here (http://www.davejohnson.co.uk)
Title: Re: Show Event Dates
Post by: OCJ on February 23, 2012, 12:24:14 PM
Mine are showing in the info center as usual...
Title: Re: Show Event Dates
Post by: Dave J on February 23, 2012, 01:15:10 PM
Ok I have it working now, but it might be worth mentioning that the 'Calendar Setting' needs to be changed from the default to
the same as in the screenshot below.

Thanks for this  ;)
Title: Re: Show Event Dates
Post by: floomp on February 23, 2012, 06:39:27 PM
Hey, I'm glad both of you like it. Thanks for the feedback!

Quote from: igirisjin on February 22, 2012, 10:50:45 PM
Suggestion... maybe start and end date if not a 1 day event (Sat, Mar 3-4) .
Might take up too much space if another day included ... dunno. And if going into the next month it might look odd if only date...
Andy

That's a good idea, I'll see if I can get it working. About spanning multiple months, it should be fine if it detects that and outputs the next month like "Mar 29 - Apr 2".

Quote from: davejo on February 23, 2012, 01:15:10 PM
Ok I have it working now, but it might be worth mentioning that the 'Calendar Setting' needs to be changed from the default to the same as in the screenshot below.

Good catch, I forgot that I'd set that a while ago. Definitely something that should be added to the readme, thanks.
Title: Re: Show Event Dates
Post by: Eclipse16V on March 07, 2012, 04:53:00 AM
Thanks for this Mod
Title: Re: Show Event Dates
Post by: Chalky on April 06, 2012, 05:36:22 PM
Thanks for this mod, we love it on my forum.  Could it be adapted to show the date for upcoming birthdays in the same way?  Do you plan to do this or would you be able to point me in the right direction to do it myself please?

Thank you :)
Title: Re: Show Event Dates
Post by: Zirc on May 17, 2012, 09:19:27 PM
I really like the way this mod works since my people never put the date in the subject even though I ask them to.  One thing,  most of my members use the unread topics page to view posts and the date doesn't show up in those subjects, how difficult would it be to add it to show on the unread topics page?

Thanks
Title: Re: Show Event Dates
Post by: dayeep on August 11, 2012, 09:37:46 AM
I installed the mod, in our forum with several years of information.  It resorted everything in the Club Calendar Events forum.  I changed the date format and it only resorted another way.  No help.  Did I miss something?  This is a great app if I could only get it to work without resorting the information.  Please help, I'd really like to reinstall it.
Title: Re: Show Event Dates
Post by: littlenicki on April 09, 2013, 01:49:01 PM
Hello, could you please do a SMF 1.1 Version of this great mod? Thank you!
Title: Re: Show Event Dates
Post by: Rickardo on January 13, 2015, 07:58:02 AM
This is exactly what I'm after!!

But, it doesn't work!!! :(

I've made several attempts but no luck.

I've checked for errors and found this:

(Find)
Code: [Select]
                     ', $event['can_edit'] ? '<a href="' . $event['modify_href'] . '" style="color: #ff0000;">*</a> ' : '', $event['href'] == '' ? '' : '<a href="' . $event['href'] . '">', $event['is_today'] ? '<strong>' . $event['title'] . '</strong>' : $event['title'], $event['href'] == '' ? '' : '</a>', $event['is_last'] ? '<br />' : ', ';

(Replace)
Code: [Select]
                     ', $event['can_edit'] ? '<a href="' . $event['modify_href'] . '" style="color: #ff0000;">*</a> ' : '', $event['href'] == '' ? '' : '<a href="' . $event['href'] . '">', $event['is_today'] ? ('<strong>' . $event['title'] . ' ' . timeformat(strtotime($event['date']), $modSettings['show_event_dates_format_upcoming'], 'none') . '</strong>') : ($event['title'] . ' ' . timeformat(strtotime($event['date']), $modSettings['show_event_dates_format_upcoming'], 'none')), $event['href'] == '' ? '' : '</a>', $event['is_last'] ? '<br />' : ', ';

Any ideas??

I'm using the latest version of SMF (2.0.9)
Title: Re: Show Event Dates
Post by: Chalky on January 13, 2015, 11:55:33 AM
Can you attach your Boardindex.template.php to your next post please and we'll take a look  :)
Title: Re: Show Event Dates
Post by: Rickardo on January 13, 2015, 03:15:49 PM
Hey Chalky!

Sure, no worries!

Thanking you in advance!!   :D
Title: Re: Show Event Dates
Post by: Chalky on January 13, 2015, 04:00:26 PM
Hmmmm, no I can't find it either and what's more my own BoardIndex.template.php doesn't appear to have that second edit.

This is usually a no-no, BUT if you look at the parse instructions for the mod it does say about this particular edit "This operation isn't vital to the installation of this mod." that suggests you can just go ahead and install it anyway.


LOL, got it!  That edit is specifically for the core theme, which is "unique" in many places.  This edit and the one above it are an either/or thing.  You have the first one which is pertinent to your theme, you should be good to just go ahead and install it  :)  Not forgetting always to back up everything before you install or uninstall mods, because it's better to be safe than chucking your computer out of the window  ;)
Title: Re: Show Event Dates
Post by: Rickardo on January 13, 2015, 04:42:11 PM
Thanks for the quick response Chalky!

The problem is, I have installed it! And uninstalled it and installed it again with no effect!?!?

I've tried pasting the code in manually (that's the copy you just looked at) but to no avail..............??

Could it be another mod that's throwing it off perhaps?
Title: Re: Show Event Dates
Post by: Rickardo on January 13, 2015, 04:46:27 PM
Here is my board.php after my last uninstall, not sure if this helps but just to be sure! :)
Title: Re: Show Event Dates
Post by: Chalky on January 13, 2015, 06:42:56 PM
How about the file from before you installed the mod in the first place?  Did you have any other errors?
Title: Re: Show Event Dates
Post by: Steve on January 14, 2015, 08:58:57 AM
Interesting that I installed this on my test board which has no mods installed and while it installed fine, it doesn't seem to do anything. Maybe I don't understand what the mod is actually going to display and when.
Title: Re: Show Event Dates
Post by: Chalky on January 14, 2015, 02:13:59 PM
I've hacked my template to make the events appear on separate lines but this mod added the dates that show in brackets after each one.
Title: Re: Show Event Dates
Post by: Rickardo on January 16, 2015, 03:06:21 AM
Hey Chalky, that would be just perfect for me!!!

Can you let me know how i can 'hack' mine to display like your screenshot!?

Many thanks!!
Title: Re: Show Event Dates
Post by: Rickardo on January 27, 2015, 06:54:00 PM
Any news on this Chalky???
Title: Re: Show Event Dates
Post by: Rickardo on June 07, 2015, 10:12:07 AM
BUMP!!!!   :) :)
Title: Re: Show Event Dates
Post by: Steve on June 07, 2015, 10:56:44 AM
Chalky hasn't been here in four months so hopefully someone else can see how it's done.
Title: Re: Show Event Dates
Post by: Rickardo on June 07, 2015, 01:59:36 PM
Oh, thanks for letting me know Steve.

So to anyone who can help I'd love this feature on my forum.

Any help or advice is much appreciated!  :D
Title: Re: Show Event Dates
Post by: Shades. on September 02, 2021, 06:34:16 PM
I have a motorcycle "Event" website and would desperately like to see this for 2.1 for when I upgrade! 8)