Automatically Remove Inbox Label Mod

Started by SMF Customization Team, November 08, 2006, 08:35:42 PM

Previous topic - Next topic

SMF Customization Team

Link to Mod

Automatically Remove Inbox Label



Author: SMF Customization Team

Supported Languages: English

Link To Mod | Mod Discussion | Other SMF Customization Team Mods


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

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

danskmacabre

I've been meaning to do this mod for ages.
Great work, installed fine, worked fine, thanks  :) 
Website: cantref.org.uk chaos8.com | SmF version: 2 | Portal software: PortaMx 1.3 | Default theme: Coal Black

denislici


i have begun loving this SMF Customization Team user... thanx...
Love the Creature for Creator's sake. (English)
Duje Krijesen per hire te Krijuesit. (Albanian)
Yaradılan'ı sev Yaradan'dan ötürü. (Turkish)
Ami la Creatura per ce la creato il Creatore. (Italian)

Vinspire

Ermm ... I don't really understand the description. Anyone with screenie ?  :'(

L.G.S

FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


winrules

You mean of the option? It's the only visible change.


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


L.G.S

But what exactly does it do.. the details aren't that obvious lol
FREE and LIVE World Cup + Premier League football streams:

www.gamesandgoals.com


Assistance

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
~playing poker~

winrules

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.


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


Assistance

intresting

so basically it will sort your inbox by labels
~playing poker~

PopsicleStickChick

This hasn't worked for me since upgrading to 1.1.2.  Is the mod going to be updated?
www.grubesismyleader.com

An Internet forum dedicated to a former board operator at a Dallas sports talk radio station

kamili34


Pik Bube

hxxp:www.dascomputerforum.de [nonactive]

littleone

#13
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>';
}
}





littleone

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?

littleone

bump - up to three months of waiting.....


nassatellite

SMF 2.0.RC2 için ne zaman günelleyeceksiniz acaba?

Norv

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.
To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

Advertisement: