View Single PM

Started by SleePy, November 11, 2006, 11:56:55 AM

Previous topic - Next topic

SleePy

Link to Mod
Rate this Mod

This Mod Allows you to view a Single Personal Message in Your Personal Messages.
To use click the Subject link and be taken to the that PM and have it displayed Only.

To Disable the messages from showing while in a folder (not viewing a PM) go to Admin -> Features and Options
and Check: Enable Single Personal Message View

Version 1.0
! Release
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

danskmacabre

Another great mod.
Installed fine, works fine.
Don't forget to enable it in the adminpanel though or it won't work right.
Website: cantref.org.uk chaos8.com | SmF version: 2 | Portal software: PortaMx 1.3 | Default theme: Coal Black

Assistance

The mod you have requested has not been approved yet for downloads.
~playing poker~

SleePy

Quote from: danskmacabre on November 11, 2006, 04:09:09 PM
Another great mod.
Installed fine, works fine.
Don't forget to enable it in the adminpanel though or it won't work right.

Yea I added that as an option incase you don't want to hide the messages.. Thought it would give more users functionality to choose. I like it to view all but a single is nice for the very long pms you get  :P

Quote from: Assistance on November 11, 2006, 06:30:19 PM
The mod you have requested has not been approved yet for downloads.
Please force refresh the page and download. If that doesn't work contact a SMF team member and they will try to fix the issue.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Tam

How do I display the "short-list" of PM's in the Inbox while viewing the single PM? So I can click a new one without having to go back to inbox and pick a new one.


Greengoat

This mod is something I've been wanting for awhile since I'm still on dial-up and waiting for 20 messages to load every time can be a drag.

But I get an error when I tried to install it on 1.1 RC3 with security update

1.     Execute Modification     ./Sources/PersonalMessage.php     Test successful
2.    Execute Modification    ./Sources/ModSettings.php    Test failed
3.    Execute Modification    ./Themes/default/PersonalMessage.template.php    Test successful
4.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful


This is a test board so it is running a goodly number of mods

1.     LiveJournal Mod      1.0       [ Uninstall ]  [ List Files ]  [ Delete ]
2.    Country Flags    1.0.1    [ Uninstall ] [ List Files ] [ Delete ]
3.    Custom Profile Field Mod    3.15    [ Uninstall ] [ List Files ] [ Delete ]
4.    SMF Shoutbox    1.15    [ Uninstall ] [ List Files ] [ Delete ]
5.    SMF Gallery Lite    1.6.5    [ Uninstall ] [ List Files ] [ Delete ]
6.    Simple Blog    1.4    [ Uninstall ] [ List Files ] [ Delete ]
7.    View Single PM    1.4    [ Apply Mod ] [ List Files ] [ Delete ]
8.    Thank You Mod    1.0.3    [ Uninstall ] [ List Files ] [ Delete ]
9.    cbi, 0.5    0.5    [ Uninstall ] [ List Files ] [ Delete ]
10.    Board Viewers Mod    1.0    [ Uninstall ] [ List Files ] [ Delete ]
11.    SMF Staff Page    1.3    [ Uninstall ] [ List Files ] [ Delete ]
12.    Profile Comments    1.2.1    [ Uninstall ] [ List Files ] [ Delete ]
13.    SMF Links    1.5    [ Uninstall ] [ List Files ] [ Delete ]

Thanks

Tam

Quote from: Greengoat on November 12, 2006, 11:17:25 AM
This mod is something I've been wanting for awhile since I'm still on dial-up and waiting for 20 messages to load every time can be a drag.

But I get an error when I tried to install it on 1.1 RC3 with security update

There is only a small amount of text added to that file, which you can do manually:

Look for:
// Reporting of personal messages?
array('check', 'enableReportPM'),
array('int', 'max_pm_recipients'),


And add after:   array('check', 'enableSinglePM'),

SleePy

#7
Quote from: Tam on November 12, 2006, 09:04:52 AM
How do I display the "short-list" of PM's in the Inbox while viewing the single PM? So I can click a new one without having to go back to inbox and pick a new one.


Well.. You can change it really quick..

Open: /Themes/Default/PersonalMessage.php

And just to make it an easy edit going to change an if statement..

Find:


if(!isset($_GET['p']))

Replace:

if(1)


So it always returns true and shows the short list..
I will add this as an option in a update..


Edit..
While Messing with it to do this it only shows that single pm anyways.. Since the way I had it show the Single PM without to much Theme edits I edited the mysql statement.. So that will not help

Wouldn't do much to show it. Would only show that single PM anyways.. :(..
Quote from: Greengoat on November 12, 2006, 11:17:25 AM
This mod is something I've been wanting for awhile since I'm still on dial-up and waiting for 20 messages to load every time can be a drag.

But I get an error when I tried to install it on 1.1 RC3 with security update

1.     Execute Modification     ./Sources/PersonalMessage.php     Test successful
2.    Execute Modification    ./Sources/ModSettings.php    Test failed
3.    Execute Modification    ./Themes/default/PersonalMessage.template.php    Test successful
4.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful


This is a test board so it is running a goodly number of mods

