Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: SMF Customization Team on November 08, 2006, 08:35:42 PM

Title: Automatically Remove Inbox Label Mod
Post by: SMF Customization Team on November 08, 2006, 08:35:42 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=533)

Automatically Remove Inbox Label



Author: SMF Customization Team (http://www.simplemachines.org/community/index.php?action=profile;u=1)

Supported Languages: English

Link To Mod (http://custom.simplemachines.org/mods/index.php?mod=533) | Mod Discussion (http://www.simplemachines.org/community/index.php?topic=125739.0) | Other SMF Customization Team Mods (http://custom.simplemachines.org/mods/index.php?action=profile;u=1)


Summary:
This mod will add an option in the personal message options section of everyone's profile to automatically remove the inbox label when adding a different label to a personal message.

Without this mod if you add a label to a PM it adds the label, but the message still shows in your inbox.  With this mod enabled (you check the option that the mod adds), the message won't show in the inbox when you apply a label to it.

Compatibility:
Compatible with SMF 1.1, standard feature in SMF 2.0

Installation Information:
The Package Manager should work in most cases, if you have problems installing please use the discussion thread as well as Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402)

License
Copyright (c) 2015, Simple Machines
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
    * Redistributions of source code must retain the above copyright
      notice, this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright
      notice, this list of conditions and the following disclaimer in the
      documentation and/or other materials provided with the distribution.
    * Neither the name of the <organization> nor the
      names of its contributors may be used to endorse or promote products
      derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


Change Log:
Version 1.1 - March 23, 2016
- BSD License
Version 1.0 - August 11, 2006
- Initial release
Title: Re: Automatically Remove Inbox Label Mod
Post by: danskmacabre on November 09, 2006, 06:23:48 AM
I've been meaning to do this mod for ages.
Great work, installed fine, worked fine, thanks  :) 
Title: Re: Automatically Remove Inbox Label Mod
Post by: denislici on November 09, 2006, 08:54:36 AM

i have begun loving this SMF Customization Team user... thanx...
Title: Re: Automatically Remove Inbox Label Mod
Post by: Vinspire on November 14, 2006, 02:21:26 AM
Ermm ... I don't really understand the description. Anyone with screenie ?  :'(
Title: Re: Automatically Remove Inbox Label Mod
Post by: L.G.S on November 15, 2006, 03:35:30 PM
Yeah me too... Scrn please
Title: Re: Automatically Remove Inbox Label Mod
Post by: winrules on November 15, 2006, 03:47:33 PM
You mean of the option? It's the only visible change.
Title: Re: Automatically Remove Inbox Label Mod
Post by: L.G.S on November 15, 2006, 04:06:00 PM
But what exactly does it do.. the details aren't that obvious lol
Title: Re: Automatically Remove Inbox Label Mod
Post by: Assistance on November 15, 2006, 05:31:07 PM
when u do the options in your profile, with this mod it wont show them options on your personal message page.

mod is to clean the page up, as the options u tick to enable / disable would assume you allways use those options
Title: Re: Automatically Remove Inbox Label Mod
Post by: winrules on November 15, 2006, 06:16:25 PM
Right now if you add a label to a PM it adds the label, but the message will still show in your inbox. If you check the option that this mod adds, the message won't show in the inbox when you apply a label to it.
Title: Re: Automatically Remove Inbox Label Mod
Post by: Assistance on November 16, 2006, 07:07:04 PM
intresting

so basically it will sort your inbox by labels
Title: Re: Automatically Remove Inbox Label Mod
Post by: PopsicleStickChick on March 14, 2007, 04:54:21 PM
This hasn't worked for me since upgrading to 1.1.2.  Is the mod going to be updated?
Title: Re: Automatically Remove Inbox Label Mod
Post by: kamili34 on September 14, 2007, 08:22:21 PM
On 1.1.3 works :)
Title: Re: Automatically Remove Inbox Label Mod
Post by: Pik Bube on April 27, 2008, 08:02:00 AM
It works on 1.1.4 too! - very good!
Title: Re: Automatically Remove Inbox Label Mod
Post by: littleone on August 24, 2008, 02:08:48 PM
8: Undefined index: name
File: /home/xxxxxxxxx/public_html/forum/Themes/default/PersonalMessage.template.php
Line: 457

8: Undefined index: id
File: /home/xxxxxxxxx/public_html/forum/Themes/default/PersonalMessage.template.php
Line: 455

8: Undefined index: id
File: /home/xxxxxxx/public_html/forum/Themes/default/PersonalMessage.template.php
Line: 457

Here are the lines of code(line 448 - 459):
// Are there any labels which can be added to this?
if (!$message['fully_labeled'])
{
echo '
<option value="" disabled="disabled">', $txt['pm_msg_label_apply'], ':</option>';
foreach ($context['labels'] as $label)
{
if (!isset($message['labels'][$label['id']]))
echo '
<option value="', $label['id'], '">&nbsp;', $label['name'], '</option>';
}
}




Title: Re: Automatically Remove Inbox Label Mod
Post by: littleone on November 16, 2008, 02:38:38 PM
BUMPPPPPPPP!

Its floods my error log with like 10 pages of errors everytime someone labels a PM.  Its been 2 months now....any chance of getting a reply please?
Title: Re: Automatically Remove Inbox Label Mod
Post by: littleone on December 19, 2008, 09:00:40 AM
bump - up to three months of waiting.....
Title: Re: Automatically Remove Inbox Label Mod
Post by: floydpink on February 24, 2009, 01:11:37 AM
Not sure if this is what you're after littleone, but this might help:
http://www.simplemachines.org/community/index.php?topic=295253.msg1948604#msg1948604
Title: Re: Automatically Remove Inbox Label Mod
Post by: nassatellite on December 11, 2009, 04:39:33 AM
SMF 2.0.RC2 için ne zaman günelleyeceksiniz acaba?
Title: Re: Automatically Remove Inbox Label Mod
Post by: Norv on March 09, 2010, 07:01:18 PM
Sorry for the delay on this.
SMF 2.0 RC2 and SMF 2.0 RC3 have this feature by default, so this mod will never be updated for them.

The mod should still work on all 1.1.x versions, since 1.1 RC3 to 1.1.11. It was tested. However, please do tell if there are still problems for you with it.