Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Mod Requests => Topic started by: roomeat on September 01, 2009, 06:44:12 PM

Title: Submit Calendar Event Direct From New Topic
Post by: roomeat on September 01, 2009, 06:44:12 PM
Has anyone integrated the Calendar into the normal Post Topic section of a forum??

I would like certain categories in my forum to have the calendar fields available when posting a topic.
This way they can post the topic and link it to the calendar straight away.
I guess something like the attachments section for a post... maybe click a checkbox titled "Add event to calendar" and this will then show the other details needed for the calendar.

I done a bit of a search but couldn't find what I was looking for.

OH.. and I'm using SMF2.0RC1.2 :)
Title: Re: Submit Calendar Event Direct From New Topic
Post by: Arantor on September 01, 2009, 06:49:50 PM
I don't believe they have, I also don't remember anyone modding this either.

If you like I can move this to the Mod Requests board?
Title: Re: Submit Calendar Event Direct From New Topic
Post by: roomeat on September 02, 2009, 04:29:20 AM
Thanks for moving this :)
Title: Re: Submit Calendar Event Direct From New Topic
Post by: mandukar on September 04, 2009, 06:27:56 AM
You can already do this, if your the auther or admin of the site theres a link at the bottom that says [link to calnder]
Title: Re: Submit Calendar Event Direct From New Topic
Post by: roomeat on September 04, 2009, 10:30:40 PM
yeah so you have to submit your post and then go back and link it to calendar.
Why not have the date settings within the post topic screen so they can be selected and set at the same time as submitting?
So it would like something like this (taken from a phpbb calendar):
Title: Re: Submit Calendar Event Direct From New Topic
Post by: roomeat on September 04, 2009, 10:34:42 PM
And this particular calendar has a feature where you click on the date section and it brings up a small calendar for you to select the date for the event.
Title: Re: Submit Calendar Event Direct From New Topic
Post by: mandukar on September 05, 2009, 04:16:41 AM
QuoteWhy not have the date settings within the post topic screen so they can be selected and set at the same time as submitting?
So it would like something like this (taken from a phpbb calendar):
thats just being lazy.

But why don't you try implanting it?
Title: Re: Submit Calendar Event Direct From New Topic
Post by: roomeat on September 05, 2009, 09:53:36 AM
No not lazy.. it's called trying to make things simple for members that don't know they have to post something to then go back and link it to a calendar ;)
Me?? Implant it?? if I was any type of programmer I might try.. hence the post for a feature request in the hope that someone does pick it up :)
Title: Re: Submit Calendar Event Direct From New Topic
Post by: Arantor on September 05, 2009, 04:09:53 PM
Sorry, meant to move this to Mod Requests a couple of days ago, where it will have to live for now since no new features are being added to SMF at this immediate time (while 2.0 is being finished)
Title: Re: Submit Calendar Event Direct From New Topic
Post by: gameballa on September 06, 2009, 04:40:13 AM
Quote from: roomeat on September 01, 2009, 06:44:12 PM
Has anyone integrated the Calendar into the normal Post Topic section of a forum??

I would like certain categories in my forum to have the calendar fields available when posting a topic.
This way they can post the topic and link it to the calendar straight away.
I guess something like the attachments section for a post... maybe click a checkbox titled "Add event to calendar" and this will then show the other details needed for the calendar.

I done a bit of a search but couldn't find what I was looking for.

OH.. and I'm using SMF2.0RC1.2 :)

I did something like this..

// Create the button set...
    $normal_buttons = array(
       
       
       'new_topic' => array('test' => 'can_post_new', 'text' => 'smf258', 'image' => 'new_topic.gif', 'lang' => true, 'url' => $scripturl . '?action=calendar;sa=post;board=' . $context['current_board'] . '.0'),


this is in MessageIndex.template.php  but i use 1.1.10 not 2.0. I replaced the post new topic button with this one so you may wanna make a post new event button code for posting an events so your members still have the option of posting normal topics....  make sure you turn on "Show linked events in topic display:" in admin
Title: Re: Submit Calendar Event Direct From New Topic
Post by: mandukar on September 06, 2009, 01:49:52 PM
would this work in 2.0?
Title: Re: Submit Calendar Event Direct From New Topic
Post by: mandukar on September 06, 2009, 02:08:51 PM
that code gets rid of the menu :S
Title: Re: Submit Calendar Event Direct From New Topic
Post by: gameballa on September 06, 2009, 02:53:17 PM
Quote from: mandukar on September 06, 2009, 02:08:51 PM
that code gets rid of the menu :S

I will install 2.0 and have a go at it later/tomorrow.. see if I can figure it out..
Title: Re: Submit Calendar Event Direct From New Topic
Post by: mandukar on September 07, 2009, 06:46:27 AM
ok cool thanks :D
Title: Re: Submit Calendar Event Direct From New Topic
Post by: roomeat on January 02, 2010, 06:40:27 PM
Quote from: gameballa on September 06, 2009, 02:53:17 PM
Quote from: mandukar on September 06, 2009, 02:08:51 PM
that code gets rid of the menu :S

I will install 2.0 and have a go at it later/tomorrow.. see if I can figure it out..
How did you go mate?