1.     LiveJournal Mod      1.0       [ Uninstall ]  [ List Files ]  [ Delete ]
2.    Country Flags    1.0.1    [ Uninstall ] [ List Files ] [ Delete ]
3.    Custom Profile Field Mod    3.15    [ Uninstall ] [ List Files ] [ Delete ]
4.    SMF Shoutbox    1.15    [ Uninstall ] [ List Files ] [ Delete ]
5.    SMF Gallery Lite    1.6.5    [ Uninstall ] [ List Files ] [ Delete ]
6.    Simple Blog    1.4    [ Uninstall ] [ List Files ] [ Delete ]
7.    View Single PM    1.4    [ Apply Mod ] [ List Files ] [ Delete ]
8.    Thank You Mod    1.0.3    [ Uninstall ] [ List Files ] [ Delete ]
9.    cbi, 0.5    0.5    [ Uninstall ] [ List Files ] [ Delete ]
10.    Board Viewers Mod    1.0    [ Uninstall ] [ List Files ] [ Delete ]
11.    SMF Staff Page    1.3    [ Uninstall ] [ List Files ] [ Delete ]
12.    Profile Comments    1.2.1    [ Uninstall ] [ List Files ] [ Delete ]
13.    SMF Links    1.5    [ Uninstall ] [ List Files ] [ Delete ]

Thanks

Another Mod  has edited the ModSettings.php file and edited what I was trying to use..
Could you check through those mods and see which ones edit the ModSettings.php
You can do this by either by going to List Files and then clicking the .xml or .mod file and browsing it looking for something that has ModSetting.php (Find works ok).
Or you can Click Uninstall and just look at it and see if it wants to edit the ModSettings.php file then click back and check next..

But thanks for showing that.. I see an error in the version number display (bad coping  ;D )

As a Note.
My mod is looking for this in ModSetting.php

// Reporting of personal messages?
array('check', 'enableReportPM'),
array('int', 'max_pm_recipients'),

Going to change that to a smaller search for the next version. Didn't know of any mods that edited the person messages in ModSettings.php so I didn't think of that..
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Greengoat

The staff page mod alters the modsettings.php.

And when you said "I see an error in the version number display (bad coping  Grin )" was that referring to the view single pm version?

Greengoat

Still going through and found the board viewers mod also changed it.

SleePy

#10
Yea.. I used the same files from another one of my mod.. Just edited..  :P

just downloaded staff page mod and What the staff page mod edits is shouldn't be affecting the installation of my mod..
Do you got any other mods that edit this file or is it the only one? If you want you can post the ModSettings.php and I will make the change myself or

Open ModSettings.php and follow what Tam said..
Quote from: Tam on November 12, 2006, 12:18:15 PM
Look for:
// Reporting of personal messages?
array('check', 'enableReportPM'),
array('int', 'max_pm_recipients'),


And add after:   array('check', 'enableSinglePM'),

Edit.. Just saw you post.. Give me a min to look at board viewers

Edit2..
Board Viewers shouldn't be affecting you either.. It edits the same place as staff mod..
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Greengoat

Thank you mod, simple blog, smf shoutbox, custom profile settings, and country flags all edit the modsettings.php.

Greengoat

Quote from: SleePy on November 12, 2006, 01:03:46 PM
Yea.. I used the same files from another one of my mod.. Just edited..  :P

just downloaded staff page mod and What the staff page mod edits is shouldn't be affecting the installation of my mod..
Do you got any other mods that edit this file or is it the only one? If you want you can post the ModSettings.php and I will make the change myself or

Open ModSettings.php and follow what Tam said..
Quote from: Tam on November 12, 2006, 12:18:15 PM
Look for:
// Reporting of personal messages?
array('check', 'enableReportPM'),
array('int', 'max_pm_recipients'),


And add after:   array('check', 'enableSinglePM'),

Edit.. Just saw you post.. Give me a min to look at board viewers

I could, but it's a test forum so would the change be similar to the main board assuming I don't install all of the above mods?

BTW thanks for the quick responses. ILI

Greengoat

Well heck, I can alter it, I was more interested in getting the info you requested back out asap.

Greengoat

Well I found the spot, but mine is slightly different

Quote// Reporting of personal messages?
         array('check', 'enableReportPM'),

      '',
         // Show flags
         array('select', 'country_flag_ask', array($txt['country_flag_disabled'], $txt['country_flag_profile'], $txt['country_flag_registration'], $txt['country_flag_both'])),
         array('check', 'country_flag_required'),
         array('check', 'country_flag_show'),
         array('int', 'max_pm_recipients'),
   );

   // Saving?
   if (isset($_GET['save']))
   {
      saveDBSettings($config_vars);
      redirectexit('action=featuresettings;sa=basic');

      loadUserSettings();
      writeLog();
   }

   $context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=basic';
   $context['settings_title'] = $txt['mods_cat_features'];

   prepareDBSettingContext($config_vars);
}

function ModifyLayoutSettings()

SleePy

lol.. Ok..

Well Finally Found it..

CountryFlags by Jay was the mod that edited the area I did..

He shouldn't of edited there or the way he did because it breaks up the pm section into two as it is.. I will have to remind him of this so he can get it fixed in a future release..

Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Greengoat

I placed the needed code below the array('int', 'max_pm_recipients'), line.  It shows the option in the admin panel but still lists multiple pms in message area.

SleePy

#17
Did you check the box and then try..
The option there just hides all pms while not viewing any pm. So it just shows the Short list..

Edit--

Jay Just told me he will update when he gets time... So hes aware of this..
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Greengoat

:doh that wasn't it.  The mod was working just fine I was seeing a couple pm topics but not the actual message.

Works perfectly thanks for the help.  Nice mod, very helpful.

Greengoat

I have a question regarding what you said about the info from the flag mod, should I cut and paste that stuff somewhere else or are there other parts of the mod that require those lines to be were they are?

Nothing like answering questions about other peoples mods. ;)

Advertisement: