Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: SleePy on November 11, 2006, 11:56:55 AM

Title: View Single PM
Post by: SleePy on November 11, 2006, 11:56:55 AM
Link to Mod (http://mods.simplemachines.org/index.php?mod=535)
Rate this Mod (http://mods.simplemachines.org/index.php?action=review;sa=add;mod=535)

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
Title: Re: View Single PM
Post by: 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.
Title: Re: View Single PM
Post by: Assistance on November 11, 2006, 06:30:19 PM
The mod you have requested has not been approved yet for downloads.
Title: Re: View Single PM
Post by: SleePy on November 11, 2006, 10:54:46 PM
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.
Title: Re: View Single PM
Post by: 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.

Title: Re: View Single PM
Post by: 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
Title: Re: View Single PM
Post by: Tam on November 12, 2006, 12:18:15 PM
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'),
Title: Re: View Single PM
Post by: SleePy on November 12, 2006, 12:18:26 PM
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..
Title: Re: View Single PM
Post by: Greengoat on November 12, 2006, 12:57:21 PM
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?
Title: Re: View Single PM
Post by: Greengoat on November 12, 2006, 01:00:59 PM
Still going through and found the board viewers mod also changed it.
Title: Re: View Single PM
Post by: 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

Edit2..
Board Viewers shouldn't be affecting you either.. It edits the same place as staff mod..
Title: Re: View Single PM
Post by: Greengoat on November 12, 2006, 01:05:04 PM
Thank you mod, simple blog, smf shoutbox, custom profile settings, and country flags all edit the modsettings.php.
Title: Re: View Single PM
Post by: Greengoat on November 12, 2006, 01:07:07 PM
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
Title: Re: View Single PM
Post by: Greengoat on November 12, 2006, 01:08:16 PM
Well heck, I can alter it, I was more interested in getting the info you requested back out asap.
Title: Re: View Single PM
Post by: Greengoat on November 12, 2006, 01:14:26 PM
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()
Title: Re: View Single PM
Post by: SleePy on November 12, 2006, 01:16:54 PM
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..

Title: Re: View Single PM
Post by: Greengoat on November 12, 2006, 01:22:55 PM
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.
Title: Re: View Single PM
Post by: SleePy on November 12, 2006, 01:24:29 PM
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..
Title: Re: View Single PM
Post by: Greengoat on November 12, 2006, 01:29:04 PM
: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.
Title: Re: View Single PM
Post by: Greengoat on November 12, 2006, 04:01:26 PM
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. ;)
Title: Re: View Single PM
Post by: SleePy on November 12, 2006, 04:10:27 PM
not sure if I fully understand you..

but if you want to fix the minor typo jay made just do this

Open: ModSettings.php
Find:

'',
// 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'),
array('check', 'enableSinglePM'),


Replace:

'',
// 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'),
'',
// Reporting of personal messages?
array('check', 'enableReportPM'),
array('int', 'max_pm_recipients'),
array('check', 'enableSinglePM'),


That should fix any sorting problems on the Features and Settings page..

But I let jay know about what his mod did and He told me he will update it when he gets time. Hes busy. But he knows about it so it will be fixed when he gets the time to.
;)
Title: Re: View Single PM
Post by: Greengoat on November 12, 2006, 04:59:28 PM
Cool, thanks again.  I'll edit that file just for GPs'.
Title: Re: View Single PM
Post by: Tam on November 24, 2006, 08:21:58 AM
Do you have any plans on extending this mod? Like displaying the list of PMs above (or under) while viewing a single PM, like I described in a previous post. Being able to add   "Next" and "Previous"-links to the pm-view would be great as well.
Title: Re: View Single PM
Post by: SleePy on November 24, 2006, 08:47:05 PM
Not at the moment. Doing that would require me to have to rewrite a big section of the mod. Since my mod really focuses on editing the mysql command I would have to change so much to do that. So at the moment I do not plan for it.
Title: Re: View Single PM
Post by: MultiformeIngegno on December 06, 2006, 07:28:56 AM
I've a very big problem. If I upload the package from the admin panel I can't access to the package area! I have to remove tha package with an FTP client and it works! Every time I upload the package I can't access to the package area of the admin panel and I have to remove the package from /Packages

Anyone had this problem?
Title: Re: View Single PM
Post by: SleePy on December 06, 2006, 05:57:29 PM
Sounds like the package is corrupted. Try to download it again using another browser...
Title: Re: View Single PM
Post by: MultiformeIngegno on December 07, 2006, 10:11:38 AM
Quote from: SleePy on December 06, 2006, 05:57:29 PM
Sounds like the package is corrupted. Try to download it again using another browser...
OK. I tried to redownload and now it works.
THX! ;D
Title: Re: View Single PM
Post by: swtxgrl on December 16, 2006, 05:26:40 AM
hi, i uploaded the package and enabled the single pm in the admin panel. but when i click on a PM, it just refreshes the page and doesnt show the message...

i went and manually modified the files according to the xml file...but it still doesnt work :( please help!
Title: Re: View Single PM
Post by: SleePy on December 18, 2006, 11:00:55 PM
When it Refreshes does it still show the Personal Messages below or are they hidden? Same with the Message list..
Title: Re: View Single PM
Post by: swtxgrl on December 18, 2006, 11:19:48 PM
nope, just the message List shows.
Title: Re: View Single PM
Post by: SleePy on December 19, 2006, 12:13:38 AM
Do you have any errors in the error log?

I am unable to reproduce the error though

1.1 Final Fresh install
-> Sent a few Test PMs to self
-> Installed SinglePM 1.1b
-> Enabled Option in Features and Options
-> Went to PM and Viewed just fine.

Did I miss something you did that I didn't?
Title: Re: View Single PM
Post by: swtxgrl on December 22, 2006, 02:03:22 PM
hmm ill try uninstalling it and installing it again. thanks for your help :)
Title: Re: View Single PM
Post by: Claine on January 02, 2007, 07:36:55 PM
Worked fine.  Thanks~
Title: Re: View Single PM
Post by: buhaychat.com on January 14, 2007, 04:46:37 AM
Great mod, works fine on 1.1.1... thanks!
Title: Re: View Single PM
Post by: bumperskittles on January 21, 2007, 10:44:20 AM
Not working fine for me on 1.1.1 this is the message on top of my forum now:

//View Single PM $txt['singlepm_prange'] = 'Parameter p out of range. Please Go back and try again'; $txt['singlepm_vmsg'] = 'Viewing Message #'; $txt['enableSinglePM'] = 'Enable Single Personal Message View.';

Help!
Title: Re: View Single PM
Post by: bumperskittles on January 21, 2007, 11:28:26 AM
Disregard my post above, I just uninstalled the mod and uploaded the backup of my modifications.english.php
Title: Re: View Single PM
Post by: SleePy on January 21, 2007, 01:19:55 PM
Where you able to get it working again?

The problem was that there was blank lines at the end of your modifications.english.php so when SMF modifed the file and followed the commands to add it to the end It couldnt find the ?> so it just added it.
You just need to move those lines above the ?> and remove any blank lines after ?> and it will fix it and any other mods you install.
Title: Re: View Single PM
Post by: Coldfx on January 30, 2007, 11:41:50 PM
I've longed for a mod like this :) Oddly enough, I've never seen it..The title threw me off imagining it would be similar to "View single post" (Enter to a specific post, and it only shows that post..).

Thanks again :)
Title: Re: View Single PM
Post by: SleePy on January 31, 2007, 12:07:21 AM
Quote from: Coldfx on January 30, 2007, 11:41:50 PM
I've longed for a mod like this :) Oddly enough, I've never seen it..The title threw me off imagining it would be similar to "View single post" (Enter to a specific post, and it only shows that post..).

Thanks again :)

well it does the same function. Viewing a single personal message or viewing a single post. Its the same thing. Just like Viewing a single category.  
Title: Re: View Single PM
Post by: Skyler on February 09, 2007, 05:19:30 PM
Quote//View Single PM $txt['singlepm_prange'] = 'Parameter p out of range. Please Go back and try again'; $txt['singlepm_vmsg'] = 'Viewing Message #'; $txt['enableSinglePM'] = 'Enable Single Personal Message View.';

I have this, I have uninstalled and deleted the mod and it doesn't go away.
Title: Re: View Single PM
Post by: SleePy on February 09, 2007, 05:29:38 PM
open Modifications.english.php in /Themes/default/languages

And remove those lines or move the ?> to the very last line to stop them from showing if you want to install and use the mod again.
Title: Re: View Single PM
Post by: sparky33 on February 21, 2007, 06:49:27 AM
SMF 1.1.1 TinyPortal v0.9.7 Default theme to install and test.

Just installed this mod, and whilst it is only showing the PM clicked on, I have this error at the top of the page:

//View Single PM $txt['singlepm_prange'] = 'Parameter p out of range. Please Go back and try again'; $txt['singlepm_vmsg'] = 'Viewing Message #'; $txt['enableSinglePM'] = 'Enable Single Personal Message View.';  

Just uninstalled and the error is still displayed at the top of the page and it has enlarged my display fonts.
Title: Re: View Single PM
Post by: SleePy on February 21, 2007, 04:50:53 PM
that is a error in which SMF finds blank spaces in the modifications.english.php at the end. So using the search that I did to find the end of the file causes this

It is really simple to fix. Open that file and find the ?> and move it to the very end of the file with no spaces or nothing after it.
Title: Re: View Single PM
Post by: sparky33 on February 22, 2007, 02:59:35 AM
Nice one, easy fix, I'll remember this one for the future, the mod text for some reason appeared after the ?>
Title: Re: View Single PM
Post by: Chapaev on February 22, 2007, 06:53:51 AM
I've translated it to russian. I'm not sure cause I'm new in SMF, that's why I'm sorry if you possibly can find some errors.
Title: Re: View Single PM
Post by: SleePy on February 22, 2007, 05:35:53 PM
Quote from: Chapaev on February 22, 2007, 06:53:51 AM
I've translated it to russian. I'm not sure cause I'm new in SMF, that's why I'm sorry if you possibly can find some errors.

Thank you. I am Updating my mod with the russian-utf8 language files in place

No other noted changes where made since 1.1b so you do not need to update.
Title: Re: View Single PM
Post by: spaceman on April 21, 2007, 08:59:39 PM
Hi there, I installed this mod fine, only one problem: All new messages are marked READ and are not shown as BOLD in the Inbox.

Any way to make new messages shown as BOLD with View Single PM mod? Thanks!:)
Title: Re: View Single PM
Post by: SleePy on April 21, 2007, 10:15:35 PM
Well once you view a PM once it is no longer new.
This mod doesn't modify the Template system looks but just how many PMS to show at once.
Title: Re: View Single PM
Post by: kamili34 on July 07, 2007, 03:55:45 PM
Thanks work great. I need it.  :P
Title: Re: View Single PM
Post by: w0nder on August 08, 2007, 01:30:49 PM
Have a problem

My default sort mode for pm list is date-desc
So mod uses that numeration for messages
But when I sort by title and press on first message it gives me first message by datesort
Can that be solved?
Title: Re: View Single PM
Post by: SleePy on August 08, 2007, 05:00:50 PM
Looks like sort isn't being carried over

Open Sources/PersonalMessage.php

Find:
$output['p'] = $scripturl . '?action=pm;f=' . $context['folder'] . ';l=' . $context['current_label_id'] . ';p=' . $counter;

Replace:
$output['p'] = $scripturl . '?action=pm;f=' . $context['folder'] . ';l=' . $context['current_label_id'] . ';p=' . $counter . (isset($_REQUEST['sort']) ? ';sort=' . $_REQUEST['sort'] : '');

I will fix this in a few days and update it.
Title: Re: View Single PM
Post by: w0nder on August 09, 2007, 12:22:21 AM
Thanks, it works perfect!

Have one more question, but that might be not regarding this MOD.
Is there a way to make SMF not mark messages read until I open their text, so I can see in PM list which messages are read and which are not?
Title: Re: View Single PM
Post by: SleePy on August 09, 2007, 12:35:38 AM
Thats just the way SMF is setup, I believe this is changed in 2.0 but I don't remember.
Title: Re: View Single PM
Post by: w0nder on August 09, 2007, 12:38:11 AM
I hope there can be a way
But then (as far as I understand) we'll have to add a field to messages table and maintain read/unread and amounts of messages too?
Title: Re: View Single PM
Post by: SleePy on August 09, 2007, 12:42:59 AM
yes, you would in some way need to track if they read it or not. I don't remember if there is or not in SMF 1.1.
Title: Re: View Single PM
Post by: w0nder on August 09, 2007, 12:47:16 AM
Uff. Will take time to write it.
I was hoping there's some mod that does that
Title: Re: View Single PM
Post by: goofyboy on August 10, 2007, 04:37:07 PM
I've translated it to dutch.

I'm not good whith the code so i put it on the place where the english is.

The rules you don't get it's dutch ;)

Title: Re: View Single PM
Post by: SleePy on August 12, 2007, 05:22:40 PM
w0nder, Ask in mod requests for such a mod.

goofyboy, thank you.
Title: Re: View Single PM
Post by: Robi052 on August 13, 2007, 02:35:04 PM
QuoteThe package you tried to upload either is not a valid package or has become corrupted.

Using SMF 1.1.3
Title: Re: View Single PM
Post by: SleePy on August 13, 2007, 04:08:05 PM
Try another browser to download the file and upload the mod or even try from the package server to get the mod.
Title: Re: View Single PM
Post by: Smasher on August 14, 2007, 12:11:42 PM
Sleepy,

Just wanted to thank you for this code... When I first got SMF I was real unhappy to see the way the PMs were displayed.... this is exactly what I was looking for...

I found this thread looking for a solution to the "Marked Read" problem... and now I understand that it is the core software that causes that.

