YaBB SE Community

Development => Completed mods => Topic started by: Jack.R.Abbit on September 20, 2002, 05:29:38 PM

Title: [Done 1.4.1 & 1.5.x] Force Calendar Post into Default Board 1.2
Post by: Jack.R.Abbit on September 20, 2002, 05:29:38 PM
OK, so I've created my first little mod.  It is nothing too great but it was a feature I was looking for.  It gives a check box in the "Admin > Calendar" settings so that when you go to post an event into the calendar, you can not change the destination of the post.  It just displays the "Default Board" that was already specified in the settings rather than giving you a select box.

In order to make it as complete as possible, I would like for some people to give me accurate translations of the check box label so my mod can update all the language files.

english: "Force Post into Default Board"
dutch:
finnish:
german: "Immer in das Standard Board posten"

english: "Post No Topic"
dutch:
finnish:
german: "Kein Thema posten"

calforceboard (http://www.netamorphic.com/mods.by.jack) - updated 05/27/2003

Updates:
09/27/2002: added an option to not create a new topic when you create a calendar event.  The two options work well together if you would like to totally disable the post event into a topic function.

10/10/2002: added the german text to the mod (thanks Daniel). made it so that is "force into default" is enabled, the "linktocalendar" button is only visible in the default board.

03/03/2003: Updated for 1.5.1 RC1

04/22/2003: Updated for 1.5.1 Final

05/02/2003: Fixed bug in "post no topic"; Tested with 1.5.2

05/27/2003: Tested with 1.5.3

Thanks all.

I should mention that be sure to back up your data before applying this, or any, mod.  Everything I post works fine in my YaBB installation but your milage may vary.

-Jack
Title: Re:[Beta 1.4.1] Force Calendar Post into Default Board 1.0
Post by: Daniel D. on September 21, 2002, 04:57:57 AM
I can host the file, but I can't give you FTP access.
Title: Re:[Beta 1.4.1] Force Calendar Post into Default Board 1.0
Post by: Jack.R.Abbit on September 21, 2002, 03:50:06 PM
Thanks, but I just got the hosting sorted out thanks to another person.  I am curius what any body thinks of my mod.

-Jack
Title: Re:[Beta 1.4.1] Force Calendar Post into Default Board 1.1
Post by: Jack.R.Abbit on September 26, 2002, 06:17:19 PM
Added a new feature to it.

-Jack
Title: Re:[Beta 1.4.1] Force Calendar Post into Default Board 1.1
Post by: Jack.R.Abbit on September 27, 2002, 11:29:07 AM
Added a zip version for download.

-Jack
Title: Re:[Beta 1.4.1] Force Calendar Post into Default Board 1.1
Post by: Daniel D. on September 27, 2002, 11:37:41 AM
german: "Immer in das Standard Board posten"

german: "Kein Thema posten"

At your service...
Title: Re:[Beta 1.4.1] Force Calendar Post into Default Board 1.1
Post by: D8TA on September 28, 2002, 05:55:50 PM
I think this is a fantastic mod and I am really looking forward to trying it.  Do I need to use Board mod to input the new data or can I do it manually? If I can place the data manually where do I need to put it?  Also will this work for YabbSE 1.4.0??
Title: Re:[Beta 1.4.1] Force Calendar Post into Default Board 1.1
Post by: Jack.R.Abbit on September 28, 2002, 08:51:09 PM
It is coded for the YaBBpak installer that is in YaBBSE 1.4.1.  I don't know if it works with 1.4.0 as i have never used it.  If you wish to do things by hand, you are on your own.  I wrote the mod and packaged it according to the way designed for YaBBSE and I am not going to redo it or explain its installation for those that don't do things that way.  Sorry but I've put enough time into making mod that way and don't really want to spend more time redoing it.

-Jack
Title: Re:[Beta 1.4.1] Force Calendar Post into Default Board 1.1
Post by: D8TA on September 29, 2002, 11:44:54 AM
I understand Jack, not wanting to go through that mess.  Anyways I have just upgraded to 1.4.1 and am lost.  You made mention of an installer in this version but I don't see anything.  Where is this installer at in 1.4.1 so I can install your mod?  THanks
Title: Re:[Beta 1.4.1] Force Calendar Post into Default Board 1.1
Post by: Jack.R.Abbit on September 29, 2002, 11:54:19 AM
In the Admin Center for your board, there is a section called Forum Controls.  There is a link called YaBBpak Center.  This is where you can install mods packaged fro the YaBBpak system.  You will first have to download the  *.mod.yp file for the mod and then upload it into the Packages folder of your YaBBSE install.  Once you have done that, when you get into the YaBBpak Center, you will see a link "Browse YaBBpaks" this will list all the *.mod.yp files that are in oyur Packages folder and from there it walks you throough the intall.

-Jack
Title: Re:[Beta 1.4.1] Force Calendar Post into Default Board 1.1
Post by: D8TA on September 29, 2002, 01:56:10 PM
Jack, very nice mod it will definitely help out the users and myself.  Great job and thanks for the help in installing it and the mod itself!!  ;D
Title: Re:[Beta 1.4.1] Force Calendar Post into Default Board 1.1
Post by: Jack.R.Abbit on September 30, 2002, 01:16:05 AM
D8TA,

I am glad you approve.  I take it that the install went smooth.  Just wondering which of the two features you find most useful?  I really wanted the Force into the default board myself.  The "post no topic" was someone elses idea that made sense to just add in since they kind of work together.

-Jack
Title: Re:[Beta 1.4.1] Force Calendar Post into Default Board 1.1
Post by: D8TA on September 30, 2002, 05:30:10 PM
My main use for the mod is to force post into default board.  I never seen the post no topic, just the force post into default board.  Not that I need the post no topic option.  Very great mod and thanks for sharing Jack.  ;D
Title: Re:[Beta 1.4.1] Force Calendar Post into Default Board 1.1
Post by: Jack.R.Abbit on September 30, 2002, 07:14:05 PM

I never seen the post no topic, just the force post into default board.

In the board selection box (either in the admin section or the "post event" form), one of the board selections should be "Post No Topic".  Selecting this will create the calendar event but not start a new topic.  Using the two options together, you can totally disable the "create new topic for each calendar event" feature of YaBB.  Some people want that.

Quote
Very great mod and thanks for sharing Jack.  ;D

Anytime... I love this sh*t!  I wish I could get paid to sit around all day and write code... oh wait I do... life is good!

-Jack
Title: Re:[Done 1.4.1/1.5.1RC1] Force Calendar Post into Default Board 1.2
Post by: Jack.R.Abbit on March 03, 2003, 08:27:38 PM
Updated this for 1.5.1RC1

-Jack
Title: Re:[Done 1.4.1/1.5.1RC1] Force Calendar Post into Default Board 1.2
Post by: Coyote on April 13, 2003, 01:22:54 PM
Hi Jack,

I just upgraded to 1.51 and tried out the 'force calendar' pacakage.

It installed fine, with no problems.... just when I try and post no topic, it errors says 'You are not allowed to access this section' :(

Any ideas?

Title: Re:[Done 1.4.1/1.5.1RC1] Force Calendar Post into Default Board 1.2
Post by: Jack.R.Abbit on April 13, 2003, 08:37:05 PM
not yet... I have not had a chance to run all my mods through 1.5.1 Final.

-Jack
Title: Re:[Done 1.4.1/1.5.1RC1] Force Calendar Post into Default Board 1.2
Post by: Surfy on April 18, 2003, 09:46:13 AM

YaBBSE 1.5.1

the modification.php doesnt work!

Quote
Error: MySQL said:

No Database Selected
Error: MySQL said:

No Database Selected
Title: Re:[Done 1.4.1/1.5.1RC1] Force Calendar Post into Default Board 1.2
Post by: Jack.R.Abbit on April 18, 2003, 11:12:49 AM
uh... as I said... I've not had a chance to update the mods for 1.5.1 final.  I don't even have a final board installed yet to test them on.  Also, as explained on my package server, if you are trying to use my YabbPaks, you'll need to first install my "Package Uninstall File" which will likely take care of the problem you are seeing now.  But again, this mod is not yet supported for 1.5.1 final.

-Jack
Title: Re:[Done 1.4.1 & 1.5.1] Force Calendar Post into Default Board 1.2
Post by: Jack.R.Abbit on April 22, 2003, 07:36:21 PM
Updated/Tested to work just fine on 1.5.1 Final

-Jack
Title: Re:[Done 1.4.1/1.5.1/1.5.2] Force Calendar Post into Default Board 1.2
Post by: Jack.R.Abbit on May 02, 2003, 04:06:30 PM
Fixed bug in "Post no topic"
Updated/Tested to work with 1.5.2

-Jack
Title: Re:[Done 1.4.1 & 1.5.x] Force Calendar Post into Default Board 1.2
Post by: Jack.R.Abbit on May 27, 2003, 04:01:21 PM
Tested to work in 1.5.3

-Jack
Title: Re:[Done 1.4.1 & 1.5.x] Force Calendar Post into Default Board 1.2
Post by: james1979 on May 27, 2003, 05:49:51 PM
Maybe I am just missing it, but is there a way to remove a calender entry that did not have a posted topic attached to it.  If not, there should be.  

Just a thought...
Title: Re:[Done 1.4.1 & 1.5.x] Force Calendar Post into Default Board 1.2
Post by: Jack.R.Abbit on May 28, 2003, 02:05:23 AM
same way you can remove a calendar entry that has a post attached to it.  In the calendar you click the  * to edit the entry at which time you can shose to delete it.  That is standard calendar functionality... I didn't change that.

-Jack
Title: Re:[Done 1.4.1 & 1.5.x] Force Calendar Post into Default Board 1.2
Post by: james1979 on May 28, 2003, 08:28:56 AM
Thanks
same way you can remove a calendar entry that has a post attached to it.  In the calendar you click the  * to edit the entry at which time you can shose to delete it.  That is standard calendar functionality... I didn't change that.

-Jack
Title: Re:[Done 1.4.1 & 1.5.x] Force Calendar Post into Default Board 1.2
Post by: supamike on July 15, 2003, 05:01:51 PM
J.R.A.,

Not long after installing this mod (which initially worked fine), something went bizarro and it stopped working.  :P I had to delete a couple of file from the packages directory and reinstall it, which worked.

This brought the mod back to working condition, redisplayed all previous "post no topic" entries, but oddly added another "Force Post into Default Board" option at the bottom of my "Installed Mods" page -- in other words, there are now two of this option!

So my question is, which file can I hack to get rid of the renegade option. I don't need two of them! lol!

Thanks in advance...
Title: Re:[Done 1.4.1 & 1.5.x] Force Calendar Post into Default Board 1.2
Post by: Jack.R.Abbit on July 15, 2003, 08:06:57 PM
very strange indeed.

open up ModSettings.php and search for the:
Code: [Select]
<input type="checkbox" name="cal_ForceDefaultBoard" ' . $cal_ForceDefaultBoard . ' />  if you say you have two checkboxes for this option, then you should find two of these strings and they should be found in some code similar to:
Code: [Select]
                     </tr><tr>
                        <td class="windowbg2" bgcolor="' . $color['windowbg2'] . '"></td>
                        <td class="windowbg2" bgcolor="' . $color['windowbg2'] . '"><font size="2">' . $txt['calforceboard1'] . '</font></td>
                        <td class="windowbg2" bgcolor="' . $color['windowbg2'] . '"><input type="checkbox" name="cal_ForceDefaultBoard" ' . $cal_ForceDefaultBoard . ' /></td>
of which you will have two of as well.  Delete one of those chunks of code.  Take care to delete the proper stuff from the proper place.  If you are unsure, take a few minutes to study how those lines of code resemble others around it and it should become clear how this whole puzzle fits together.  You are wanting to delete one "row" from mod settings page.

Good luck.  If you run into issues still, let me know.

-Jack
Title: Re:[Done 1.4.1 & 1.5.x] Force Calendar Post into Default Board 1.2
Post by: supamike on July 16, 2003, 09:30:43 AM
Jack,

Got it!  8)

I removed both duplicate entries and tested it fine. Hopefully it won't pose any future problems -- and hopefully I won't have to reinstall it again. Not sure what broke it the first time, but I must have inadvertantly overwritten a file.  :P

Thanks AGAIN for your help!