Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Mr. Pedram on March 26, 2013, 12:41:21 PM

Title: Personal Message (PM) Warning
Post by: Mr. Pedram on March 26, 2013, 12:41:21 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=3665)

Personal Message (PM) Warning v1.0
Add a warning note to Personal Message!

Compatibility
SMF 2.0

Changelog
(v2.0 update: 29 March 2013)
* Support WAP2
* Permissions setting added

Mod by: Mr. Pedram (http://www.simplemachines.org/community/index.php?action=profile;u=323252)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.creativecommons.org%2Fl%2Fby-nc-nd%2F3.0%2F88x31.png&hash=8719f18c90cbd576bc578f378c0dbf23030467d6)
This mod is licensed under a CC BY-NC-ND 3.0 (http://creativecommons.org/licenses/by-nc-nd/3.0/)
Title: Re: Personal Message (PM) Warning
Post by: johnpaul2k2 on March 26, 2013, 03:34:02 PM
working perfectly ok

i have been looking for this mod  :D

(https://lh6.googleusercontent.com/-4c8D0lez10w/UVH3t5vQQFI/AAAAAAAABZ8/NP27Zm7U7-o/s795/Capture.PNG)

i pray to have my own mod soon

Congrats for this
Title: Re: Personal Message (PM) Warning
Post by: Mr. Pedram on March 26, 2013, 04:07:47 PM
Thanks johnpaul2k2
Hope to see you'r first mod soon :)
Title: Re: Personal Message (PM) Warning
Post by: johnpaul2k2 on March 27, 2013, 05:19:54 PM
this is not showing on my wap2

any solution??
Title: Re: Personal Message (PM) Warning
Post by: Mr. Pedram on March 27, 2013, 06:20:16 PM
Quote from: johnpaul2k2 on March 27, 2013, 05:19:54 PM
this is not showing on my wap2

any solution??

Hmm.. i will try it with new update.
Title: Re: Personal Message (PM) Warning
Post by: Arantor on March 27, 2013, 06:36:32 PM
WAP/WAP2 etc. have all of their own templates that you'd have to modify (Wireless.template.php)
Title: Re: Personal Message (PM) Warning
Post by: Mr. Pedram on March 28, 2013, 09:32:35 AM
Quote from: johnpaul2k2 on March 27, 2013, 05:19:54 PM
this is not showing on my wap2

any solution??

MOD updated with support Wap2 ;)
Title: Re: Personal Message (PM) Warning
Post by: johnpaul2k2 on March 28, 2013, 10:16:36 AM
worked but it is appearing twice

i mean the message warning. maybe there is a code we added 2 times???
Title: Re: Personal Message (PM) Warning
Post by: ApplianceJunk on March 28, 2013, 10:24:07 AM
Interesting, I may be able to put this to use.

Thanks,
Title: Re: Personal Message (PM) Warning
Post by: Mr. Pedram on March 28, 2013, 12:16:14 PM
Quote from: johnpaul2k2 on March 28, 2013, 10:16:36 AM
worked but it is appearing twice

i mean the message warning. maybe there is a code we added 2 times???

One for wap, other one for wap2
works fine for me (see screenshot (http://custom.simplemachines.org/mods/index.php?action=download;mod=3665;id=218242;image))
Anyway, for now until i fix this issue, reinstall the mod,then Open Wireless.template.php

Find:

<tr bgcolor="#6d92aa"><td><font color="#ffffff">', $txt['new_message'], '</tr></td>', empty($context['post_error']['messages']) ? '' : '';
//PM Warning WAP
if (!empty($modSettings['pmwarning_enable']) && !empty($modSettings['pmwarning'])){
$modSettings['pmwarning'] = parse_bbc($modSettings['pmwarning']);
echo '
<p class="pmwarning">', $modSettings['pmwarning'], '</p>';
}
echo'


Replace With:

<tr bgcolor="#6d92aa"><td><font color="#ffffff">', $txt['new_message'], '</tr></td>', empty($context['post_error']['messages']) ? '' : '


...

can someone test the new version, and get us a feedback for this issue?
Title: Re: Personal Message (PM) Warning
Post by: johnpaul2k2 on March 28, 2013, 03:58:43 PM
it's ok now

working wella
Title: Re: Personal Message (PM) Warning
Post by: Mr. Pedram on March 28, 2013, 04:14:08 PM
I've updated MOD a few minutes ago, WAP issue solved and permissions setting added.
NJoy
Title: Re: Personal Message (PM) Warning
Post by: Mick. on March 28, 2013, 05:20:15 PM
Not bad. I like ;)
Title: Re: Personal Message (PM) Warning
Post by: Mr. Pedram on March 29, 2013, 06:51:40 AM
Quote from: ApplianceJunk on March 28, 2013, 10:24:07 AM
Interesting, I may be able to put this to use.

Thanks,

Your Welcome my friend  :)

Quote from: Mick. on March 28, 2013, 05:20:15 PM
Not bad. I like ;)

Thanks  ;)
Title: Re: Personal Message (PM) Warning
Post by: Colin on May 17, 2013, 02:39:30 AM
It looks like your mod preview images are bad links now.
Title: Re: Personal Message (PM) Warning
Post by: Mr. Pedram on May 17, 2013, 10:43:44 AM
Quote from: Colin on May 17, 2013, 02:39:30 AM
It looks like your mod preview images are bad links now.

Damn upload center, they removed my images..
anyway, , re-uploaded.
Thanks for that Colin.
Title: Re: Personal Message (PM) Warning
Post by: Colin on May 17, 2013, 11:36:42 AM
Sure thing.
Title: Re: Personal Message (PM) Warning
Post by: littlenicki on September 26, 2013, 10:46:36 AM
Will this mod also work with with SMF 1.1. when manually installed?
Title: Re: Personal Message (PM) Warning
Post by: Mr. Pedram on May 01, 2014, 07:35:34 AM
Quote from: littlenicki on September 26, 2013, 10:46:36 AM
Will this mod also work with with SMF 1.1. when manually installed?

it's too late, but the answer is: No
for future questions!
Title: Re: Personal Message (PM) Warning
Post by: PLAYBOY on March 11, 2016, 04:14:59 AM
Is there anyway to set this for a specific member group only? Because I want this to be visible only when they`re sending a PM to Admins