Thank you for your time on a very useful mod.
Title: Re: View Single PM
Post by: Robi052 on August 14, 2007, 02:13:40 PM
Quote from: SleePy on August 13, 2007, 04:08:05 PM
Try another browser to download the file and upload the mod or even try from the package server to get the mod.

try and with opera and download and install from admin panel/packages but same error message
Title: Re: View Single PM
Post by: SleePy on August 14, 2007, 02:46:45 PM
Are you using 1.3? or 1.2?

I repacked 1.3 and replaced it with what is on the mods page. So give that new one a try.
Title: Re: View Single PM
Post by: Robi052 on August 14, 2007, 03:05:11 PM
SMF 1.1.3. Now try again but same error. Other mods working fine.
Title: Re: View Single PM
Post by: SleePy on August 14, 2007, 03:25:04 PM
I was talking about Mod version.
I released View Single PM 1.3 the other day but left 1.2 incase of problems with 1.3
Title: Re: View Single PM
Post by: Robi052 on August 15, 2007, 01:31:55 AM
1.3 .... download again mod
Title: Re: View Single PM
Post by: SleePy on August 15, 2007, 12:51:12 PM
Lets try this. Download the mod. Decompress it then recompress it (either with zip or tar.gz)
Title: Re: View Single PM
Post by: Robi052 on August 16, 2007, 05:33:16 AM
Download mod, unpack and then compress to zip file. That get error. Then compress uncompressed folder to tar.gz and that working. Thanks
Title: Re: View Single PM
Post by: Smasher on August 18, 2007, 09:52:36 AM
I wanted to look at this a little closer because I see some people out there have the same concern as I do about the messages getting automatically marked as read...

I noticed that in PersonalMessage.php around line 372 there is the following code.

// Mark all messages as read if in the inbox.
if ($context['folder'] != 'outbox' && !empty($context['labels'][(int) $context['current_label_id']]['unread_messages']))
markMessages(null, $context['current_label_id']);
}


If you comment that code out then it no longer automatically marks the PMs as read when you are on the page that lists the PMs....  Now we have the problem of how to mark an individual PM as read.

I see that the following code is the end of the code to post a single message...

$counter++;

// View Single PM to work correctly we have to add it after the counter had its addition to it..
$output['p'] = $scripturl . '?action=pm;f=' . $context['folder'] . ';l=' . $context['current_label_id'] . ';p=' . $counter;

return $output;
}


Is there a way that we can do something here to mark only that individual message as read?

I just cant understand why we can mark all messages as read but cant seem to mark only one as read. Maybe I am trying to go into something I should not?

This would then only leave the problem of the icon on the main listing... but that is a minor compared to this...
Title: Re: View Single PM
Post by: asdas2 on August 19, 2007, 01:48:14 AM
Thank YOU.... works gooood :) m happy :)
Title: Re: View Single PM
Post by: Mick. on November 25, 2007, 01:17:07 PM
I get these 2 errors:

8: Undefined index: current_topic
File: /home/midwesta/public_html/Themes/default/PersonalMessage.template.php (folder sub template - eval?)
Line: 306


8: Undefined index: current_topic
File: /home/midwesta/public_html/Themes/default/PersonalMessage.template.php (folder sub template - eval?)
Line: 307


I looked in personalmessage.template.php and all strings are there.

What gives?
Title: Re: View Single PM
Post by: SleePy on November 25, 2007, 01:36:45 PM
My mod doesn't add any current_topic strings to the PersonalMessage.template.php

You do have eval on, so lets shut it off incase it is lieing to us ;)
Run This query In phpMyAdmin (What is phpMyAdmin? (http://www.simplemachines.org/community/index.php?topic=21919.0))
REPLACE INTO smf_settings VALUES ('disableTemplateEval', 1);
Title: Re: View Single PM
Post by: Mick. on November 25, 2007, 02:45:05 PM
Quote from: SleePy on November 25, 2007, 01:36:45 PM
My mod doesn't add any current_topic strings to the PersonalMessage.template.php

You do have eval on, so lets shut it off incase it is lieing to us ;)
Run This query In phpMyAdmin (What is phpMyAdmin? (http://www.simplemachines.org/community/index.php?topic=21919.0))
REPLACE INTO smf_settings VALUES ('disableTemplateEval', 1);


Hmm.   Still same errors coming up.
Title: Re: View Single PM
Post by: SleePy on November 25, 2007, 03:10:07 PM
Are you sure its the exact same error? It might be slightly different with a different file perhaps.

Can you attach the file? While my mod didn't add this, we can figure out which one did.
Title: Re: View Single PM
Post by: Mick. on November 25, 2007, 03:27:00 PM
Here you go...
Title: Re: View Single PM
Post by: SleePy on November 26, 2007, 01:51:36 AM
Do you have a karma mod installed?
Such as Karma Description?

I see that the line around it has this

// Is this user allowed to modify this member's karma?
if ($message['member']['karma']['allow'])
echo '
<div align="', $karmaButtonAlign, '">
<a href="', $scripturl, '?action=modifykarma;sa=applaud;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.' . $context['start'], ';m=', $message['id'], ';sesc=', $context['session_id'], '"><img src="' . $settings['images_url'] . '/', $modSettings['karmaApplaudImage'], '" alt="', $modSettings['karmaApplaudLabel'], '" title="', $modSettings['karmaApplaudLabel'], '" border="0" /></a>
<a href="', $scripturl, '?action=modifykarma;sa=smite;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';m=', $message['id'], ';sesc=', $context['session_id'], '"><img src="' . $settings['images_url'] . '/', $modSettings['karmaSmiteImage'], '" alt="', $modSettings['karmaSmiteLabel'], '" title="', $modSettings['karmaSmiteLabel'], '" border="0" /></a><br />
</div>';


Which is from another mod.
Title: Re: View Single PM
Post by: Mick. on November 26, 2007, 07:22:13 AM
Quote from: SleePy on November 26, 2007, 01:51:36 AM
Do you have a karma mod installed?
Such as Karma Description?

I see that the line around it has this

// Is this user allowed to modify this member's karma?
if ($message['member']['karma']['allow'])
echo '
<div align="', $karmaButtonAlign, '">
<a href="', $scripturl, '?action=modifykarma;sa=applaud;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.' . $context['start'], ';m=', $message['id'], ';sesc=', $context['session_id'], '"><img src="' . $settings['images_url'] . '/', $modSettings['karmaApplaudImage'], '" alt="', $modSettings['karmaApplaudLabel'], '" title="', $modSettings['karmaApplaudLabel'], '" border="0" /></a>
<a href="', $scripturl, '?action=modifykarma;sa=smite;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';m=', $message['id'], ';sesc=', $context['session_id'], '"><img src="' . $settings['images_url'] . '/', $modSettings['karmaSmiteImage'], '" alt="', $modSettings['karmaSmiteLabel'], '" title="', $modSettings['karmaSmiteLabel'], '" border="0" /></a><br />
</div>';


Which is from another mod.

Yeah,is it because the last line is twice?
Title: Re: View Single PM
Post by: SleePy on November 26, 2007, 02:09:11 PM
There not the same. They are familiar though.

You should go ask the mod author for the Karma Description Mod. Since this mod appears to be the cause of it at the moment.
Title: Re: View Single PM
Post by: endiZ on December 11, 2007, 01:45:42 AM
This mod seems incompatible with Theme Blue LT.

Is the mod suppose to be Theme Specific?
Title: Re: View Single PM
Post by: SleePy on December 11, 2007, 01:17:00 PM
This modification makes a few edits to the PersonalMessage.template.php.
These changes couldn't be avoided sadly :)

You can use Daniels Package Parser mod and only look at theme edits. Then apply these changes manually. I run a copy of his parser at my own site for convince :P http://sleepycode.com/PackageParser/index.php

If you still need help I can help you make these changes.
Title: Re: View Single PM
Post by: goofyboy on January 07, 2008, 06:31:16 AM
I Installd a new forum and i want to use the single pm.

Only in the errorlog the next error is on screen.

http://www.bordie.nl/smf/index.php?action=pm;f=inbox;l=-1;p=2 
8: Undefined index: singlepm_vmsg
Bestand: D:\www\bordie.nl\www\smf\Sources\PersonalMessage.php
Regel: 378


The install was succesfull but this is the error after it.

can some one help me?
Title: Re: View Single PM
Post by: SleePy on January 07, 2008, 05:15:43 PM
Are you using a non english language?
Most mods only install for english. This one does install for english utf-8 and turkish utf-8 though.
Title: Re: View Single PM
Post by: goofyboy on January 08, 2008, 05:08:57 AM
i use a dutch language.

i will look if i can make a dutch language file :)
Title: Re: View Single PM
Post by: Goad on January 22, 2008, 05:29:08 PM
the download file is corrupt i believe from the recent crash...can you reupload it?

QuoteThe package you tried to upload either is not a valid package or has become corrupted.

I am building a new smf site and finding this is an issue with many of the mods.
Title: Re: View Single PM
Post by: SleePy on January 22, 2008, 07:53:10 PM
Thank you for saying something, I knew there was something I missed last night when I updated all my mods for 2.0 beta 2. Since this mod is a feature in 2.0 I didn't have a need to update it ;)
Title: Re: View Single PM
Post by: goldenboy48 on January 23, 2008, 12:33:28 AM
The package you tried to upload either is not a valid package or has become corrupted.
Title: Re: View Single PM
Post by: SleePy on January 23, 2008, 01:00:27 AM
Have you cleared your cache?
Have you tried to download and upload through different ways/browsers?
Title: Re: View Single PM
Post by: goldenboy48 on January 26, 2008, 04:36:33 PM
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Title: Re: View Single PM
Post by: 2pac on January 26, 2008, 06:25:48 PM
i get the same message :(
Title: Re: View Single PM
Post by: perro88 on January 26, 2008, 07:46:18 PM
nice mod thanks, installed and working at 100% :P
Title: Re: View Single PM
Post by: SleePy on January 28, 2008, 12:50:56 AM
Quote from: PanesarV on January 26, 2008, 04:36:33 PM
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

Quote from: 2pac on January 26, 2008, 06:25:48 PM
i get the same message :(

What version shows at the bottom of the forum?


Title: Re: View Single PM
Post by: perro88 on January 29, 2008, 01:59:30 PM
Do you know what modifications to do in order to (when your mod is enable) just count a pm as read when you click on it(view single pm) and not put the number of unread messages at 0 when entering to the pm page?
thanks again for the mod
Title: Re: View Single PM
Post by: SleePy on January 29, 2008, 10:19:56 PM
Well SMF does store how many unread pms you have, so checking to see if its new and then only change that when you read it shouldn't be to hard.
At the moment though I am not planning on any new features to this mod since it is a default features in 2.0 (and 2.0 does this)
Title: Re: View Single PM
Post by: perro88 on January 30, 2008, 01:19:13 AM
Quote from: SleePy on January 29, 2008, 10:19:56 PM
Well SMF does store how many unread pms you have, so checking to see if its new and then only change that when you read it shouldn't be to hard.
At the moment though I am not planning on any new features to this mod since it is a default features in 2.0 (and 2.0 does this)

ok, thanks for the reply
Title: Re: View Single PM
Post by: myaicons on February 04, 2008, 09:46:17 PM
awsome mod...only makes sense this way!  :)
Title: Re: View Single PM
Post by: -!¦[·ÃNÐ¥·]¦!- on March 01, 2008, 02:52:01 PM
I have a problem, please, can you help me?

Quote from: -!¦[·ÃNÐ¥·]¦!- on March 01, 2008, 11:50:44 AM
In our community are experiencing an error because I tried installing View Single PM mod yesterday, but it was corrupt. So I uninstalled and cleaned every archive with the SMF Package Parser.

Now, when we want to delete a PM: Session verification failed. Please try again. And when we try view any PM: Fatal error: Call to undefined function: create_button() in /home/pupddco/public_html/foro/Sources/Load.php(1726) : eval()'d code on line 248

(http://i28.tinypic.com/ojf7n6.jpg)

This happens to all members (admin, normal user) with IE, Firefox or Opera.

I replaced /public_html/foro/Sources/Load.php, /public_html/foro/Sources/PersonalMessage.php and /public_html/foro/Themes/default/PersonalMessage.template.php with new files but not worked.

I have this packages:

1.    PM On Registration    1.0.2    
2.    Load Standard Language    1.0.1    
3.    Avatars at Index Mod    1.4    
4.    SMF 1.0.11 / 1.1.3 Update    1.1    
5.    Password Protect Boards    0.1    
6.    Board Viewers    0.6    
7.    View Only Boards    1.0    
8.    Users Online Today Mod    1.4.0    
9.    Spoiler Show And Hide    1.0.2    
10.    YouTube BBC Tag (XHTML Compliant)    1.0    
11.    BBCode Bar For Signature    1.3    
12.    SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update    1.0    
13.    SMF 1.1.2 Update Package    1.1.2    
14.    SMF 1.1.1 Update Package    1.1.1    
15.    Auto Email Inactive Ordinary Users    1.2
16.    Hide SMF Version    1.0    
17.    Profile User Action    1.1    
18.    Reg Bar    1.0.1    
19.    Display Age and Location next to posts    1.0    
1.    Country Flags    1.1.1    
2.    Cats Avatars    1.1.2    
3.    Anime Avatars    2.0
4.    3D ART Avatars    1.1
5.    Dogs Avatars    1.1.2

And this is my error log:

-!¦[•ÃNÐ¥•]¦!- Hoy a las 00:30:06 201.250.102.1   a70f60a5d82c561e4a83c83d441a6fff
http://www.pupdd.com.ar/foro/index.php?action=pm;f=outbox;l=-1;p=250

8: Undefined index: singlepm_vmsg
Archivo: /home/pupddco/public_html/foro/Sources/PersonalMessage.php
Línea: 378


I feel very bad, I want to fix it  :( If someone could help me with this that would be fantastic.

EDIT: RESOLVED!
Title: Re: View Single PM
Post by: SleePy on March 02, 2008, 12:18:39 AM
Do you get this on the default theme?
Title: Re: View Single PM
Post by: realwx on April 01, 2008, 11:12:26 PM
Just tried this. While it is fantastic, the PM display boxes are a little bit broken. For instance, if I have this enabled, then what will happen is that if you try and sort by Date, Subject or From (either in ascending/descending order) then it will work, but the links will treat it as if it's going by Date from Oldest to Newest, and I can't seem to find the cause of this. If there's any way to fix this...
Title: Re: View Single PM
Post by: SleePy on April 01, 2008, 11:41:21 PM
Well I do not modify the urls so this is odd why it happens.. It seems the descending setting is empty :|
Title: Re: View Single PM
Post by: fals on April 10, 2008, 05:32:58 PM
Hi
I got a problem - in personal messages, when you press "Search Messages"

When you get the Search Results and then click on the found PM, then it just goes back to the inbox, not the found message
Title: Re: View Single PM
Post by: SleePy on April 10, 2008, 10:04:02 PM
Ahh, it doesn't seem that search has the correct pm url..

Will fix sometime this weekend.
Title: Re: View Single PM
Post by: Jessikard on April 21, 2008, 11:37:53 AM
8: Undefined index: singlepm_vmsg
******: /home/*****/******/html/for/Sources/PersonalMessage.php
Line: 378


and this line says: 'name' => $txt['singlepm_vmsg'] . $context['sl-singlepm']

i have the same problem  - and a little group of our users can't receive personalmessages
Title: Re: View Single PM
Post by: SleePy on April 21, 2008, 10:43:08 PM
Are you missing the language string entries?

This mod doesn't touch how users send or receive pms.
It simply changes the format to only show a single message at a time.
Title: Re: View Single PM
Post by: Jessikard on April 22, 2008, 03:43:43 AM
Quote from: SleePy on April 21, 2008, 10:43:08 PM
Are you missing the language string entries?

This mod doesn't touch how users send or receive pms.
It simply changes the format to only show a single message at a time.
ok, how can i fix it for german language

the receiving problem should i find  at another thread

thx Jessi
Title: Re: View Single PM
Post by: SleePy on April 22, 2008, 04:06:40 PM
There is no language strings for german

If you open the Modifications.english.php in your /Themes/default/languages folder you will see a small group (3) of language strings with a comment above them saying:
// View Single PM

Copy those to your Modifications.german.php (Modifications.german_utf8 if you are using utf8).
You can then change those into their german equivalents
Title: Re: View Single PM
Post by: e30Birdy on May 08, 2008, 03:44:18 PM
What do i have to add to this cause i am getting a error, my board is ran in german and i would kill for this mod!

1.     Modifikation ausführen     ./Sources/PersonalMessage.php                                          Erfolgreich
2.    Modifikation ausführen    ./Sources/ModSettings.php                                                     Erfolgreich
3.    Modifikation ausführen    ./Themes/default/PersonalMessage.template.php                      Fehler            <---- here is my error
4.    Modifikation ausführen    ./Themes/default/languages/Modifications.english.php              Erfolgreich
5.    Modifikation ausführen    ./Themes/default/languages/Modifications.english-utf8.php    Erfolgreich
6.    Modifikation ausführen    ./Themes/default/languages/Modifications.dutch.php               Überspringe Datei
7.    Modifikation ausführen    ./Themes/default/languages/Modifications.russian-utf8.php    Überspringe Datei
Title: Re: View Single PM
Post by: e30Birdy on May 08, 2008, 03:53:54 PM
Template Parse Error!
Ein Problem trat beim Laden des /Themes/default/PersonalMessage.template.php Templates oder der Sprachdatei auf. Bitte überprüfen Sie die Syntax und versuchen Sie es erneut. Bitte beachten Sie, dass einzelne Anführungszeichen (') oft mit einem Slash (\) auskommentiert werden müssen. Um nähere Informationen von PHP zu diesem Fehler zu erhalten, versuchen Sie die Seite direkt aufzurufen.

Sie können auch versuchen, die Seite zu aktualisieren oder das Standard-Theme zu benutzen.

Parse error: syntax error, unexpected $end in .../Themes/default/PersonalMessage.template.php on line 1384

1375:          </tr>
1376:          <tr class="windowbg">
1377:             <td align="center">
1378:                <br /><a href="', $scripturl, '?action=pm;l=', $context['current_label_id'], '">', $txt['pm_report_return'], '</a>
1379:             </td>
1380:          </tr>
1381:       </table>';
1382: }
1383:

1384: ?>

1385:
1386:

this is where i am getting my error, i guess cause i cant even open PNs
Title: Re: View Single PM
Post by: fals on May 08, 2008, 04:44:28 PM
Quote from: SleePy on April 10, 2008, 10:04:02 PM
Ahh, it doesn't seem that search has the correct pm url..

Will fix sometime this weekend.
Any fix yet ? ;-)
Title: Re: View Single PM
Post by: SleePy on May 09, 2008, 09:31:06 PM
fals,
No.. I got busy through the weekends :|
I don't know if I will have much time to get working on this, I haven't been paying much attention to adding features to my mods the past the few weeks.

e30Birdy,
You shouldn't of performed the install as the test failed.

Can you attach your PersonalMessage.template.php
Title: Re: View Single PM
Post by: InternetMafia on May 10, 2008, 12:40:07 AM
I for one would like to see a fix to this mod.

I find it one of the best mods out there.
Title: Re: View Single PM
Post by: e30Birdy on May 10, 2008, 04:23:48 AM
here ya go
Title: Re: View Single PM
Post by: SleePy on May 11, 2008, 01:53:35 AM
Is that the modified one? I get no errors with that file
Quote
The-SleePy-Laptop:~ jeremy$ php -l ~/Downloads/PersonalMessage.template.php
No syntax errors detected in ~/Downloads/PersonalMessage.template.php
Title: Re: View Single PM
Post by: e30Birdy on May 11, 2008, 05:06:56 AM
Is it because i am using a different theme and german language?
Title: Re: View Single PM
Post by: SleePy on May 11, 2008, 11:00:33 AM
Are you still getting it then?
This mod only installs for the default theme file so you need the one out of the /Themes/default folder.
Title: Re: View Single PM
Post by: e30Birdy on May 11, 2008, 11:57:37 AM
here is the one out of the default theme?  Will it be possible to use it for my theme i am using?
Title: Re: View Single PM
Post by: SleePy on May 11, 2008, 12:44:36 PM
Those files are not modified?

Did you uninstall the mod?
I needed the modified ones to see why that error occurs.
Title: Re: View Single PM
Post by: e30Birdy on May 11, 2008, 12:48:50 PM
okay i reinstalled it
Title: Re: View Single PM
Post by: SleePy on May 11, 2008, 12:55:04 PM
this one should work
Title: Re: View Single PM
Post by: e30Birdy on May 11, 2008, 01:26:10 PM
Thanks for all the help sleepy but i still get all the messages at once. i just made a test account to check it out!
Title: Re: View Single PM
Post by: SleePy on May 11, 2008, 01:37:36 PM
Did you enable the option in your Features and configuration to hide the pms?
Title: Re: View Single PM
Post by: e30Birdy on May 11, 2008, 01:46:13 PM
okay finally figured it out, its working now!  Thanks again!  Pain getting support in english and trying to do it in german
Title: Re: View Single PM
Post by: InternetMafia on May 15, 2008, 12:13:46 AM
I get the following error message at the top of my forum:
// View Single PM $txt['singlepm_prange'] = 'Parameter p out of range. Please Go back and try again'; $txt['singlepm_vmsg'] = 'Viewing Message #'; $txt['enableSinglePM'] = 'Enable Single Personal Message View.';

And I get this message above my PM box:
form action="http://www.mysite.com/forums/index.php?action=pm;sa=pmactions;f=inbox;start=0" method="post" accept-charset="ISO-8859-1" name="pmFolder">

Any ideas.  By the way I suck at hand coding so I may have made an error.  I opened in package parser and followed the instructions the best I could
Title: Re: View Single PM
Post by: SleePy on May 15, 2008, 12:15:16 AM
Open Modifications.english.php in /Themes/default/languages

Find the ?>

Move this to the very end of the file making sure there is no returns or spaces after it.
Save the file and it should all be good :)
Title: Re: View Single PM
Post by: InternetMafia on May 15, 2008, 12:22:19 AM
Sleepy, is there a reason the package manager does not recognize the file and install automatically?

Just asking.

I had used it until I had to have a forum rebuild earlier in the month.

Now it wont even install
Title: Re: View Single PM
Post by: SleePy on May 15, 2008, 12:31:46 AM
It should still work. Make sure the file you got isn't corrupted. Try a different method to download and upload the file (this ensures that the ways you downloaded/uploaded it are not an issue).
Title: Re: View Single PM
Post by: InternetMafia on May 15, 2008, 12:36:29 AM
Quote from: SleePy on May 15, 2008, 12:31:46 AM
It should still work. Make sure the file you got isn't corrupted. Try a different method to download and upload the file (this ensures that the ways you downloaded/uploaded it are not an issue).


I just downloaded a new copy off the SMF Mods site and get this error message when I try to upload it via the package manager.

An Error Has Occurred!

The package you tried to upload either is not a valid package or has become corrupted.

I am thinking the download on the site is corrupted somehow
Title: Re: View Single PM
Post by: SleePy on May 15, 2008, 01:12:23 AM
What version of smf are you using?
Title: Re: View Single PM
Post by: InternetMafia on May 15, 2008, 06:48:26 AM
SMF 1.1.4
Title: Re: View Single PM
Post by: ruaduck on May 15, 2008, 09:54:09 AM
I got the same error message.  I'm running 1.1.5 :)
Title: Re: View Single PM
Post by: SleePy on May 15, 2008, 10:19:45 PM
Does this one work?
Title: Re: View Single PM
Post by: InternetMafia on May 15, 2008, 10:51:43 PM
Nope

I will probably try to manually install again
Title: Re: View Single PM
Post by: SleePy on May 15, 2008, 11:09:03 PM
Well that is odd..
Its only looking for one small string in that file and I made sure it was correct :|

Are you sure it was that file that failed?
Title: Re: View Single PM
Post by: InternetMafia on May 15, 2008, 11:12:09 PM
Not sure
I downloaded with IE, Firefox and Safari.  Tried to install with all three through the package manager.

Each time I get the not valid message.
Title: Re: View Single PM
Post by: SleePy on May 15, 2008, 11:19:14 PM
Mind sending me some admin/ftp info so I can look personally?
A reminder about admin / ftp passwords etc. (http://www.simplemachines.org/community/index.php?topic=87130.0)
Title: Re: View Single PM
Post by: InternetMafia on May 15, 2008, 11:24:13 PM
Info sent
If you need anything else do not hesitate to ask
Title: Re: View Single PM
Post by: SleePy on May 16, 2008, 12:19:50 AM
How is that?

You have quiet a few mods installed. I don't know if its the cause of it.
I had to manually upload it and then access it via the url to get it to install (and then modify a file so it would install around another mod that edited that same line in that personal messages template).
Title: Re: View Single PM
Post by: InternetMafia on May 16, 2008, 12:55:36 AM
Ehh.  Still not working properly.  I still see all my PM's in a row unde the screen that shows the subject/sender/etc.

Dont worry about it.  Thanks for your help. 
Title: Re: View Single PM
Post by: SleePy on May 16, 2008, 01:22:07 AM
Theres a single settting in Features and options for it.
I went both ways with the view single pm and made it so you could view them all at once while still only being able to choose one at a time or that you have to click each one to read them.
Title: Re: View Single PM
Post by: InternetMafia on May 16, 2008, 06:39:00 PM
Gotcha.  Thanks for the help.  Your efforts are appreciated.  :)
Title: Re: View Single PM
Post by: InternetMafia on May 16, 2008, 10:21:50 PM
One more questions Sleepy.  I had to re-install a backup of the forum. I re-installed the mod by hand.

It works, however in the admin panel I see the checkbox for single messages but I dont see the "Check for  Single Messages" or whatever it said before(I forgot, sorry).

Any ideas.
Title: Re: View Single PM
Post by: SleePy on May 16, 2008, 10:58:34 PM
Are you sure you edited the templates?
Title: Re: View Single PM
Post by: InternetMafia on May 16, 2008, 11:08:16 PM
Quote from: SleePy on May 16, 2008, 10:58:34 PM
Are you sure you edited the templates?


Yeah.  I have the checkbox just not the string of words in front of it

Mod works fine just am missing that string in the admin panel in front of the checkbox.

Any idea which file or string of code I should look at to make sure it is right?
Title: Re: View Single PM
Post by: InternetMafia on May 17, 2008, 12:18:25 AM
Got it.

Thanks for the help SleePy
Title: Re: View Single PM
Post by: Cal O'Shaw on May 17, 2008, 11:50:17 PM
Hello,

I am trying to install on 1.1.5 and getting a message it fails on the PersonalMessage.template.php.

The only MOD that I have that seems the likely culprit is vReportBoard, which changes Report To Moderator alerts from PMs to topics in a board.

Should I try uninstalling vReportBoard, then installing View Single PM, then install vReportBoard?  Or is there a way to have the two coexist?

Thanks for all your help on the various mods available here!

Regards,

Cal
Title: Re: View Single PM
Post by: SleePy on May 18, 2008, 01:20:40 AM
If the vReportBoard mod will uninstall cleanly you can try to uninstall it then install this mod and finally reinstall the vReportBoard mod.

If not, manual installation will be needed.
Title: Re: View Single PM
Post by: Cal O'Shaw on May 18, 2008, 02:52:44 AM
Hello,

Thank you for the quick reply.  Unfortunately, uninstalling vReportBoard didn't solve it (and I had to tinker with its package-info.xml, adding 1.1.5 to the list of supported versions.  I had installed it under 1.1.4 a few weeks ago).

After uninstalling, I tried to install View Single PM and it still doesn't like the PersonalMessage.template.php.

I have never dealt xml or php (although I did create similar editing functions in PL/1 and REXX years ago), and as near as I can tell there are 4 operations performed on the file.  Is there a way to tell what is tripping up the package manager?  Would a copy of my PersonalMessage.template.php help (assuming you would be open to doing so)?

Many thanks (even if direct assistance isn't possible)

Cal
Title: Re: View Single PM
Post by: SleePy on May 18, 2008, 09:59:58 PM
Can you attach the PersonalMessages.template.php file then?
Title: Re: View Single PM
Post by: Cal O'Shaw on May 18, 2008, 11:18:04 PM
Hello,

Certainly, here it is.  Thank you very much!
Title: Re: View Single PM
Post by: SleePy on May 19, 2008, 12:41:07 AM
Try this one.
There wasn't anything wrong that I could see. But hopefully I fixed any broken line returns.
Title: Re: View Single PM
Post by: Cal O'Shaw on May 19, 2008, 12:54:56 AM
Hello,

Thank you.  I uploaded your copy into my forum, overwriting the copy there and tried again.  Unfortunately it failed again.

Are there any other options for trying to install it?  Any other actions I should try from this side?

Grazie,

Cal
Title: Re: View Single PM
Post by: SleePy on May 19, 2008, 01:15:28 AM
Ok,
Give the one I just uploaded to the mod page a try.
I think if found that issue.

http://custom.simplemachines.org/mods/index.php?mod=535

I was going to try to fix the search in this release. But looking at search and how I currently am doing the single pms, it isn't possible. So I am thinking this won't be fixed :| Not to much of a worry of getting it since SMF 2.0 will have it already.
Title: Re: View Single PM
Post by: Cal O'Shaw on May 19, 2008, 01:23:23 AM
That fixed it!

Thank you so very much!  Really appreciate it!

Regards,

Cal
Title: Re: View Single PM
Post by: Cal O'Shaw on July 02, 2008, 06:47:18 PM
Hello again,

Like the mod, but some users would reallyt like to be able to view a single PM and then hit [NEXT] or [PREVIOUS] buttons, rather than having to go back up and scroll down to find the next one.

Is there any chance you could add that ability?

Grazie,

Cal
Title: Re: View Single PM
Post by: b33z on July 06, 2008, 06:34:29 AM
god sent! been needing this one! perfect install, perfect funtion! thanks!
Title: Re: View Single PM
Post by: Mskina on August 17, 2008, 03:26:46 PM
Spanish and Spanish_es (works also on utf8 files)

<file name="$themedir/languages/Modifications.spanish.php" error="skip">
<operation>
<search position="end"></search>
<add><![CDATA[

//View Single PM
$txt['singlepm_prange'] = 'Par&aacute;metro p fuera de rango. Vuelve atr&aacute;s y prueba de nuevo';
$txt['singlepm_vmsg'] = 'Viendo mensaje #';
$txt['enableSinglePM'] = 'Activar Single Personal Message View.';
]]></add>
</operation>
</file>


<file name="$themedir/languages/Modifications.spanish_es.php" error="skip">
<operation>
<search position="end"></search>
<add><![CDATA[

//View Single PM
$txt['singlepm_prange'] = 'Par&aacute;metro p fuera de rango. Vuelve atr&aacute;s y prueba de nuevo';
$txt['singlepm_vmsg'] = 'Viendo mensaje #';
$txt['enableSinglePM'] = 'Activar Single Personal Message View.';
]]></add>
</operation>
</file>
Title: Re: View Single PM
Post by: SleePy on August 18, 2008, 01:50:08 PM
thank you Mskina,

Since this is now a feature in 2.0, I am not actively developing this mod any more.
Title: Re: View Single PM
Post by: Marcus Forsberg on August 30, 2008, 04:55:16 AM
Will this work whit 2.x?

And if not, will it do in the future?
Title: Re: View Single PM
Post by: SleePy on August 30, 2008, 06:55:43 PM
This is built into SMF 2.0 and it has much better options and usability in it  :D
Title: Re: View Single PM
Post by: Marcus Forsberg on August 31, 2008, 01:59:11 AM
oh, sry.

I'm planing to upgrade to 2.0, and havn't tested it yet, so I didn't know that..
Title: Re: View Single PM
Post by: SleePy on August 31, 2008, 07:49:39 PM
We do run 2.0 here if you want to take a peak at how it has changed :)
Title: Re: View Single PM
Post by: Marcus Forsberg on September 01, 2008, 08:35:09 AM
Yes, I know that ;)
Just haven't checked everything yet.
Bu tany way I've installed 2.0 on a test site now :)
Title: Re: View Single PM
Post by: Geko on December 25, 2008, 01:40:59 AM
This mod is not properly integrated in 2.0.  I can not find any place where I can set a single PM view as default for all users. This feature seems to be only accessible from every individual user profile page, which is inadequate. If someone knows a solution, please share.
Title: Re: View Single PM
Post by: johny000 on December 25, 2008, 02:04:24 AM
hello guys  why is telling me

This is an outdated mod that is no longer supported by its author. Use at your own risk
Title: Re: View Single PM
Post by: kizer on December 25, 2008, 02:53:34 AM
Still works great in 1.1.17
Title: Re: View Single PM
Post by: labradors on June 03, 2009, 10:18:39 PM
Quote from: SleePy on August 18, 2008, 01:50:08 PM
thank you Mskina,

Since this is now a feature in 2.0, I am not actively developing this mod any more.

Since 2.0 is still considered beta, and just a "Release Candidate," will this mod at least be keeping up with the latest versions in the 1.1.x tree, such as the current 1.1.9?

Thanks!
Title: Re: View Single PM
Post by: Claine on July 15, 2009, 01:19:08 AM
1.1.10 killed this mod.  Is there any way to fix it?
Title: Re: View Single PM
Post by: Claine on July 18, 2009, 05:38:43 AM
Bump.  Can anyone help me.
Title: Re: View Single PM
Post by: MultiformeIngegno on July 18, 2009, 06:58:14 AM
This MOD is really useful, please make it compatible with the 2.0 brach!!
Title: Re: View Single PM
Post by: Claine on July 21, 2009, 09:34:51 PM
Bumping again.
Title: Re: View Single PM
Post by: gbsothere on July 21, 2009, 09:58:02 PM
Quote from: Claine on July 21, 2009, 09:34:51 PM
Bumping again.


Claine, I've not installed this mod, but, right away, I can see that at least one of the files it uses was updated by the upgrade to 1.1.0.  I think if you just follow the instructions for this mod's manual parsing, it will restore the mod's function. 

ETA:   In the news and announcements thread about the upgrade, you will find the link to a page for manually parsing from 1.1.9 to 1.1.0,  There, you can see which files were involved and compare them to this mod's parsed files.  I do see that the Source/PersonalMessage.php is common between the two.

Title: Re: View Single PM
Post by: Phat^Trance on February 19, 2010, 10:36:03 AM
Crap, cannot upload the   SinglePM1.4.tgz to my 1.1.11 forum
getting this error message:  An Error Has Occurred!
The package you tried to upload either is not a valid package or has become corrupted.
Title: Re: View Single PM
Post by: SleePy on February 19, 2010, 04:14:50 PM
Phat,

As the message says, the file is most likely corrupt. I have not changed that package in ages, so it isn't the package itself.  This means that the download was corrupted or the upload was corrupted.
Title: Re: View Single PM
Post by: pointalk on February 20, 2010, 01:33:05 AM
Hi Sleepy, can you upgrade this mod with the feature: "PM subject characters is Bold before PM read, after click and reading subject characters will be normal, so that member know whether the message is read."
Title: Re: View Single PM
Post by: SleePy on February 20, 2010, 09:31:14 PM
Hello,

I am not supporting this mod for updates or new features.  This mod is a default feature in 2.0 with better features including the one you mentioned.
Title: Re: View Single PM
Post by: pointalk on February 21, 2010, 02:04:24 AM
Quote from: SleePy on February 20, 2010, 09:31:14 PM
Hello,

I am not supporting this mod for updates or new features.  This mod is a default feature in 2.0 with better features including the one you mentioned.

But not included in smf 1.1.11
Title: Re: View Single PM
Post by: jollyrogue on February 25, 2010, 01:25:02 PM
I was getting the corrupt/valid error message as well but i believe i fixed it as i managed to install the mod.

- Extract the files.
- Open package-info.xml
- At the <install for=""> and <uninstall for=""> bits replace the numbers inside the quotation marks with 1.1.11
- Then repackage it as a .zip and upload it.

Don't know if it was just luck but it did solve the problem for me.
Title: Re: View Single PM
Post by: MaNaRa on May 20, 2010, 12:11:36 PM
is this complatible with RC3? I need it :-\
Title: Re: View Single PM
Post by: Arantor on May 20, 2010, 12:27:30 PM
Um... view single PM is built into SMF 2.0, you can view individual PMs as a preference option!
Title: Re: View Single PM
Post by: żεχเ๏ภ on September 15, 2011, 03:54:21 PM
Hi, I can't find where to set this in SMF 2.0... Tried Admin panel > Features and options.

Tried My Messages > Change Settings...

No luck! :(

Thanks,
Jason
Title: Re: View Single PM
Post by: żεχเ๏ภ on September 18, 2011, 05:27:02 AM
Bump.
Title: Re: View Single PM
Post by: emanuele on September 18, 2011, 05:43:26 AM
Profile > Modify profile > personal messaging
Title: Re: View Single PM
Post by: żεχเ๏ภ on September 18, 2011, 04:38:17 PM
Quote from: emanuele on September 18, 2011, 05:43:26 AM
Profile > Modify profile > personal messaging

How can I make this default for everyone? I don't want to modify every single forum profile manually, it'd take ages.
Title: Re: View Single PM
Post by: emanuele on September 19, 2011, 06:17:48 PM
Honestly I don't know if it is possible to set for all the members from the admin panel...
Title: Re: View Single PM
Post by: żεχเ๏ภ on September 20, 2011, 12:08:04 PM
Quote from: emanuele on September 19, 2011, 06:17:48 PM
Honestly I don't know if it is possible to set for all the members from the admin panel...

Well thanks for trying, it is odd that SMF 2.0 final doesn't have it when early editions of 2.0 had it..  :o
Title: Re: View Single PM
Post by: emanuele on September 21, 2011, 03:35:03 AM
If it was in previous versions then most likely it there also in 2.0.
I've never used it on previous so maybe I missed it in 2.0. ;)

Where it was in the previous version?

Well...this is becoming an SMF 2.0 support topic... :P
Title: Re: View Single PM
Post by: żεχเ๏ภ on September 23, 2011, 04:08:07 AM
Quote from: emanuele on September 21, 2011, 03:35:03 AM
If it was in previous versions then most likely it there also in 2.0.
I've never used it on previous so maybe I missed it in 2.0. ;)

Where it was in the previous version?

Well...this is becoming an SMF 2.0 support topic... :P


Quote from: This Mod's download pageSMF 2.0
=======
To those wondering where this mod is. Single PM actually is integrated into 2.0 and has had features added to it.
If you go to "My Messages" -> "Change Settings"
You can change "Display personal messages:" to "One at a time"
Title: Re: View Single PM
Post by: emanuele on September 23, 2011, 04:23:22 AM
You lost me...

Quote from: żεχเ๏ภ on September 18, 2011, 04:38:17 PM
How can I make this default for everyone? I don't want to modify every single forum profile manually, it'd take ages.
But what you quoted from the mod's page is the personal setting, that is equivalent to what I wrote:
Quote from: emanuele on September 18, 2011, 05:43:26 AM
Profile > Modify profile > personal messaging
but it's not a way to change the setting for all your users...

The only way I can think to change the setting to all the other user is change it in the database, but right now I can't verify.
Title: Re: View Single PM
Post by: żεχเ๏ภ on September 24, 2011, 12:06:36 AM
Quote from: emanuele on September 23, 2011, 04:23:22 AM
You lost me...

Quote from: żεχเ๏ภ on September 18, 2011, 04:38:17 PM
How can I make this default for everyone? I don't want to modify every single forum profile manually, it'd take ages.
But what you quoted from the mod's page is the personal setting, that is equivalent to what I wrote:
Quote from: emanuele on September 18, 2011, 05:43:26 AM
Profile > Modify profile > personal messaging
but it's not a way to change the setting for all your users...

The only way I can think to change the setting to all the other user is change it in the database, but right now I can't verify.

If only I knew what table  :(
Title: Re: View Single PM
Post by: emanuele on September 24, 2011, 09:55:19 AM
{db_prefix}members: column "pm_prefs".
value => effect
0 => All at once
1 => One at a time
2 => As a conversation (that in 2.0 is in my opinion the best option and works best with "Save a copy of each personal message in my sent items by default.", you can change it for all your members from the members options page in your admin panel).
Title: Re: View Single PM
Post by: żεχเ๏ภ on September 25, 2011, 12:59:13 PM
Quote from: emanuele on September 24, 2011, 09:55:19 AM
{db_prefix}members: column "pm_prefs".
value => effect
0 => All at once
1 => One at a time
2 => As a conversation (that in 2.0 is in my opinion the best option and works best with "Save a copy of each personal message in my sent items by default.", you can change it for all your members from the members options page in your admin panel).

Thanks chum, still wished you could set it by default, oh well. I'll take what I can get.  ;)