News:

SMF 2.1.2 has been released! Take it for a spin! Read more.

Main Menu

Show Event Dates

Started by floomp, February 22, 2012, 11:25:46 AM

Previous topic - Next topic

floomp

Link to Mod

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.


OCJ

#1
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

Dave J

#2
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
All Quizzes can be downloaded here

OCJ

Mine are showing in the info center as usual...

Dave J

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  ;)
All Quizzes can be downloaded here

floomp

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.

Eclipse16V

I worked with:
SMF 2 in German

Shop:
SID Giessen

Chalky

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 :)

Zirc

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

dayeep

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.

littlenicki

Hello, could you please do a SMF 1.1 Version of this great mod? Thank you!
Fomer SMF user. Switched to Invision Power Board and VBulletin

Rickardo

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)

Chalky

Can you attach your Boardindex.template.php to your next post please and we'll take a look  :)

Rickardo

Hey Chalky!

Sure, no worries!

Thanking you in advance!!   :D

Chalky

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  ;)

Rickardo

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?

Rickardo

Here is my board.php after my last uninstall, not sure if this helps but just to be sure! :)

Chalky

How about the file from before you installed the mod in the first place?  Did you have any other errors?

Steve

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.
Please do not PM me for support.

Chalky

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.

Advertisement: